edu.stanford.nlp.mt
Class AlHandlerHMM2EQ

java.lang.Object
  |
  +--edu.stanford.nlp.mt.AlHandler
        |
        +--edu.stanford.nlp.mt.AlHandlerHMM2EQ

public class AlHandlerHMM2EQ
extends AlHandler

This serves to handle the alignment probabilities this is trigram HMM


Constructor Summary
AlHandlerHMM2EQ()
           
AlHandlerHMM2EQ(ATable a)
           
 
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 edu.stanford.nlp.mt.AlHandler
getProb, incCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlHandlerHMM2EQ

public AlHandlerHMM2EQ()

AlHandlerHMM2EQ

public AlHandlerHMM2EQ(ATable a)
Method Detail

setPair

public void setPair(SentencePair sent)
Overrides:
setPair in class AlHandler

init

public void init()
Overrides:
init in class AlHandler

getProb

public double getProb(int i,
                      int j,
                      int[] alignment)
Overrides:
getProb in class AlHandler

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 AlHandler


Stanford NLP Group