error saving model: No such option: --output

Hi all,

I am using this line to train and save my model

 !python -m prodigy train --ner ner_location_distinction en_core_web_lg 
--output C:\Users\Documents\Prodigy\models\temp_model --eval-split 0.2

But get the error: No such option: --output

The traceback is given below:

Traceback (most recent call last):
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\", line 87, in run_code
exec(code, run_globals)
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\site-packages\prodigy_main
.py", line 61, in
controller = recipe(args, use_plac=True)
File "cython_src\prodigy\core.pyx", line 329, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\site-packages\", line 367, in call
cmd, result = parser.consume(arglist)
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\site-packages\", line 232, in consume
return cmd, self.func(
(args + varargs + extraopts), **kwargs)
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\site-packages\prodigy\recipes\", line 257, in train
overrides = parse_config_overrides(list(overrides))
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\site-packages\spacy\", line 87, in parse_config_overrides
cli_overrides = _parse_overrides(args, is_cli=True)
File "C:\Users\b1075161\Anaconda3\envs\prodigy\lib\site-packages\spacy\", line 106, in _parse_overrides
raise NoSuchOption(orig_opt)
click.exceptions.NoSuchOption: no such option: --output

Hi @Zim1-finest , there's no --output parameter in the train method. Instead, you supply the path of the output model as a positional argument. You can do it like this:

python -m prodigy train  C:\Users\Documents\Prodigy\models\temp_models
    --eval-split 0.2  \
    --ner ner_location_distinction  \
    --base-model en_core_web_lg

You can check more in the documentation or by running:

python -m prodigy train --help