edu.stanford.nlp.classify
Class Tester

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

public class Tester
extends Object

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

Tester

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

test

public void test()
          throws FileNotFoundException,
                 IOException
Classifies each instance of the test data and stores statistics about what went right and what went wrong.

FileNotFoundException
IOException

store

public void store(String filename,
                  String s)
           throws FileNotFoundException,
                  IOException
This method stores the filtered data in a file for later viewing

FileNotFoundException
IOException

move_review

public void move_review(String filename,
                        boolean b,
                        PrintWriter pw)
                 throws FileNotFoundException,
                        IOException
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.

FileNotFoundException
IOException


Stanford NLP Group