Enum Class KASRAlignOp

java.lang.Object
java.lang.Enum<KASRAlignOp>
com.keenresearch.keenasr.KASRAlignOp
All Implemented Interfaces:
Serializable, Comparable<KASRAlignOp>, Constable

public enum KASRAlignOp extends Enum<KASRAlignOp>
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.
  • Enum Constant Details

    • MATCH

      public static final KASRAlignOp MATCH
      Recognized token equals reference token.
    • SUBSTITUTION

      public static final KASRAlignOp SUBSTITUTION
      Recognized token paired with a different reference token.
    • INSERTION

      public static final KASRAlignOp INSERTION
      Recognized token has no reference counterpart (extra word).
    • DELETION

      public static final KASRAlignOp DELETION
      Reference token has no recognized counterpart (skipped word).
  • Method Details

    • values

      public static KASRAlignOp[] 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

      public static KASRAlignOp valueOf(String name)
      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 name
      NullPointerException - if the argument is null