From c791903be02bcd0275ae2e2fc65900b085457edf Mon Sep 17 00:00:00 2001 From: Mauricio DIAZ Date: Wed, 29 Jan 2025 09:58:17 +0100 Subject: [PATCH] Fix function name (as_list) --- community_tasks/french_evals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/community_tasks/french_evals.py b/community_tasks/french_evals.py index f9758e58..52bfc24e 100644 --- a/community_tasks/french_evals.py +++ b/community_tasks/french_evals.py @@ -46,6 +46,7 @@ from lighteval.tasks.extended.ifeval.main import ifeval_metrics from lighteval.tasks.lighteval_task import LightevalTaskConfig from lighteval.tasks.requests import Doc +from lighteval.utils.utils import as_list # Ifeval-fr prompt function @@ -88,7 +89,7 @@ def prompt_bac_fr(line, task_name: str = None): return Doc( task_name=task_name, query=prompt, - choices=list(line["Choix"]), + choices=as_list(line["Choix"]), gold_index=line["Choix"].index(line["Choix correct"]), instruction="", )