|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmorfologik.stemming.PolishStemmer
public final class PolishStemmer
A dictionary-based stemmer for the Polish language. This stemmer requires an FSA-compiled dictionary to be present in classpath resources. Objects of this class are not thread safe.
DictionaryLookup| Nested Class Summary | |
|---|---|
static class |
PolishStemmer.DICTIONARY
The dictionary resource to load and use for the Polish stemmer. |
| Constructor Summary | |
|---|---|
PolishStemmer()
This constructor is initialized with PolishStemmer.DICTIONARY.MORFOLOGIK to preserve
backward compatibility. |
|
PolishStemmer(PolishStemmer.DICTIONARY dictionary)
This constructor is initialized with a built-in dictionary or fails with a runtime exception if the dictionary is not available. |
|
| Method Summary | |
|---|---|
java.util.Iterator<WordData> |
iterator()
Iterates over all dictionary forms stored in this stemmer. |
java.util.List<WordData> |
lookup(java.lang.CharSequence word)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolishStemmer()
PolishStemmer.DICTIONARY.MORFOLOGIK to preserve
backward compatibility. It will fail with a runtime exception if the dictionary
is not available.
public PolishStemmer(PolishStemmer.DICTIONARY dictionary)
| Method Detail |
|---|
public java.util.List<WordData> lookup(java.lang.CharSequence word)
lookup in interface IStemmerpublic java.util.Iterator<WordData> iterator()
iterator in interface java.lang.Iterable<WordData>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||