Package morfologik.stemming.polish
Class PolishStemmer
java.lang.Object
morfologik.stemming.polish.PolishStemmer
A dictionary-based stemmer for the Polish language. Instances of this class
are not thread safe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Dictionary
The underlying dictionary, loaded once (lazily).private final DictionaryLookup
Dictionary lookup delegate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniterator()
Iterates over all dictionary forms stored in this stemmer.lookup
(CharSequence word) Returns a list ofWordData
entries for a given word.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
dictionary
The underlying dictionary, loaded once (lazily). -
lookup
Dictionary lookup delegate.
-
-
Constructor Details
-
PolishStemmer
public PolishStemmer()
-
-
Method Details
-
getDictionary
- Returns:
- Return the underlying
Dictionary
driving the stemmer.
-
lookup
Returns a list ofWordData
entries for a given word. The returned list is nevernull
. Depending on the stemmer's implementation theWordData
may carry the stem and additional information (tag) or just the stem.The returned list and any object it contains are not usable after a subsequent call to this method. Any data that should be stored in between must be copied by the caller.
-
iterator
Iterates over all dictionary forms stored in this stemmer.
-