Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
raise error if --finetune flag and pretrained model --core is fiven #…
Browse files Browse the repository at this point in the history
…1114
  • Loading branch information
Ghostvv committed Oct 4, 2018
1 parent 63df432 commit 7ae5326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rasa_core/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def train_dialogue_model(domain_file, stories_file, output_path,
if not cmdline_args.interactive:
raise ValueError("--core can only be used together with the"
"--interactive flag.")
elif cmdline_args.finetune:
raise ValueError("--core can only be used together with the"
"--interactive flag and without --finetune flag.")
else:
logger.info("loading a pre-trained model. ",
"all training-related parameters will be ignored")
Expand Down

0 comments on commit 7ae5326

Please sign in to comment.