Skip to content

Commit

Permalink
Update nlu_model.py
Browse files Browse the repository at this point in the history
This fixes #26
  • Loading branch information
f2015537 committed Sep 30, 2018
1 parent e37afda commit 49f5b37
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -11,8 +11,8 @@ def train_nlu(data, configs, model_dir):

def run_nlu():
interpreter = Interpreter.load('./models/nlu/default/weathernlu')
print(interpreter.parse("I am planning my holiday to Lithuania. I wonder what is the weather out there."))
print(interpreter.parse(u"I am planning my holiday to Lithuania. I wonder what is the weather out there."))

if __name__ == '__main__':
train_nlu('./data/data.json', 'config_spacy.json', './models/nlu')
run_nlu()
run_nlu()

0 comments on commit 49f5b37

Please sign in to comment.