Class PolishStemmer
java.lang.Object
morfologik.stemming.polish.PolishStemmer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static DictionaryThe underlying dictionary, loaded once (lazily).private final DictionaryLookupDictionary 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 ofWordDataentries for a given word.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
Dictionarydriving the stemmer.
-
lookup
Returns a list ofWordDataentries for a given word. The returned list is nevernull. Depending on the stemmer's implementation theWordDatamay 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
-