morfologik.stemming
Class PolishStemmer

java.lang.Object
  extended by morfologik.stemming.PolishStemmer
All Implemented Interfaces:
java.lang.Iterable<WordData>, IStemmer

public final class PolishStemmer
extends java.lang.Object
implements IStemmer, java.lang.Iterable<WordData>

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.

See Also:
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

PolishStemmer

public PolishStemmer()
This constructor is initialized with PolishStemmer.DICTIONARY.MORFOLOGIK to preserve backward compatibility. It will fail with a runtime exception if the dictionary is not available.


PolishStemmer

public 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 Detail

lookup

public java.util.List<WordData> lookup(java.lang.CharSequence word)

Specified by:
lookup in interface IStemmer

iterator

public java.util.Iterator<WordData> iterator()
Iterates over all dictionary forms stored in this stemmer.

Specified by:
iterator in interface java.lang.Iterable<WordData>


Copyright © 2011. All Rights Reserved.