|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.stemmers.CascadedStemmer
public class CascadedStemmer
This stemmer uses a sequence of IStemmer instances for lookup. The first
one to return a result wins.
| Constructor Summary | |
|---|---|
CascadedStemmer(IStemmer[] stemmers)
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
stem(java.lang.String word)
Returns an array of potential base forms (stems) of the word, or null
if the word is not found in the dictionary. |
java.lang.String[] |
stemAndForm(java.lang.String word)
Returns an array of pairs of the form: String stem1, String form1, String stem2, String stem2, ... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CascadedStemmer(IStemmer[] stemmers)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String[] stem(java.lang.String word)
IStemmernull
if the word is not found in the dictionary.
stem in interface IStemmerIStemmer.stem(String)public java.lang.String[] stemAndForm(java.lang.String word)
IStemmerReturns an array of pairs of the form:
String stem1, String form1, String stem2, String stem2, ...or
null if the word is not found in the dictionary.
The form tag is a simple string and depends on what was saved in the automaton
(it may be nonsensical or even null).
stemAndForm in interface IStemmerIStemmer.stemAndForm(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||