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
cc474a94
Unverified
Commit
cc474a94
authored
Jun 11, 2021
by
sdtblck
Committed by
GitHub
Jun 11, 2021
Browse files
Change generate until sequence in coqa to be \nQ:
parent
9b9d8dd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/coqa.py
lm_eval/tasks/coqa.py
+1
-1
No files found.
lm_eval/tasks/coqa.py
View file @
cc474a94
...
@@ -115,7 +115,7 @@ class CoQA(Task):
...
@@ -115,7 +115,7 @@ class CoQA(Task):
language description, as well as the few shot examples, and the question
language description, as well as the few shot examples, and the question
part of the document for `doc`.
part of the document for `doc`.
"""
"""
cont_request
=
rf
.
greedy_until
(
ctx
,
[
'
\n
'
])
cont_request
=
rf
.
greedy_until
(
ctx
,
[
'
\n
Q:
'
])
return
cont_request
return
cont_request
def
process_results
(
self
,
doc
,
results
):
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