public class LiveModeRecognizer extends java.lang.Object implements Configurable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_ALIGN_INTERVAL
The property specifying the number of files to decode before alignment is performed.
|
static java.lang.String |
PROP_HYPOTHESIS_TRANSCRIPT
The property specifying the transcript file.
|
static java.lang.String |
PROP_INPUT_SOURCE
The property that specifies the source of the transcript
|
static java.lang.String |
PROP_RECOGNIZER
The property that specifies the recognizer to use
|
static java.lang.String |
PROP_SHOW_GAP_INSERTIONS
The property specifying whether to print out the gap insertion errors.
|
| Constructor and Description |
|---|
LiveModeRecognizer() |
LiveModeRecognizer(Recognizer recognizer,
ConcatFileDataSource dataSource,
int skip,
boolean showGapInsertions,
java.lang.String hypothesisFile,
int alignInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Do clean up
|
void |
decode()
Decodes the batch of audio files
|
static void |
main(java.lang.String[] argv)
Main method of this BatchDecoder.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
@S4Component(type=Recognizer.class) public static final java.lang.String PROP_RECOGNIZER
@S4Component(type=ConcatFileDataSource.class) public static final java.lang.String PROP_INPUT_SOURCE
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_SHOW_GAP_INSERTIONS
@S4String(defaultValue="hypothesis.txt") public static final java.lang.String PROP_HYPOTHESIS_TRANSCRIPT
@S4Integer(defaultValue=-1) public static final java.lang.String PROP_ALIGN_INTERVAL
public LiveModeRecognizer(Recognizer recognizer, ConcatFileDataSource dataSource, int skip, boolean showGapInsertions, java.lang.String hypothesisFile, int alignInterval)
public LiveModeRecognizer()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface Configurableps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public void decode()
throws java.io.IOException
java.io.IOException - if IO went wrongpublic void close()
throws java.io.IOException
java.io.IOException - if something went wrongpublic static void main(java.lang.String[] argv)
argv - argv[0] : config file argv[1] : a file listing all the audio files to decode