edu.stanford.nlp.ie.pnp
Class TestScriptGenerator

java.lang.Object
  |
  +--edu.stanford.nlp.ie.pnp.TestScriptGenerator

public class TestScriptGenerator
extends Object

Generates a shell script file to run batch tests for PnpClassifier.

See Also:
main(java.lang.String[])

Field Summary
static String comment
          Comment prefix: "#".
static int numFolds
          Number of train/test folds to run: 10.
 
Constructor Summary
TestScriptGenerator(String testdir, String outdir)
          Constructs a new TestScriptGenerator to write a shell script to the given outdir to test the given testdir.
 
Method Summary
static void main(String[] args)
          Generates a shell script to test PnpClassifier with a given data set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numFolds

public static final int numFolds
Number of train/test folds to run: 10.

See Also:
Constant Field Values

comment

public static final String comment
Comment prefix: "#".

See Also:
Constant Field Values
Constructor Detail

TestScriptGenerator

public TestScriptGenerator(String testdir,
                           String outdir)
Constructs a new TestScriptGenerator to write a shell script to the given outdir to test the given testdir.

Method Detail

main

public static void main(String[] args)
Generates a shell script to test PnpClassifier with a given data set.

Usage: java TestScriptGenerator testdir outdir

testdir is the dir of train/test/answer files made by DataGenerator. outdir is where the shell script goes. The shell script will be named based on the testdir. The shell script will run 10 train/test folds. Parses the category names from testdir (e.g. "data\drug_nyse_place_person").



Stanford NLP Group