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
fa7b9643
Commit
fa7b9643
authored
Mar 26, 2021
by
Leo Gao
Browse files
Mark GLUE and SuperGLUE tasks without labelled test docs as not having test docs at all
parent
1a05b8cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
lm_eval/tasks/glue.py
lm_eval/tasks/glue.py
+6
-6
lm_eval/tasks/superglue.py
lm_eval/tasks/superglue.py
+5
-5
No files found.
lm_eval/tasks/glue.py
View file @
fa7b9643
...
...
@@ -20,7 +20,7 @@ class CoLA(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
# TODO
...
...
@@ -67,7 +67,7 @@ class SST(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
return
"Indicate if the sentiment of each sentence is positive or negative."
...
...
@@ -118,7 +118,7 @@ class MNLI(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
validation_docs
(
self
):
if
self
.
has_validation_docs
():
...
...
@@ -186,7 +186,7 @@ class QNLI(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
doc_to_text
(
self
,
doc
):
return
"{}
\n
{}
\n
Question: Does this response answer the question?
\n
Answer:"
.
format
(
...
...
@@ -234,7 +234,7 @@ class WNLI(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
doc_to_text
(
self
,
doc
):
return
"{}
\n
Question: {} True, False or Neither?
\n
Answer:"
.
format
(
...
...
@@ -283,7 +283,7 @@ class RTE(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
doc_to_text
(
self
,
doc
):
return
"{}
\n
Question: {} True or False?
\n
Answer:"
.
format
(
...
...
lm_eval/tasks/superglue.py
View file @
fa7b9643
...
...
@@ -23,7 +23,7 @@ class BoolQ(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
# TODO: figure out actual description
...
...
@@ -74,7 +74,7 @@ class CommitmentBank(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
# TODO: figure out actual description
...
...
@@ -145,7 +145,7 @@ class Copa(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
# TODO: figure out actual description
...
...
@@ -209,7 +209,7 @@ class MultiRC(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
# TODO: figure out actual description
...
...
@@ -355,7 +355,7 @@ class WordsInContext(HFTask):
return
True
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
fewshot_description
(
self
):
# TODO: figure out actual description
...
...
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