public class GapInsertionDetector
extends java.lang.Object
The gap insertion detection algorithm works as follows. It takes each hypothesized word individually and see whether it falls into a non-speech region in the reference transcript. If it does, that hypothesized word is counted as a gap insertion.
Constructor and Description |
---|
GapInsertionDetector(java.lang.String referenceFile,
java.lang.String hypothesisFile,
boolean showGapInsertions)
Create a gap insertion detector to detect gap insertions using the given reference file and hypothesis file.
|
Modifier and Type | Method and Description |
---|---|
int |
detect()
Detect the gap insertion errors.
|
static void |
main(java.lang.String[] argv) |
public GapInsertionDetector(java.lang.String referenceFile, java.lang.String hypothesisFile, boolean showGapInsertions) throws java.io.IOException
referenceFile
- the file of referenceshypothesisFile
- the file of hypothesesshowGapInsertions
- if true show gap insertions.java.io.IOException
- if IO went wrong