Skip to content

Latest commit

 

History

History
100 lines (68 loc) · 6.52 KB

regressions-car17v2.0-doc2query.md

File metadata and controls

100 lines (68 loc) · 6.52 KB

Anserini: Regressions for CAR17 (v2.0) + doc2query

This page documents regression experiments for the TREC 2017 Complex Answer Retrieval (CAR) section-level passage retrieval task (v2.0), with doc2query expansions, as proposed in the following paper:

These experiments are integrated into Anserini's regression testing framework. For more complete instructions on how to run end-to-end experiments, refer to this page.

The exact configurations for these regressions are stored in this YAML file. Note that this page is automatically generated from this template as part of Anserini's regression pipeline, so do not modify this page directly; modify the template instead.

Indexing

Typical indexing command:

nohup sh target/appassembler/bin/IndexCollection -collection JsonCollection \
 -input /path/to/car17v2.0-doc2query \
 -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -generator DefaultLuceneDocumentGenerator \
 -threads 30 -storePositions -storeDocvectors -storeRaw \
  >& logs/log.car17v2.0-doc2query &

The directory /path/to/car17v2.0-doc2query should be the root directory of Complex Answer Retrieval (CAR) paragraph corpus (v2.0) that has been augmented with the doc2query expansions, i.e., collection_jsonl_expanded_topk10/ as described in this page.

For additional details, see explanation of common indexing options.

Retrieval

The "benchmarkY1-test" topics and qrels (v2.0) are stored in src/main/resources/topics-and-qrels/, downloaded from the CAR website:

Specifically, this is the section-level passage retrieval task with automatic ground truth.

After indexing has completed, you should be able to perform retrieval as follows:

nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -topicreader Car -topics src/main/resources/topics-and-qrels/topics.car17v2.0.benchmarkY1test.txt \
 -output runs/run.car17v2.0-doc2query.bm25.topics.car17v2.0.benchmarkY1test.txt \
 -bm25 &

nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -topicreader Car -topics src/main/resources/topics-and-qrels/topics.car17v2.0.benchmarkY1test.txt \
 -output runs/run.car17v2.0-doc2query.bm25+rm3.topics.car17v2.0.benchmarkY1test.txt \
 -bm25 -rm3 &

nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -topicreader Car -topics src/main/resources/topics-and-qrels/topics.car17v2.0.benchmarkY1test.txt \
 -output runs/run.car17v2.0-doc2query.bm25+ax.topics.car17v2.0.benchmarkY1test.txt \
 -bm25 -axiom -axiom.deterministic -rerankCutoff 20 &

nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -topicreader Car -topics src/main/resources/topics-and-qrels/topics.car17v2.0.benchmarkY1test.txt \
 -output runs/run.car17v2.0-doc2query.ql.topics.car17v2.0.benchmarkY1test.txt \
 -qld &

nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -topicreader Car -topics src/main/resources/topics-and-qrels/topics.car17v2.0.benchmarkY1test.txt \
 -output runs/run.car17v2.0-doc2query.ql+rm3.topics.car17v2.0.benchmarkY1test.txt \
 -qld -rm3 &

nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.car17v2.0-doc2query.pos+docvectors+raw \
 -topicreader Car -topics src/main/resources/topics-and-qrels/topics.car17v2.0.benchmarkY1test.txt \
 -output runs/run.car17v2.0-doc2query.ql+ax.topics.car17v2.0.benchmarkY1test.txt \
 -qld -axiom -axiom.deterministic -rerankCutoff 20 &

Evaluation can be performed using trec_eval:

tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank src/main/resources/topics-and-qrels/qrels.car17v2.0.benchmarkY1test.txt runs/run.car17v2.0-doc2query.bm25.topics.car17v2.0.benchmarkY1test.txt

tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank src/main/resources/topics-and-qrels/qrels.car17v2.0.benchmarkY1test.txt runs/run.car17v2.0-doc2query.bm25+rm3.topics.car17v2.0.benchmarkY1test.txt

tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank src/main/resources/topics-and-qrels/qrels.car17v2.0.benchmarkY1test.txt runs/run.car17v2.0-doc2query.bm25+ax.topics.car17v2.0.benchmarkY1test.txt

tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank src/main/resources/topics-and-qrels/qrels.car17v2.0.benchmarkY1test.txt runs/run.car17v2.0-doc2query.ql.topics.car17v2.0.benchmarkY1test.txt

tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank src/main/resources/topics-and-qrels/qrels.car17v2.0.benchmarkY1test.txt runs/run.car17v2.0-doc2query.ql+rm3.topics.car17v2.0.benchmarkY1test.txt

tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank src/main/resources/topics-and-qrels/qrels.car17v2.0.benchmarkY1test.txt runs/run.car17v2.0-doc2query.ql+ax.topics.car17v2.0.benchmarkY1test.txt

Effectiveness

With the above commands, you should be able to replicate the following results:

MAP BM25 +RM3 +Ax QL +RM3 +Ax
TREC 2017 CAR: benchmarkY1test (v2.0) 0.1807 0.1521 0.1470 0.1752 0.1453 0.1339
RECIP_RANK BM25 +RM3 +Ax QL +RM3 +Ax
TREC 2017 CAR: benchmarkY1test (v2.0) 0.2750 0.2275 0.2186 0.2653 0.2156 0.1981