Skip to content

Positive news aggregator built on sentiment analysis in TensorFlow with an RNN to sort news feed. Extracts keywords with scikit-learn and NLTK for topic modelling, web scrapes with Python for data.

License

Notifications You must be signed in to change notification settings

RaymondLZhou/uplifting-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uplifting News

Positive news aggregator built on sentiment analysis in TensorFlow and Keras with an RNN to sort news feed. Extracts keywords with scikit-learn and NLTK to perform topic modelling, web scraping with Python for data.

Description

We train an RNN on the IMDB large movie review dataset for sentiment analysis. The raw text is preprocessed, then fed into the model. The model is used to predict the positivity of a given news article, with the most positive being displayed first. Additionally, Latent Dirichlet Allocation is used for topic modelling and keyword extraction.

Examples

Article Title Keywords Score
Rashford's free school meals victory 'chance to end holiday hunger' school, meal, free, england, voucher 0.936
How football can help displaced people 'heal, develop and grow' refugee, football, photo, participant, goal 0.4019
Michael Irving: Teens jailed for 'Trojan horse trap' murder hair, twitter, footballer, sharp, post -0.9442

Getting Started

How to run the application

  1. Clone the repository.
  2. Open constants.py and adjust the values as desired.
  3. Run main.py with python main.py. The output data is saved in data/sentiment.csv.

Built With

License

This project is licensed under the MIT License - see LICENSE file for details.

About

Positive news aggregator built on sentiment analysis in TensorFlow with an RNN to sort news feed. Extracts keywords with scikit-learn and NLTK for topic modelling, web scrapes with Python for data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages