Package com.gengoai.hermes.en
Enum ENLexicons
- java.lang.Object
-
- java.lang.Enum<ENLexicons>
-
- com.gengoai.hermes.en.ENLexicons
-
- All Implemented Interfaces:
Serializable
,Comparable<ENLexicons>
public enum ENLexicons extends Enum<ENLexicons>
Lexicons used by the English Tokenizer.
- Author:
- David B. Bracewell
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_ABBREVIATION
EMOTICONS
GENERIC_ABBREVIATIONS
ORGANIZATION
PERSON_TITLE
PLACE
TIME
TLDS
UNITS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TrieWordList
get()
static ENLexicons
valueOf(String name)
Returns the enum constant of this type with the specified name.static ENLexicons[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMOTICONS
public static final ENLexicons EMOTICONS
-
GENERIC_ABBREVIATIONS
public static final ENLexicons GENERIC_ABBREVIATIONS
-
ORGANIZATION
public static final ENLexicons ORGANIZATION
-
PERSON_TITLE
public static final ENLexicons PERSON_TITLE
-
PLACE
public static final ENLexicons PLACE
-
TIME
public static final ENLexicons TIME
-
TLDS
public static final ENLexicons TLDS
-
UNITS
public static final ENLexicons UNITS
-
ALL_ABBREVIATION
public static final ENLexicons ALL_ABBREVIATION
-
-
Method Detail
-
values
public static ENLexicons[] 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 (ENLexicons c : ENLexicons.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ENLexicons valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public TrieWordList get()
-
-