[ 
https://issues.apache.org/jira/browse/LUCENE-8462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16588947#comment-16588947
 ] 

Uwe Schindler commented on LUCENE-8462:
---------------------------------------

I was talking about that one - did you use {{ant patch-snowball}} or did you do 
it manually?:

{code:xml}
  <target name="patch-snowball" description="Patches all snowball programs in 
'${snowball.programs.dir}' to make them work with MethodHandles">
      <fileset id="snowball.programs" dir="${snowball.programs.dir}" 
includes="*Stemmer.java"/>
      <replaceregexp match="^public class \w+Stemmer\b" 
replace="@SuppressWarnings(&quot;unused&quot;) \0" flags="m" encoding="UTF-8">
        <fileset refid="snowball.programs"/>
      </replaceregexp>
      <replaceregexp match="private final static \w+Stemmer methodObject\b.*$" 
replace="/* patched */ private static final 
java.lang.invoke.MethodHandles.Lookup methodObject = 
java.lang.invoke.MethodHandles.lookup();" flags="m" encoding="UTF-8">
        <fileset refid="snowball.programs"/>
      </replaceregexp>
      <fixcrlf srcdir="${snowball.programs.dir}" includes="*Stemmer.java" 
tab="remove" tablength="2" encoding="UTF-8" javafiles="yes" fixlast="yes"/>
  </target>
{code}

> New Arabic snowball stemmer
> ---------------------------
>
>                 Key: LUCENE-8462
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8462
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Ryadh Dahimene
>            Priority: Trivial
>              Labels: Arabic, snowball, stemmer
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Added a new Arabic snowball stemmer based on 
> [https://github.com/snowballstem/snowball/blob/master/algorithms/arabic.sbl]
> As well an Arabic test dataset in `TestSnowballVocabData.zip` from the 
> snowball-data available here 
> [https://github.com/snowballstem/snowball-data/tree/master/arabic]
> Link to the corresponding Github PR:
> [https://github.com/apache/lucene-solr/pull/439]
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to