Skip to content

Latest commit

 

History

History
111 lines (82 loc) · 5.75 KB

regressions-wt10g.md

File metadata and controls

111 lines (82 loc) · 5.75 KB

Anserini Regressions: Wt10g

Models: various bag-of-words approaches

This page describes regressions for the TREC-9 Web Track and the TREC 2001 Web Track, which uses the Wt10g 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 wt10g

Indexing

Typical indexing command:

target/appassembler/bin/IndexCollection \
  -collection TrecwebCollection \
  -input /path/to/wt10g \
  -index indexes/lucene-index.wt10g/ \
  -generator DefaultLuceneDocumentGenerator \
  -threads 16 -storePositions -storeDocvectors -storeRaw \
  >& logs/log.wt10g &

The directory /path/to/wt10g/ should be the root directory of the Wt10g collection, containing a bunch of subdirectories, WTX001 to WTX104.

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.wt10g/ \
  -topics tools/topics-and-qrels/topics.adhoc.451-550.txt \
  -topicreader Trec \
  -output runs/run.wt10g.bm25.topics.adhoc.451-550.txt \
  -bm25 &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.wt10g/ \
  -topics tools/topics-and-qrels/topics.adhoc.451-550.txt \
  -topicreader Trec \
  -output runs/run.wt10g.bm25+rm3.topics.adhoc.451-550.txt \
  -bm25 -rm3 &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.wt10g/ \
  -topics tools/topics-and-qrels/topics.adhoc.451-550.txt \
  -topicreader Trec \
  -output runs/run.wt10g.bm25+ax.topics.adhoc.451-550.txt \
  -bm25 -axiom -axiom.beta 0.1 -axiom.deterministic -rerankCutoff 20 &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.wt10g/ \
  -topics tools/topics-and-qrels/topics.adhoc.451-550.txt \
  -topicreader Trec \
  -output runs/run.wt10g.ql.topics.adhoc.451-550.txt \
  -qld &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.wt10g/ \
  -topics tools/topics-and-qrels/topics.adhoc.451-550.txt \
  -topicreader Trec \
  -output runs/run.wt10g.ql+rm3.topics.adhoc.451-550.txt \
  -qld -rm3 &

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.wt10g/ \
  -topics tools/topics-and-qrels/topics.adhoc.451-550.txt \
  -topicreader Trec \
  -output runs/run.wt10g.ql+ax.topics.adhoc.451-550.txt \
  -qld -axiom -axiom.beta 0.1 -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 tools/topics-and-qrels/qrels.adhoc.451-550.txt runs/run.wt10g.bm25.topics.adhoc.451-550.txt

tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.adhoc.451-550.txt runs/run.wt10g.bm25+rm3.topics.adhoc.451-550.txt

tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.adhoc.451-550.txt runs/run.wt10g.bm25+ax.topics.adhoc.451-550.txt

tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.adhoc.451-550.txt runs/run.wt10g.ql.topics.adhoc.451-550.txt

tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.adhoc.451-550.txt runs/run.wt10g.ql+rm3.topics.adhoc.451-550.txt

tools/eval/trec_eval.9.0.4/trec_eval -m map -m P.30 tools/topics-and-qrels/qrels.adhoc.451-550.txt runs/run.wt10g.ql+ax.topics.adhoc.451-550.txt

Effectiveness

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

MAP BM25 +RM3 +Ax QL +RM3 +Ax
Wt10g (Topics 451-550) 0.1991 0.2243 0.2134 0.2021 0.2190 0.2266
P30 BM25 +RM3 +Ax QL +RM3 +Ax
Wt10g (Topics 451-550) 0.2211 0.2381 0.2463 0.2180 0.2310 0.2459