Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 4.77 KB

regressions-ciral-v1.0-sw.md

File metadata and controls

79 lines (63 loc) · 4.77 KB

Anserini Regressions: CIRAL (v1.0) — Swahili

This page documents BM25 regression experiments for CIRAL (v1.0) — Swahili with query translations. To be clear, the queries are in Swahili (human translations) and the corpus is in Swahili.

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

Indexing

Typical indexing command:

target/appassembler/bin/IndexCollection \
  -collection MrTyDiCollection \
  -input /path/to/ciral-swahili \
  -generator DefaultLuceneDocumentGenerator \
  -index indexes/lucene-index.ciral-v1.0-sw/ \
  -threads 16 -storePositions -storeDocvectors -storeRaw -language sw \
  >& logs/log.ciral-swahili &

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:

target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.ciral-v1.0-sw/ \
  -topics tools/topics-and-qrels/topics.ciral-v1.0-sw-test-a-native.tsv \
  -topicReader TsvInt \
  -output runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-a-native.txt \
  -bm25 -hits 1000 -language sw &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.ciral-v1.0-sw/ \
  -topics tools/topics-and-qrels/topics.ciral-v1.0-sw-test-a-native.tsv \
  -topicReader TsvInt \
  -output runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-a-native.txt \
  -bm25 -hits 1000 -language sw &
target/appassembler/bin/SearchCollection \
  -index indexes/lucene-index.ciral-v1.0-sw/ \
  -topics tools/topics-and-qrels/topics.ciral-v1.0-sw-test-b-native.tsv \
  -topicReader TsvInt \
  -output runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-b-native.txt \
  -bm25 -hits 1000 -language sw &

Evaluation can be performed using trec_eval:

target/appassembler/bin/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-sw-test-a.tsv runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-a-native.txt
target/appassembler/bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-sw-test-a.tsv runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-a-native.txt
target/appassembler/bin/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-sw-test-a-pools.tsv runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-a-native.txt
target/appassembler/bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-sw-test-a-pools.tsv runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-a-native.txt
target/appassembler/bin/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-sw-test-b.tsv runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-b-native.txt
target/appassembler/bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-sw-test-b.tsv runs/run.ciral-swahili.bm25-default.topics.ciral-v1.0-sw-test-b-native.txt

Effectiveness

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

nDCG@20 BM25 (default)
CIRAL Swahili: Test Set A (Shallow Judgements) 0.1720
CIRAL Swahili: Test Set A (Pools) 0.1500
CIRAL Swahili: Test Set B 0.1727
R@100 BM25 (default)
CIRAL Swahili: Test Set A (Shallow Judgements) 0.4161
CIRAL Swahili: Test Set A (Pools) 0.2430
CIRAL Swahili: Test Set B 0.4166