public class SoPModel extends Model
applyTo, dataStream, featureComputer, featureManager, featureName, predictFrom, predictionFeatureNames, targetAttributeFormat, targetAttributeName, voiceName
Constructor and Description |
---|
SoPModel(FeatureProcessorManager featureManager,
String voiceName,
InputStream dataStream,
String targetAttributeName,
String targetAttributeFormat,
String featureName,
String predictFrom,
String applyTo)
Model constructor
|
Modifier and Type | Method and Description |
---|---|
protected float |
evaluate(Target target)
Apply the SoP to a Target to get its predicted value
|
protected void |
loadData()
Load SoP data.
|
applyFromTo, applyTo, getApplyTo, getFeatureName, getPredictFrom, getTargetAttributeName, getTargets, getVoiceName, load, setupFeatureComputer
public SoPModel(FeatureProcessorManager featureManager, String voiceName, InputStream dataStream, String targetAttributeName, String targetAttributeFormat, String featureName, String predictFrom, String applyTo) throws MaryConfigurationException
featureManager
- the feature processor manager used to compute the symbolic features used for predictionvoiceName
- voiceNamedataStream
- data file containing the sop datatargetAttributeName
- attribute in MARYXML to predicttargetAttributeFormat
- print stylefeatureName
- not used in SoP modelpredictFrom
- not used in SoP modelapplyTo
- not used in SoP modelMaryConfigurationException
- if there are missing files.protected void loadData() throws IOException
loadData
in class Model
IOException
- if data can not be read.Copyright © 2000–2016 DFKI GmbH. All rights reserved.