public class HTKLabeler extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected AllophoneSet |
allophoneSet |
String |
AWK |
protected Map<String,TreeMap<String,String>> |
dictionary |
String |
HTDIR |
String |
HTKDIR |
protected String |
labExt |
protected MaryClient |
mary |
protected String |
maryInputType |
protected String |
maryOutputType |
protected int |
MAX_ITERATIONS |
protected int |
MAX_MIX_ITERATION |
protected int |
MAX_SP_ITERATION |
protected int |
MAX_VP_ITERATION |
String |
MAXITER |
String |
MAXSPITER |
protected int |
noIterCompleted |
String |
OUTLABDIR |
protected int |
percent |
String |
PROMPTALLOPHONESDIR |
protected File |
promtallophonesDir |
protected String |
xmlExt |
bnl, logger, props, props2Help
Constructor and Description |
---|
HTKLabeler() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
static String |
getMaryXMLHeaderWithInitialBoundary(String locale)
Converting text to RAWMARYXML with Locale
|
String |
getName()
Get the name of this component
|
int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.
|
void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses
|
String |
replaceBackTrickyPhones(String lab)
Translation table for labels which are incompatible with HTK or shell filenames See common_routines.pl in HTS training.
|
String |
replaceTrickyPhones(String lab)
Translation table for labels which are incompatible with HTK or shell filenames See common_routines.pl in HTS training.
|
protected void |
setupHelp() |
getHelpText, getHelpTextForProp, getProp, initialise, setProp
protected String xmlExt
protected String labExt
protected MaryClient mary
protected String maryInputType
protected String maryOutputType
protected int percent
protected File promtallophonesDir
protected AllophoneSet allophoneSet
protected int MAX_ITERATIONS
protected int MAX_SP_ITERATION
protected int MAX_VP_ITERATION
protected int MAX_MIX_ITERATION
protected int noIterCompleted
public final String HTDIR
public final String HTKDIR
public final String OUTLABDIR
public final String MAXITER
public String PROMPTALLOPHONESDIR
public String MAXSPITER
public final String AWK
public final String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
public SortedMap getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
db
- dbprotected void setupHelp()
setupHelp
in class VoiceImportComponent
public void initialiseComp()
VoiceImportComponent
initialiseComp
in class VoiceImportComponent
public boolean compute() throws Exception
compute
in class VoiceImportComponent
Exception
- Exceptionpublic static String getMaryXMLHeaderWithInitialBoundary(String locale)
locale
- localepublic int getProgress()
getProgress
in class VoiceImportComponent
public String replaceTrickyPhones(String lab)
lab
- labpublic String replaceBackTrickyPhones(String lab)
lab
- labCopyright © 2000–2016 DFKI GmbH. All rights reserved.