Datasets:

ArXiv:
Elron commited on
Commit
3f0bfaf
1 Parent(s): f5fdbce

Upload metric.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. metric.py +4 -1
metric.py CHANGED
@@ -14,6 +14,7 @@ from .common import __file__ as _
14
  from .dataclass import __file__ as _
15
  from .dict_utils import __file__ as _
16
  from .file_utils import __file__ as _
 
17
  from .fusion import __file__ as _
18
  from .generator_utils import __file__ as _
19
  from .hf_utils import __file__ as _
@@ -42,9 +43,11 @@ from .random_utils import __file__ as _
42
  from .recipe import __file__ as _
43
  from .register import __file__ as _
44
  from .register import register_all_artifacts
 
45
  from .schema import __file__ as _
46
  from .split_utils import __file__ as _
47
  from .splitters import __file__ as _
 
48
  from .stream import MultiStream, Stream
49
  from .stream import __file__ as _
50
  from .task import __file__ as _
@@ -105,7 +108,7 @@ class MetricRecipe(SequntialOperatorInitilizer):
105
  inputs_fields=["prediction", "references"],
106
  fields_to_treat_as_list=["references"],
107
  operators_field="postprocessors",
108
- default_operators=["processors.to_string"],
109
  ),
110
  SplitByValue(["group"]),
111
  ApplyStreamOperatorsField(
 
14
  from .dataclass import __file__ as _
15
  from .dict_utils import __file__ as _
16
  from .file_utils import __file__ as _
17
+ from .formats import __file__ as _
18
  from .fusion import __file__ as _
19
  from .generator_utils import __file__ as _
20
  from .hf_utils import __file__ as _
 
43
  from .recipe import __file__ as _
44
  from .register import __file__ as _
45
  from .register import register_all_artifacts
46
+ from .renderers import __file__ as _
47
  from .schema import __file__ as _
48
  from .split_utils import __file__ as _
49
  from .splitters import __file__ as _
50
+ from .standard import __file__ as _
51
  from .stream import MultiStream, Stream
52
  from .stream import __file__ as _
53
  from .task import __file__ as _
 
108
  inputs_fields=["prediction", "references"],
109
  fields_to_treat_as_list=["references"],
110
  operators_field="postprocessors",
111
+ default_operators=["processors.to_string_stripped"],
112
  ),
113
  SplitByValue(["group"]),
114
  ApplyStreamOperatorsField(