From 4002f95eb66622a048ff01a383968af57023134d Mon Sep 17 00:00:00 2001 From: Sylvain Gugger Date: Mon, 29 Mar 2021 15:27:12 -0400 Subject: [PATCH] Remove duplicate code --- examples/token-classification/run_ner_no_trainer.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/token-classification/run_ner_no_trainer.py b/examples/token-classification/run_ner_no_trainer.py index b1fb2c99ffc..c2a093b3efa 100755 --- a/examples/token-classification/run_ner_no_trainer.py +++ b/examples/token-classification/run_ner_no_trainer.py @@ -515,11 +515,6 @@ def main(): predictions=preds, references=refs, ) # 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 = compute_metrics()