edu.stanford.nlp.mt
Class TTable
java.lang.Object
|
+--edu.stanford.nlp.mt.TTable
- public class TTable
- extends Object
Constructor Summary |
TTable(boolean english)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TTable
public TTable(boolean english)
add
public void add(IntPair wP,
ProbCountHolder probC)
insert
public void insert(int e,
int f,
double prob,
double count)
get
public ProbCountHolder get(IntPair wP)
erase
public boolean erase(IntPair wP)
getIterator
public Iterator getIterator()
incCount
public void incCount(IntPair wP,
double cnt)
incCount
public void incCount(IntPair wP,
double cnt,
boolean shallow)
getProb
public double getProb(IntPair wP)
normalizeTable
public void normalizeTable(int iteration)
getCondEntropy
public double getCondEntropy()
save
public void save(String filename)
- save to a file with integer ids
read
public void read(String filename)
- read from a file
saveNames
public void saveNames(String filename)
- save to a file with the words rather than ids
print
public void print()
main
public static void main(String[] args)
Stanford NLP Group