edu.stanford.nlp.mt
Class TPHandlerNULL
java.lang.Object
|
+--edu.stanford.nlp.mt.TPHandler
|
+--edu.stanford.nlp.mt.TPHandlerNULL
- public class TPHandlerNULL
- extends TPHandler
getProb(i,j) = p(fj|ei) if i not eq 0 and else p(fj|fj-1)
Method Summary |
double |
getProb(int i,
int j)
|
void |
incCount(int i,
int j,
double val)
Increment the count for c(fj|ei) |
void |
init()
this init is different since we need to cache the tag probs as well |
void |
setPair(SentencePair sent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TPHandlerNULL
public TPHandlerNULL(TTable tTable,
TTable fTable,
int subkind)
setPair
public void setPair(SentencePair sent)
- Overrides:
setPair
in class TPHandler
init
public void init()
- this init is different since we need to cache the tag probs as well
- Overrides:
init
in class TPHandler
getProb
public double getProb(int i,
int j)
- Overrides:
getProb
in class TPHandler
incCount
public void incCount(int i,
int j,
double val)
- Increment the count for c(fj|ei)
- Overrides:
incCount
in class TPHandler
Stanford NLP Group