-
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 monolingual regressions for CIRAL and whitespace analyzer binding…
…s for ha and so
- Loading branch information
1 parent
f053e81
commit d2fb8a5
Showing
16 changed files
with
644 additions
and
3 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
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,62 @@ | ||
# Anserini Regressions: CIRAL (v1.0) — Hausa | ||
|
||
This page documents BM25 monolingual regression experiments for [CIRAL (v1.0) — Hausa](https://github.com/ciralproject/ciral). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../../src/main/resources/regression/ciral-v1.0-ha.yaml). | ||
Note that this page is automatically generated from [this template](../../src/main/resources/docgen/templates/ciral-v1.0-ha.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 | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
target/appassembler/bin/IndexCollection \ | ||
-collection MrTyDiCollection \ | ||
-input /path/to/ciral-hausa \ | ||
-index indexes/lucene-index.ciral-v1.0-ha/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 16 -storePositions -storeDocvectors -storeRaw -language ha \ | ||
>& logs/log.ciral-hausa & | ||
``` | ||
|
||
See [this page](https://github.com/ciralproject/ciral) for more details about the CIRAL corpus. | ||
For additional details, see explanation of [common indexing options](../../docs/common-indexing-options.md). | ||
|
||
## 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-ha/ \ | ||
-topics tools/topics-and-qrels/topics.ciral-v1.0-ha-dev-native.tsv \ | ||
-topicreader TsvInt \ | ||
-output runs/run.ciral-hausa.bm25-default.topics.ciral-v1.0-ha-dev-native.txt \ | ||
-bm25 -hits 1000 -language ha & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-ha-dev.tsv runs/run.ciral-hausa.bm25-default.topics.ciral-v1.0-ha-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 10 -m recip_rank tools/topics-and-qrels/qrels.ciral-v1.0-ha-dev.tsv runs/run.ciral-hausa.bm25-default.topics.ciral-v1.0-ha-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-ha-dev.tsv runs/run.ciral-hausa.bm25-default.topics.ciral-v1.0-ha-dev-native.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| **nDCG@20** | **BM25 (default)**| | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [CIRAL Hausa: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.2039 | | ||
| **MRR@10** | **BM25 (default)**| | ||
| [CIRAL Hausa: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.3153 | | ||
| **R@100** | **BM25 (default)**| | ||
| [CIRAL Hausa: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.2760 | |
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,62 @@ | ||
# Anserini Regressions: CIRAL (v1.0) — Somali | ||
|
||
This page documents BM25 monolingual regression experiments for [CIRAL (v1.0) — Somali](https://github.com/ciralproject/ciral). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../../src/main/resources/regression/ciral-v1.0-so.yaml). | ||
Note that this page is automatically generated from [this template](../../src/main/resources/docgen/templates/ciral-v1.0-so.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-so | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
target/appassembler/bin/IndexCollection \ | ||
-collection MrTyDiCollection \ | ||
-input /path/to/ciral-somali \ | ||
-index indexes/lucene-index.ciral-v1.0-so/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 16 -storePositions -storeDocvectors -storeRaw -language so \ | ||
>& logs/log.ciral-somali & | ||
``` | ||
|
||
See [this page](https://github.com/ciralproject/ciral) for more details about the CIRAL corpus. | ||
For additional details, see explanation of [common indexing options](../../docs/common-indexing-options.md). | ||
|
||
## 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-so/ \ | ||
-topics tools/topics-and-qrels/topics.ciral-v1.0-so-dev-native.tsv \ | ||
-topicreader TsvInt \ | ||
-output runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-so-dev-native.txt \ | ||
-bm25 -hits 1000 -language so & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-so-dev.tsv runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-so-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 10 -m recip_rank tools/topics-and-qrels/qrels.ciral-v1.0-so-dev.tsv runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-so-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-so-dev.tsv runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-so-dev-native.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| **nDCG@20** | **BM25 (default)**| | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [CIRAL Somali: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.1500 | | ||
| **MRR@10** | **BM25 (default)**| | ||
| [CIRAL Somali: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.4000 | | ||
| **R@100** | **BM25 (default)**| | ||
| [CIRAL Somali: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.1850 | |
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,62 @@ | ||
# Anserini Regressions: CIRAL (v1.0) — Swahili | ||
|
||
This page documents BM25 monolingual regression experiments for [CIRAL (v1.0) — Swahili](https://github.com/ciralproject/ciral). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../../src/main/resources/regression/ciral-v1.0-sw.yaml). | ||
Note that this page is automatically generated from [this template](../../src/main/resources/docgen/templates/ciral-v1.0-sw.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-somali \ | ||
-index indexes/lucene-index.ciral-v1.0-sw/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 16 -storePositions -storeDocvectors -storeRaw -language sw \ | ||
>& logs/log.ciral-somali & | ||
``` | ||
|
||
See [this page](https://github.com/ciralproject/ciral) for more details about the CIRAL corpus. | ||
For additional details, see explanation of [common indexing options](../../docs/common-indexing-options.md). | ||
|
||
## 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-dev-native.tsv \ | ||
-topicreader TsvInt \ | ||
-output runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-sw-dev-native.txt \ | ||
-bm25 -hits 1000 -language sw & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-sw-dev.tsv runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-sw-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 10 -m recip_rank tools/topics-and-qrels/qrels.ciral-v1.0-sw-dev.tsv runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-sw-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-sw-dev.tsv runs/run.ciral-somali.bm25-default.topics.ciral-v1.0-sw-dev-native.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| **nDCG@20** | **BM25 (default)**| | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [CIRAL Swahili: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.1812 | | ||
| **MRR@10** | **BM25 (default)**| | ||
| [CIRAL Swahili: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.1681 | | ||
| **R@100** | **BM25 (default)**| | ||
| [CIRAL Swahili: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.4742 | |
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,62 @@ | ||
# Anserini Regressions: CIRAL (v1.0) — Yoruba | ||
|
||
This page documents BM25 monolingual regression experiments for [CIRAL (v1.0) — Yoruba](https://github.com/ciralproject/ciral). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../../src/main/resources/regression/ciral-v1.0-yo.yaml). | ||
Note that this page is automatically generated from [this template](../../src/main/resources/docgen/templates/ciral-v1.0-yo.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-yo | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
target/appassembler/bin/IndexCollection \ | ||
-collection MrTyDiCollection \ | ||
-input /path/to/ciral-yoruba \ | ||
-index indexes/lucene-index.ciral-v1.0-yo/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 16 -storePositions -storeDocvectors -storeRaw -language yo \ | ||
>& logs/log.ciral-yoruba & | ||
``` | ||
|
||
See [this page](https://github.com/ciralproject/ciral) for more details about the CIRAL corpus. | ||
For additional details, see explanation of [common indexing options](../../docs/common-indexing-options.md). | ||
|
||
## 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-yo/ \ | ||
-topics tools/topics-and-qrels/topics.ciral-v1.0-yo-dev-native.tsv \ | ||
-topicreader TsvInt \ | ||
-output runs/run.ciral-yoruba.bm25-default.topics.ciral-v1.0-yo-dev-native.txt \ | ||
-bm25 -hits 1000 -language yo & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m ndcg_cut.20 tools/topics-and-qrels/qrels.ciral-v1.0-yo-dev.tsv runs/run.ciral-yoruba.bm25-default.topics.ciral-v1.0-yo-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 10 -m recip_rank tools/topics-and-qrels/qrels.ciral-v1.0-yo-dev.tsv runs/run.ciral-yoruba.bm25-default.topics.ciral-v1.0-yo-dev-native.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.ciral-v1.0-yo-dev.tsv runs/run.ciral-yoruba.bm25-default.topics.ciral-v1.0-yo-dev-native.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| **nDCG@20** | **BM25 (default)**| | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [CIRAL Yoruba: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.2797 | | ||
| **MRR@10** | **BM25 (default)**| | ||
| [CIRAL Yoruba: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.3833 | | ||
| **R@100** | **BM25 (default)**| | ||
| [CIRAL Yoruba: Dev](https://huggingface.co/datasets/CIRAL/ciral) | 0.5114 | |
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
43 changes: 43 additions & 0 deletions
43
src/main/resources/docgen/templates/ciral-v1.0-ha.template
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,43 @@ | ||
# Anserini Regressions: CIRAL (v1.0) — Hausa | ||
|
||
This page documents BM25 monolingual regression experiments for [CIRAL (v1.0) — Hausa](https://github.com/ciralproject/ciral). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](${yaml}). | ||
Note that this page is automatically generated from [this template](${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 ${test_name} | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
${index_cmds} | ||
``` | ||
|
||
See [this page](https://github.com/ciralproject/ciral) for more details about the CIRAL corpus. | ||
For additional details, see explanation of [common indexing options](${root_path}/docs/common-indexing-options.md). | ||
|
||
## Retrieval | ||
|
||
After indexing has completed, you should be able to perform retrieval as follows: | ||
|
||
``` | ||
${ranking_cmds} | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
${eval_cmds} | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
${effectiveness} |
43 changes: 43 additions & 0 deletions
43
src/main/resources/docgen/templates/ciral-v1.0-so.template
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,43 @@ | ||
# Anserini Regressions: CIRAL (v1.0) — Somali | ||
|
||
This page documents BM25 monolingual regression experiments for [CIRAL (v1.0) — Somali](https://github.com/ciralproject/ciral). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](${yaml}). | ||
Note that this page is automatically generated from [this template](${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 ${test_name} | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
${index_cmds} | ||
``` | ||
|
||
See [this page](https://github.com/ciralproject/ciral) for more details about the CIRAL corpus. | ||
For additional details, see explanation of [common indexing options](${root_path}/docs/common-indexing-options.md). | ||
|
||
## Retrieval | ||
|
||
After indexing has completed, you should be able to perform retrieval as follows: | ||
|
||
``` | ||
${ranking_cmds} | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
${eval_cmds} | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
${effectiveness} |
Oops, something went wrong.