org.apache.uima.conceptMapper.support.stemmer
Interface Stemmer

All Known Implementing Classes:
JunkStemmer

public interface Stemmer

Interface for stemmer. Two methods are defined: stem(), which takes a single token in as a String and returns the stemmed token as a String. initialize (), which takes a dictionary path as a String loads it.


Method Summary
 void initialize(java.lang.String dictionary)
          Initialize the stemmer with a dictionary
 java.lang.String stem(java.lang.String token)
          Take a single token in as a String, stem the token, and return the stemmed token as a String.
 

Method Detail

stem

java.lang.String stem(java.lang.String token)
Take a single token in as a String, stem the token, and return the stemmed token as a String.

Parameters:
token - the input token to stem
Returns:
the stemmed token

initialize

void initialize(java.lang.String dictionary)
                throws java.io.FileNotFoundException,
                       java.text.ParseException
Initialize the stemmer with a dictionary

Throws:
java.io.FileNotFoundException
java.text.ParseException


Copyright © 2011. All Rights Reserved.