From 191a12d75fb44b5d5a606dbaf6e009c961ff5528 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 29 Jul 2020 11:04:12 +0200 Subject: [PATCH] Fix score_weights typo in train CLI (#5835) --- spacy/cli/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index 25eb4a3c0..fbe3a5013 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -441,7 +441,7 @@ def update_meta( training: Union[Dict[str, Any], Config], nlp: Language, info: Dict[str, Any] ) -> None: nlp.meta["performance"] = {} - for metric in training["scores_weights"]: + for metric in training["score_weights"]: nlp.meta["performance"][metric] = info["other_scores"][metric] for pipe_name in nlp.pipe_names: nlp.meta["performance"][f"{pipe_name}_loss"] = info["losses"][pipe_name]