edu.stanford.nlp.mt
Class CHandler

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

public class CHandler
extends AlHandler

The purpose of this class is to handle the choose/ not choose probabilities for english words that I am implementing


Field Summary
protected  ProbCountHolder[] cache_choose
           
protected  ProbCountHolder[] cache_notchoose
           
 
Constructor Summary
CHandler()
           
CHandler(PTable pTable, boolean eTags)
           
 
Method Summary
 double getProb(int i, int j)
           
 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 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
 

Field Detail

cache_choose

protected ProbCountHolder[] cache_choose

cache_notchoose

protected ProbCountHolder[] cache_notchoose
Constructor Detail

CHandler

public CHandler()

CHandler

public CHandler(PTable pTable,
                boolean eTags)
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)
Overrides:
getProb in class AlHandler

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

Overrides:
incCount in class AlHandler


Stanford NLP Group