Coder Social home page Coder Social logo

mounishkokkula / sentimentenhanced-multidimensional-analysis-of-online-social-networks-a-continuous-learning-approach Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.08 MB

Sentiment-enhanced Multidimensional Analysis of Online Social Networks - A Continuous learning approach (Python,Machine learning Naive bayes,MS SQL Server)

Python 100.00%

sentimentenhanced-multidimensional-analysis-of-online-social-networks-a-continuous-learning-approach's Introduction

Sentiment-enhanced Multidimensional Analysis of Online Social Networks - A Continuous learning approach (Python,Machine learning Naive bayes,MS SQL Server)

Note:Integration with MSSQL Servercoming pending.

Vader (Valence Aware Dictionary and sEntiment Reasoner) - a Sentiment Analysis library, is a very useful library for sentiment analysis. But it fails in analyzing short texts (such as tweets )

Goal

Improve sentiment analysis on the short text by adding a machine learning approach to Vader.

Approach

Use manually labeled data and compare it with the output from Vader analysis data. In the case of contradiction between the outputs use the data with higher confidence. Construct a new data column based on the condition above. Treating the obtained data as training data - Feed the data to the Naive Bayes Classifier (for initial test purposes) and pickle the classifier. Use the pickled data for sentiment Analysis for new texts.

The output is manually analyzed and corrected in case of an error - the corrected output is given as an input to the model making it a continuous learning model

Result

The Hybrid model thus developed, would combine the reasoning of Vader with that of Naive Bayes from Machine learning with the power of continuous learning.

CsvRead_VaderMod_CsvWrite.py

Reads data from the csv file and converts it into a data frame with pandas. It is then used to work with Vader and determine the sentiment. This is then compared with the manual sentiment grading in the CSV file. In the case of contradiction between the outputs use the data with higher confidence. Construct a new data column based on the condition above. Treating the obtained data as training data - Feed the data to the Naive Bayes Classifier (for initial test purposes) and pickle the classifier. Use the pickled data for sentiment Analysis for new texts.

tweets.csv

The CSV file containing the tweets/text to train the classifier.

VaderNaivebayes_Testing.py

A simple test file to check the correctness of the results.

sentimentenhanced-multidimensional-analysis-of-online-social-networks-a-continuous-learning-approach's People

Contributors

mounishkokkula avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.