How do we check user sentiment in AWS Lex by checking what user has said? Is there any built-in functionality available in Lex or some other AWS service?
The simplest answer I can think of right away is to use an NLP library such as TextBlob. You can read the entire documentation here. It is very simple and easy to use. The documentation is also pretty good.
from textblob import TextBlob
user_input = "What the user had said goes here"
blob = textBlob(user_input)
print(blob.sentiment) #this gives both subjectivity and polarity.