public abstract class HMMemitter extends Object
| Constructor and Description |
|---|
HMMemitter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
computeProbabilities()
computate probabilities of emission from counts.
|
abstract double |
getProbability(String token,
String priorToken,
FeatureSet fs)
returns the probability that the current HMM state will emit
token
token with FeatureSet fs. |
abstract void |
print()
print the information about emission from this state to System.out.
|
abstract void |
resetForTraining()
initialize the emitter prior to training.
|
void |
setCacheCount(String type,
int n) |
abstract void |
store(PrintWriter stream)
write the information about emission from this state in a form
which can be read by
HMM.load(java.io.Reader). |
abstract void |
trainOnInstances(String token,
String priorToken,
int n)
update emission counts to indicate that String
token
appeared n times as an output of the current state. |
public abstract void resetForTraining()
trainOnInstances(java.lang.String, java.lang.String, int).public abstract void trainOnInstances(String token, String priorToken, int n)
token
appeared n times as an output of the current state.public abstract void computeProbabilities()
trainOnInstances(java.lang.String, java.lang.String, int) and
before calls on getProbability(java.lang.String, java.lang.String, edu.nyu.jet.lisp.FeatureSet).public abstract double getProbability(String token, String priorToken, FeatureSet fs)
token with FeatureSet fs.public void setCacheCount(String type, int n)
public abstract void print()
public abstract void store(PrintWriter stream)
HMM.load(java.io.Reader).Copyright © 2016 New York University. All rights reserved.