edu.stanford.nlp.mt
Class AlHandlerHMM1Tags
java.lang.Object
|
+--edu.stanford.nlp.mt.AlHandler
|
+--edu.stanford.nlp.mt.AlHandlerHMM1
|
+--edu.stanford.nlp.mt.AlHandlerHMM1Tags
- public class AlHandlerHMM1Tags
- extends AlHandlerHMM1
This serves to handle the alignment probabilities
the basic functionality is getProb(i,j,alignment) and incCount(i,j,alignment,val);
Handles conditioning on many different tag configurations - french tags and english tags
The conditioning tags are specified with a number which contains flags for different tags
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlHandlerHMM1Tags
public AlHandlerHMM1Tags(ATableHMMHolder a,
int mask)
setPair
public void setPair(SentencePair sent)
- Overrides:
setPair
in class AlHandlerHMM1
init
public void init()
- Overrides:
init
in class AlHandlerHMM1
addEntries
public void addEntries(SentencePair sentPair,
TupleCounter TC)
addEntries
public void addEntries(SentencePair sentPair,
TupleCounter TC,
int[] viterbi_alignment)
wantadd
public boolean wantadd(IntTuple iT)
getProb
public double getProb(int i,
int j,
int[] alignment)
- Overrides:
getProb
in class AlHandlerHMM1
incCount
public void incCount(int i,
int j,
int[] alignment,
double val)
- Increment the count for c(choose|ei) by val and also increment the probability for not choose
by 1-val
- Overrides:
incCount
in class AlHandlerHMM1
Stanford NLP Group