mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-28 13:54:12 +03:00
Add UPOS as morphological field in ud_train
This commit is contained in:
parent
bba5f57f91
commit
a6d153b0a0
|
@ -84,6 +84,7 @@ def read_data(
|
|||
sent["words"].append(word)
|
||||
sent["tags"].append(tag)
|
||||
sent["morphology"].append(_parse_morph_string(morph))
|
||||
sent["morphology"][-1].add("POS_%s" % pos)
|
||||
sent["heads"].append(head)
|
||||
sent["deps"].append("ROOT" if dep == "root" else dep)
|
||||
sent["spaces"].append(space_after == "_")
|
||||
|
|
Loading…
Reference in New Issue
Block a user