|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinpro.features.EOTFeatureAggregator
inpro.features.EOTPredictor
public class EOTPredictor
| Field Summary | |
|---|---|
private weka.classifiers.Classifier |
classifier
|
private static java.lang.String |
PROP_CLASSIFIER
|
| 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 |
|---|
@S4String(defaultValue="") private static final java.lang.String PROP_CLASSIFIER
private weka.classifiers.Classifier classifier
| Constructor Detail |
|---|
public EOTPredictor()
| Method Detail |
|---|
public void loadClassifier(java.lang.String filename)
filename - name of the file the serialized classifier is stored inpublic java.lang.String getCurrentPrediction()
private double classifyInstance(weka.core.Instance instance)
instance -
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
throws edu.cmu.sphinx.util.props.PropertyException
newProperties in interface edu.cmu.sphinx.util.props.ConfigurablenewProperties in class EOTFeatureAggregatoredu.cmu.sphinx.util.props.PropertyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||