mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
Use tag in CoNLL converter, not POS
This commit is contained in:
parent
c9a5d5d24b
commit
3bf4a28d8d
|
@ -54,7 +54,7 @@ def read_conllx(input_path, use_morphology=False, n=0):
|
|||
id_ = int(id_) - 1
|
||||
head = (int(head) - 1) if head != '0' else id_
|
||||
dep = 'ROOT' if dep == 'root' else dep
|
||||
tag = pos+'__'+morph if use_morphology else pos
|
||||
tag = tag+'__'+morph if use_morphology else tag
|
||||
tokens.append((id_, word, tag, head, dep, 'O'))
|
||||
except:
|
||||
print(line)
|
||||
|
|
Loading…
Reference in New Issue
Block a user