-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression for HC4 monolingual retrieval BM25
* index neuclir * refactor * hc4 regression * updates * updates * generate md * refactor hc4 regressions * update readme
- Loading branch information
1 parent
94bbb44
commit d2fbe67
Showing
19 changed files
with
1,753 additions
and
0 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,64 @@ | ||
# Anserini Regressions: HC4 (v1.0) — Persian | ||
|
||
This page documents BM25 regression experiments for [HC4 (v1.0) — Persian](https://github.com/hltcoe/HC4). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/hc4-v1.0-fa.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/hc4-v1.0-fa.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 hc4-v1.0-fa | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
target/appassembler/bin/IndexCollection \ | ||
-collection NeuClirCollection \ | ||
-input /path/to/hc4-v1.0-fas \ | ||
-index indexes/lucene-index.hc4-v1.0-persian/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language fa \ | ||
>& logs/log.hc4-v1.0-fas & | ||
``` | ||
|
||
See [this page](https://github.com/hltcoe/HC4) for more details about the HC4 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: | ||
|
||
``` | ||
target/appassembler/bin/SearchCollection \ | ||
-index indexes/lucene-index.hc4-v1.0-persian/ \ | ||
-topics src/main/resources/topics-and-qrels/topics.hc4-v1.0-fa.dev.title.tsv.gz \ | ||
-topicreader TsvInt \ | ||
-output runs/run.hc4-v1.0-fas.bm25.topics.hc4-v1.0-fa.dev.title.txt \ | ||
-bm25 -hits 100 -language fa & | ||
target/appassembler/bin/SearchCollection \ | ||
-index indexes/lucene-index.hc4-v1.0-persian/ \ | ||
-topics src/main/resources/topics-and-qrels/topics.hc4-v1.0-fa.dev.desc.tsv.gz \ | ||
-topicreader TsvInt \ | ||
-output runs/run.hc4-v1.0-fas.bm25.topics.hc4-v1.0-fa.dev.desc.txt \ | ||
-bm25 -hits 100 -language fa & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m map src/main/resources/topics-and-qrels/qrels.hc4-v1.0-fa.dev.txt runs/run.hc4-v1.0-fas.bm25.topics.hc4-v1.0-fa.dev.title.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m map src/main/resources/topics-and-qrels/qrels.hc4-v1.0-fa.dev.txt runs/run.hc4-v1.0-fas.bm25.topics.hc4-v1.0-fa.dev.desc.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| MAP | BM25 | | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [HC4 (Persian): dev-topic title](https://github.com/hltcoe/HC4) | 0.2919 | | ||
| [HC4 (Persian): dev-topic description](https://github.com/hltcoe/HC4) | 0.3188 | |
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,64 @@ | ||
# Anserini Regressions: HC4 (v1.0) — Russian | ||
|
||
This page documents BM25 regression experiments for [HC4 (v1.0) — Russian](https://github.com/hltcoe/HC4). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/hc4-v1.0-ru.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/hc4-v1.0-ru.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 hc4-v1.0-ru | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
target/appassembler/bin/IndexCollection \ | ||
-collection NeuClirCollection \ | ||
-input /path/to/hc4-v1.0-rus \ | ||
-index indexes/lucene-index.hc4-v1.0-russian/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language ru \ | ||
>& logs/log.hc4-v1.0-rus & | ||
``` | ||
|
||
See [this page](https://github.com/hltcoe/HC4) for more details about the HC4 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: | ||
|
||
``` | ||
target/appassembler/bin/SearchCollection \ | ||
-index indexes/lucene-index.hc4-v1.0-russian/ \ | ||
-topics src/main/resources/topics-and-qrels/topics.hc4-v1.0-ru.dev.title.tsv.gz \ | ||
-topicreader TsvInt \ | ||
-output runs/run.hc4-v1.0-rus.bm25.topics.hc4-v1.0-ru.dev.title.txt \ | ||
-bm25 -hits 100 -language ru & | ||
target/appassembler/bin/SearchCollection \ | ||
-index indexes/lucene-index.hc4-v1.0-russian/ \ | ||
-topics src/main/resources/topics-and-qrels/topics.hc4-v1.0-ru.dev.desc.tsv.gz \ | ||
-topicreader TsvInt \ | ||
-output runs/run.hc4-v1.0-rus.bm25.topics.hc4-v1.0-ru.dev.desc.txt \ | ||
-bm25 -hits 100 -language ru & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m map src/main/resources/topics-and-qrels/qrels.hc4-v1.0-ru.dev.txt runs/run.hc4-v1.0-rus.bm25.topics.hc4-v1.0-ru.dev.title.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m map src/main/resources/topics-and-qrels/qrels.hc4-v1.0-ru.dev.txt runs/run.hc4-v1.0-rus.bm25.topics.hc4-v1.0-ru.dev.desc.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| MAP | BM25 | | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [HC4 (Russian): dev-topic title](https://github.com/hltcoe/HC4) | 0.2767 | | ||
| [HC4 (Russian): dev-topic description](https://github.com/hltcoe/HC4) | 0.2321 | |
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,64 @@ | ||
# Anserini Regressions: HC4 (v1.0) — Chinese | ||
|
||
This page documents BM25 regression experiments for [HC4 (v1.0) — Chinese](https://github.com/hltcoe/HC4). | ||
|
||
The exact configurations for these regressions are stored in [this YAML file](../src/main/resources/regression/hc4-v1.0-zh.yaml). | ||
Note that this page is automatically generated from [this template](../src/main/resources/docgen/templates/hc4-v1.0-zh.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 hc4-v1.0-zh | ||
``` | ||
|
||
## Indexing | ||
|
||
Typical indexing command: | ||
|
||
``` | ||
target/appassembler/bin/IndexCollection \ | ||
-collection NeuClirCollection \ | ||
-input /path/to/hc4-v1.0-zho \ | ||
-index indexes/lucene-index.hc4-v1.0-chinese/ \ | ||
-generator DefaultLuceneDocumentGenerator \ | ||
-threads 1 -storePositions -storeDocvectors -storeRaw -language zh \ | ||
>& logs/log.hc4-v1.0-zho & | ||
``` | ||
|
||
See [this page](https://github.com/hltcoe/HC4) for more details about the HC4 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: | ||
|
||
``` | ||
target/appassembler/bin/SearchCollection \ | ||
-index indexes/lucene-index.hc4-v1.0-chinese/ \ | ||
-topics src/main/resources/topics-and-qrels/topics.hc4-v1.0-zh.dev.title.tsv.gz \ | ||
-topicreader TsvInt \ | ||
-output runs/run.hc4-v1.0-zho.bm25.topics.hc4-v1.0-zh.dev.title.txt \ | ||
-bm25 -hits 100 -language zh & | ||
target/appassembler/bin/SearchCollection \ | ||
-index indexes/lucene-index.hc4-v1.0-chinese/ \ | ||
-topics src/main/resources/topics-and-qrels/topics.hc4-v1.0-zh.dev.desc.tsv.gz \ | ||
-topicreader TsvInt \ | ||
-output runs/run.hc4-v1.0-zho.bm25.topics.hc4-v1.0-zh.dev.desc.txt \ | ||
-bm25 -hits 100 -language zh & | ||
``` | ||
|
||
Evaluation can be performed using `trec_eval`: | ||
|
||
``` | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m map src/main/resources/topics-and-qrels/qrels.hc4-v1.0-zh.dev.txt runs/run.hc4-v1.0-zho.bm25.topics.hc4-v1.0-zh.dev.title.txt | ||
tools/eval/trec_eval.9.0.4/trec_eval -c -M 100 -m map src/main/resources/topics-and-qrels/qrels.hc4-v1.0-zh.dev.txt runs/run.hc4-v1.0-zho.bm25.topics.hc4-v1.0-zh.dev.desc.txt | ||
``` | ||
|
||
## Effectiveness | ||
|
||
With the above commands, you should be able to reproduce the following results: | ||
|
||
| MAP | BM25 | | ||
|:-------------------------------------------------------------------------------------------------------------|-----------| | ||
| [HC4 (Chinese): dev-topic title](https://github.com/hltcoe/HC4) | 0.2914 | | ||
| [HC4 (Chinese): dev-topic description](https://github.com/hltcoe/HC4) | 0.1983 | |
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: HC4 (v1.0) — Persian | ||
|
||
This page documents BM25 regression experiments for [HC4 (v1.0) — Persian](https://github.com/hltcoe/HC4). | ||
|
||
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/hltcoe/HC4) for more details about the HC4 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: | ||
|
||
``` | ||
${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} |
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: HC4 (v1.0) — Russian | ||
|
||
This page documents BM25 regression experiments for [HC4 (v1.0) — Russian](https://github.com/hltcoe/HC4). | ||
|
||
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/hltcoe/HC4) for more details about the HC4 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: | ||
|
||
``` | ||
${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} |
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: HC4 (v1.0) — Chinese | ||
|
||
This page documents BM25 regression experiments for [HC4 (v1.0) — Chinese](https://github.com/hltcoe/HC4). | ||
|
||
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/hltcoe/HC4) for more details about the HC4 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: | ||
|
||
``` | ||
${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} |
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,45 @@ | ||
--- | ||
corpus: hc4-v1.0-fa | ||
corpus_path: collections/multilingual/hc4-v1.0-fa/ | ||
|
||
index_path: indexes/lucene-index.hc4-v1.0-persian/ | ||
collection_class: NeuClirCollection | ||
generator_class: DefaultLuceneDocumentGenerator | ||
index_threads: 1 | ||
index_options: -storePositions -storeDocvectors -storeRaw -language fa | ||
index_stats: | ||
documents: 486486 | ||
documents (non-empty): 486486 | ||
|
||
metrics: | ||
- metric: MAP | ||
command: tools/eval/trec_eval.9.0.4/trec_eval | ||
params: -c -M 100 -m map | ||
separator: "\t" | ||
parse_index: 2 | ||
metric_precision: 4 | ||
can_combine: true | ||
|
||
topic_reader: TsvInt | ||
topic_root: src/main/resources/topics-and-qrels/ | ||
qrels_root: src/main/resources/topics-and-qrels/ | ||
topics: | ||
- name: "[HC4 (Persian): dev-topic title](https://github.com/hltcoe/HC4)" | ||
id: dev_title | ||
path: topics.hc4-v1.0-fa.dev.title.tsv.gz | ||
qrel: qrels.hc4-v1.0-fa.dev.txt | ||
- name: "[HC4 (Persian): dev-topic description](https://github.com/hltcoe/HC4)" | ||
id: dev_description | ||
path: topics.hc4-v1.0-fa.dev.desc.tsv.gz | ||
qrel: qrels.hc4-v1.0-fa.dev.txt | ||
|
||
|
||
models: | ||
- name: bm25 | ||
display: BM25 | ||
params: -bm25 -hits 100 -language fa | ||
results: | ||
MAP: | ||
- 0.2919 | ||
- 0.3188 | ||
|
Oops, something went wrong.