Skip to content

Latest commit

 

History

History
179 lines (148 loc) · 12.1 KB

regressions-cw12b13.md

File metadata and controls

179 lines (148 loc) · 12.1 KB

Anserini Regressions: ClueWeb12-B13

Models: various bag-of-words approaches

This page describes regressions for the Web Tracks from TREC 2013 and 2014 using the ClueWeb12-B13 collection. 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 cw12b13

Indexing

Typical indexing command:

target/appassembler/bin/IndexCollection \
  -collection ClueWeb12Collection \
  -input /path/to/cw12b13 \
  -index indexes/lucene-index.cw12b13/ \
  -generator DefaultLuceneDocumentGenerator \
  -threads 44 -storeRaw \
  >& logs/log.cw12b13 &

The directory /path/to/cw12-b13/ should be the root directory of the ClueWeb12-B13 collection, i.e., /path/to/cw12-b13/ should bring up a bunch of subdirectories, ClueWeb12_00 to ClueWeb12_18.

For additional details, see explanation of common indexing options.

Retrieval

Topics and qrels are stored here, which is linked to the Anserini repo as a submodule. They are downloaded from NIST:

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

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.201-250.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.bm25.topics.web.201-250.txt \
  -bm25 &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.251-300.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.bm25.topics.web.251-300.txt \
  -bm25 &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.201-250.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.bm25+rm3.topics.web.201-250.txt \
  -bm25 -rm3 -collection ClueWeb09Collection &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.251-300.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.bm25+rm3.topics.web.251-300.txt \
  -bm25 -rm3 -collection ClueWeb09Collection &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.201-250.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.bm25+ax.topics.web.201-250.txt \
  -bm25 -axiom -axiom.deterministic -axiom.beta 0.1 -rerankCutoff 20 -collection ClueWeb09Collection &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.251-300.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.bm25+ax.topics.web.251-300.txt \
  -bm25 -axiom -axiom.deterministic -axiom.beta 0.1 -rerankCutoff 20 -collection ClueWeb09Collection &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.201-250.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.ql.topics.web.201-250.txt \
  -qld &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.251-300.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.ql.topics.web.251-300.txt \
  -qld &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.201-250.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.ql+rm3.topics.web.201-250.txt \
  -qld -rm3 -collection ClueWeb09Collection &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.251-300.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.ql+rm3.topics.web.251-300.txt \
  -qld -rm3 -collection ClueWeb09Collection &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.201-250.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.ql+ax.topics.web.201-250.txt \
  -qld -axiom -axiom.deterministic -axiom.beta 0.1 -rerankCutoff 20 -collection ClueWeb09Collection &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.cw12b13/ \
  -topics tools/topics-and-qrels/topics.web.251-300.txt \
  -topicreader Webxml \
  -output runs/run.cw12b13.ql+ax.topics.web.251-300.txt \
  -qld -axiom -axiom.deterministic -axiom.beta 0.1 -rerankCutoff 20 -collection ClueWeb09Collection &

Evaluation can be performed using trec_eval and gdeval.pl:

tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.bm25.topics.web.201-250.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.bm25.topics.web.201-250.txt
tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.bm25.topics.web.251-300.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.bm25.topics.web.251-300.txt

tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.bm25+rm3.topics.web.201-250.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.bm25+rm3.topics.web.201-250.txt
tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.bm25+rm3.topics.web.251-300.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.bm25+rm3.topics.web.251-300.txt

tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.bm25+ax.topics.web.201-250.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.bm25+ax.topics.web.201-250.txt
tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.bm25+ax.topics.web.251-300.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.bm25+ax.topics.web.251-300.txt

tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.ql.topics.web.201-250.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.ql.topics.web.201-250.txt
tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.ql.topics.web.251-300.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.ql.topics.web.251-300.txt

tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.ql+rm3.topics.web.201-250.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.ql+rm3.topics.web.201-250.txt
tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.ql+rm3.topics.web.251-300.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.ql+rm3.topics.web.251-300.txt

tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.ql+ax.topics.web.201-250.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.201-250.txt runs/run.cw12b13.ql+ax.topics.web.201-250.txt
tools/eval/gdeval.pl tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.ql+ax.topics.web.251-300.txt
tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.web.251-300.txt runs/run.cw12b13.ql+ax.topics.web.251-300.txt

Effectiveness

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

MAP BM25 +RM3 +Ax QL +RM3 +Ax
TREC 2013 Web Track (Topics 201-250) 0.0468 0.0407 0.0424 0.0397 0.0321 0.0354
TREC 2014 Web Track (Topics 251-300) 0.0224 0.0211 0.0179 0.0235 0.0200 0.0186
P30 BM25 +RM3 +Ax QL +RM3 +Ax
TREC 2013 Web Track (Topics 201-250) 0.2107 0.1640 0.1733 0.1773 0.1513 0.1553
TREC 2014 Web Track (Topics 251-300) 0.1273 0.1207 0.1140 0.1373 0.1173 0.1180
nDCG@20 BM25 +RM3 +Ax QL +RM3 +Ax
TREC 2013 Web Track (Topics 201-250) 0.1289 0.1109 0.1253 0.1104 0.0933 0.1116
TREC 2014 Web Track (Topics 251-300) 0.1183 0.1078 0.0992 0.1176 0.1003 0.0975
ERR@20 BM25 +RM3 +Ax QL +RM3 +Ax
TREC 2013 Web Track (Topics 201-250) 0.0838 0.0745 0.0951 0.0767 0.0548 0.0761
TREC 2014 Web Track (Topics 251-300) 0.1198 0.1064 0.0936 0.1091 0.0926 0.0911

Reproduction Log*