Skip to content

Instantly share code, notes, and snippets.

@imohitmayank
imohitmayank / test_nlu.py
Last active August 5, 2019 04:01
rasa_starter/test_nlu.py
# loading the interpreter
interpreter = Interpreter.load('./models/nlu/default/chat')
# define function to ask question
def ask_question(text):
print(interpreter.parse(text))
# asking question
ask_question("How many days in January")
ask_question("How many days in March")