cli.convert: fix typo in converter arguments (#3099)

This commit is contained in:
Jari Bakken 2018-12-27 18:08:41 +01:00 committed by Ines Montani
parent e172f2478e
commit cc95167b6d
1 changed files with 1 additions and 1 deletions

View File

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