|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<PolishStemmer.DICTIONARY>
morfologik.stemming.PolishStemmer.DICTIONARY
public static enum PolishStemmer.DICTIONARY
The dictionary resource to load and use for the Polish stemmer.
| Enum Constant Summary | |
|---|---|
COMBINED
Both dictionaries, combined at runtime. |
|
MORFEUSZ
Dictionary of forms cross-compiled from Morfeusz (MORFEUSZ). |
|
MORFOLOGIK
Dictionary of forms from the Morfologik project. |
|
| Method Summary | |
|---|---|
static PolishStemmer.DICTIONARY |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PolishStemmer.DICTIONARY[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PolishStemmer.DICTIONARY MORFOLOGIK
public static final PolishStemmer.DICTIONARY MORFEUSZ
public static final PolishStemmer.DICTIONARY COMBINED
MORFOLOGIK
is checked first, then MORFEUSZ. If both dictionaries contain an entry
for a surface word, the lemmas are not combined. The first dictionary with the hit
wins.
This may cause problems if morphosyntactic annotations are to be used because they are not uniform across the two dictionaries. But for lemmatisation things should work just fine.
| Method Detail |
|---|
public static PolishStemmer.DICTIONARY[] values()
for (PolishStemmer.DICTIONARY c : PolishStemmer.DICTIONARY.values()) System.out.println(c);
public static PolishStemmer.DICTIONARY valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||