KeenASR React Native Plugin (v2.2)
    Preparing search index...

    Interface AlignmentItem

    A single step in an alignment trace.

    For an AlignOp.Insertion, refIndex is -1 and refToken is empty. For an AlignOp.Deletion, recIndex is -1 and recToken is empty. For AlignOp.Match and AlignOp.Substitution, both indices and tokens are populated.

    Indices refer to positions in the post-normalization token vectors; see TextAligner.referenceTokens.

    interface AlignmentItem {
        op: AlignOp;
        refIndex: number;
        recIndex: number;
        refToken: string;
        recToken: string;
    }
    Index

    Properties

    The edit operation this item represents.

    refIndex: number

    Index of the reference token, or -1 for an insertion.

    recIndex: number

    Index of the recognized token, or -1 for a deletion.

    refToken: string

    Reference token at refIndex, or empty for an insertion.

    recToken: string

    Recognized token at recIndex, or empty for a deletion.