mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Delroy Cameron <delroy.came...@gmail.com>
Subject Re: SnowballAnalyzer
Date Sat, 24 Apr 2010 03:51:46 GMT

Grant, Sean and Robin, 
thanks guys, i got the  lucene-snowball-2.9.1.jar and extended
SnowballAnlyzer to a GenericSnowballAnlyzer class. Its constructor takes no
arguments and calls the SnowballAnlyzer constructor 
public GenericSnowballAnalyzer(){
		super(Version.LUCENE_23, "English", StopWordFilter.getStopWords());
}
i created an inner class with a map of stopwords (StopWordFilter) for the
constructor to avoid having to add another jar to the project. 
to add the snowball jar to the project, i had to add it to the
./m2/repository and update the MAHOUT_ROOT/pom.xml and MAHOUT_CORE/pom.xml
to capture the dependency. 
this worked out guys i was able to generate the vectors..thanks guys.

-----
--cheers
Delroy
-- 
View this message in context: http://lucene.472066.n3.nabble.com/SnowballAnalyzer-tp729983p747250.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Mime
View raw message