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
gaoqiong
lm-evaluation-harness
Commits
e9432fad
Commit
e9432fad
authored
Jul 13, 2023
by
lintangsutawika
Browse files
fixed doc_to_choice in race
parent
9218bcff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/race/preprocess_race.py
lm_eval/tasks/race/preprocess_race.py
+1
-1
No files found.
lm_eval/tasks/race/preprocess_race.py
View file @
e9432fad
...
@@ -15,7 +15,7 @@ def get_answer_option(problem):
...
@@ -15,7 +15,7 @@ def get_answer_option(problem):
return
problem
[
"options"
][
answer
]
return
problem
[
"options"
][
answer
]
def
create
_choice
s
(
doc
):
def
doc_to
_choice
(
doc
):
problem
=
last_problem
(
doc
)
problem
=
last_problem
(
doc
)
choices
=
[
problem
[
"options"
][
i
]
for
i
in
range
(
4
)]
choices
=
[
problem
[
"options"
][
i
]
for
i
in
range
(
4
)]
return
choices
return
choices
...
...
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