|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.classify.Trainer
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 |
public Trainer(String[] my_dirnames, int my_num_cases, String[] my_pos, Vector filters)
Method Detail |
public ProbabilitySet train() throws FileNotFoundException, IOException
FileNotFoundException
IOException
public ProbabilitySet buildPS() throws FileNotFoundException, IOException
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |