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
e3c2e692
Commit
e3c2e692
authored
Oct 24, 2020
by
Anish Thite
Browse files
add include target for coqa
parent
7c55e46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lm_eval/tasks/coqa.py
lm_eval/tasks/coqa.py
+4
-1
No files found.
lm_eval/tasks/coqa.py
View file @
e3c2e692
...
...
@@ -41,7 +41,10 @@ class CoQA(Dataset):
for
pair
in
zip
(
doc
[
'questions'
],
doc
[
'answers'
]):
text
.
append
(
'
\n\n
'
)
text
.
append
(
''
.
join
([
'Q: '
,
pair
[
0
][
'input_text'
],
'
\n\n
'
]))
text
.
append
(
''
.
join
([
'A: '
,
pair
[
1
][
'input_text'
]]))
if
include_target
:
text
.
append
(
''
.
join
([
'A: '
,
pair
[
1
][
'input_text'
]]))
else
:
text
.
append
(
'A: '
)
return
''
.
join
(
text
)
...
...
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