Datasets:

ArXiv:
Elron commited on
Commit
6e9b741
1 Parent(s): a415069

Upload metric.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. metric.py +1 -0
metric.py CHANGED
@@ -103,6 +103,7 @@ class MetricRecipe(SequntialOperatorInitilizer):
103
  FromPredictionsAndOriginalData(),
104
  ApplyOperatorsField(
105
  inputs_fields=["prediction", "references"],
 
106
  operators_field="postprocessors",
107
  default_operators=["processors.to_string"],
108
  ),
 
103
  FromPredictionsAndOriginalData(),
104
  ApplyOperatorsField(
105
  inputs_fields=["prediction", "references"],
106
+ fields_to_treat_as_list=["references"],
107
  operators_field="postprocessors",
108
  default_operators=["processors.to_string"],
109
  ),