public class HalfPhoneUnitLabelComputer extends PhoneUnitLabelComputer
basenameIndex, db, pauseSymbol, percent, phonelabelDir, unitlabelDir, unitlabelExt
bnl, logger, props, props2Help
Constructor and Description |
---|
HalfPhoneUnitLabelComputer() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
protected List<Double> |
getMidTimes(List<String> labels,
List<Double> endTimes)
Get mid points for an utterance, given a list its phone labels and a list of corresponding end points.
|
String |
getName()
Get the name of this component
|
protected void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses
|
protected void |
setupHelp() |
protected String[] |
toUnitLabels(String[] phoneLabels)
Deprecated.
|
computePhoneLabel, getProgress, toUnitLabels
getHelpText, getHelpTextForProp, getProp, initialise, setProp
public String getName()
VoiceImportComponent
getName
in class PhoneUnitLabelComputer
protected void initialiseComp() throws Exception
VoiceImportComponent
initialiseComp
in class PhoneUnitLabelComputer
Exception
- Exceptionpublic SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps
in class PhoneUnitLabelComputer
db
- dbprotected void setupHelp()
setupHelp
in class PhoneUnitLabelComputer
public boolean compute() throws Exception
VoiceImportComponent
compute
in class PhoneUnitLabelComputer
Exception
- Exceptionprotected List<Double> getMidTimes(List<String> labels, List<Double> endTimes)
PhoneUnitLabelComputer
getMidTimes
in class PhoneUnitLabelComputer
labels
- of the phonesendTimes
- of the phones@Deprecated protected String[] toUnitLabels(String[] phoneLabels)
PhoneUnitLabelComputer
toUnitLabels
in class PhoneUnitLabelComputer
phoneLabels
- the phone labels, one phone per line, with each line containing three fields: 1. the end time of the current
phone, in seconds, since the beginning of the file; 2. a number to be ignored; 3. the phone symbol.Copyright © 2000–2016 DFKI GmbH. All rights reserved.