public class FeatureSelection extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected DatabaseLayout |
db |
protected File |
featureFile |
String |
FEATUREFILE |
protected String |
features |
protected String |
locale |
protected MaryHttpClient |
mary |
String |
MARYSERVERHOST |
String |
MARYSERVERPORT |
protected boolean |
success |
bnl, logger, props, props2Help
Constructor and Description |
---|
FeatureSelection() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout theDb)
Get the map of properties2values containing the default values
|
MaryHttpClient |
getMaryClient() |
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 |
saveFeatures(String newFeatures) |
protected void |
setSuccess(boolean val) |
protected void |
setupHelp() |
getHelpText, getHelpTextForProp, getProp, initialise, setProp
protected File featureFile
protected String features
protected String locale
protected MaryHttpClient mary
protected boolean success
protected DatabaseLayout db
public String FEATUREFILE
public String MARYSERVERHOST
public String MARYSERVERPORT
public String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
protected void initialiseComp()
VoiceImportComponent
initialiseComp
in class VoiceImportComponent
public SortedMap<String,String> getDefaultProps(DatabaseLayout theDb)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
theDb
- dbprotected void setupHelp()
setupHelp
in class VoiceImportComponent
public MaryHttpClient getMaryClient() throws IOException
IOException
protected void saveFeatures(String newFeatures)
protected void setSuccess(boolean val)
public boolean compute() throws IOException
VoiceImportComponent
compute
in class VoiceImportComponent
IOException
public int getProgress()
getProgress
in class VoiceImportComponent
Copyright © 2000–2016 DFKI GmbH. All rights reserved.