Commit 14dd29c4 authored by Charles Foster's avatar Charles Foster
Browse files

Fixed calling of loglikelihood within SQuAD task

parent 538be6da
......@@ -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):
......
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