Skip to content

Instantly share code, notes, and snippets.

@alaakh42
Last active October 2, 2018 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaakh42/ab39792302c0c6cc091a556c0f93d7e3 to your computer and use it in GitHub Desktop.
Save alaakh42/ab39792302c0c6cc091a556c0f93d7e3 to your computer and use it in GitHub Desktop.
from rasa_nlu.model import Interpreter
import json
interpreter = Interpreter.load("./models/current/nlu")
message = ' '.join([x.strip() for x in "tell me about the foundation of the Barcelona team".split()])
result = interpreter.parse(message)
print(json.dumps(result, indent=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment