i’m searching a java library or something to do stemming of italian strings of words.
The goal is to compare italian words. In this moment words like “attacco”, “attacchi”,”attaccare” etc., are considered different, instead I want returned a true comparison.
I found something like Lucene, snowball.tartarus.org, etc.
Is there something else useful, or how can I use them in java?
Thanks for answers.
Download Snowball for Java here.
It includes a class named
org.tartarus.snowball.ext.italianStemmerwhich extendsSnowballStemmer.To use a
SnowballStemmerplease take a look at the following test code for verbattaccarepresent tense:Output:
For another example of use see
TestApp.javaincluded in the same tgz file.Lucene, which is written in Java, uses Snowball for stemming, for example as a filter in SnowballFilter.