mirror of https://github.com/explosion/spaCy.git
Use .pos_ instead of .tags_ in displaCy by default (see #1006)
This commit is contained in:
parent
ec08996000
commit
60b4915569
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue