GithubHelp home page GithubHelp logo

chaithrakc / sentiment-analysis-covid-news-articles Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 17.65 MB

Predicting sentiment polarity of COVID-19 news articles using Machine Learning and Deep Learning models

License: MIT License

Jupyter Notebook 100.00%
bert-embeddings bilstm-model corpus-analysis corpus-statistics deep-learning lemmatization machine-learning naive-bayes-classifier xlnet-model

sentiment-analysis-covid-news-articles's Introduction

Sentiment Analysis of COVID News Stories

This project aims to analyze the sentiment polarity of news articles related to COVID-19 from various countries, specifically the UK, India, Japan, and South Korea. The dataset used in this project was collected from IEEE data port and comprises of 10,000 news articles.

The initial step in this project was data cleaning, pre-processing, and exploratory analysis. These processes were carried out to ensure the quality and consistency of the data.

After pre-processing the dataset, the textual data was transformed into numeric vectors using word vectorization techniques. These techniques included the Bag of Words (BOW) model, BERT word embedding, and XLNet embedding, which were used to convert the text data into numerical representations that can be fed into machine learning algorithms.

The sentiment polarity of each news article was predicted using two different models. The Naïve Bayes classifier and BiLSTM (Bidirectional Long Short-Term Memory) neural network were used to classify the news articles into one of three categories: Negative, Positive, and Neutral. The BiLSTM model achieved an accuracy of 64%, whereas the Naive Bayes algorithm with 10-fold cross-validation had an accuracy of 78%. The results showed that the Naive Bayes algorithm performed better on this dataset than the BiLSTM neural network.

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.