From 9632595fb4df4c05a0b65f871d9d60f7bab77c07 Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 18 Apr 2018 18:28:28 -0400 Subject: [PATCH] Use correct, non-deprecated merge syntax (resolves #2226) --- spacy/tokens/printers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/printers.py b/spacy/tokens/printers.py index 92b2cd84c..c7ae88f3d 100644 --- a/spacy/tokens/printers.py +++ b/spacy/tokens/printers.py @@ -8,7 +8,7 @@ from ..symbols import HEAD, TAG, DEP, ENT_IOB, ENT_TYPE def merge_ents(doc): """Helper: merge adjacent entities into single tokens; modifies the doc.""" for ent in doc.ents: - ent.merge(ent.root.tag_, ent.text, ent.label_) + ent.merge(tag=ent.root.tag_, lemma=ent.text, ent_type=ent.label_) return doc