This page documents BM25 regression experiments for Mr. TyDi (v1.1) — Bengali.
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-bn
Typical indexing command:
target/appassembler/bin/IndexCollection \
-collection MrTyDiCollection \
-input /path/to/mrtydi-v1.1-bn \
-index indexes/lucene-index.mrtydi-v1.1-bengali/ \
-generator DefaultLuceneDocumentGenerator \
-threads 1 -storePositions -storeDocvectors -storeRaw -language bn \
>& logs/log.mrtydi-v1.1-bn &
See this page for more details about the Mr. TyDi corpus. For additional details, see explanation of common indexing options.
After indexing has completed, you should be able to perform retrieval as follows:
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.mrtydi-v1.1-bengali/ \
-topics tools/topics-and-qrels/topics.mrtydi-v1.1-bn.train.txt.gz \
-topicreader TsvInt \
-output runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.train.txt \
-bm25 -hits 100 -language bn &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.mrtydi-v1.1-bengali/ \
-topics tools/topics-and-qrels/topics.mrtydi-v1.1-bn.dev.txt.gz \
-topicreader TsvInt \
-output runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.dev.txt \
-bm25 -hits 100 -language bn &
target/appassembler/bin/SearchCollection \
-index indexes/lucene-index.mrtydi-v1.1-bengali/ \
-topics tools/topics-and-qrels/topics.mrtydi-v1.1-bn.test.txt.gz \
-topicreader TsvInt \
-output runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.test.txt \
-bm25 -hits 100 -language bn &
Evaluation can be performed using trec_eval
:
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m recip_rank -c -m recall.100 tools/topics-and-qrels/qrels.mrtydi-v1.1-bn.train.txt runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.train.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m recip_rank -c -m recall.100 tools/topics-and-qrels/qrels.mrtydi-v1.1-bn.dev.txt runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.dev.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m recip_rank -c -m recall.100 tools/topics-and-qrels/qrels.mrtydi-v1.1-bn.test.txt runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.test.txt
With the above commands, you should be able to reproduce the following results:
MRR@100 | BM25 |
---|---|
Mr. TyDi (Bengali): train | 0.3566 |
Mr. TyDi (Bengali): dev | 0.3385 |
Mr. TyDi (Bengali): test | 0.4182 |
R@100 | BM25 |
Mr. TyDi (Bengali): train | 0.8336 |
Mr. TyDi (Bengali): dev | 0.8432 |
Mr. TyDi (Bengali): test | 0.8694 |