chen459664 commited on
Commit
8908a59
·
verified ·
1 Parent(s): 0dfd8d2

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_2/afrixnli_swa.yaml +4 -0
  2. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_kin.yaml +8 -0
  3. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_twi.yaml +8 -0
  4. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_wol.yaml +8 -0
  5. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_xho.yaml +8 -0
  6. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_yaml +30 -0
  7. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_yor.yaml +8 -0
  8. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_zul.yaml +8 -0
  9. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/utils.py +6 -0
  10. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_ewe.yaml +8 -0
  11. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_fra.yaml +9 -0
  12. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_ibo.yaml +8 -0
  13. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_kin.yaml +9 -0
  14. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_lin.yaml +9 -0
  15. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_lug.yaml +9 -0
  16. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_orm.yaml +8 -0
  17. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_sna.yaml +9 -0
  18. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_sot.yaml +9 -0
  19. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_swa.yaml +9 -0
  20. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_twi.yaml +8 -0
  21. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_wol.yaml +8 -0
  22. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_xho.yaml +9 -0
  23. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_yaml +30 -0
  24. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_yor.yaml +9 -0
  25. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_zul.yaml +8 -0
  26. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/utils.py +19 -0
  27. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_amh.yaml +6 -0
  28. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_eng.yaml +6 -0
  29. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_ewe.yaml +6 -0
  30. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_fra.yaml +6 -0
  31. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_hau.yaml +6 -0
  32. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_ibo.yaml +6 -0
  33. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_kin.yaml +6 -0
  34. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_lin.yaml +6 -0
  35. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_lug.yaml +6 -0
  36. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_orm.yaml +6 -0
  37. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_sna.yaml +6 -0
  38. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_sot.yaml +6 -0
  39. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_swa.yaml +6 -0
  40. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_twi.yaml +6 -0
  41. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_wol.yaml +6 -0
  42. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_xho.yaml +6 -0
  43. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_yaml +30 -0
  44. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_yor.yaml +6 -0
  45. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_zul.yaml +6 -0
  46. lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/utils.py +6 -0
  47. lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_amh.yaml +4 -0
  48. lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_eng.yaml +4 -0
  49. lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_ewe.yaml +4 -0
  50. lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_fra.yaml +4 -0
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_2/afrixnli_swa.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: swa
3
+ include: afrixnli_yaml
4
+ task: afrixnli_swa_prompt_2
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_kin.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: kin
3
+ doc_to_text: "Given the following premise and hypothesis in Kinyarwanda, identify\
4
+ \ if the premise entails, contradicts, or is neutral towards the hypothesis. Please\
5
+ \ respond with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
6
+ \ \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_kin_prompt_3
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_twi.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: twi
3
+ doc_to_text: "Given the following premise and hypothesis in Twi, identify if the premise\
4
+ \ entails, contradicts, or is neutral towards the hypothesis. Please respond with\
5
+ \ exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \n\
6
+ Hypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_twi_prompt_3
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_wol.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: wol
3
+ doc_to_text: "Given the following premise and hypothesis in Wolof, identify if the\
4
+ \ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
5
+ \ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
6
+ \ \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_wol_prompt_3
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_xho.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: xho
3
+ doc_to_text: "Given the following premise and hypothesis in isiXhosa, identify if\
4
+ \ the premise entails, contradicts, or is neutral towards the hypothesis. Please\
5
+ \ respond with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
6
+ \ \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_xho_prompt_3
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_yaml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tag:
2
+ - afrixnli_tasks
3
+ - afrixnli_tasks_prompt_3
4
+ dataset_path: masakhane/afrixnli
5
+ dataset_name: null
6
+ output_type: multiple_choice
7
+ validation_split: validation
8
+ test_split: test
9
+ fewshot_split: validation
10
+ doc_to_target: !function utils.doc_to_target
11
+ doc_to_choice:
12
+ - "entailment"
13
+ - "neutral"
14
+ - "contradiction"
15
+ should_decontaminate: true
16
+ doc_to_decontamination_query: premise
17
+ metric_list:
18
+ - metric: f1
19
+ aggregation: !function utils.weighted_f1_score
20
+ average: weighted
21
+ higher_is_better: True
22
+ ignore_case: true
23
+ ignore_punctuation: true
24
+ - metric: acc
25
+ aggregation: mean
26
+ higher_is_better: true
27
+ ignore_case: true
28
+ ignore_punctuation: true
29
+ metadata:
30
+ version: 1.0
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_yor.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: yor
3
+ doc_to_text: "Given the following premise and hypothesis in Yoruba, identify if the\
4
+ \ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
5
+ \ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
6
+ \ \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_yor_prompt_3
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/afrixnli_zul.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: zul
3
+ doc_to_text: "Given the following premise and hypothesis in Zulu, identify if the\
4
+ \ premise entails, contradicts, or is neutral towards the hypothesis. Please respond\
5
+ \ with exact 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
6
+ \ \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_zul_prompt_3
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_3/utils.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from lm_eval.utils import weighted_f1_score
2
+
3
+
4
+ def doc_to_target(doc):
5
+ replacements = {0: "entailment", 1: "neutral", 2: "contradiction"}
6
+ return replacements[doc["label"]]
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_ewe.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ewe
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Ewe language.\nAnalyze the premise and hypothesis given in Ewe, and determine\
5
+ \ the relationship between them.\n Respond with one of the following options: 'entailment',\
6
+ \ 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_ewe_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_fra.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: fra
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the French language.\nAnalyze the premise and hypothesis given in French, and\
5
+ \ determine the relationship between them.\n Respond with one of the following options:\
6
+ \ 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis:\
7
+ \ {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_fra_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_ibo.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ibo
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Igbo language.\nAnalyze the premise and hypothesis given in Igbo, and determine\
5
+ \ the relationship between them.\n Respond with one of the following options: 'entailment',\
6
+ \ 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_ibo_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_kin.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: kin
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Kinyarwanda language.\nAnalyze the premise and hypothesis given in Kinyarwanda,\
5
+ \ and determine the relationship between them.\n Respond with one of the following\
6
+ \ options: 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
7
+ \ \nHypothesis: {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_kin_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_lin.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: lin
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Lingala language.\nAnalyze the premise and hypothesis given in Lingala, and\
5
+ \ determine the relationship between them.\n Respond with one of the following options:\
6
+ \ 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis:\
7
+ \ {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_lin_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_lug.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: lug
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Luganda language.\nAnalyze the premise and hypothesis given in Luganda, and\
5
+ \ determine the relationship between them.\n Respond with one of the following options:\
6
+ \ 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis:\
7
+ \ {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_lug_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_orm.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: orm
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Oromo language.\nAnalyze the premise and hypothesis given in Oromo, and determine\
5
+ \ the relationship between them.\n Respond with one of the following options: 'entailment',\
6
+ \ 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_orm_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_sna.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: sna
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the chiShona language.\nAnalyze the premise and hypothesis given in chiShona,\
5
+ \ and determine the relationship between them.\n Respond with one of the following\
6
+ \ options: 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
7
+ \ \nHypothesis: {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_sna_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_sot.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: sot
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Sesotho language.\nAnalyze the premise and hypothesis given in Sesotho, and\
5
+ \ determine the relationship between them.\n Respond with one of the following options:\
6
+ \ 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis:\
7
+ \ {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_sot_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_swa.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: swa
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Swahili language.\nAnalyze the premise and hypothesis given in Swahili, and\
5
+ \ determine the relationship between them.\n Respond with one of the following options:\
6
+ \ 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis:\
7
+ \ {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_swa_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_twi.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: twi
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Twi language.\nAnalyze the premise and hypothesis given in Twi, and determine\
5
+ \ the relationship between them.\n Respond with one of the following options: 'entailment',\
6
+ \ 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_twi_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_wol.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: wol
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Wolof language.\nAnalyze the premise and hypothesis given in Wolof, and determine\
5
+ \ the relationship between them.\n Respond with one of the following options: 'entailment',\
6
+ \ 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_wol_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_xho.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: xho
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the isiXhosa language.\nAnalyze the premise and hypothesis given in isiXhosa,\
5
+ \ and determine the relationship between them.\n Respond with one of the following\
6
+ \ options: 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}}\
7
+ \ \nHypothesis: {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_xho_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_yaml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tag:
2
+ - afrixnli_tasks
3
+ - afrixnli_tasks_prompt_4
4
+ dataset_path: masakhane/afrixnli
5
+ dataset_name: null
6
+ output_type: multiple_choice
7
+ validation_split: validation
8
+ test_split: test
9
+ fewshot_split: validation
10
+ doc_to_target: !function utils.doc_to_target
11
+ doc_to_choice:
12
+ - "entailment"
13
+ - "neutral"
14
+ - "contradiction"
15
+ should_decontaminate: true
16
+ doc_to_decontamination_query: premise
17
+ metric_list:
18
+ - metric: f1
19
+ aggregation: !function utils.weighted_f1_score
20
+ average: weighted
21
+ higher_is_better: True
22
+ ignore_case: true
23
+ ignore_punctuation: true
24
+ - metric: acc
25
+ aggregation: mean
26
+ higher_is_better: true
27
+ ignore_case: true
28
+ ignore_punctuation: true
29
+ metadata:
30
+ version: 1.0
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_yor.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: yor
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Yoruba language.\nAnalyze the premise and hypothesis given in Yoruba, and\
5
+ \ determine the relationship between them.\n Respond with one of the following options:\
6
+ \ 'entailment', 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis:\
7
+ \ {{hypothesis}}"
8
+ include: afrixnli_yaml
9
+ task: afrixnli_yor_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/afrixnli_zul.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: zul
3
+ doc_to_text: "You are an expert in Natural Language Inference (NLI) specializing in\
4
+ \ the Zulu language.\nAnalyze the premise and hypothesis given in Zulu, and determine\
5
+ \ the relationship between them.\n Respond with one of the following options: 'entailment',\
6
+ \ 'contradiction', or 'neutral'. \n\nPremise: {{premise}} \nHypothesis: {{hypothesis}}"
7
+ include: afrixnli_yaml
8
+ task: afrixnli_zul_prompt_4
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_4/utils.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from lm_eval.utils import weighted_f1_score
2
+
3
+
4
+ def doc_to_text(doc):
5
+ output = """Please identify whether the premise entails or contradicts the hypothesis in the following premise
6
+ and hypothesis. The answer should be exact entailment, contradiction, or neutral.
7
+
8
+ Premise: {premise}
9
+ Hypothesis: {hypothesis}
10
+
11
+ Is it entailment, contradiction, or neutral?"""
12
+
13
+ text = output.format(premise=doc["premise"], hypothesis=doc["hypothesis"])
14
+ return text
15
+
16
+
17
+ def doc_to_target(doc):
18
+ replacements = {0: "entailment", 1: "neutral", 2: "contradiction"}
19
+ return replacements[doc["label"]]
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_amh.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: amh
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_amh_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_eng.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: eng
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_eng_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_ewe.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ewe
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_ewe_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_fra.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: fra
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_fra_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_hau.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: hau
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_hau_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_ibo.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ibo
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_ibo_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_kin.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: kin
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_kin_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_lin.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: lin
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_lin_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_lug.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: lug
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_lug_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_orm.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: orm
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_orm_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_sna.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: sna
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_sna_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_sot.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: sot
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_sot_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_swa.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: swa
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_swa_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_twi.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: twi
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_twi_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_wol.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: wol
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_wol_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_xho.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: xho
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_xho_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_yaml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tag:
2
+ - afrixnli_tasks
3
+ - afrixnli_tasks_prompt_5
4
+ dataset_path: masakhane/afrixnli
5
+ dataset_name: null
6
+ output_type: multiple_choice
7
+ validation_split: validation
8
+ test_split: test
9
+ fewshot_split: validation
10
+ doc_to_target: !function utils.doc_to_target
11
+ doc_to_choice:
12
+ - "true"
13
+ - "inconclusive"
14
+ - "false"
15
+ should_decontaminate: true
16
+ doc_to_decontamination_query: premise
17
+ metric_list:
18
+ - metric: f1
19
+ aggregation: !function utils.weighted_f1_score
20
+ average: weighted
21
+ higher_is_better: True
22
+ ignore_case: true
23
+ ignore_punctuation: true
24
+ - metric: acc
25
+ aggregation: mean
26
+ higher_is_better: true
27
+ ignore_case: true
28
+ ignore_punctuation: true
29
+ metadata:
30
+ version: 1.0
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_yor.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: yor
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_yor_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/afrixnli_zul.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: zul
3
+ doc_to_text: "Based on the given statement, is the following claim 'true', 'false',\
4
+ \ or 'inconclusive'. \nStatement: {{premise}} \nClaim: {{hypothesis}}"
5
+ include: afrixnli_yaml
6
+ task: afrixnli_zul_prompt_5
lm-evaluation-harness/lm_eval/tasks/afrixnli/direct/prompt_5/utils.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from lm_eval.utils import weighted_f1_score
2
+
3
+
4
+ def doc_to_target(doc):
5
+ replacements = {0: "true", 1: "false", 2: "inconclusive"}
6
+ return replacements[doc["label"]]
lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_amh.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: amh
3
+ include: afrixnli_manual_direct_yaml
4
+ task: afrixnli_manual_direct_amh
lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_eng.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: eng
3
+ include: afrixnli_manual_direct_yaml
4
+ task: afrixnli_manual_direct_eng
lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_ewe.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: ewe
3
+ include: afrixnli_manual_direct_yaml
4
+ task: afrixnli_manual_direct_ewe
lm-evaluation-harness/lm_eval/tasks/afrixnli/lai prompt/direct/afrixnli_manual_direct_fra.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Generated by utils.py
2
+ dataset_name: fra
3
+ include: afrixnli_manual_direct_yaml
4
+ task: afrixnli_manual_direct_fra