edu.stanford.nlp.mt
Class AlHandler
java.lang.Object
|
+--edu.stanford.nlp.mt.AlHandler
- Direct Known Subclasses:
- AlHandlerHMM1, AlHandlerHMM2, AlHandlerHMM2EQ, AlHandlerHMM2EQSG, CHandler
- public class AlHandler
- extends Object
This serves to handle the alignment probabilities
the basic functionality is getProb(i,j) and incCount(i,j,val);
Method Summary |
double |
getProb(int i,
int j)
|
double |
getProb(int i,
int j,
int[] al)
|
void |
incCount(int i,
int j,
double val)
Increment the count for c(choose|ei) by val and also increment the probability for not choose
by 1-val |
void |
incCount(int i,
int j,
int[] al,
double 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 |
AlHandler
public AlHandler()
setPair
public void setPair(SentencePair sent)
init
public void init()
getProb
public double getProb(int i,
int j)
getProb
public double getProb(int i,
int j,
int[] al)
incCount
public void incCount(int i,
int j,
int[] al,
double val)
incCount
public void incCount(int i,
int j,
double val)
- Increment the count for c(choose|ei) by val and also increment the probability for not choose
by 1-val
Stanford NLP Group