From 3bf4a28d8de979b12865cb2746780b4c48bd15aa Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 17 May 2017 12:04:33 +0200 Subject: [PATCH] Use tag in CoNLL converter, not POS --- spacy/cli/converters/conllu2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/converters/conllu2json.py b/spacy/cli/converters/conllu2json.py index 66f06816c..5ea01e711 100644 --- a/spacy/cli/converters/conllu2json.py +++ b/spacy/cli/converters/conllu2json.py @@ -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)