com.aliasi.tokenizer
Class PorterStemmer

java.lang.Object
  extended by com.aliasi.tokenizer.PorterStemmer

Deprecated. Use PorterStemmerTokenizerFactory.stem(String) instead.

@Deprecated
public class PorterStemmer
extends Object

The PorterStemmer class is Martin Porter's Java implementation of his English stemmer. See the class PorterStemmerFilterTokenizer for a wrapper that stems the tokens in a tokenizer.

Porter's stemmer computes an approximation of converting words to their morphological base form. This class provides a single top-level static method, stem(String), which returns a stemmed form of an input string.

The original paper describing Porter's stemmer is:

Porter, Martin. 1980. An algorithm for suffix stripping. Program. 14:3. 130--137.

Porter Stemmer Home Page

Since:
LingPipe1.0
Version:
4 (Porter's Version Numbering)
Author:
Martin Porter

Method Summary
static String stem(String in)
          Deprecated. Use PorterStemmerTokenizerFactory.stem(String) instead.
 String toString()
          Deprecated. Use PorterStemmerTokenizerFactory.stem(String) instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

@Deprecated
public String toString()
Deprecated. Use PorterStemmerTokenizerFactory.stem(String) instead.

After a word has been stemmed, it can be retrieved by toString(), or a reference to the internal buffer can be retrieved by getResultBuffer and getResultLength (which is generally more efficient.)

Overrides:
toString in class Object

stem

@Deprecated
public static String stem(String in)
Deprecated. Use PorterStemmerTokenizerFactory.stem(String) instead.