Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
opencompass
Commits
db292032
Unverified
Commit
db292032
authored
Dec 14, 2023
by
DseidLi
Committed by
GitHub
Dec 14, 2023
Browse files
[Fix] remove redundant in gsm8k.py (#700)
Removed redundant code in GSM8KDataset.load method.
parent
bfe4aa2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
opencompass/datasets/gsm8k.py
opencompass/datasets/gsm8k.py
+0
-1
No files found.
opencompass/datasets/gsm8k.py
View file @
db292032
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment