From bbfef28791e16ad168f62ef6f357667ab2c4758d Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Thu, 17 Nov 2022 16:33:14 +0100 Subject: [PATCH] Update spacy/cli/find_threshold.py Co-authored-by: Sofie Van Landeghem --- spacy/cli/find_threshold.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/find_threshold.py b/spacy/cli/find_threshold.py index 0f3b6989b..efa664832 100644 --- a/spacy/cli/find_threshold.py +++ b/spacy/cli/find_threshold.py @@ -192,7 +192,7 @@ def find_threshold( wasabi.msg.fail( title=f"Failed to look up score `{scores_key}` in evaluation results.", text=f"Make sure you specified the correct value for `scores_key`. The following scores are " - f"available: {eval_scores.keys()}", + f"available: {list(eval_scores.keys())}", exits=1, ) scores[threshold] = eval_scores[scores_key]