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
440216db
Commit
440216db
authored
Dec 27, 2021
by
thomasw21
Browse files
Questions in BoolQ don't have interrogation punctuation at the end
parent
f16e8b5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/tasks/superglue.py
lm_eval/tasks/superglue.py
+2
-2
No files found.
lm_eval/tasks/superglue.py
View file @
440216db
...
@@ -13,7 +13,7 @@ from ..utils import general_detokenize
...
@@ -13,7 +13,7 @@ from ..utils import general_detokenize
class
BoolQ
(
HFTask
):
class
BoolQ
(
HFTask
):
VERSION
=
0
VERSION
=
1
DATASET_PATH
=
"super_glue"
DATASET_PATH
=
"super_glue"
DATASET_NAME
=
"boolq"
DATASET_NAME
=
"boolq"
...
@@ -31,7 +31,7 @@ class BoolQ(HFTask):
...
@@ -31,7 +31,7 @@ class BoolQ(HFTask):
return
"Read the following passages and answer each question with a yes or a no."
return
"Read the following passages and answer each question with a yes or a no."
def
doc_to_text
(
self
,
doc
):
def
doc_to_text
(
self
,
doc
):
return
f
"
{
doc
[
'passage'
]
}
\n
Question:
{
doc
[
'question'
]
}
\n
Answer:"
return
f
"
{
doc
[
'passage'
]
}
\n
Question:
{
doc
[
'question'
]
}
?
\n
Answer:"
def
doc_to_target
(
self
,
doc
):
def
doc_to_target
(
self
,
doc
):
return
" "
+
yesno
(
doc
[
'label'
])
return
" "
+
yesno
(
doc
[
'label'
])
...
...
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