This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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") |