edu.stanford.nlp.mt
Class TTable

java.lang.Object
  |
  +--edu.stanford.nlp.mt.TTable

public class TTable
extends Object


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

Constructor Detail

TTable

public TTable(boolean english)
Method Detail

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