edu.stanford.nlp.tagger.maxent
Class TaggerExperiments
java.lang.Object
edu.stanford.nlp.maxent.Experiments
edu.stanford.nlp.tagger.maxent.TaggerExperiments
public class TaggerExperiments
- extends Experiments
This class represents the training samples. It can return statistics of
them, for example the frequency of each x or y in the training data.
- Author:
- Kristina Toutanova
Methods inherited from class edu.stanford.nlp.maxent.Experiments |
add, createIndex, get, getNumber, numY, print, print, ptilde, ptilde, ptildeX, ptildeXY, ptildeY, read, save, setMaxY, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaggerExperiments
public TaggerExperiments()
TaggerExperiments
public TaggerExperiments(TaggerConfig config)
throws IOException
- Throws:
IOException
getFeaturesNew
public void getFeaturesNew()
- This method uses and deletes a file temp.x in the current directory!
hashHistories
public static void hashHistories()
hashHistories
public void hashHistories(TemplateHash tFeats,
int fNo)
populated
public static boolean populated(int fNo,
int size)
initTemplatesNew
public void initTemplatesNew()
addTemplatesNew
public void addTemplatesNew(History h,
String tag,
int x,
int y)
- Add a new feature key in a hashtable of feature templates
addRareTemplatesNew
public void addRareTemplatesNew(History h,
String tag,
int x,
int y)
getY
public String getY(int index)
Stanford NLP Group