morfologik.stemming
Enum PolishStemmer.DICTIONARY

java.lang.Object
  extended by java.lang.Enum<PolishStemmer.DICTIONARY>
      extended by morfologik.stemming.PolishStemmer.DICTIONARY
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PolishStemmer.DICTIONARY>
Enclosing class:
PolishStemmer

public static enum PolishStemmer.DICTIONARY
extends java.lang.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

MORFOLOGIK

public static final PolishStemmer.DICTIONARY MORFOLOGIK
Dictionary of forms from the Morfologik project.

See Also:
"http://morfologik.blogspot.com/"

MORFEUSZ

public static final PolishStemmer.DICTIONARY MORFEUSZ
Dictionary of forms cross-compiled from Morfeusz (MORFEUSZ).

See Also:
"http://sgjp.pl/morfeusz/"

COMBINED

public static final PolishStemmer.DICTIONARY COMBINED
Both dictionaries, combined at runtime. 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

values

public static PolishStemmer.DICTIONARY[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PolishStemmer.DICTIONARY c : PolishStemmer.DICTIONARY.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PolishStemmer.DICTIONARY valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.