Skip to content

Analysing news articles from an RSS feed using NLP to calculate polarity and subjectivity. Visualize results in a user-friendly front-end.

License

Notifications You must be signed in to change notification settings

sidvanvliet/news-polarity-nlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Polarity NLP

A proof of concept project that retrieves and analyzes news articles from a given RSS feed. The project calculates both the polarity and subjectivity of each article using Natural Language Processing (NLP) techniques. The results are then visualized in a front-end for easy interpretation.

Features

  • Retrieves new articles from the specified RSS feed.
  • Utilizes NLP to analyze the polarity and subjectivity of each article.
  • Presents the analysis results in an straight-to-the-point front-end for quick insights.

Usage

Clone the Repository

$ git clone https://github.com/sidvanvliet/news-polarity-nlp.git

Install Dependencies

$ pip install -r requirements.txt

Run the Python App

Execute the main Python script to run the application. You can schedule this as needed, and the app will check for new articles every time it runs.

$ python main.py

Run the Frontend

Change directory to the 'frontend' folder and run the Flask application:

$ cd frontend
$ flask run

Access the frontend by navigating to http://localhost:5000 in your web browser, which presents a simple site with displaying the 10 most recent articles that the application scanned. The table includes the polarity and subjectivity of each article and also lists the combined median polarity of those articles.

Licenses

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

TODO

  • Add multilingual support
  • Add tests

About

Analysing news articles from an RSS feed using NLP to calculate polarity and subjectivity. Visualize results in a user-friendly front-end.

Resources

License

Stars

Watchers

Forks