Package org.terrier.terms
Class WeakPorterStemmer
- java.lang.Object
-
- org.terrier.terms.StemmerTermPipeline
-
- org.terrier.terms.PorterStemmer
-
- org.terrier.terms.WeakPorterStemmer
-
- All Implemented Interfaces:
Stemmer
,TermPipeline
public class WeakPorterStemmer extends PorterStemmer
Weak Porter Stemmer, using Porter's Java implementation as the base.- Since:
- 3.0
- Author:
- Craig Macdonald
-
-
Field Summary
-
Fields inherited from class org.terrier.terms.StemmerTermPipeline
next
-
-
Constructor Summary
Constructors Constructor Description WeakPorterStemmer()
constructorWeakPorterStemmer(TermPipeline next)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stem()
Stem the word placed into the Stemmer buffer through calls to add().-
Methods inherited from class org.terrier.terms.PorterStemmer
add, add, cons, cvc, doublec, ends, getResultBuffer, getResultLength, m, main, r, setto, stem, step1, step2, step3, step4, step5, step6, toString, vowelinstem
-
Methods inherited from class org.terrier.terms.StemmerTermPipeline
processTerm, reset
-
-
-
-
Constructor Detail
-
WeakPorterStemmer
public WeakPorterStemmer()
constructor
-
WeakPorterStemmer
public WeakPorterStemmer(TermPipeline next)
constructor- Parameters:
next
-
-
-
Method Detail
-
stem
public void stem()
Description copied from class:PorterStemmer
Stem the word placed into the Stemmer buffer through calls to add(). Returns true if the stemming process resulted in a word different from the input. You can retrieve the result with getResultLength()/getResultBuffer() or toString().- Overrides:
stem
in classPorterStemmer
-
-