org.terrier.terms
Class TRv2WeakPorterStemmer

java.lang.Object
  extended by org.terrier.terms.StemmerTermPipeline
      extended by org.terrier.terms.TRv2PorterStemmer
          extended by 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
TRv2WeakPorterStemmer(TermPipeline next)
          Constructs an instance of the TRv2WeakPorterStemmer.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface Stemmer
Overrides:
stem in class TRv2PorterStemmer
Parameters:
s - String the term to be stemmed.
Returns:
String the stem of a given term.


Terrier 3.5. Copyright © 2004-2011 University of Glasgow