Commit 601be343 authored by Baber's avatar Baber
Browse files

Merge branch 'main' into feature/eval_from_config

parents d0884a96 68c3a811
# Generated by utils.py
dataset_name: orm
include: afrixnli_yaml
task: afrixnli_orm_prompt_2
# Generated by utils.py
dataset_name: sna
include: afrixnli_yaml
task: afrixnli_sna_prompt_2
# Generated by utils.py
dataset_name: sot
include: afrixnli_yaml
task: afrixnli_sot_prompt_2
# Generated by utils.py
dataset_name: swa
include: afrixnli_yaml
task: afrixnli_swa_prompt_2
# Generated by utils.py
dataset_name: twi
include: afrixnli_yaml
task: afrixnli_twi_prompt_2
# Generated by utils.py
dataset_name: wol
include: afrixnli_yaml
task: afrixnli_wol_prompt_2
# Generated by utils.py
dataset_name: xho
include: afrixnli_yaml
task: afrixnli_xho_prompt_2
tag:
- afrixnli_tasks
- afrixnli_tasks_prompt_2
dataset_path: masakhane/afrixnli
dataset_name: null
output_type: multiple_choice
validation_split: validation
test_split: test
fewshot_split: validation
doc_to_text: "{{premise}}\nQuestion: {{hypothesis}} True, False, or Neither?\nAnswer:"
# True = entailment
# False = contradiction
# Neither = neutral
doc_to_target: !function utils.doc_to_target
doc_to_choice:
- "True"
- "Neither"
- "False"
should_decontaminate: true
doc_to_decontamination_query: premise
metric_list:
- metric: f1
aggregation: !function utils.weighted_f1_score
average: weighted
higher_is_better: True
ignore_case: true
ignore_punctuation: true
- metric: acc
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 1.0
# Generated by utils.py
dataset_name: yor
include: afrixnli_yaml
task: afrixnli_yor_prompt_2
# Generated by utils.py
dataset_name: zul
include: afrixnli_yaml
task: afrixnli_zul_prompt_2
from lm_eval.utils import weighted_f1_score
def doc_to_target(doc):
replacements = {0: "True", 1: "Neither", 2: "False"}
return replacements[doc["label"]]
# Generated by utils.py
dataset_name: amh
doc_to_text: "Given the following premise and hypothesis in Amharic, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_amh_prompt_3
# Generated by utils.py
dataset_name: eng
doc_to_text: "Given the following premise and hypothesis in English, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_eng_prompt_3
# Generated by utils.py
dataset_name: ewe
doc_to_text: "Given the following premise and hypothesis in Ewe, identify if the premise\
\ entails, contradicts, or is neutral towards the hypothesis. Please respond with\
\ exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \n\
Hypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_ewe_prompt_3
# Generated by utils.py
dataset_name: fra
doc_to_text: "Given the following premise and hypothesis in French, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_fra_prompt_3
# Generated by utils.py
dataset_name: hau
doc_to_text: "Given the following premise and hypothesis in Hausa, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_hau_prompt_3
# Generated by utils.py
dataset_name: ibo
doc_to_text: "Given the following premise and hypothesis in Igbo, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_ibo_prompt_3
# Generated by utils.py
dataset_name: kin
doc_to_text: "Given the following premise and hypothesis in Kinyarwanda, identify\
\ if the premise entails, contradicts, or is neutral towards the hypothesis. Please\
\ respond with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_kin_prompt_3
# Generated by utils.py
dataset_name: lin
doc_to_text: "Given the following premise and hypothesis in Lingala, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_lin_prompt_3
# Generated by utils.py
dataset_name: lug
doc_to_text: "Given the following premise and hypothesis in Luganda, identify if the\
\ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
\ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
\ \nHypothesis: {{hypothesis}}"
include: afrixnli_yaml
task: afrixnli_lug_prompt_3
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