Terrier Users :  Terrier Forum terrier.org
General discussion about using/developing applications using Terrier 
Term Stemming
Posted by: nadhem7 ()
Date: January 06, 2018 11:53PM

Hi everyone,

I would like to know how to stem a word with terrier.
Is it with the SnowballStemmer class?
If so, what is the "TermPipeline" of the constructor?

SnowballStemmer(String StemLanguage, TermPipeline next)

Any help would be most appreciated.

Thanks,
Nadhem...

Options: ReplyQuote
Re: Term Stemming
Posted by: deeper2 ()
Date: January 08, 2018 07:55AM

The default stemmer is PorterStemmer specified in /etc/terrier.properities, you can carefully read load_pipeline() in Indexer.java which uses java.lang.Class.forName to generate all class instances (PorterStemmer and Stopwords) of TermPipelines. All tokens in a document that passed through TermPipelines can be put into an indexer.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.