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
be55ea8c
Commit
be55ea8c
authored
Feb 13, 2022
by
Stephen Hogg
Browse files
Align casing between doc creation and evaluation
parent
8f0e1765
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/tasks/qasper.py
lm_eval/tasks/qasper.py
+2
-2
No files found.
lm_eval/tasks/qasper.py
View file @
be55ea8c
...
@@ -59,7 +59,7 @@ def categorise_answer(answer_blob):
...
@@ -59,7 +59,7 @@ def categorise_answer(answer_blob):
answer_type
=
"unanswerable"
answer_type
=
"unanswerable"
return
answer
,
answer_type
return
answer
,
answer_type
elif
answer_blob
[
"yes_no"
]:
elif
answer_blob
[
"yes_no"
]:
answer
=
"
Y
es"
answer
=
"
y
es"
answer_type
=
"bool"
answer_type
=
"bool"
return
answer
,
answer_type
return
answer
,
answer_type
elif
answer_blob
[
"free_form_answer"
]:
elif
answer_blob
[
"free_form_answer"
]:
...
@@ -71,7 +71,7 @@ def categorise_answer(answer_blob):
...
@@ -71,7 +71,7 @@ def categorise_answer(answer_blob):
answer_type
=
"extractive_spans"
answer_type
=
"extractive_spans"
return
answer
,
answer_type
return
answer
,
answer_type
elif
answer_blob
[
"yes_no"
]
is
False
:
elif
answer_blob
[
"yes_no"
]
is
False
:
answer
=
"
N
o"
answer
=
"
n
o"
answer_type
=
"bool"
answer_type
=
"bool"
return
answer
,
answer_type
return
answer
,
answer_type
...
...
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