lvwerra HF staff commited on
Commit
a156ba0
1 Parent(s): ac9e693

Update Space (evaluate main: e4a27243)

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. wiki_split.py +7 -1
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- git+https://github.com/huggingface/evaluate@80448674f5447a9682afe051db243c4a13bfe4ff
2
  sacrebleu
3
  sacremoses
 
1
+ git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
2
  sacrebleu
3
  sacremoses
wiki_split.py CHANGED
@@ -322,20 +322,26 @@ def compute_sacrebleu(
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
  }
 
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
  }