-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression and test case for all other Mr. TyDi languages, following #1685. including: - template and yaml files (index stats, MRR@100 and Recall@100) - test cases (size of topics and qrels, doc loading) - unrelated to Mr.TyDi: add the path to `/bin/build.sh` in the readme
- Loading branch information
1 parent
f782151
commit 1514044
Showing
116 changed files
with
57,535 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Anserini: Regressions for [Mr. TyDi (Bengali)](https://github.com/castorini/mr.tydi) | ||
|
||
This page documents regression experiments for [Mr. TyDi (Bengali)](https://github.com/castorini/mr.tydi). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/mrtydi-v1.1-bn.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/mrtydi-v1.1-bn.template) as part of Anserini's regression pipeline, so do not modify this page directly; modify the template instead. | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
nohup sh target/appassembler/bin/IndexCollection -collection MrTyDiCollection \ | ||
-input /path/to/mrtydi-v1.1-bn \ | ||
-index indexes/lucene-index.mrtydi-v1.1-bengali.pos+docvectors+raw \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language bn \ | ||
>& logs/log.mrtydi-v1.1-bn & | ||
``` | ||
|
||
See [this page](https://github.com/castorini/mr.tydi) for more details about the Mr. TyDi corpus. | ||
For additional details, see explanation of [common indexing options](common-indexing-options.md). | ||
|
||
## Retrieval | ||
|
||
After indexing has completed, you should be able to perform retrieval as follows: | ||
|
||
``` | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-bengali.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-bn.train.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.train.txt.gz \ | ||
-language bn -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-bengali.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-bn.dev.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.dev.txt.gz \ | ||
-language bn -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-bengali.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-bn.test.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.test.txt.gz \ | ||
-language bn -bm25 -hits 100 & | ||
``` | ||
|
||
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-bn.train.txt runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.train.txt.gz | ||
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-bn.dev.txt runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.dev.txt.gz | ||
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-bn.test.txt runs/run.mrtydi-v1.1-bn.bm25.topics.mrtydi-v1.1-bn.test.txt.gz | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
MRR@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (Bengali): train](https://github.com/castorini/mr.tydi)| 0.3566 | | ||
[Mr. TyDi (Bengali): dev](https://github.com/castorini/mr.tydi)| 0.3385 | | ||
[Mr. TyDi (Bengali): test](https://github.com/castorini/mr.tydi)| 0.4182 | | ||
|
||
|
||
R@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (Bengali): train](https://github.com/castorini/mr.tydi)| 0.8336 | | ||
[Mr. TyDi (Bengali): dev](https://github.com/castorini/mr.tydi)| 0.8432 | | ||
[Mr. TyDi (Bengali): test](https://github.com/castorini/mr.tydi)| 0.8694 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Anserini: Regressions for [Mr. TyDi (English)](https://github.com/castorini/mr.tydi) | ||
|
||
This page documents regression experiments for [Mr. TyDi (English)](https://github.com/castorini/mr.tydi). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/mrtydi-v1.1-en.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/mrtydi-v1.1-en.template) as part of Anserini's regression pipeline, so do not modify this page directly; modify the template instead. | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
nohup sh target/appassembler/bin/IndexCollection -collection MrTyDiCollection \ | ||
-input /path/to/mrtydi-v1.1-en \ | ||
-index indexes/lucene-index.mrtydi-v1.1-english.pos+docvectors+raw \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language en \ | ||
>& logs/log.mrtydi-v1.1-en & | ||
``` | ||
|
||
See [this page](https://github.com/castorini/mr.tydi) for more details about the Mr. TyDi corpus. | ||
For additional details, see explanation of [common indexing options](common-indexing-options.md). | ||
|
||
## Retrieval | ||
|
||
After indexing has completed, you should be able to perform retrieval as follows: | ||
|
||
``` | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-english.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-en.train.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-en.bm25.topics.mrtydi-v1.1-en.train.txt.gz \ | ||
-language en -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-english.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-en.dev.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-en.bm25.topics.mrtydi-v1.1-en.dev.txt.gz \ | ||
-language en -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-english.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-en.test.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-en.bm25.topics.mrtydi-v1.1-en.test.txt.gz \ | ||
-language en -bm25 -hits 100 & | ||
``` | ||
|
||
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-en.train.txt runs/run.mrtydi-v1.1-en.bm25.topics.mrtydi-v1.1-en.train.txt.gz | ||
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-en.dev.txt runs/run.mrtydi-v1.1-en.bm25.topics.mrtydi-v1.1-en.dev.txt.gz | ||
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-en.test.txt runs/run.mrtydi-v1.1-en.bm25.topics.mrtydi-v1.1-en.test.txt.gz | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
MRR@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (English): train](https://github.com/castorini/mr.tydi)| 0.1592 | | ||
[Mr. TyDi (English): dev](https://github.com/castorini/mr.tydi)| 0.1685 | | ||
[Mr. TyDi (English): test](https://github.com/castorini/mr.tydi)| 0.1404 | | ||
|
||
|
||
R@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (English): train](https://github.com/castorini/mr.tydi)| 0.5785 | | ||
[Mr. TyDi (English): dev](https://github.com/castorini/mr.tydi)| 0.6196 | | ||
[Mr. TyDi (English): test](https://github.com/castorini/mr.tydi)| 0.5365 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Anserini: Regressions for [Mr. TyDi (Finnish)](https://github.com/castorini/mr.tydi) | ||
|
||
This page documents regression experiments for [Mr. TyDi (Finnish)](https://github.com/castorini/mr.tydi). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/mrtydi-v1.1-fi.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/mrtydi-v1.1-fi.template) as part of Anserini's regression pipeline, so do not modify this page directly; modify the template instead. | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
nohup sh target/appassembler/bin/IndexCollection -collection MrTyDiCollection \ | ||
-input /path/to/mrtydi-v1.1-fi \ | ||
-index indexes/lucene-index.mrtydi-v1.1-finnish.pos+docvectors+raw \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language fi \ | ||
>& logs/log.mrtydi-v1.1-fi & | ||
``` | ||
|
||
See [this page](https://github.com/castorini/mr.tydi) for more details about the Mr. TyDi corpus. | ||
For additional details, see explanation of [common indexing options](common-indexing-options.md). | ||
|
||
## Retrieval | ||
|
||
After indexing has completed, you should be able to perform retrieval as follows: | ||
|
||
``` | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-finnish.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-fi.train.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-fi.bm25.topics.mrtydi-v1.1-fi.train.txt.gz \ | ||
-language fi -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-finnish.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-fi.dev.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-fi.bm25.topics.mrtydi-v1.1-fi.dev.txt.gz \ | ||
-language fi -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-finnish.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-fi.test.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-fi.bm25.topics.mrtydi-v1.1-fi.test.txt.gz \ | ||
-language fi -bm25 -hits 100 & | ||
``` | ||
|
||
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-fi.train.txt runs/run.mrtydi-v1.1-fi.bm25.topics.mrtydi-v1.1-fi.train.txt.gz | ||
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-fi.dev.txt runs/run.mrtydi-v1.1-fi.bm25.topics.mrtydi-v1.1-fi.dev.txt.gz | ||
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-fi.test.txt runs/run.mrtydi-v1.1-fi.bm25.topics.mrtydi-v1.1-fi.test.txt.gz | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
MRR@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (Finnish): train](https://github.com/castorini/mr.tydi)| 0.4101 | | ||
[Mr. TyDi (Finnish): dev](https://github.com/castorini/mr.tydi)| 0.4133 | | ||
[Mr. TyDi (Finnish): test](https://github.com/castorini/mr.tydi)| 0.2836 | | ||
|
||
|
||
R@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (Finnish): train](https://github.com/castorini/mr.tydi)| 0.8198 | | ||
[Mr. TyDi (Finnish): dev](https://github.com/castorini/mr.tydi)| 0.8285 | | ||
[Mr. TyDi (Finnish): test](https://github.com/castorini/mr.tydi)| 0.7193 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Anserini: Regressions for [Mr. TyDi (Indonesian)](https://github.com/castorini/mr.tydi) | ||
|
||
This page documents regression experiments for [Mr. TyDi (Indonesian)](https://github.com/castorini/mr.tydi). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/mrtydi-v1.1-id.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/mrtydi-v1.1-id.template) as part of Anserini's regression pipeline, so do not modify this page directly; modify the template instead. | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
nohup sh target/appassembler/bin/IndexCollection -collection MrTyDiCollection \ | ||
-input /path/to/mrtydi-v1.1-id \ | ||
-index indexes/lucene-index.mrtydi-v1.1-indonesian.pos+docvectors+raw \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language id \ | ||
>& logs/log.mrtydi-v1.1-id & | ||
``` | ||
|
||
See [this page](https://github.com/castorini/mr.tydi) for more details about the Mr. TyDi corpus. | ||
For additional details, see explanation of [common indexing options](common-indexing-options.md). | ||
|
||
## Retrieval | ||
|
||
After indexing has completed, you should be able to perform retrieval as follows: | ||
|
||
``` | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-indonesian.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-id.train.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-id.bm25.topics.mrtydi-v1.1-id.train.txt.gz \ | ||
-language id -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-indonesian.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-id.dev.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-id.bm25.topics.mrtydi-v1.1-id.dev.txt.gz \ | ||
-language id -bm25 -hits 100 & | ||
nohup target/appassembler/bin/SearchCollection -index indexes/lucene-index.mrtydi-v1.1-indonesian.pos+docvectors+raw \ | ||
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.mrtydi-v1.1-id.test.txt.gz \ | ||
-output runs/run.mrtydi-v1.1-id.bm25.topics.mrtydi-v1.1-id.test.txt.gz \ | ||
-language id -bm25 -hits 100 & | ||
``` | ||
|
||
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-id.train.txt runs/run.mrtydi-v1.1-id.bm25.topics.mrtydi-v1.1-id.train.txt.gz | ||
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-id.dev.txt runs/run.mrtydi-v1.1-id.bm25.topics.mrtydi-v1.1-id.dev.txt.gz | ||
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-id.test.txt runs/run.mrtydi-v1.1-id.bm25.topics.mrtydi-v1.1-id.test.txt.gz | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
MRR@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (Indonesian): train](https://github.com/castorini/mr.tydi)| 0.2972 | | ||
[Mr. TyDi (Indonesian): dev](https://github.com/castorini/mr.tydi)| 0.2937 | | ||
[Mr. TyDi (Indonesian): test](https://github.com/castorini/mr.tydi)| 0.3762 | | ||
|
||
|
||
R@100 | BM25 | | ||
:---------------------------------------|-----------| | ||
[Mr. TyDi (Indonesian): train](https://github.com/castorini/mr.tydi)| 0.7948 | | ||
[Mr. TyDi (Indonesian): dev](https://github.com/castorini/mr.tydi)| 0.7827 | | ||
[Mr. TyDi (Indonesian): test](https://github.com/castorini/mr.tydi)| 0.8426 | |
Oops, something went wrong.