|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.pnp.TestScriptGenerator
Generates a shell script file to run batch tests for PnpClassifier.
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 |
public static final int numFolds
public static final String comment
Constructor Detail |
public TestScriptGenerator(String testdir, String outdir)
Method Detail |
public static void main(String[] args)
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").
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |