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(String dictionary)
          Initialize the stemmer with a dictionary
 String stem(String token)
          Take a single token in as a String, stem the token, and return the stemmed token as a String.
 

Method Detail

stem

String stem(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(String dictionary)
                throws FileNotFoundException,
                       ParseException
Initialize the stemmer with a dictionary

Throws:
FileNotFoundException
ParseException


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.