Fix conllu2json n_sents and raw text (#4728)

Update conllu2json converter to include raw text in final batch.
This commit is contained in:
adrianeboyd 2019-11-29 10:22:03 +01:00 committed by Ines Montani
parent 79ba1a3b92
commit 68f711b409
1 changed files with 1 additions and 1 deletions

View File

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