Skip to content

Instantly share code, notes, and snippets.

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 omchaithanyav/800cf14c8ccc150bb763c8dfee776e11 to your computer and use it in GitHub Desktop.
Save omchaithanyav/800cf14c8ccc150bb763c8dfee776e11 to your computer and use it in GitHub Desktop.
sentence = "i would like to book a table at hotel Orion for 29th june"
tokens = Tokenizer.texts_to_sequences([sentence])
tokens = pad_sequences(tokens, maxlen = 6000)
prediction = model.predict(np.array(tokens))
pred = np.argmax(prediction)
classes = ['BookRestaurant','GetWeather','PlayMusic','RateBook']
classes[pred]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment