"vscode:/vscode.git/clone" did not exist on "abfc73d31ed41e0f858199d0d3f6cff882c1c81d"
Unverified Commit 72f5f4b1 authored by Jess's avatar Jess Committed by GitHub
Browse files

Merge pull request #1 from JessicaOjo/afrixnli

Afrixnli task
parents 7fe2b93c ee1f296e
# XNLIeu
### Paper
Title: XNLIeu: a dataset for cross-lingual NLI in Basque
Abstract: https://arxiv.org/abs/2404.06996
XNLI is a popular Natural Language Inference (NLI) benchmark widely used to evaluate cross-lingual Natural Language Understanding (NLU) capabilities across languages. In this paper, we expand XNLI to include Basque, a low-resource language that can greatly benefit from transfer-learning approaches. The new dataset, dubbed XNLIeu, has been developed by first machine-translating the English XNLI corpus into Basque, followed by a manual post-edition step. We have conducted a series of experiments using mono- and multilingual LLMs to assess a) the effect of professional post-edition on the MT system; b) the best cross-lingual strategy for NLI in Basque; and c) whether the choice of the best cross-lingual strategy is influenced by the fact that the dataset is built by translation. The results show that post-edition is necessary and that the translate-train cross-lingual strategy obtains better results overall, although the gain is lower when tested in a dataset that has been built natively from scratch. Our code and datasets are publicly available under open licenses at https://github.com/hitz-zentroa/xnli-eu.
Homepage: https://github.com/hitz-zentroa/xnli-eu
### Citation
```bibtex
@misc{heredia2024xnlieu,
title={XNLIeu: a dataset for cross-lingual NLI in Basque},
author={Maite Heredia and Julen Etxaniz and Muitze Zulaika and Xabier Saralegi and Jeremy Barnes and Aitor Soroa},
year={2024},
eprint={2404.06996},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
### Groups and Tasks
#### Groups
* `xnli_eu_mt_native`: Includes MT and Native variants of the XNLIeu dataset.
#### Tasks
* `xnli_eu`: XNLI in Basque postedited from MT.
* `xnli_eu_mt`: XNLI in Basque machine translated from English.
* `xnli_eu_native`: XNLI in Basque natively created.
### Checklist
For adding novel benchmarks/datasets to the library:
* [x] Is the task an existing benchmark in the literature?
* [x] Have you referenced the original paper that introduced the task?
* [x] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test?
If other tasks on this dataset are already supported:
* [ ] Is the "Main" variant of this task clearly denoted?
* [ ] Have you provided a short sentence in a README on what each new variant adds / evaluates?
* [ ] Have you noted which, if any, published evaluation setups are matched by this variant?
# Generated by utils.py
dataset_name: amh
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_amh
group:
- xnli
- afrixnli
task: null
dataset_path: masakhane/afrixnli
dataset_name: null
output_type: generate_until
validation_split: validation
test_split: test
fewshot_split: validation
doc_to_text: null
doc_to_target: label
doc_to_choice: null
metric_list:
- metric: f1
- metric: acc
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
regexes_to_ignore:
- ","
- "\\$"
metadata:
version: 1.0
include: afrixnli_common_yaml
task: afrixnli_eng
dataset_name: eng
doc_to_target: label
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment, contradiction, or neutral?"
# Generated by utils.py
dataset_name: ewe
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_ewe
# Generated by utils.py
dataset_name: fra
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_fra
# Generated by utils.py
dataset_name: hau
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_hau
# Generated by utils.py
dataset_name: ibo
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_ibo
# Generated by utils.py
dataset_name: kin
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_kin
# Generated by utils.py
dataset_name: lin
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_lin
# Generated by utils.py
dataset_name: lug
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_lug
# Generated by utils.py
dataset_name: orm
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_orm
# Generated by utils.py
dataset_name: sna
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_sna
# Generated by utils.py
dataset_name: sot
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_sot
# Generated by utils.py
dataset_name: swa
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_swa
# Generated by utils.py
dataset_name: twi
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_twi
# Generated by utils.py
dataset_name: wol
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_wol
# Generated by utils.py
dataset_name: xho
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_xho
# Generated by utils.py
dataset_name: yor
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_yor
# Generated by utils.py
dataset_name: zul
doc_to_target: '{{label}}'
doc_to_text: "Premise: {{premise}} \nHypothesis: {{hypothesis}} \nIs it entailment,\
\ contradiction, or neutral?"
include: afrixnli_common_yaml
task: afrixnli_zul
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment