Last active
August 5, 2019 04:01
-
-
Save imohitmayank/4741d086ac3d31807c93cf95ff1383a7 to your computer and use it in GitHub Desktop.
rasa_starter/test_nlu.py
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") |
err : ValueError: bad input shape (1, 3)
why??
err : ValueError: bad input shape (1, 3)
why??
Please share the detailed error log. Also you can try out the complete package here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess, the last line should be:
ask_question("How many days in March")