Remove unnecessary get

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
This commit is contained in:
Daniël de Kok 2023-02-02 17:43:20 +01:00 committed by GitHub
parent 2086cb608d
commit 0e14ff61cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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