Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
dade45c6
"src/include/ConstantTensorDescriptor.hpp" did not exist on "21c918162e81211d2b7ec3a555accef1235957eb"
Commit
dade45c6
authored
May 13, 2024
by
JessicaOjo
Browse files
add lin to utils
parent
909b7b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lm_eval/tasks/afrixnli/utils.py
lm_eval/tasks/afrixnli/utils.py
+7
-1
No files found.
lm_eval/tasks/afrixnli/utils.py
View file @
dade45c6
...
@@ -50,6 +50,12 @@ LANGUAGES = {
...
@@ -50,6 +50,12 @@ LANGUAGES = {
"NEUTRAL_LABEL"
:
"Na none"
,
"NEUTRAL_LABEL"
:
"Na none"
,
"CONTRADICTION_LABEL"
:
"Oya"
"CONTRADICTION_LABEL"
:
"Oya"
},
},
"lin"
:
{
"QUESTION_WORD"
:
"Malamu"
,
"ENTAILMENT_LABEL"
:
"Iyo"
,
"NEUTRAL_LABEL"
:
"Lisusu"
,
"CONTRADICTION_LABEL"
:
"Te"
},
"lug"
:
{
"lug"
:
{
"QUESTION_WORD"
:
"Kituufu"
,
"QUESTION_WORD"
:
"Kituufu"
,
"ENTAILMENT_LABEL"
:
"Yee"
,
"ENTAILMENT_LABEL"
:
"Yee"
,
...
@@ -121,7 +127,7 @@ def gen_lang_yamls(output_dir: str, overwrite: bool, mode: str) -> None:
...
@@ -121,7 +127,7 @@ def gen_lang_yamls(output_dir: str, overwrite: bool, mode: str) -> None:
:param overwrite: Whether to overwrite files if they already exist.
:param overwrite: Whether to overwrite files if they already exist.
"""
"""
err
=
[]
err
=
[]
languages
=
[
'eng'
,
'amh'
,
'ibo'
,
'fra'
,
'sna'
,
'wol'
,
'ewe'
,
'lug'
,
'xho'
,
'kin'
,
'twi'
,
'zul'
,
'orm'
,
languages
=
[
'eng'
,
'amh'
,
'ibo'
,
'fra'
,
'sna'
,
'wol'
,
'ewe'
,
'lin'
,
'lug'
,
'xho'
,
'kin'
,
'twi'
,
'zul'
,
'orm'
,
'yor'
,
'hau'
,
'sot'
,
'swa'
]
'yor'
,
'hau'
,
'sot'
,
'swa'
]
for
lang
in
languages
:
for
lang
in
languages
:
try
:
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment