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
256de63b
Unverified
Commit
256de63b
authored
Apr 28, 2022
by
Charles Lovering
Committed by
GitHub
Apr 28, 2022
Browse files
Merge pull request #22 from bigscience-workshop/add-axg
Add `axg` and `axb` to SuperGLUE
parents
449905de
10492f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
lm_eval/tasks/superglue.py
lm_eval/tasks/superglue.py
+36
-0
No files found.
lm_eval/tasks/superglue.py
View file @
256de63b
...
...
@@ -305,3 +305,39 @@ class SGWinogradSchemaChallenge(PromptSourceTask):
def
aggregation
(
self
):
return
{
"acc"
:
mean
}
class
WinogenderSchemaDiagnostics
(
PromptSourceTask
):
VERSION
=
0
DATASET_PATH
=
"super_glue"
DATASET_NAME
=
"axg"
def
has_training_docs
(
self
):
return
False
def
has_validation_docs
(
self
):
return
False
def
has_test_docs
(
self
):
return
True
def
test_docs
(
self
):
return
self
.
dataset
[
"test"
]
class
BroadcoverageDiagnostics
(
PromptSourceTask
):
VERSION
=
0
DATASET_PATH
=
"super_glue"
DATASET_NAME
=
"axb"
def
has_training_docs
(
self
):
return
False
def
has_validation_docs
(
self
):
return
False
def
has_test_docs
(
self
):
return
True
def
test_docs
(
self
):
return
self
.
dataset
[
"test"
]
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