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
af9766d1
Commit
af9766d1
authored
Feb 12, 2022
by
Stephen Hogg
Browse files
Remove incorrect comments
parent
894c0697
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
lm_eval/tasks/qasper.py
lm_eval/tasks/qasper.py
+0
-2
No files found.
lm_eval/tasks/qasper.py
View file @
af9766d1
...
@@ -108,7 +108,6 @@ class QASPER(HFTask):
...
@@ -108,7 +108,6 @@ class QASPER(HFTask):
DATASET_NAME
=
None
DATASET_NAME
=
None
def
doc_to_text
(
self
,
doc
):
def
doc_to_text
(
self
,
doc
):
# this method is invoked by tests only
return
(
return
(
"TITLE: "
"TITLE: "
+
doc
[
"title"
]
+
doc
[
"title"
]
...
@@ -123,7 +122,6 @@ class QASPER(HFTask):
...
@@ -123,7 +122,6 @@ class QASPER(HFTask):
)
)
def
doc_to_target
(
self
,
doc
):
def
doc_to_target
(
self
,
doc
):
# this method is invoked by tests only
answer
=
doc
[
"answer"
]
answer
=
doc
[
"answer"
]
if
isinstance
(
answer
,
list
):
if
isinstance
(
answer
,
list
):
answer
=
", "
.
join
(
answer
)
answer
=
", "
.
join
(
answer
)
...
...
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