From 62ea20879ed20b12f72113fb4c3fd383e5fb8d10 Mon Sep 17 00:00:00 2001 From: liushz Date: Wed, 13 Sep 2023 05:44:20 +0000 Subject: [PATCH] Update Kaoshi --- opencompass/datasets/Kaoshi.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opencompass/datasets/Kaoshi.py b/opencompass/datasets/Kaoshi.py index 4d1c2c9fd..f7df14f2a 100644 --- a/opencompass/datasets/Kaoshi.py +++ b/opencompass/datasets/Kaoshi.py @@ -12,8 +12,8 @@ def get_number(options): result_string = '' - for i, percentage in enumerate(options, start=65): - result_string += f'{chr(i)}. {percentage}\n' + for i, option in enumerate(options, start=65): + result_string += f'{chr(i)}. {option}\n' return result_string @@ -23,7 +23,6 @@ class KaoshiDataset(BaseDataset): @staticmethod def load(path: str, name: str): data_list = [] - _type = path.split('/')[-1].replace('.jsonl', '') with open(path, encoding='utf-8') as f: for line in f: data = json.loads(line)