Skip to content
Discussion options

You must be logged in to vote

Hi, --code isn't an override in this sense. Overrides are only for overriding a value in the config. You want to use the code_path option with the method train_cli (or manage this import in some other way in your script):

spaCy/spacy/cli/train.py

Lines 18 to 54 in 93e9bf6

def train_cli(
# fmt: off
ctx: typer.Context, # This is only used to read additional arguments
config_path: Path = Arg(..., help="Path to config file", exists=True, allow_dash=True),
output_path: Optional[Path] = Opt(None, "--output", "--output-path", "-o", help="Output directory to store trained pipeline in"),
code_path: Optional[Path] = Opt(None, "--code", "-c", help="Path to Python…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Comment options

You must be logged in to vote
2 replies
@adrianeboyd
Comment options

@uwaisiqbal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / cli Feature: Command-line interface
2 participants
Converted from issue

This discussion was converted from issue #9909 on December 20, 2021 12:54.