Use tag in CoNLL converter, not POS

This commit is contained in:
Matthew Honnibal 2017-05-17 12:04:33 +02:00
parent c9a5d5d24b
commit 3bf4a28d8d

View File

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