@PublicationReference(author="Martin Porter",title="The Porter Stemming Algorithm",year=2006,type=WebPage,url="http://tartarus.org/~martin/PorterStemmer/") @PublicationReference(author="Martin F. Porter",title=" An algorithm for suffix stripping",year=1980,publication="Program 14(3)",pages={130,137},type=Journal) @PublicationReference(author="Wikipedia",title="Stemming",year=2010,type=WebPage,url="http://en.wikipedia.org/wiki/Stemming") public class PorterEnglishStemmingFilter extends AbstractSingleTermFilter
Constructor and Description |
---|
PorterEnglishStemmingFilter()
Creates a new
PorterEnglishStemmingFilter . |
Modifier and Type | Method and Description |
---|---|
TermOccurrence |
filterTerm(TermOccurrence occurrence)
Takes a single term occurrence and filters that occurrence into a new
occurrence or returns null, indicating that the filter rejects that
term.
|
static java.lang.String |
stem(java.lang.String word)
Stems the given String according to the Porter stemming algorithm for
English words.
|
filterTerms
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public PorterEnglishStemmingFilter()
PorterEnglishStemmingFilter
.public TermOccurrence filterTerm(TermOccurrence occurrence)
SingleTermFilter
occurrence
- The term occurrence to filter.public static java.lang.String stem(java.lang.String word)
word
- The word to stem.