From 60b4915569c891675ed5dc86ff40a7a2587841d1 Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 22 Nov 2017 00:28:52 +0100 Subject: [PATCH] Use .pos_ instead of .tags_ in displaCy by default (see #1006) --- spacy/displacy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/displacy/__init__.py b/spacy/displacy/__init__.py index e160c31b6..cfecd4b11 100644 --- a/spacy/displacy/__init__.py +++ b/spacy/displacy/__init__.py @@ -97,7 +97,7 @@ def parse_deps(orig_doc, options={}): word.lemma_, word.ent_type_)) for span_props in spans: doc.merge(*span_props) - words = [{'text': w.text, 'tag': w.tag_} for w in doc] + words = [{'text': w.text, 'tag': w.pos_} for w in doc] arcs = [] for word in doc: if word.i < word.head.i: