Package com.keenresearch.keenasr
Enum Class KASRAlignOp
- All Implemented Interfaces:
Serializable,Comparable<KASRAlignOp>,Constable
Edit operation produced by alignment between recognized and reference token
sequences. One of these values is associated with every step in the
alignment trace produced by
KASRTextAligner.
Ordinal values match the native keenasr::AlignOp enum exactly and
are crossed at the JNI boundary; do not reorder.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReference token has no recognized counterpart (skipped word).Recognized token has no reference counterpart (extra word).Recognized token equals reference token.Recognized token paired with a different reference token. -
Method Summary
Modifier and TypeMethodDescriptionstatic KASRAlignOpReturns the enum constant of this class with the specified name.static KASRAlignOp[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MATCH
Recognized token equals reference token. -
SUBSTITUTION
Recognized token paired with a different reference token. -
INSERTION
Recognized token has no reference counterpart (extra word). -
DELETION
Reference token has no recognized counterpart (skipped word).
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException- if the argument is null
-