edu.stanford.nlp.mt
Class StayGoTables
java.lang.Object
|
+--edu.stanford.nlp.mt.StayGoTables
- public class StayGoTables
- extends Object
stores several stay go tables for different contexts
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StayGoTables
public StayGoTables(int numTables,
SentenceHandler sH)
initialize
public void initialize(double pstay)
normalize
public void normalize()
save
public void save(String filename)
getEntryStay
public ProbCountHolder getEntryStay(int index,
int jump)
getEntryGo
public ProbCountHolder getEntryGo(int index,
int jump)
getProbStay
public double getProbStay(int index,
int jump)
getProbGo
public double getProbGo(int index,
int jump)
incCountStay
public void incCountStay(int index,
double val,
int jump)
incCountGo
public void incCountGo(int index,
double val,
int jump)
getMap
public int getMap(int jump)
Stanford NLP Group