Created
July 11, 2021 17:02
-
-
Save omchaithanyav/8b57a048f6a5bbc84f018bf5cd332451 to your computer and use it in GitHub Desktop.
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
sentence = "is it raining ?" | |
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