Commit 4002f95e authored by Sylvain Gugger's avatar Sylvain Gugger
Browse files

Remove duplicate code

parent d7b50ce4
...@@ -515,11 +515,6 @@ def main(): ...@@ -515,11 +515,6 @@ def main():
predictions=preds, predictions=preds,
references=refs, references=refs,
) # predictions and preferences are expected to be a nested list of labels, not label_ids ) # predictions and preferences are expected to be a nested list of labels, not label_ids
preds, refs = get_labels(predictions_gathered, labels_gathered)
metric.add_batch(
predictions=preds,
references=refs,
) # predictions and preferences are expected to be a nested list
# eval_metric = metric.compute() # eval_metric = metric.compute()
eval_metric = compute_metrics() eval_metric = compute_metrics()
......
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