edu.stanford.nlp.tagger.maxent
Class TaggerExperiments

java.lang.Object
  extended by edu.stanford.nlp.maxent.Experiments
      extended by 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

Field Summary
 
Fields inherited from class edu.stanford.nlp.maxent.Experiments
maxY, px, pxy, py, values, vArray, xSize, ySize
 
Constructor Summary
TaggerExperiments()
           
TaggerExperiments(String filename, String[] args_outputs, String delimiter, String encoding)
           
TaggerExperiments(TaggerConfig config)
           
 
Method Summary
 void addRareTemplatesNew(History h, String tag, int x, int y)
           
 void addTemplatesNew(History h, String tag, int x, int y)
          Add a new feature key in a hashtable of feature templates
 void getFeaturesNew()
          This method uses and deletes a file temp.x in the current directory!
 String getY(int index)
           
 void hashHistories()
           
 void hashHistories(TemplateHash tFeats, int fNo)
           
 void initTemplatesNew()
           
static void main(String[] args)
           
static boolean populated(int fNo, int size)
           
 
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
 

Constructor Detail

TaggerExperiments

public TaggerExperiments()
                  throws Exception
Throws:
Exception

TaggerExperiments

public TaggerExperiments(TaggerConfig config)
                  throws Exception
Throws:
Exception

TaggerExperiments

public TaggerExperiments(String filename,
                         String[] args_outputs,
                         String delimiter,
                         String encoding)
                  throws Exception
Throws:
Exception
Method Detail

getFeaturesNew

public void getFeaturesNew()
This method uses and deletes a file temp.x in the current directory!


hashHistories

public 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)

main

public static void main(String[] args)


Stanford NLP Group