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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductionsTable
public ProductionsTable()
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