Skip to content

This project is a Python-based application that scrapes news articles from various sources, performs sentiment analysis, and extracts key topics from the content. The goal is to analyze the emotional tone of news articles and highlight the primary subjects being discussed.

Notifications You must be signed in to change notification settings

DavidWang67/news_sentiment_analysis

Repository files navigation

Features:

  • News Scraping: Collects news articles from multiple online sources using web scraping techniques.
  • Sentiment Analysis: Uses a fine-tuned sentiment analysis model to classify the tone of articles as positive, negative, or neutral.
  • Topic Extraction: Extracts key topics and entities from each article using advanced natural language processing (NLP) techniques.
  • Data Visualization: Provides visual insights on sentiment distribution and trending topics.
  • Language support: English, Mandarin

Tech Stack:

  • Programming Language: Python, Javascript
  • Libraries: BeautifulSoup, Requests, NLTK, SpaCy, Transformers (Hugging Face), Matplotlib/Seaborn for visualization
  • Model: sentiment analysis model, topics extraction model(BERTopic with hdbscan)

How to Use:

  1. clone the repository.
  2. Install the required dependencies.
  3. Run the app.py to start the program

Feel free to customize this based on your project specifics! Let me know if you’d like to tweak or add anything.

About

This project is a Python-based application that scrapes news articles from various sources, performs sentiment analysis, and extracts key topics from the content. The goal is to analyze the emotional tone of news articles and highlight the primary subjects being discussed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published