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
b8f59dee
Commit
b8f59dee
authored
May 22, 2023
by
ingyuseong
Browse files
Fix Typo
parent
ce823691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
lm_eval/tasks/klue.py
lm_eval/tasks/klue.py
+2
-5
No files found.
lm_eval/tasks/klue.py
View file @
b8f59dee
...
...
@@ -19,8 +19,6 @@ from lm_eval.base import Task, MultipleChoiceTask, rf
from
lm_eval.metrics
import
macro_f1_score
,
mean
,
matthews_corrcoef
,
f1_score
,
yesno
from
lm_eval.utils
import
general_detokenize
from
functools
import
partial
from
sys
import
exit
from
lm_eval.tasks.datasets.metrics.squad_v2.squad_v2
import
SquadV2
as
squad_metric
_CITATION
=
"""
@misc{park2021klue,
...
...
@@ -35,10 +33,9 @@ _CITATION = """
def
_squad_metric
(
predictions
,
references
):
#
squad_metric = datasets.load_metric("squad_v2")
squad_metric
=
datasets
.
load_metric
(
"squad_v2"
)
# return squad_metric.compute(predictions=predictions, references=references)
return
squad_metric
.
_compute
(
squad_metric
,
predictions
=
predictions
,
references
=
references
)
return
squad_metric
.
compute
(
predictions
=
predictions
,
references
=
references
)
def
_squad_agg
(
key
,
items
):
...
...
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