Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 4.05 KB

regressions-mrtydi-v1.1-te.md

File metadata and controls

76 lines (60 loc) · 4.05 KB

Anserini Regressions: Mr. TyDi (v1.1) — Telugu

This page documents BM25 regression experiments for Mr. TyDi (v1.1) — Telugu.

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 mrtydi-v1.1-te

Indexing

Typical indexing command:

bin/run.sh io.anserini.index.IndexCollection \
  -collection MrTyDiCollection \
  -input /path/to/mrtydi-v1.1-te \
  -generator DefaultLuceneDocumentGenerator \
  -index indexes/lucene-index.mrtydi-v1.1-telugu/ \
  -threads 1 -storePositions -storeDocvectors -storeRaw -language te \
  >& logs/log.mrtydi-v1.1-te &

See this page for more details about the Mr. TyDi corpus. For additional details, see explanation of common indexing options.

Retrieval

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

bin/run.sh io.anserini.search.SearchCollection \
  -index indexes/lucene-index.mrtydi-v1.1-telugu/ \
  -topics tools/topics-and-qrels/topics.mrtydi-v1.1-te.train.txt.gz \
  -topicReader TsvInt \
  -output runs/run.mrtydi-v1.1-te.bm25.topics.mrtydi-v1.1-te.train.txt \
  -bm25 -hits 100 -language te &
bin/run.sh io.anserini.search.SearchCollection \
  -index indexes/lucene-index.mrtydi-v1.1-telugu/ \
  -topics tools/topics-and-qrels/topics.mrtydi-v1.1-te.dev.txt.gz \
  -topicReader TsvInt \
  -output runs/run.mrtydi-v1.1-te.bm25.topics.mrtydi-v1.1-te.dev.txt \
  -bm25 -hits 100 -language te &
bin/run.sh io.anserini.search.SearchCollection \
  -index indexes/lucene-index.mrtydi-v1.1-telugu/ \
  -topics tools/topics-and-qrels/topics.mrtydi-v1.1-te.test.txt.gz \
  -topicReader TsvInt \
  -output runs/run.mrtydi-v1.1-te.bm25.topics.mrtydi-v1.1-te.test.txt \
  -bm25 -hits 100 -language te &

Evaluation can be performed using trec_eval:

bin/trec_eval -c -M 100 -m recip_rank -c -m recall.100 tools/topics-and-qrels/qrels.mrtydi-v1.1-te.train.txt runs/run.mrtydi-v1.1-te.bm25.topics.mrtydi-v1.1-te.train.txt
bin/trec_eval -c -M 100 -m recip_rank -c -m recall.100 tools/topics-and-qrels/qrels.mrtydi-v1.1-te.dev.txt runs/run.mrtydi-v1.1-te.bm25.topics.mrtydi-v1.1-te.dev.txt
bin/trec_eval -c -M 100 -m recip_rank -c -m recall.100 tools/topics-and-qrels/qrels.mrtydi-v1.1-te.test.txt runs/run.mrtydi-v1.1-te.bm25.topics.mrtydi-v1.1-te.test.txt

Effectiveness

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

MRR@100 BM25
Mr. TyDi (Telugu): train 0.4204
Mr. TyDi (Telugu): dev 0.4269
Mr. TyDi (Telugu): test 0.5283
R@100 BM25
Mr. TyDi (Telugu): train 0.8229
Mr. TyDi (Telugu): dev 0.8362
Mr. TyDi (Telugu): test 0.8971