Skip to content

Commit

Permalink
Update Kaoshi
Browse files Browse the repository at this point in the history
  • Loading branch information
liushz committed Sep 13, 2023
1 parent 244d902 commit 62ea208
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opencompass/datasets/Kaoshi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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)
Expand Down

0 comments on commit 62ea208

Please sign in to comment.