marytts.modules.acoustic
Class BoundaryModel

java.lang.Object
  extended by marytts.modules.acoustic.Model
      extended by marytts.modules.acoustic.BoundaryModel

public class BoundaryModel
extends Model

Model which currently predicts only a flat 400 ms duration for each boundary Element

Could be replaced by a PauseTree or something else, but that would require a CARTModel instead of this.

Author:
steiner

Field Summary
 
Fields inherited from class marytts.modules.acoustic.Model
applyTo, dataFile, featureComputer, featureManager, featureName, predictFrom, predictionFeatureNames, targetAttributeFormat, targetAttributeName
 
Constructor Summary
BoundaryModel(FeatureProcessorManager featureManager, java.lang.String dataFileName, java.lang.String targetAttributeName, java.lang.String targetAttributeFormat, java.lang.String featureName, java.lang.String predictFrom, java.lang.String applyTo)
           
 
Method Summary
 void applyTo(java.util.List<org.w3c.dom.Element> elements)
          Apply this Model to a List of Elements, predicting from those same Elements
protected  float evaluate(Target target)
          For boundaries, this does nothing;
 void loadDataFile()
          For boundaries, this does nothing;
 
Methods inherited from class marytts.modules.acoustic.Model
applyFromTo, getApplyTo, getDataFileName, getFeatureName, getPredictFrom, getTargetAttributeName, getTargets, load, setupFeatureComputer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundaryModel

public BoundaryModel(FeatureProcessorManager featureManager,
                     java.lang.String dataFileName,
                     java.lang.String targetAttributeName,
                     java.lang.String targetAttributeFormat,
                     java.lang.String featureName,
                     java.lang.String predictFrom,
                     java.lang.String applyTo)
Method Detail

applyTo

public void applyTo(java.util.List<org.w3c.dom.Element> elements)
Description copied from class: Model
Apply this Model to a List of Elements, predicting from those same Elements

Overrides:
applyTo in class Model
Parameters:
elements - Elements for which to predict the values

evaluate

protected float evaluate(Target target)
For boundaries, this does nothing;

Specified by:
evaluate in class Model
Returns:
target value

loadDataFile

public void loadDataFile()
For boundaries, this does nothing;

Specified by:
loadDataFile in class Model