edu.stanford.nlp.tagger.maxent
Class HistoryTable
java.lang.Object
edu.stanford.nlp.tagger.maxent.HistoryTable
public class HistoryTable
- extends Object
Notes: This maintains a two way lookup between a History and
an Integer index. It's really a worse implementation of an Index
TODO: This should be replace by use of an Index, but at the moment it has binary write/read methods like all Kristina's stuff.
todo; cdm 2008: The read/write methods are now unused and so it should be able to just be an Index
- Author:
- Kristina Toutanova
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistoryTable
public HistoryTable()
HistoryTable
public HistoryTable(int capacity)
release
public void release()
add
public int add(History h)
put
public int put(History h)
getHistory
public History getHistory(int index)
getIndex
public int getIndex(History h)
contains
public boolean contains(History h)
save
public void save(String filename)
read
public void read(String filename)
Stanford NLP Group