TweetAnalyser

TweetsAnalyser

Analyses the sentiment of the tweets written by people into positive, negative & nuetral. Inspiration for this app came from a study conducted in IIT,Bhubaneswar : https://arxiv.org/pdf/1610.09225.pdf For any particular handle, this app analyses the cumulative sentiment of 100 latest tweets (written in english language) and generates an emoji based on results.

Text Classfier Machine learning model which classifies any text into positive, negative & nuetral statement is trained using CreateML. For more info on CreateML visit : https://developer.apple.com/machine-learning/create-ml/ alt text

CoreML is then used to incoporate self-trained model into our app. For more info on CoreML visit : https://developer.apple.com/machine-learning/core-ml/ alt text

Functionality:

When user enters a handle name, app requests twitter api (https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html) to provide 100 latest tweets for that handle which are in english language. App uses Swifter framework for making api requests (https://github.com/mattdonnelly/Swifter).Then SwiftyJSON cocoapod (http://cocoapods.org/pods/SwiftyJSON) is used to parse JSON result and then feed an array of 100 tweets to our self-trained machine learning model.

Result parameters:
-For every positive tweet +1 is added,
-For every negative tweet -1 is added and
-For every nuetral tweet nothing is added to sentiment score.

Finally the sentiment score generates a corresponding emoji representing the overall sentiment of 100 tweets towards the entered handle name.

alt text

Visit original content creator repository https://github.com/aanchalpatial/TweetAnalyser

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *