edu.stanford.nlp.classify
Class Trainer

java.lang.Object
  |
  +--edu.stanford.nlp.classify.Trainer

public class Trainer
extends Object

Builds a ProbabilitySet for the classes in String[] my_dirnames and smooths that ProbabilitySet.


Constructor Summary
Trainer(String[] my_dirnames, int my_num_cases, String[] my_pos, Vector filters)
          Constructor: my_dirnames is the names of the directories where the training documents are held
 
Method Summary
 ProbabilitySet buildPS()
          This method builds a ProbabilitySet from the data in the files given to the trainer.
 ProbabilitySet train()
          Creates and smooths a ProbabilitySet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trainer

public Trainer(String[] my_dirnames,
               int my_num_cases,
               String[] my_pos,
               Vector filters)
Constructor: my_dirnames is the names of the directories where the training documents are held

Method Detail

train

public ProbabilitySet train()
                     throws FileNotFoundException,
                            IOException
Creates and smooths a ProbabilitySet.

FileNotFoundException
IOException

buildPS

public ProbabilitySet buildPS()
                       throws FileNotFoundException,
                              IOException
This method builds a ProbabilitySet from the data in the files given to the trainer. The ProbabilitySet can be run through a number of filters.

FileNotFoundException
IOException


Stanford NLP Group