272829303132333435
.split("\\s+")); assertEquals(ctx.getInputFile(), "data/AdultContent/test-unlabeled.txt"); assertEquals(ctx.getCategoriesFile(), "data/AdultContent/test-categories.txt"); Engine engine = new Engine(ctx); engine.execute(); }
373839404142434445
@Test public void testMoreComplexPath() throws Exception { parser.parseArgument("--input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories.txt --eval data/BarzanMozafari/evaluation.txt --dry-run" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); }
@Test public void testMoreComplexPath() throws Exception { parser.parseArgument("--input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories-prior.txt --eval data/BarzanMozafari/evaluation.txt" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); }
474849505152535455
@Test public void testFullCase() throws Exception { parser.parseArgument("--input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories-prior.txt --gold data/BarzanMozafari/gold-30items.txt --cost data/BarzanMozafari/costs.txt --eval data/BarzanMozafari/evaluation.txt" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); }
575859606162636465
@Test public void test5KDataPriorGold() throws Exception { parser.parseArgument("--iterations 100 --verbose --input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories-prior.txt --gold data/BarzanMozafari/gold-30items.txt --eval data/BarzanMozafari/evaluation.txt" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); }
676869707172737475
@Test public void test5KDataNoPriorGold() throws Exception { parser.parseArgument("--input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories.txt --gold data/BarzanMozafari/gold-30items.txt --eval data/BarzanMozafari/evaluation.txt" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); }
777879808182838485
@Test public void test5KDataPriorNoGold() throws Exception { parser.parseArgument("--input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories-prior.txt --eval data/BarzanMozafari/evaluation.txt" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); }
8788899091929394959697
@Test public void test5KDataNoPriorNoGold() throws Exception { parser.parseArgument("--input data/BarzanMozafari/input.txt --categories data/BarzanMozafari/categories.txt --eval data/BarzanMozafari/evaluation.txt" .split("\\s+")); Engine engine = new Engine(ctx); engine.execute(); //engine.getDs().g }
404142434445464748
showUsage(parser); return; } Engine engine = new Engine(ctx); engine.execute(); }