Upload metric.py with huggingface_hub
Browse files
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 |
),
|