edu.stanford.nlp.tagger.maxent
Class HistoryTable

java.lang.Object
  extended by 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

Constructor Summary
HistoryTable()
           
HistoryTable(int capacity)
           
 
Method Summary
 int add(History h)
           
 boolean contains(History h)
           
 History getHistory(int index)
           
 int getIndex(History h)
           
 int put(History h)
           
 void read(String filename)
           
 void release()
           
 void save(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryTable

public HistoryTable()

HistoryTable

public HistoryTable(int capacity)
Method Detail

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