public static enum TokenizerAnnotator.TokenizerType extends java.lang.Enum<TokenizerAnnotator.TokenizerType>
Enum Constant and Description |
---|
Arabic |
Chinese |
English |
French |
German |
Spanish |
Unspecified |
Whitespace |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultOptions() |
static TokenizerAnnotator.TokenizerType |
getTokenizerType(java.util.Properties props)
Get TokenizerType based on what's in the properties.
|
static TokenizerAnnotator.TokenizerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TokenizerAnnotator.TokenizerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenizerAnnotator.TokenizerType Unspecified
public static final TokenizerAnnotator.TokenizerType Arabic
public static final TokenizerAnnotator.TokenizerType Chinese
public static final TokenizerAnnotator.TokenizerType Spanish
public static final TokenizerAnnotator.TokenizerType English
public static final TokenizerAnnotator.TokenizerType German
public static final TokenizerAnnotator.TokenizerType French
public static final TokenizerAnnotator.TokenizerType Whitespace
public static TokenizerAnnotator.TokenizerType[] values()
for (TokenizerAnnotator.TokenizerType c : TokenizerAnnotator.TokenizerType.values()) System.out.println(c);
public static TokenizerAnnotator.TokenizerType 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDefaultOptions()
public static TokenizerAnnotator.TokenizerType getTokenizerType(java.util.Properties props)
props
- Properties to find tokenizer options in