public static class MaryLanguageFeatureProcessors.Phone extends Object implements ByteValuedFeatureProcessor
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected MaryGenericFeatureProcessors.TargetElementNavigator |
navigator |
protected String |
pauseSymbol |
protected ByteStringTranslator |
values |
| Constructor and Description |
|---|
MaryLanguageFeatureProcessors.Phone(String name,
String[] possibleValues,
String pauseSymbol,
MaryGenericFeatureProcessors.TargetElementNavigator segmentNavigator)
Initialise a phone feature processor.
|
protected String name
protected ByteStringTranslator values
protected String pauseSymbol
protected MaryGenericFeatureProcessors.TargetElementNavigator navigator
public MaryLanguageFeatureProcessors.Phone(String name, String[] possibleValues, String pauseSymbol, MaryGenericFeatureProcessors.TargetElementNavigator segmentNavigator)
name - the name of the featurepossibleValues - the list of possible phone values for the phonetic alphabet used, plus the value "0"=n/a.pauseSymbol - pauseSymbolsegmentNavigator - a navigator returning a segment with respect to the target.public String getName()
getName in interface MaryFeatureProcessorpublic String[] getValues()
ByteValuedFeatureProcessorgetValues in interface ByteValuedFeatureProcessorpublic byte process(Target target)
process in interface ByteValuedFeatureProcessorpublic String getPauseSymbol()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.