|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.classify.Tester
Builds a FeatureSet for the files in the directory "parent_dir" and attempts to classify them using the ProbabilitySet my_ps that was created during training.
Constructor Summary | |
Tester(String parent_dir,
ProbabilitySet my_ps,
String[] my_pos,
Vector filters)
Constructor: takes the parent directory of where the data is stored, a (smoothed) ProbabilitySet created during training, the parts of speech that should be filtered in, and a Vector of the filters that will be applied. |
Method Summary | |
void |
move_review(String filename,
boolean b,
PrintWriter pw)
This method sets up a file that can be run later to sort the reviews into ones that were classified correctly and ones that were classified incorrectly. |
void |
store(String filename,
String s)
This method stores the filtered data in a file for later viewing |
void |
test()
Classifies each instance of the test data and stores statistics about what went right and what went wrong. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Tester(String parent_dir, ProbabilitySet my_ps, String[] my_pos, Vector filters)
Method Detail |
public void test() throws FileNotFoundException, IOException
FileNotFoundException
IOException
public void store(String filename, String s) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public void move_review(String filename, boolean b, PrintWriter pw) throws FileNotFoundException, IOException
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |