edu.stanford.nlp.mt
Class AlHandlerHMM1

java.lang.Object
  |
  +--edu.stanford.nlp.mt.AlHandler
        |
        +--edu.stanford.nlp.mt.AlHandlerHMM1
Direct Known Subclasses:
AlHandlerHMM1E, AlHandlerHMM1F, AlHandlerHMM1SG, AlHandlerHMM1Tags

public class AlHandlerHMM1
extends AlHandler

This serves to handle the alignment probabilities the basic functionality is getProb(i,j) and incCount(i,j,val);


Constructor Summary
AlHandlerHMM1()
           
AlHandlerHMM1(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(choose|ei) by val and also increment the probability for not choose by 1-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

AlHandlerHMM1

public AlHandlerHMM1()

AlHandlerHMM1

public AlHandlerHMM1(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(choose|ei) by val and also increment the probability for not choose by 1-val

Overrides:
incCount in class AlHandler


Stanford NLP Group