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()