Unverified Commit db292032 authored by DseidLi's avatar DseidLi Committed by GitHub
Browse files

[Fix] remove redundant in gsm8k.py (#700)

Removed redundant code in GSM8KDataset.load method.
parent bfe4aa2a
......@@ -21,7 +21,6 @@ class GSM8KDataset(BaseDataset):
with open(split_path, 'r', encoding='utf-8') as f:
for line in f:
line = json.loads(line.strip())
line['answer']
dataset.append(line)
datasets[split] = Dataset.from_list(dataset)
return DatasetDict(datasets)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment