Anserini: Regressions for Disks 4 & 5 (Robust04)
This page describes regressions for the TREC 2004 Robust Track, which uses TREC Disks 4 & 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.
Typical indexing command:
nohup sh target/appassembler/bin/IndexCollection -collection TrecCollection \
-input /path/to/robust04 \
-index indexes/lucene-index.robust04.pos+docvectors+raw \
-generator DefaultLuceneDocumentGenerator \
-threads 16 -storePositions -storeDocvectors -storeRaw \
>& logs/log.robust04 &
The directory /path/to/disk45/
should be the root directory of TREC Disks 4 & 5; inside each there should be subdirectories like ft
, fr94
.
Note that Anserini ignores the cr
folder when indexing, which is the standard configuration.
For additional details, see explanation of common indexing options.
Topics and qrels are stored in src/main/resources/topics-and-qrels/
, downloaded from NIST:
topics.robust04.txt
: topics for the TREC 2004 Robust Track (Topics 301-450 & 601-700)qrels.robust04.txt
: qrels for the TREC 2004 Robust Track (Topics 301-450 & 601-700)
After indexing has completed, you should be able to perform retrieval as follows:
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.robust04.pos+docvectors+raw \
-topicreader Trec -topics src/main/resources/topics-and-qrels/topics.robust04.txt \
-output runs/run.robust04.bm25.topics.robust04.txt \
-bm25 &
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.robust04.pos+docvectors+raw \
-topicreader Trec -topics src/main/resources/topics-and-qrels/topics.robust04.txt \
-output runs/run.robust04.bm25+rm3.topics.robust04.txt \
-bm25 -rm3 &
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.robust04.pos+docvectors+raw \
-topicreader Trec -topics src/main/resources/topics-and-qrels/topics.robust04.txt \
-output runs/run.robust04.bm25+ax.topics.robust04.txt \
-bm25 -axiom -axiom.deterministic -rerankCutoff 20 &
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.robust04.pos+docvectors+raw \
-topicreader Trec -topics src/main/resources/topics-and-qrels/topics.robust04.txt \
-output runs/run.robust04.ql.topics.robust04.txt \
-qld &
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.robust04.pos+docvectors+raw \
-topicreader Trec -topics src/main/resources/topics-and-qrels/topics.robust04.txt \
-output runs/run.robust04.ql+rm3.topics.robust04.txt \
-qld -rm3 &
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.robust04.pos+docvectors+raw \
-topicreader Trec -topics src/main/resources/topics-and-qrels/topics.robust04.txt \
-output runs/run.robust04.ql+ax.topics.robust04.txt \
-qld -axiom -axiom.deterministic -rerankCutoff 20 &
Evaluation can be performed using trec_eval
:
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 src/main/resources/topics-and-qrels/qrels.robust04.txt runs/run.robust04.bm25.topics.robust04.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 src/main/resources/topics-and-qrels/qrels.robust04.txt runs/run.robust04.bm25+rm3.topics.robust04.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 src/main/resources/topics-and-qrels/qrels.robust04.txt runs/run.robust04.bm25+ax.topics.robust04.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 src/main/resources/topics-and-qrels/qrels.robust04.txt runs/run.robust04.ql.topics.robust04.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 src/main/resources/topics-and-qrels/qrels.robust04.txt runs/run.robust04.ql+rm3.topics.robust04.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 src/main/resources/topics-and-qrels/qrels.robust04.txt runs/run.robust04.ql+ax.topics.robust04.txt
With the above commands, you should be able to replicate the following results:
MAP | BM25 | +RM3 | +Ax | QL | +RM3 | +Ax |
---|---|---|---|---|---|---|
TREC 2004 Robust Track Topics | 0.2531 | 0.2903 | 0.2896 | 0.2467 | 0.2747 | 0.2774 |
P30 | BM25 | +RM3 | +Ax | QL | +RM3 | +Ax |
---|---|---|---|---|---|---|
TREC 2004 Robust Track Topics | 0.3102 | 0.3365 | 0.3333 | 0.3079 | 0.3232 | 0.3229 |
- Results replicated by @chriskamphuis on 2018-12-18 (commit
a15235
) - Results replicated by @kelvin-jiang on 2019-09-08 (commit
a1892ae
) - Results replicated by @JMMackenzie on 2020-01-21 (commit
f63cd22
) - Results replicated by @nikhilro on 2020-01-26 (commit
d5ee069
) - Results replicated by @edwinzhng on 2020-01-26 (commit
7b76dfb
) - Results replicated by @yuki617 on 2020-05-17 (commit
cee4463
) - Results replicated by @x65han on 2020-05-19 (commit
33b0684
) - Results replicated by @yxzhu16 on 2020-07-17 (commit
fad12be
)