Models: various bag-of-words approaches
This page documents regression experiments for the TREC 2017 Complex Answer Retrieval (CAR) section-level passage retrieval task (v1.5). 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.
From one of our Waterloo servers (e.g., orca
), the following command will perform the complete regression, end to end:
python src/main/python/run_regression.py --index --verify --search --regression car17v1.5
Typical indexing command:
target/appassembler/bin/IndexCollection \
-collection CarCollection \
-input /path/to/car-paragraphCorpus.v1.5 \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-generator DefaultLuceneDocumentGenerator \
-threads 1 -storePositions -storeDocvectors -storeRaw \
>& logs/log.car-paragraphCorpus.v1.5 &
The directory /path/to/car17v1.5
should be the root directory of Complex Answer Retrieval (CAR) paragraph corpus (v1.5), which can be downloaded here.
For additional details, see explanation of common indexing options.
The "benchmarkY1-test" topics and qrels (v1.5) are stored here, which is linked to the Anserini repo as a submodule. They are 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:
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-topics tools/topics-and-qrels/topics.car17v1.5.benchmarkY1test.txt \
-topicreader Car \
-output runs/run.car-paragraphCorpus.v1.5.bm25.topics.car17v1.5.benchmarkY1test.txt \
-bm25 &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-topics tools/topics-and-qrels/topics.car17v1.5.benchmarkY1test.txt \
-topicreader Car \
-output runs/run.car-paragraphCorpus.v1.5.bm25+rm3.topics.car17v1.5.benchmarkY1test.txt \
-bm25 -rm3 &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-topics tools/topics-and-qrels/topics.car17v1.5.benchmarkY1test.txt \
-topicreader Car \
-output runs/run.car-paragraphCorpus.v1.5.bm25+ax.topics.car17v1.5.benchmarkY1test.txt \
-bm25 -axiom -axiom.deterministic -rerankCutoff 20 &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-topics tools/topics-and-qrels/topics.car17v1.5.benchmarkY1test.txt \
-topicreader Car \
-output runs/run.car-paragraphCorpus.v1.5.ql.topics.car17v1.5.benchmarkY1test.txt \
-qld &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-topics tools/topics-and-qrels/topics.car17v1.5.benchmarkY1test.txt \
-topicreader Car \
-output runs/run.car-paragraphCorpus.v1.5.ql+rm3.topics.car17v1.5.benchmarkY1test.txt \
-qld -rm3 &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.car-paragraphCorpus.v1.5/ \
-topics tools/topics-and-qrels/topics.car17v1.5.benchmarkY1test.txt \
-topicreader Car \
-output runs/run.car-paragraphCorpus.v1.5.ql+ax.topics.car17v1.5.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 tools/topics-and-qrels/qrels.car17v1.5.benchmarkY1test.txt runs/run.car-paragraphCorpus.v1.5.bm25.topics.car17v1.5.benchmarkY1test.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank tools/topics-and-qrels/qrels.car17v1.5.benchmarkY1test.txt runs/run.car-paragraphCorpus.v1.5.bm25+rm3.topics.car17v1.5.benchmarkY1test.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank tools/topics-and-qrels/qrels.car17v1.5.benchmarkY1test.txt runs/run.car-paragraphCorpus.v1.5.bm25+ax.topics.car17v1.5.benchmarkY1test.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank tools/topics-and-qrels/qrels.car17v1.5.benchmarkY1test.txt runs/run.car-paragraphCorpus.v1.5.ql.topics.car17v1.5.benchmarkY1test.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank tools/topics-and-qrels/qrels.car17v1.5.benchmarkY1test.txt runs/run.car-paragraphCorpus.v1.5.ql+rm3.topics.car17v1.5.benchmarkY1test.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -m map -c -m recip_rank tools/topics-and-qrels/qrels.car17v1.5.benchmarkY1test.txt runs/run.car-paragraphCorpus.v1.5.ql+ax.topics.car17v1.5.benchmarkY1test.txt
With the above commands, you should be able to reproduce the following results:
MAP | BM25 | +RM3 | +Ax | QL | +RM3 | +Ax |
---|---|---|---|---|---|---|
TREC 2017 CAR: benchmarkY1test (v1.5) | 0.1562 | 0.1290 | 0.1358 | 0.1386 | 0.1085 | 0.1048 |
MRR | BM25 | +RM3 | +Ax | QL | +RM3 | +Ax |
TREC 2017 CAR: benchmarkY1test (v1.5) | 0.2331 | 0.1908 | 0.1949 | 0.2037 | 0.1607 | 0.1524 |