From 0e14ff61ccab8c720bc343ca2c3fd7777f02698f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Thu, 2 Feb 2023 17:43:20 +0100 Subject: [PATCH] Remove unnecessary get Co-authored-by: Madeesh Kannan --- spacy/tests/parser/test_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/parser/test_model.py b/spacy/tests/parser/test_model.py index ecddf0e86..8c1cf7a93 100644 --- a/spacy/tests/parser/test_model.py +++ b/spacy/tests/parser/test_model.py @@ -31,7 +31,7 @@ def nlp_parser(): train_examples = [] for text, annotations in TRAIN_DATA: train_examples.append(Example.from_dict(nlp.make_doc(text), annotations)) - for dep in annotations.get("deps", []): + for dep in annotations["deps"]: parser.add_label(dep) nlp.initialize()