com.aliasi.tokenizer
Class PorterStemmerFilterTokenizer

java.lang.Object
  extended by com.aliasi.tokenizer.Tokenizer
      extended by com.aliasi.tokenizer.FilterTokenizer
          extended by com.aliasi.tokenizer.TokenFilterTokenizer
              extended by com.aliasi.tokenizer.PorterStemmerFilterTokenizer
All Implemented Interfaces:
Iterable<String>

Deprecated. Use PorterStemmerTokenizerFactory instead.

@Deprecated
public class PorterStemmerFilterTokenizer
extends TokenFilterTokenizer

A PorterStemmerFilterTokenizer returns the stemmed version of each token, as produced by PorterStemmer.stem(String).

Since:
LingPipe1.0
Version:
3.8
Author:
Bob Carpenter

Field Summary
 
Fields inherited from class com.aliasi.tokenizer.FilterTokenizer
mTokenizer
 
Constructor Summary
PorterStemmerFilterTokenizer(Tokenizer tokenizer)
          Deprecated. 
 
Method Summary
 String filter(String token)
          Deprecated. Returns the stemmed form of the specified token.
 
Methods inherited from class com.aliasi.tokenizer.TokenFilterTokenizer
nextToken
 
Methods inherited from class com.aliasi.tokenizer.FilterTokenizer
baseTokenizer, lastTokenEndPosition, lastTokenStartPosition, nextWhitespace, setTokenizer, toString
 
Methods inherited from class com.aliasi.tokenizer.Tokenizer
iterator, tokenize, tokenize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PorterStemmerFilterTokenizer

@Deprecated
public PorterStemmerFilterTokenizer(Tokenizer tokenizer)
Deprecated. 

Construct a Porter stemmer filter tokenizer containing the specified tokenizer.

Parameters:
tokenizer - Contained tokenizer.
Method Detail

filter

public String filter(String token)
Deprecated. 
Returns the stemmed form of the specified token.

Specified by:
filter in class TokenFilterTokenizer
Parameters:
token - Token to stem.
Returns:
Stemmed version of specified token.