Skip to content

Commit b0c092a

Browse files
spyysaloNathanHBclefourrier
authored
Add TranslationLiterals for Language.DANISH (#770)
Co-authored-by: Nathan Habib <[email protected]> Co-authored-by: Clémentine Fourrier <[email protected]>
1 parent a372550 commit b0c092a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/lighteval/tasks/templates/utils/translation_literals.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,29 @@ def __getattribute__(self, name: str) -> str:
314314
colon=":",
315315
semicolon=";",
316316
),
317-
Language.DANISH: TranslationLiterals(language=Language.DANISH),
317+
Language.DANISH: TranslationLiterals(
318+
language=Language.DANISH,
319+
question_word="spørgsmål",
320+
answer="svar",
321+
confirmation_word="ikke",
322+
yes="ja",
323+
no="nej",
324+
also="også",
325+
cause_word="fordi",
326+
effect_word="derfor",
327+
or_word="eller",
328+
true="sandt",
329+
false="falsk",
330+
neither="ingen af delene",
331+
full_stop=".",
332+
comma=",",
333+
question_mark="?",
334+
exclamation_mark="!",
335+
word_space=" ",
336+
sentence_space=" ",
337+
colon=":",
338+
semicolon=";",
339+
),
318340
Language.DARI: TranslationLiterals(language=Language.DARI),
319341
Language.DIVEHI: TranslationLiterals(language=Language.DIVEHI),
320342
Language.DUTCH: TranslationLiterals(

0 commit comments

Comments
 (0)