public class PhoneUnitFeatureComputer extends VoiceImportComponent
| Modifier and Type | Field and Description |
|---|---|
String |
ALLOPHONES |
protected DatabaseLayout |
db |
protected String |
featsExt |
String |
FEATUREDIR |
protected String |
featureList |
String |
FEATURELIST |
protected String |
locale |
protected MaryHttpClient |
mary |
protected String |
maryInputType |
protected String |
maryOutputType |
String |
MARYSERVERHOST |
String |
MARYSERVERPORT |
protected int |
percent |
static String |
PHONEFEATURE |
protected File |
textDir |
protected File |
unitfeatureDir |
protected String |
xmlExt |
bnl, logger, props, props2Help| Constructor and Description |
|---|
PhoneUnitFeatureComputer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compute()
Do the computations required by this component.
|
void |
computeFeaturesFor(String basename) |
SortedMap<String,String> |
getDefaultProps(DatabaseLayout theDb)
Get the map of properties2values containing the default values
|
MaryHttpClient |
getMaryClient() |
static String |
getMaryXMLHeaderWithInitialBoundary(String 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.
|
protected void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses
|
protected void |
loadFeatureList() |
protected void |
setupHelp() |
getHelpText, getHelpTextForProp, getProp, initialise, setProppublic static final String PHONEFEATURE
protected File textDir
protected File unitfeatureDir
protected String featureList
protected String featsExt
protected String xmlExt
protected String locale
protected MaryHttpClient mary
protected String maryInputType
protected String maryOutputType
protected DatabaseLayout db
protected int percent
public String FEATUREDIR
public String ALLOPHONES
public String FEATURELIST
public String MARYSERVERHOST
public String MARYSERVERPORT
public String getName()
VoiceImportComponentgetName in class VoiceImportComponentpublic static String getMaryXMLHeaderWithInitialBoundary(String locale)
protected void initialiseComp()
throws Exception
VoiceImportComponentinitialiseComp in class VoiceImportComponentException - Exceptionpublic SortedMap<String,String> getDefaultProps(DatabaseLayout theDb)
VoiceImportComponentgetDefaultProps in class VoiceImportComponenttheDb - dbprotected void setupHelp()
setupHelp in class VoiceImportComponentpublic MaryHttpClient getMaryClient() throws IOException
IOExceptionprotected void loadFeatureList()
throws IOException
IOExceptionpublic boolean compute()
throws IOException
VoiceImportComponentcompute in class VoiceImportComponentIOExceptionpublic void computeFeaturesFor(String basename) throws IOException
IOExceptionpublic int getProgress()
getProgress in class VoiceImportComponentCopyright © 2000–2016 DFKI GmbH. All rights reserved.