org.apache.uima.conceptMapper.support.stemmer
Class JunkStemmer
java.lang.Object
org.apache.uima.conceptMapper.support.stemmer.JunkStemmer
- All Implemented Interfaces:
- Stemmer
public class JunkStemmer
- extends Object
- implements Stemmer
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JunkStemmer
public JunkStemmer()
stem
public String stem(String token)
- Description copied from interface:
Stemmer
- Take a single token in as a
String
, stem the token, and return the stemmed
token as a String
.
- Specified by:
stem
in interface Stemmer
- Parameters:
token
- the input token to stem
- Returns:
- the stemmed token
initialize
public void initialize(String dictionary)
- Description copied from interface:
Stemmer
- Initialize the stemmer with a dictionary
- Specified by:
initialize
in interface Stemmer
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.