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

Commit

Permalink
move log messages after training
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Jan 3, 2019
1 parent b995751 commit e537ce8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 5 additions & 5 deletions examples/concertbot/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ def train_dialogue(domain_file='domain.yml',
stories_file='data/stories.md',
model_path='models/dialogue',
policy_config='policy_config.yml'):
utils.configure_colored_logging(loglevel="INFO")
logger.info("This example does not include NLU data."
"Please specify the desired intent with a preceding '/', e.g."
"'/greet' .")

return train.train_dialogue_model(domain_file=domain_file,
stories_file=stories_file,
output_path=model_path,
Expand All @@ -24,3 +19,8 @@ def train_dialogue(domain_file='domain.yml',

if __name__ == '__main__':
train_dialogue()

utils.configure_colored_logging(loglevel="INFO")
logger.info("This example does not include NLU data."
"Please specify the desired intent with a preceding '/', e.g."
"'/greet' .")
8 changes: 3 additions & 5 deletions examples/concertbot/train_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@


def train_agent():
utils.configure_colored_logging(loglevel="INFO")
logger.info("This example does not include NLU data."
"Please specify the desired intent with a preceding '/', e.g."
"'/greet' .")

return train.train_dialogue_model(domain_file="domain.yml",
stories_file="data/stories.md",
output_path="models/dialogue",
Expand All @@ -22,4 +17,7 @@ def train_agent():
if __name__ == '__main__':
utils.configure_colored_logging(loglevel="INFO")
agent = train_agent()
logger.info("This example does not include NLU data."
"Please specify the desired intent with a preceding '/', e.g."
"'/greet' .")
interactive.run_interactive_learning(agent)

0 comments on commit e537ce8

Please sign in to comment.