Skip to content

Commit

Permalink
Add axg and axb to super_glue
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-tow authored and jon-tow committed Apr 28, 2022
1 parent 9cd7023 commit 10492f4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lm_eval/tasks/superglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,39 @@ def higher_is_better(self):

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"]

0 comments on commit 10492f4

Please sign in to comment.