marytts.features
Class MaryGenericFeatureProcessors.WordPunc
java.lang.Object
marytts.features.MaryGenericFeatureProcessors.WordPunc
- All Implemented Interfaces:
- ByteValuedFeatureProcessor, MaryFeatureProcessor
- Direct Known Subclasses:
- MaryGenericFeatureProcessors.NextPunctuation, MaryGenericFeatureProcessors.PrevPunctuation, MaryGenericFeatureProcessors.WordsFromPrevPunctuation, MaryGenericFeatureProcessors.WordsToNextPunctuation
- Enclosing class:
- MaryGenericFeatureProcessors
public static class MaryGenericFeatureProcessors.WordPunc
- extends java.lang.Object
- implements ByteValuedFeatureProcessor
Determines the word punctuation.
|
Method Summary |
java.lang.String |
getName()
|
java.lang.String[] |
getValues()
List the possible values of the feature processor, as
clear-text values. |
byte |
process(Target target)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
navigator
protected MaryGenericFeatureProcessors.TargetElementNavigator navigator
values
protected ByteStringTranslator values
MaryGenericFeatureProcessors.WordPunc
public MaryGenericFeatureProcessors.WordPunc(java.lang.String name,
MaryGenericFeatureProcessors.TargetElementNavigator wordNavigator)
- Parameters:
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.
getName
public java.lang.String getName()
- Specified by:
getName in interface MaryFeatureProcessor
getValues
public java.lang.String[] getValues()
- Description copied from interface:
ByteValuedFeatureProcessor
- List the possible values of the feature processor, as
clear-text values. Byte values as returned by process()
can be translated into their string equivalent by using
the byte value as an index in the String[] returned.
- Specified by:
getValues in interface ByteValuedFeatureProcessor
- Returns:
- an array containing the possible return values
of this feature processor, in String representation.
process
public byte process(Target target)
- Specified by:
process in interface ByteValuedFeatureProcessor