KeenASR Unity Plugin v2.2
Unity plugin for KeenASR offline speech recognition SDK (iOS & Android)
Loading...
Searching...
No Matches
KeenResearch.AlignmentResult Class Reference

Result of aligning recognized text against reference text. Contains edit-distance metrics and oral-reading views. More...

Properties

int matches [get]
 Number of exact matches between recognized and reference.
 
int substitutions [get]
 Number of substitutions (wrong words).
 
int insertions [get]
 Number of insertions (extra words in recognized).
 
int deletions [get]
 Number of deletions (skipped reference words).
 
int refLength [get]
 Number of tokens in reference text.
 
int recLength [get]
 Number of tokens in recognized text.
 
float wordErrorRate [get]
 Word Error Rate: (substitutions + insertions + deletions) / refLength.
 
int furthestMatchedIndex [get]
 Highest reference index that was matched (-1 if none).
 
int[] matchedRefIndices [get]
 Sorted array of reference indices that were matched exactly.
 
int[] skippedRefIndices [get]
 Sorted array of reference indices that were skipped/deleted.
 
int[] repetitionRefIndices [get]
 Reference indices of repeated/stuttered words (empty if detectRepetitions=false).
 
AlignmentItem[] trace [get]
 Full alignment trace showing each edit operation.
 

Detailed Description

Result of aligning recognized text against reference text. Contains edit-distance metrics and oral-reading views.

Property Documentation

◆ deletions

int KeenResearch.AlignmentResult.deletions
get

Number of deletions (skipped reference words).

◆ furthestMatchedIndex

int KeenResearch.AlignmentResult.furthestMatchedIndex
get

Highest reference index that was matched (-1 if none).

◆ insertions

int KeenResearch.AlignmentResult.insertions
get

Number of insertions (extra words in recognized).

◆ matchedRefIndices

int [] KeenResearch.AlignmentResult.matchedRefIndices
get

Sorted array of reference indices that were matched exactly.

◆ matches

int KeenResearch.AlignmentResult.matches
get

Number of exact matches between recognized and reference.

◆ recLength

int KeenResearch.AlignmentResult.recLength
get

Number of tokens in recognized text.

◆ refLength

int KeenResearch.AlignmentResult.refLength
get

Number of tokens in reference text.

◆ repetitionRefIndices

int [] KeenResearch.AlignmentResult.repetitionRefIndices
get

Reference indices of repeated/stuttered words (empty if detectRepetitions=false).

◆ skippedRefIndices

int [] KeenResearch.AlignmentResult.skippedRefIndices
get

Sorted array of reference indices that were skipped/deleted.

◆ substitutions

int KeenResearch.AlignmentResult.substitutions
get

Number of substitutions (wrong words).

◆ trace

AlignmentItem [] KeenResearch.AlignmentResult.trace
get

Full alignment trace showing each edit operation.

◆ wordErrorRate

float KeenResearch.AlignmentResult.wordErrorRate
get

Word Error Rate: (substitutions + insertions + deletions) / refLength.