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
14dd29c4
Commit
14dd29c4
authored
Mar 23, 2021
by
Charles Foster
Browse files
Fixed calling of loglikelihood within SQuAD task
parent
538be6da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/squad.py
lm_eval/tasks/squad.py
+1
-1
No files found.
lm_eval/tasks/squad.py
View file @
14dd29c4
...
...
@@ -50,7 +50,7 @@ class SQuAD(HFTask):
part of the document for `doc`.
"""
continuation
=
rf
.
greedy_until
(
ctx
,
[
'
\n
'
])
is_unanswerable
=
rf
.
loglikelihood
(
ctx
,
[
'
unanswerable
'
]
)
is_unanswerable
=
rf
.
loglikelihood
(
ctx
,
" "
+
"
unanswerable
"
)
return
continuation
,
is_unanswerable
def
process_results
(
self
,
doc
,
results
):
...
...
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