|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.analysis.stempel.StempelStemmer
public class StempelStemmer
Stemmer class is a convenient facade for other stemmer-related classes. The core stemming algorithm and its implementation is taken verbatim from the Egothor project ( www.egothor.org ).
Even though the stemmer tables supplied in the distribution package are built for Polish language, there is nothing language-specific here.
| Constructor Summary | |
|---|---|
StempelStemmer(InputStream stemmerTable)
Create a Stemmer using selected stemmer table |
|
StempelStemmer(Trie stemmer)
Create a Stemmer using pre-loaded stemmer table |
|
| Method Summary | |
|---|---|
static Trie |
load(InputStream stemmerTable)
Load a stemmer table from an inputstream. |
StringBuilder |
stem(CharSequence word)
Stem a word. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StempelStemmer(InputStream stemmerTable)
throws IOException
stemmerTable - stemmer table.
IOExceptionpublic StempelStemmer(Trie stemmer)
stemmer - pre-loaded stemmer table| Method Detail |
|---|
public static Trie load(InputStream stemmerTable)
throws IOException
IOExceptionpublic StringBuilder stem(CharSequence word)
word - input word to be stemmed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||