ivory.app.BuildIndex.class.getCanonicalName(), libjars,
"-index=" + index, "-indexPartitions=10", "-positionalIndexIP" };
IntegrationUtils.exec(Joiner.on(" ").join(args));
QueryEngine qr = new QueryEngine();
for (int heuristic=0; heuristic<=2; heuristic++) {
conf = RunQueryEngine.parseArgs(new String[] {
"-index=" + index,
"-queries_path=" + index + "/title_en-" + LANGUAGE + "-trans10-filtered.xml",
"-run=en-" + LANGUAGE + ".interp",
"-query_type=mtN",
"-doc_lang=" + LANGUAGE + "",
"-query_lang=en",
"-doc_tokenizer=" + index + "/" + LANGUAGE + "-token.bin",
"-query_tokenizer=" + index + "/en-token.bin",
"-query_vocab=" + index + "/vocab.en-" + LANGUAGE + ".en",
"-doc_vocab=" + index + "/vocab.en-" + LANGUAGE + "." + LANGUAGE + "",
"-f2eProbs=" + index + "/ttable.en-" + LANGUAGE + "",
"-LexProbThreshold=0.005",
"-CumProbThreshold=0.95",
"-mt_weight=0.3",
"-grammar_weight=0.4",
"-bitext_weight=0.3",
"-token_weight=1",
"-phrase_weight=0",
"-kBest=10",
"-doc_stemmed_stopwordlist=" + index + "/" + LANGUAGE + ".stop.stemmed",
"-query_stemmed_stopwordlist=" + index + "/en.stop.stemmed",
"--one2many=" + heuristic
}, fs, conf);
long start = System.currentTimeMillis();
qr.init(conf, fs);
qr.runQueries(conf);
long end = System.currentTimeMillis();
System.err.println("Total query time for heuristic " + heuristic + ":" + (end - start) + "ms");
}
ivory.regression.sigir2013.cdec.EnZh_NTCIR8.initialize();
ivory.regression.sigir2013.cdec.EnZh_NTCIR8.verifyAllResults(qr.getModels(), qr.getAllResults(), qr.getDocnoMapping(),
new Qrels("data/" + PATH + "/qrels." + PATH+ ".txt"));
System.err.println("Done!");
}