From 68f711b4097d027513380421565225b73bfcf907 Mon Sep 17 00:00:00 2001 From: adrianeboyd Date: Fri, 29 Nov 2019 10:22:03 +0100 Subject: [PATCH] Fix conllu2json n_sents and raw text (#4728) Update conllu2json converter to include raw text in final batch. --- 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 7fa491b9d..dc68efef4 100644 --- a/spacy/cli/converters/conllu2json.py +++ b/spacy/cli/converters/conllu2json.py @@ -42,7 +42,7 @@ def conllu2json(input_data, n_sents=10, use_morphology=False, lang=None, **_): raw = "" sentences = [] if sentences: - doc = create_doc(sentences, i) + doc = create_doc(raw, sentences, i) docs.append(doc) return docs