Sentiment analysis
RMB.py
leaves the realm of RBMs and enters a tone analyzer phase using sentiment analysis to parse X's social networks.
The following code triggers the bot to ask you once again whether you agree (the mind-dataset-building bot) to parse X's social networks:
Press ENTER if you agree to learn more about X. The AI program will now enter social networks to scan X's social media profile.
First words(Tweets, posts, messages on Facebook and much more) will be analyzed then images
Press ENTER if you agree to scan X's social networking...
Parsing the datasets
For this to work, a bot has read through X's data. A bot can use big data map and retrieve functions that Google, Amazon, Facebook, LinkedIn, and other social networks have been developing.
The sentiment analysis function is a TextBlob module. Entering the text and text+.sentiment
will return the following sentiment analysis:
myview=TextBlob("I hate movie 1. It was too violent ") print(myview,":","\n",myview.sentiment,"\n")
The output...