Package opennlp.tools.tokenize
Enum Class Detokenizer.DetokenizationOperation
java.lang.Object
java.lang.Enum<Detokenizer.DetokenizationOperation>
opennlp.tools.tokenize.Detokenizer.DetokenizationOperation
- All Implemented Interfaces:
- Serializable,- Comparable<Detokenizer.DetokenizationOperation>,- Constable
- Enclosing interface:
- Detokenizer
public static enum Detokenizer.DetokenizationOperation
extends Enum<Detokenizer.DetokenizationOperation>
This enum contains an operation for every token to merge the
 tokens together to their detokenized form.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe current token should be attached to the string on the left side, as well as to the start token on the right side.The current token should be attached to the string on the left side.The current token should be attached to the start token on the right side.Do not perform a merge operation for this token, but is possible that another token can be attached to the left or right side of this one.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static Detokenizer.DetokenizationOperation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.EnumcompareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- 
Enum Constant Details- 
MERGE_TO_RIGHTThe current token should be attached to the start token on the right side.
- 
MERGE_TO_LEFTThe current token should be attached to the string on the left side.
- 
MERGE_BOTHThe current token should be attached to the string on the left side, as well as to the start token on the right side.
- 
NO_OPERATIONDo not perform a merge operation for this token, but is possible that another token can be attached to the left or right side of this one.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-