inpro.features
Class EOTPredictor

java.lang.Object
  extended by inpro.features.EOTFeatureAggregator
      extended by inpro.features.EOTPredictor
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable, SignalFeatureListener, java.util.EventListener

public class EOTPredictor
extends EOTFeatureAggregator


Field Summary
private  weka.classifiers.Classifier classifier
           
private static java.lang.String PROP_CLASSIFIER
           
 
Fields inherited from class inpro.features.EOTFeatureAggregator
CLUSTERED_TIME, CONTINUOUS_TIME, currentFrameEnergyValue, currentPitchValue, currentVoicingValue, energyRegressions, framesIntoAudioAttribute, framesIntoAudioValue, includeFrameCount, instances, numAttributes, pitchRegressions, PROP_CLUSTER_TIME, PROP_CONTINUOUS_TIME, PROP_ENERGY_WINDOWS_LIST, PROP_FRAME_COUNT, PROP_PITCH_WINDOWS_LIST, PROP_VENERGY_WINDOWS_LIST, timeToEOT, turnBin, voicedEnergyRegressions
 
Constructor Summary
EOTPredictor()
           
 
Method Summary
private  double classifyInstance(weka.core.Instance instance)
           
 java.lang.String getCurrentPrediction()
           
 void loadClassifier(java.lang.String filename)
          load classifier from file
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 
Methods inherited from class inpro.features.EOTFeatureAggregator
createFeatures, getCurrentEnergy, getCurrentPitch, getNewestFeatures, getTimeIntoAudio, newSignalFeatures, newSignalFeatures, printArffHeader, reset, setCurrentFrameEnergy, setCurrentPitch, setCurrentVoicing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_CLASSIFIER

@S4String(defaultValue="")
private static final java.lang.String PROP_CLASSIFIER
See Also:
Constant Field Values

classifier

private weka.classifiers.Classifier classifier
Constructor Detail

EOTPredictor

public EOTPredictor()
Method Detail

loadClassifier

public void loadClassifier(java.lang.String filename)
load classifier from file

Parameters:
filename - name of the file the serialized classifier is stored in

getCurrentPrediction

public java.lang.String getCurrentPrediction()

classifyInstance

private double classifyInstance(weka.core.Instance instance)
Parameters:
instance -
Returns:
class index of the instance

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class EOTFeatureAggregator
Throws:
edu.cmu.sphinx.util.props.PropertyException