Unverified Commit 8c9fc6b6 authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

Update task.py

parent 8a42e342
......@@ -894,7 +894,7 @@ class ConfigurableTask(Task):
for key, result in zip(self._metric_fn_list.keys(), results):
_dict = self._metric_fn_list[key].compute(
references=[gold], predictions=[result]
references=[gold], predictions=[result], **self._metric_kwargs[key]
)
result_dict = {**result_dict, **_dict}
......
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