mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-06 14:13:11 +03:00
No output info message in train (#8885)
* Add info message that no output directory was provided in train * Update train.py * Fix logging
This commit is contained in:
parent
fa2e7a4bbf
commit
1dfffe5fb4
|
@ -43,9 +43,13 @@ def train_cli(
|
||||||
# Make sure all files and paths exists if they are needed
|
# Make sure all files and paths exists if they are needed
|
||||||
if not config_path or (str(config_path) != "-" and not config_path.exists()):
|
if not config_path or (str(config_path) != "-" and not config_path.exists()):
|
||||||
msg.fail("Config file not found", config_path, exits=1)
|
msg.fail("Config file not found", config_path, exits=1)
|
||||||
if output_path is not None and not output_path.exists():
|
if not output_path:
|
||||||
output_path.mkdir(parents=True)
|
msg.info("No output directory provided")
|
||||||
msg.good(f"Created output directory: {output_path}")
|
else:
|
||||||
|
if not output_path.exists():
|
||||||
|
output_path.mkdir(parents=True)
|
||||||
|
msg.good(f"Created output directory: {output_path}")
|
||||||
|
msg.info(f"Saving to output directory: {output_path}")
|
||||||
overrides = parse_config_overrides(ctx.args)
|
overrides = parse_config_overrides(ctx.args)
|
||||||
import_code(code_path)
|
import_code(code_path)
|
||||||
setup_gpu(use_gpu)
|
setup_gpu(use_gpu)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user