textmaven.stemmer
Interface IStemmer

All Known Implementing Classes:
SnowballProgram, Stemmer_en

public interface IStemmer

Normalizes / reduces words to its stem. To be able to work an instance uses an IDictionary instance.

Author:
Thomas Krebs

Method Summary
 boolean getGreedy()
          Returns the greedy mode flag.
 java.lang.String getLanguage()
           
 java.util.Vector getStem(IDictionary source, java.lang.String word)
          Tries to normalize word to its stem form.
 void setGreedy(boolean flag)
          Sets the greedy mode flag (@see IStemmer#getGreedy()).
 void setLanguage(java.lang.String id)
           
 

Method Detail

getStem

public java.util.Vector getStem(IDictionary source,
                                java.lang.String word)
Tries to normalize word to its stem form.

Parameters:
source - source to use for normalizing
word - to be normalized
Returns:
Vector holding translations for normalized word.

getGreedy

public boolean getGreedy()
Returns the greedy mode flag. In greedy mode normalization will continue searching for stems even if a word matched already.

Returns:
boolean

setGreedy

public void setGreedy(boolean flag)
Sets the greedy mode flag (@see IStemmer#getGreedy()).

Parameters:
flag - if true greedy mode is enabled.

setLanguage

public void setLanguage(java.lang.String id)

getLanguage

public java.lang.String getLanguage()


Copyright © 2002-2005 Sourceforge. All Rights Reserved.