Package org.terrier.terms
Class TRv2WeakPorterStemmer
- java.lang.Object
-
- org.terrier.terms.StemmerTermPipeline
-
- org.terrier.terms.TRv2PorterStemmer
-
- org.terrier.terms.TRv2WeakPorterStemmer
-
- All Implemented Interfaces:
Stemmer
,TermPipeline
public class TRv2WeakPorterStemmer extends TRv2PorterStemmer
An implementation of the Porter stemming algorithm that uses only the first step of the algorithm.- Author:
- Craig Macdonald & Gianni Amati & Vassilis Plachouras
-
-
Field Summary
-
Fields inherited from class org.terrier.terms.TRv2PorterStemmer
b, j, k, k0
-
Fields inherited from class org.terrier.terms.StemmerTermPipeline
next
-
-
Constructor Summary
Constructors Constructor Description TRv2WeakPorterStemmer(TermPipeline next)
Constructs an instance of the TRv2WeakPorterStemmer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
stem(java.lang.String s)
Returns the stem of a given term, after applying the first step of Porter's stemming algorithm.-
Methods inherited from class org.terrier.terms.TRv2PorterStemmer
cons, consonantinstem, cvc, defineBuffer, doublec, ends, m, main, setto, step1ab, step1c, step2, step3, step4, step5, vowelinstem
-
Methods inherited from class org.terrier.terms.StemmerTermPipeline
processTerm, reset
-
-
-
-
Constructor Detail
-
TRv2WeakPorterStemmer
public TRv2WeakPorterStemmer(TermPipeline next)
Constructs an instance of the TRv2WeakPorterStemmer.- Parameters:
next
-
-
-
Method Detail
-
stem
public java.lang.String stem(java.lang.String s)
Returns the stem of a given term, after applying the first step of Porter's stemming algorithm.- Specified by:
stem
in interfaceStemmer
- Overrides:
stem
in classTRv2PorterStemmer
- Parameters:
s
- String the term to be stemmed.- Returns:
- String the stem of a given term.
-
-