marytts.modules.acoustic
Class BoundaryModel
java.lang.Object
marytts.modules.acoustic.Model
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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