public class HalfPhoneUnitLabelComputer extends PhoneUnitLabelComputer
basenameIndex, db, pauseSymbol, percent, phonelabelDir, unitlabelDir, unitlabelExtbnl, 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, toUnitLabelsgetHelpText, getHelpTextForProp, getProp, initialise, setProppublic String getName()
VoiceImportComponentgetName in class PhoneUnitLabelComputerprotected void initialiseComp()
throws Exception
VoiceImportComponentinitialiseComp in class PhoneUnitLabelComputerException - Exceptionpublic SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponentgetDefaultProps in class PhoneUnitLabelComputerdb - dbprotected void setupHelp()
setupHelp in class PhoneUnitLabelComputerpublic boolean compute()
throws Exception
VoiceImportComponentcompute in class PhoneUnitLabelComputerException - Exceptionprotected List<Double> getMidTimes(List<String> labels, List<Double> endTimes)
PhoneUnitLabelComputergetMidTimes in class PhoneUnitLabelComputerlabels - of the phonesendTimes - of the phones@Deprecated protected String[] toUnitLabels(String[] phoneLabels)
PhoneUnitLabelComputertoUnitLabels in class PhoneUnitLabelComputerphoneLabels - 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.