Created
July 11, 2021 17:03
-
-
Save omchaithanyav/815403723d19cfbfa0bd250f26dee2b8 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 = "this novel deserves a rating of 10" | |
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