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

View File

@ -97,7 +97,7 @@ def parse_deps(orig_doc, options={}):
word.lemma_, word.ent_type_)) word.lemma_, word.ent_type_))
for span_props in spans: for span_props in spans:
doc.merge(*span_props) 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 = [] arcs = []
for word in doc: for word in doc:
if word.i < word.head.i: if word.i < word.head.i: