public static class MaryGenericFeatureProcessors.WordPunc extends Object implements ByteValuedFeatureProcessor
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected MaryGenericFeatureProcessors.TargetElementNavigator |
navigator |
protected ByteStringTranslator |
values |
| Constructor and Description |
|---|
WordPunc(String name,
MaryGenericFeatureProcessors.TargetElementNavigator wordNavigator) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String[] |
getValues()
List the possible values of the feature processor, as clear-text values.
|
byte |
process(Target target) |
protected String name
protected MaryGenericFeatureProcessors.TargetElementNavigator navigator
protected ByteStringTranslator values
public WordPunc(String name, MaryGenericFeatureProcessors.TargetElementNavigator wordNavigator)
name - name of this feature processorwordNavigator - a navigator which returns a word for a target. This navigator decides the word for which the punctuation
will be computed.public String getName()
getName in interface MaryFeatureProcessorpublic String[] getValues()
ByteValuedFeatureProcessorgetValues in interface ByteValuedFeatureProcessorpublic byte process(Target target)
process in interface ByteValuedFeatureProcessorCopyright © 2000–2022 DFKI GmbH. All rights reserved.