简体   繁体   中英

Lucene 3.6.0 - SnowballAnalyzer Stemmer Deprecated

today I was trying to use the SnowballAnalyzer on Lucene Java API v3.6.0 but it seems Deprecated already. When I try to use the analyzer on my code, the code stop when it reach the analyzer. Actually I want to use PorterStemmer but it was not available on luce, so I decided to use this snowball, but this problem occured.

Anyone knows how to fix this?

Plus, does anyone know how to set the stop word file format , cause when I put:

a
as
able
about
above
according
accordingly
across
actually
after
afterwards
.
.
.

In the stopword.txt , and call it, the program stop. Can anyone share with me how to format the stopword.txt file?

Thanks.

being deprecated cannot make your code stop running. You must have some other issue.

Your stopword.txt seems to have the right format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM