Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 4.28 KB

regressions-mrtydi-v1.1-ar.md

File metadata and controls

79 lines (61 loc) · 4.28 KB

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

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

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-ar

Indexing

Typical indexing command:

target/appassembler/bin/IndexCollection \
  -collection MrTyDiCollection \
  -input /path/to/mrtydi-v1.1-ar \
  -index indexes/lucene-index.mrtydi-v1.1-arabic/ \
  -generator DefaultLuceneDocumentGenerator \
  -threads 1 -storePositions -storeDocvectors -storeRaw -language ar \
  >& logs/log.mrtydi-v1.1-ar &

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:

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.mrtydi-v1.1-arabic/ \
  -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-ar.train.txt.gz \
  -topicreader TsvInt \
  -output runs/run.mrtydi-v1.1-ar.bm25.topics.mrtydi-v1.1-ar.train.txt \
  -bm25 -hits 100 -language ar &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.mrtydi-v1.1-arabic/ \
  -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-ar.dev.txt.gz \
  -topicreader TsvInt \
  -output runs/run.mrtydi-v1.1-ar.bm25.topics.mrtydi-v1.1-ar.dev.txt \
  -bm25 -hits 100 -language ar &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.mrtydi-v1.1-arabic/ \
  -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-ar.test.txt.gz \
  -topicreader TsvInt \
  -output runs/run.mrtydi-v1.1-ar.bm25.topics.mrtydi-v1.1-ar.test.txt \
  -bm25 -hits 100 -language ar &

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 src/main/resources/topics-and-qrels/qrels.mrtydi-v1.1-ar.train.txt runs/run.mrtydi-v1.1-ar.bm25.topics.mrtydi-v1.1-ar.train.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m recip_rank -c -m recall.100 src/main/resources/topics-and-qrels/qrels.mrtydi-v1.1-ar.dev.txt runs/run.mrtydi-v1.1-ar.bm25.topics.mrtydi-v1.1-ar.dev.txt
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m recip_rank -c -m recall.100 src/main/resources/topics-and-qrels/qrels.mrtydi-v1.1-ar.test.txt runs/run.mrtydi-v1.1-ar.bm25.topics.mrtydi-v1.1-ar.test.txt

Effectiveness

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

MRR@100 BM25
Mr. TyDi (Arabic): train 0.3356
Mr. TyDi (Arabic): dev 0.3462
Mr. TyDi (Arabic): test 0.3682
R@100 BM25
Mr. TyDi (Arabic): train 0.7944
Mr. TyDi (Arabic): dev 0.7872
Mr. TyDi (Arabic): test 0.7928