Fix ner_jsonl2json converter (fix #4389) (#4394)

This commit is contained in:
Matthew Honnibal 2019-10-08 00:52:45 +02:00 committed by Ines Montani
parent 29f9fec267
commit fd4a5341b0
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ from ...gold import docs_to_json
from ...util import get_lang_class, minibatch from ...util import get_lang_class, minibatch
def ner_jsonl2json(input_data, lang=None, n_sents=10, use_morphology=False): def ner_jsonl2json(input_data, lang=None, n_sents=10, use_morphology=False, **_):
if lang is None: if lang is None:
raise ValueError("No --lang specified, but tokenization required") raise ValueError("No --lang specified, but tokenization required")
json_docs = [] json_docs = []