From 62dbf9025ce5895fcb37d764d1de27263849b7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Orosz?= Date: Fri, 9 Jun 2017 22:53:56 +0200 Subject: [PATCH] Fixed conllu converter --- spacy/cli/converters/conllu2json.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/cli/converters/conllu2json.py b/spacy/cli/converters/conllu2json.py index 618810584..4d3fb58e4 100644 --- a/spacy/cli/converters/conllu2json.py +++ b/spacy/cli/converters/conllu2json.py @@ -73,10 +73,10 @@ def generate_sentence(sent): tokens = [] for i, id in enumerate(id_): token = {} - token["orth"] = word[id] - token["tag"] = tag[id] - token["head"] = head[id] - i - token["dep"] = dep[id] + token["orth"] = word[i] + token["tag"] = tag[i] + token["head"] = head[i] - id + token["dep"] = dep[i] tokens.append(token) sentence["tokens"] = tokens return sentence