Skip to content

Latest commit

 

History

History
80 lines (64 loc) · 4.7 KB

regressions-ciral-v1.0-ha-en.md

File metadata and controls

80 lines (64 loc) · 4.7 KB

Anserini Regressions: CIRAL (v1.0) — Hausa (English Translation)

This page documents BM25 regression experiments for CIRAL (v1.0) — Hausa with document translations. To be clear, the queries are in English and the corpus is in English (translated with NLLB 1.3B).

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 ciral-v1.0-ha-en

Indexing

Typical indexing command:

bin/run.sh io.anserini.index.IndexCollection \
  -threads 16 \
  -collection MrTyDiCollection \
  -input /path/to/ciral-hausa-english \
  -generator DefaultLuceneDocumentGenerator \
  -index indexes/lucene-index.ciral-v1.0-ha-en/ \
  -storePositions -storeDocvectors -storeRaw \
  >& logs/log.ciral-hausa-english &

See this page for more details about the CIRAL 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.ciral-v1.0-ha-en/ \
  -topics tools/topics-and-qrels/topics.ciral-v1.0-ha-test-a.tsv \
  -topicReader TsvInt \
  -output runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-a.txt \
  -bm25 -hits 1000 &
bin/run.sh io.anserini.search.SearchCollection \
  -index indexes/lucene-index.ciral-v1.0-ha-en/ \
  -topics tools/topics-and-qrels/topics.ciral-v1.0-ha-test-a.tsv \
  -topicReader TsvInt \
  -output runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-a.txt \
  -bm25 -hits 1000 &
bin/run.sh io.anserini.search.SearchCollection \
  -index indexes/lucene-index.ciral-v1.0-ha-en/ \
  -topics tools/topics-and-qrels/topics.ciral-v1.0-ha-test-b.tsv \
  -topicReader TsvInt \
  -output runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-b.txt \
  -bm25 -hits 1000 &

Evaluation can be performed using trec_eval:

bin/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-ha-test-a.tsv runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-a.txt
bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-ha-test-a.tsv runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-a.txt
bin/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-ha-test-a-pools.tsv runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-a.txt
bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-ha-test-a-pools.tsv runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-a.txt
bin/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-ha-test-b.tsv runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-b.txt
bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-ha-test-b.tsv runs/run.ciral-hausa-english.bm25-default.topics.ciral-v1.0-ha-test-b.txt

Effectiveness

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

nDCG@20 BM25 (default)
CIRAL Hausa: Test Set A (Shallow Judgements) 0.1619
CIRAL Hausa: Test Set A (Pools) 0.2142
CIRAL Hausa: Test Set B 0.2124
R@100 BM25 (default)
CIRAL Hausa: Test Set A (Shallow Judgements) 0.4099
CIRAL Hausa: Test Set A (Pools) 0.4039
CIRAL Hausa: Test Set B 0.4394