public enum PunktTokenType extends java.lang.Enum<PunktTokenType>
The Punkt algorithm for abbreviation detection classifies a token into one of four types.
Enum Constant and Description |
---|
NONWORD
The token type definitions.
|
NUMBER |
WHITESPACE |
WORD |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
toStringValue
Displayable string version for a token type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Return displayable form of token type.
|
static PunktTokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PunktTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PunktTokenType NONWORD
public static final PunktTokenType NUMBER
public static final PunktTokenType WHITESPACE
public static final PunktTokenType WORD
protected final java.lang.String toStringValue
public static PunktTokenType[] values()
for (PunktTokenType c : PunktTokenType.values()) System.out.println(c);
public static PunktTokenType 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 toString()
toString
in class java.lang.Enum<PunktTokenType>