Spaces:
Running
Running
Update Space (evaluate main: c447fc8e)
Browse files- requirements.txt +1 -1
- wiki_split.py +1 -7
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
2 |
sacrebleu
|
3 |
sacremoses
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@c447fc8eda9c62af501bfdc6988919571050d950
|
2 |
sacrebleu
|
3 |
sacremoses
|
wiki_split.py
CHANGED
@@ -322,26 +322,20 @@ def compute_sacrebleu(
|
|
322 |
|
323 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
324 |
class WikiSplit(evaluate.Metric):
|
325 |
-
|
326 |
-
ALLOWED_CONFIG_NAMES = ["default"]
|
327 |
-
|
328 |
-
def _info(self, config):
|
329 |
return evaluate.MetricInfo(
|
330 |
description=_DESCRIPTION,
|
331 |
citation=_CITATION,
|
332 |
inputs_description=_KWARGS_DESCRIPTION,
|
333 |
-
config=config,
|
334 |
features=[
|
335 |
datasets.Features(
|
336 |
{
|
337 |
-
"sources": datasets.Value("string", id="sequence"),
|
338 |
"predictions": datasets.Value("string", id="sequence"),
|
339 |
"references": datasets.Sequence(datasets.Value("string", id="sequence"), id="references"),
|
340 |
}
|
341 |
),
|
342 |
datasets.Features(
|
343 |
{
|
344 |
-
"sources": datasets.Value("string", id="sequence"),
|
345 |
"predictions": datasets.Value("string", id="sequence"),
|
346 |
"references": datasets.Value("string", id="sequence"),
|
347 |
}
|
|
|
322 |
|
323 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
324 |
class WikiSplit(evaluate.Metric):
|
325 |
+
def _info(self):
|
|
|
|
|
|
|
326 |
return evaluate.MetricInfo(
|
327 |
description=_DESCRIPTION,
|
328 |
citation=_CITATION,
|
329 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
330 |
features=[
|
331 |
datasets.Features(
|
332 |
{
|
|
|
333 |
"predictions": datasets.Value("string", id="sequence"),
|
334 |
"references": datasets.Sequence(datasets.Value("string", id="sequence"), id="references"),
|
335 |
}
|
336 |
),
|
337 |
datasets.Features(
|
338 |
{
|
|
|
339 |
"predictions": datasets.Value("string", id="sequence"),
|
340 |
"references": datasets.Value("string", id="sequence"),
|
341 |
}
|