Skip to content

Commit

Permalink
translate task templates to catalan and galician
Browse files Browse the repository at this point in the history
  • Loading branch information
mariagrandury committed Jan 22, 2025
1 parent 8ec53eb commit 7fb872b
Showing 1 changed file with 46 additions and 2 deletions.
48 changes: 46 additions & 2 deletions src/lighteval/tasks/templates/utils/translation_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,29 @@ def __getattribute__(self, name: str) -> str:
Language.BRETON: TranslationLiterals(language=Language.BRETON),
Language.BULGARIAN: TranslationLiterals(language=Language.BULGARIAN),
Language.BURMESE: TranslationLiterals(language=Language.BURMESE),
Language.CATALAN: TranslationLiterals(language=Language.CATALAN),
Language.CATALAN: TranslationLiterals(
language=Language.CATALAN,
question_word="pregunta",
answer="resposta",
confirmation_word="cert",
yes="sí",
no="no",
also="també",
cause_word="perquè",
effect_word="per tant",
or_word="o",
true="veritable",
false="fals",
neither="cap",
full_stop=".",
comma=",",
question_mark="?",
exclamation_mark="!",
word_space=" ",
sentence_space=" ",
colon=":",
semicolon=";",
),
Language.CEBUANO: TranslationLiterals(language=Language.CEBUANO),
Language.CHINESE: TranslationLiterals(
language=Language.CHINESE,
Expand Down Expand Up @@ -348,7 +370,29 @@ def __getattribute__(self, name: str) -> str:
sentence_space=" ",
colon=":",
),
Language.GALICIAN: TranslationLiterals(language=Language.GALICIAN),
Language.GALICIAN: TranslationLiterals(
language=Language.GALICIAN,
question_word="pregunta",
answer="resposta",
confirmation_word="certo",
yes="si",
no="non",
also="tamén",
cause_word="porque",
effect_word="polo tanto",
or_word="ou",
true="verdadeiro",
false="falso",
neither="ningún",
full_stop=".",
comma=",",
question_mark="?",
exclamation_mark="!",
word_space=" ",
sentence_space=" ",
colon=":",
semicolon=";",
),
Language.GEORGIAN: TranslationLiterals(language=Language.GEORGIAN),
Language.GERMAN: TranslationLiterals(
language=Language.GERMAN,
Expand Down

0 comments on commit 7fb872b

Please sign in to comment.