edu.stanford.nlp.redwoods
Class ProductionsTable

java.lang.Object
  |
  +--edu.stanford.nlp.redwoods.ProductionsTable
All Implemented Interfaces:
Serializable

public class ProductionsTable
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
ProductionsTable()
           
 
Method Summary
 void add(Object wP, ProbCountHolder probC)
           
 boolean erase(Object wP)
           
 ProbCountHolder get(Object wP)
           
 Iterator getIterator()
           
 HashMap getMap()
           
 int getNumProductions()
           
 double getProb(Object wP)
           
 void incCount(Object wP, double cnt)
           
 void initTableUniform()
           
 boolean isEmpty()
           
 void logProbs()
          replace all probs with their logs
static void main(String[] args)
           
 void normalizeTable(int iteration)
           
 void print()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductionsTable

public ProductionsTable()
Method Detail

add

public void add(Object wP,
                ProbCountHolder probC)

getNumProductions

public int getNumProductions()

getMap

public HashMap getMap()

get

public ProbCountHolder get(Object wP)

erase

public boolean erase(Object wP)

isEmpty

public boolean isEmpty()

getIterator

public Iterator getIterator()

incCount

public void incCount(Object wP,
                     double cnt)

getProb

public double getProb(Object wP)

logProbs

public void logProbs()
replace all probs with their logs


initTableUniform

public void initTableUniform()

normalizeTable

public void normalizeTable(int iteration)

print

public void print()

main

public static void main(String[] args)


Stanford NLP Group