Commit 2054c2e6 authored by lintangsutawika's avatar lintangsutawika
Browse files

revert

parent 2a573a19
......@@ -1184,6 +1184,7 @@ class ConfigurableTask(Task):
result_score = self._metric_fn_list[metric](
references=[gold],
predictions=[result],
**self._metric_fn_kwargs[metric],
)
except TypeError: # needed for now in order to use a different interface between our own metrics and HF Evaluate metrics
result_score = self._metric_fn_list[metric]([gold, result])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment