Skip to content

Instantly share code, notes, and snippets.

@imohitmayank
Last active August 5, 2019 04:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imohitmayank/4741d086ac3d31807c93cf95ff1383a7 to your computer and use it in GitHub Desktop.
Save imohitmayank/4741d086ac3d31807c93cf95ff1383a7 to your computer and use it in GitHub Desktop.
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")
@kostasx
Copy link

kostasx commented Jan 9, 2019

I guess, the last line should be: ask_question("How many days in March")

@tryinggo
Copy link

tryinggo commented Aug 5, 2019

err : ValueError: bad input shape (1, 3)
why??

@imohitmayank
Copy link
Author

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