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 |
|---|
Phone(String name,
String[] possibleValues,
String pauseSymbol,
MaryGenericFeatureProcessors.TargetElementNavigator segmentNavigator)
Initialise a phone feature processor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getPauseSymbol() |
String[] |
getValues()
List the possible values of the feature processor, as clear-text values.
|
byte |
process(Target target) |
protected String name
protected ByteStringTranslator values
protected String pauseSymbol
protected MaryGenericFeatureProcessors.TargetElementNavigator navigator
public 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–2022 DFKI GmbH. All rights reserved.