Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
fix: language not associated with right model
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Cote-Boucher committed Aug 19, 2020
1 parent 14b58f0 commit bd8b860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rasa/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ async def _train_nlu_with_validated_data(
config = await file_importer.get_nlu_config(retrain_nlu)
for lang in config:
if config[lang]:
print_color("Start training {} NLU model ...".format(lang), color=bcolors.OKBLUE)
print_color("Start training <{}> NLU model ...".format(lang), color=bcolors.OKBLUE)
_, models[lang], _ = await rasa.nlu.train(
config[lang],
file_importer,
Expand Down
2 changes: 1 addition & 1 deletion rasa_addons/importers/botfront.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
config = io_utils.read_config_file(file)
lang = config["language"]
self.core_config = {"policies": config["policies"]}
self.nlu_config[lang] = {"pipeline": config["pipeline"], "data": lang}
self.nlu_config[lang] = {"pipeline": config["pipeline"], "language": lang}

def path_for_nlu_lang(self, lang) -> Text:
return [x for x in self._nlu_files if "{}.md".format(lang) in x]
Expand Down

0 comments on commit bd8b860

Please sign in to comment.