From 22d7b448a541863efd62b60e3b674f2a1b356af7 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 25 May 2017 19:47:12 -0500 Subject: [PATCH] Fix convert command --- spacy/cli/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/convert.py b/spacy/cli/convert.py index c7730ab9e..847051e3f 100644 --- a/spacy/cli/convert.py +++ b/spacy/cli/convert.py @@ -25,7 +25,7 @@ CONVERTERS = { n_sents=("Number of sentences per doc", "option", "n", float), morphology=("Enable appending morphology to tags", "flag", "m", bool) ) -def convert(input_file, output_dir, n_sents, morphology): +def convert(_, input_file, output_dir, n_sents, morphology): """Convert files into JSON format for use with train command and other experiment management functions. """ @@ -39,4 +39,4 @@ def convert(input_file, output_dir, n_sents, morphology): if not file_ext in CONVERTERS: prints("Can't find converter for %s" % input_path.parts[-1], title="Unknown format", exits=1) - CONVERTERS[file_ext](input_path, output_path, *args) + CONVERTERS[file_ext](input_path, output_path, n_sents, morphology)