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
8de85534
Commit
8de85534
authored
Mar 28, 2021
by
Leo Gao
Browse files
Rename task
parent
cbc5c9c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+1
-1
lm_eval/tasks/squad.py
lm_eval/tasks/squad.py
+2
-1
No files found.
lm_eval/tasks/__init__.py
View file @
8de85534
...
@@ -107,7 +107,7 @@ TASK_REGISTRY = {
...
@@ -107,7 +107,7 @@ TASK_REGISTRY = {
"hellaswag"
:
hellaswag
.
HellaSwag
,
# not implemented yet
"hellaswag"
:
hellaswag
.
HellaSwag
,
# not implemented yet
"openbookqa"
:
openbookqa
.
OpenBookQA
,
"openbookqa"
:
openbookqa
.
OpenBookQA
,
# "sat": sat.SATAnalogies, # not implemented yet
# "sat": sat.SATAnalogies, # not implemented yet
"squad"
:
squad
.
SQuAD
,
"squad
2
"
:
squad
.
SQuAD
2
,
"race"
:
race
.
RACE
,
"race"
:
race
.
RACE
,
# "naturalqs": naturalqs.NaturalQs, # not implemented yet
# "naturalqs": naturalqs.NaturalQs, # not implemented yet
"headqa"
:
headqa
.
HeadQA
,
"headqa"
:
headqa
.
HeadQA
,
...
...
lm_eval/tasks/squad.py
View file @
8de85534
...
@@ -17,7 +17,8 @@ def _squad_agg(key, items):
...
@@ -17,7 +17,8 @@ def _squad_agg(key, items):
return
_squad_metric
(
predictions
=
predictions
,
references
=
references
)[
key
]
return
_squad_metric
(
predictions
=
predictions
,
references
=
references
)[
key
]
class
SQuAD
(
HFTask
):
class
SQuAD2
(
HFTask
):
DATASET_PATH
=
"squad_v2"
DATASET_PATH
=
"squad_v2"
DATASET_NAME
=
None
DATASET_NAME
=
None
...
...
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