|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmorfologik.stemmers.Lametyzator
public class Lametyzator
A stemmer performing dictionary lookups for stemmed forms
and their tags. This stemmer requires an FSA-compiled dictionary and
is a simple delegate to DictionaryStemmer
.
DictionaryStemmer
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_NAME_LAMETYZATOR_DICTIONARY
Global system property that overrides the default dictionary resource in Lametyzator() . |
Constructor Summary | |
---|---|
Lametyzator()
This constructor is initialized with a built-in dictionary or fails with a runtime exception if the dictionary is not available. |
|
Lametyzator(Dictionary dictionary)
This constructor uses an explicit Dictionary . |
Method Summary | |
---|---|
java.lang.String[] |
stem(java.lang.String word)
Returns an array of potential base forms (stems) of the word, or null
if the word is not found in the dictionary. |
java.lang.String[] |
stemAndForm(java.lang.String word)
Returns an array of pairs of the form: String stem1, String form1, String stem2, String stem2, ... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_NAME_LAMETYZATOR_DICTIONARY
Lametyzator()
.
Constructor Detail |
---|
public Lametyzator() throws java.io.IOException
java.io.IOException
public Lametyzator(Dictionary dictionary) throws java.io.UnsupportedEncodingException
Dictionary
.
java.io.UnsupportedEncodingException
- If the dictionary is encoded with an encoding
unsupported on this virtual machine.Method Detail |
---|
public final java.lang.String[] stem(java.lang.String word)
IStemmer
null
if the word is not found in the dictionary.
stem
in interface IStemmer
IStemmer.stem(String)
public final java.lang.String[] stemAndForm(java.lang.String word)
IStemmer
Returns an array of pairs of the form:
String stem1, String form1, String stem2, String stem2, ...or
null
if the word is not found in the dictionary.
The form tag is a simple string and depends on what was saved in the automaton
(it may be nonsensical or even null
).
stemAndForm
in interface IStemmer
IStemmer.stemAndForm(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |