You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix alghafa prompt function by explicitly determining the list of choices based on task_name.
(Not all subsets of AlGhafa Native share same columns)
---------
Co-authored-by: Clémentine Fourrier <[email protected]>
Co-authored-by: Nathan Habib <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/contributing-to-multilingual-evaluations.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ We welcome translations in your language!
8
8
9
9
To contribute, you'll need to
10
10
1. Open the [translation_literals](https://github.com/huggingface/lighteval/blob/main/src/lighteval/tasks/templates/utils/translation_literals.py) file
11
-
2. Edit the file to add or expand the literal for your language of interest.
11
+
2. Edit the file to add or expand the literal for your language of interest.
12
12
13
13
```python
14
14
Language.ENGLISH: TranslationLiterals(
@@ -42,7 +42,7 @@ To contribute, you'll need to
42
42
43
43
## Contributing a new multilingual task
44
44
45
-
You should first read our guide on [adding a custom task](adding-a-custom-task), to better understand the different parameters we use.
45
+
You should first read our guide on [adding a custom task](adding-a-custom-task), to better understand the different parameters we use.
46
46
47
47
Then, you should take a look at the current [multilingual tasks](https://github.com/huggingface/lighteval/blob/main/src/lighteval/tasks/multilingual/tasks.py) file, to understand how they are defined. For multilingual evaluations the `prompt_function` should be implemented by language-adapted template. The template will take care of correct formatting, correct and consistent usage of language adjusted prompt anchors (e.g Question/Answer) and punctuation.
0 commit comments