Class MaryGenericFeatureProcessors.Selection_Prosody

  extended by
All Implemented Interfaces:
ByteValuedFeatureProcessor, MaryFeatureProcessor
Enclosing class:

public static class MaryGenericFeatureProcessors.Selection_Prosody
extends java.lang.Object
implements ByteValuedFeatureProcessor

Determine the prosodic property of a target

Anna Hunecke

Field Summary
protected  MaryGenericFeatureProcessors.TargetItemNavigator navigator
Constructor Summary
MaryGenericFeatureProcessors.Selection_Prosody(MaryGenericFeatureProcessors.TargetItemNavigator syllableNavigator)
Method Summary
 java.lang.String getName()
          Performs some processing on the given item.
 java.lang.String[] getValues()
          List the possible values of the feature processor, as clear-text values.
 byte process(Target target)
          Determine the prosodic property of the target
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected MaryGenericFeatureProcessors.TargetItemNavigator navigator
Constructor Detail


public MaryGenericFeatureProcessors.Selection_Prosody(MaryGenericFeatureProcessors.TargetItemNavigator syllableNavigator)
Method Detail


public java.lang.String getName()
Description copied from interface: MaryFeatureProcessor
Performs some processing on the given item. TODO: remove? see ByteValuedFeatureProcessor etc.

Specified by:
getName in interface MaryFeatureProcessor


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
an array containing the possible return values of this feature processor, in String representation.


public byte process(Target target)
Determine the prosodic property of the target

Specified by:
process in interface ByteValuedFeatureProcessor
target - the target
0 - unstressed, 1 - stressed, 2 - pre-nuclear accent 3 - nuclear accent, 4 - phrase final high, 5 - phrase final low