Use .pos_ instead of .tags_ in displaCy by default (see #1006)

This commit is contained in:
ines 2017-11-22 00:28:52 +01:00
parent ec08996000
commit 60b4915569
1 changed files with 1 additions and 1 deletions

View File

@ -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: