edu.stanford.nlp.mt
Class AlHandlerHMM2E
java.lang.Object
|
+--edu.stanford.nlp.mt.AlHandler
|
+--edu.stanford.nlp.mt.AlHandlerHMM2
|
+--edu.stanford.nlp.mt.AlHandlerHMM2E
- public class AlHandlerHMM2E
- extends AlHandlerHMM2
This serves to handle the alignment probabilities
this is trigram HMM . The tags of the previous two english
words are used as well
Method Summary |
double |
getProb(int i,
int j,
int[] alignment)
|
void |
incCount(int i,
int j,
int[] alignment,
double val)
increment the count for c(i|i_p,i_pp) by val |
void |
init()
|
void |
setPair(SentencePair sent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlHandlerHMM2E
public AlHandlerHMM2E(ATableHMMHolder aHolder)
setPair
public void setPair(SentencePair sent)
- Overrides:
setPair
in class AlHandlerHMM2
init
public void init()
- Overrides:
init
in class AlHandlerHMM2
getProb
public double getProb(int i,
int j,
int[] alignment)
- Overrides:
getProb
in class AlHandlerHMM2
incCount
public void incCount(int i,
int j,
int[] alignment,
double val)
- increment the count for c(i|i_p,i_pp) by val
- Overrides:
incCount
in class AlHandlerHMM2
Stanford NLP Group