We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2e7a4 commit 1dfffe5Copy full SHA for 1dfffe5
1 file changed
spacy/cli/train.py
@@ -43,9 +43,13 @@ def train_cli(
43
# Make sure all files and paths exists if they are needed
44
if not config_path or (str(config_path) != "-" and not config_path.exists()):
45
msg.fail("Config file not found", config_path, exits=1)
46
- if output_path is not None and not output_path.exists():
47
- output_path.mkdir(parents=True)
48
- msg.good(f"Created output directory: {output_path}")
+ if not output_path:
+ msg.info("No output directory provided")
+ else:
49
+ if not output_path.exists():
50
+ output_path.mkdir(parents=True)
51
+ msg.good(f"Created output directory: {output_path}")
52
+ msg.info(f"Saving to output directory: {output_path}")
53
overrides = parse_config_overrides(ctx.args)
54
import_code(code_path)
55
setup_gpu(use_gpu)
0 commit comments