mirror of https://github.com/explosion/spaCy.git
cli.convert: fix typo in converter arguments (#3099)
This commit is contained in:
parent
e172f2478e
commit
cc95167b6d
|
@ -69,7 +69,7 @@ def convert(
|
||||||
# Use converter function to convert data
|
# Use converter function to convert data
|
||||||
func = CONVERTERS[converter]
|
func = CONVERTERS[converter]
|
||||||
input_data = input_path.open("r", encoding="utf-8").read()
|
input_data = input_path.open("r", encoding="utf-8").read()
|
||||||
data = func(input_data, nsents=n_sents, use_morphology=morphology, lang=lang)
|
data = func(input_data, n_sents=n_sents, use_morphology=morphology, lang=lang)
|
||||||
if output_dir != "-":
|
if output_dir != "-":
|
||||||
# Export data to a file
|
# Export data to a file
|
||||||
suffix = ".{}".format(file_type)
|
suffix = ".{}".format(file_type)
|
||||||
|
|
Loading…
Reference in New Issue