NLP


Natural Language Processing allows sentiment analysis in finance for example. Provided with just the text of an earnings call. We can give you feedback programmatically regarding the overall sentiment score of the call. Using Python's NLTK library we will demonstrate an example. (Please install twython as well in order to avoid getting warnings or disregard them). More about NLTK and Python can be found here : Bird, Steven, Edward Loper and Ewan Klein (2009), Natural Language Processing with Python. O’Reilly Media Inc.


#Sentiment Analysis import nltk nltk.download('all') from nltk.sentiment import SentimentIntensityAnalyzer
sentence = "We just had our best quarter ever and we expect to grow drastically over time and therefore our new target value for our stock price will grow about 20% in a year"
sid = SentimentIntensityAnalyzer()
ss = sid.polarity_scores(sentence) for k in sorted(ss): print('{0}: {1}, '.format(k, ss[k]), end='') print()

This is what we get as a result:

compound: 0.765, neg: 0.0, neu: 0.815, pos: 0.185

Text to speech example