Datasets:

ArXiv:
Elron commited on
Commit
34e20bc
1 Parent(s): de8f5a2

Upload metric.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. metric.py +1 -5
metric.py CHANGED
@@ -25,8 +25,7 @@ from .operator import (MultiStreamOperator, SequentialOperator,
25
  SequentialOperatorInitilizer, StreamInitializerOperator)
26
  from .operator import __file__ as _
27
  from .operators import (Apply, ApplyMetric, ApplyOperatorsField,
28
- ApplyStreamOperatorsField, FlattenInstances,
29
- MergeStreams, SplitByValue)
30
  from .operators import __file__ as _
31
  from .processors import __file__ as _
32
  from .random_utils import __file__ as _
@@ -135,10 +134,7 @@ class MetricRecipe(SequentialOperatorInitilizer):
135
  to_field="additional_inputs",
136
  ),
137
  ApplyOperatorsField(
138
- inputs_fields=["prediction", "references"],
139
- fields_to_treat_as_list=["references"],
140
  operators_field="postprocessors",
141
- default_operators=["processors.to_string_stripped"],
142
  ),
143
  SplitByValue(["group"]),
144
  ApplyMetric(
 
25
  SequentialOperatorInitilizer, StreamInitializerOperator)
26
  from .operator import __file__ as _
27
  from .operators import (Apply, ApplyMetric, ApplyOperatorsField,
28
+ FlattenInstances, MergeStreams, SplitByValue)
 
29
  from .operators import __file__ as _
30
  from .processors import __file__ as _
31
  from .random_utils import __file__ as _
 
134
  to_field="additional_inputs",
135
  ),
136
  ApplyOperatorsField(
 
 
137
  operators_field="postprocessors",
 
138
  ),
139
  SplitByValue(["group"]),
140
  ApplyMetric(