news-sentimental-analysis
所属分类:自然语言处理
开发工具:Jupyter Notebook
文件大小:0KB
下载次数:0
上传日期:2024-01-06 03:32:01
上 传 者:
sh-1993
说明: 新闻情感分析
(news sentimental analysis)
文件列表:
LICENSE
news_sentimental_analysis.ipynb
# Sentiment Analysis of News Articles
This project performs sentiment analysis on news articles fetched from [newsapi.org](https://newsapi.org) to determine the prevailing sentiment (positive, neutral, negative) towards specific topics over time.
## Project Overview
The sentiment analysis is conducted through a series of steps using natural language processing (NLP) techniques. The project is structured into four main phases:
1. **Data Acquisition**: Fetching articles using the newsapi.org API.
2. **Data Preprocessing**: Cleaning and translating articles for consistency.
3. **Sentiment Analysis**: Computing sentiment scores and categorizing articles.
4. **Data Visualization**: Visualizing the results with interactive plots.
## Setup
Install the required libraries using pip:
```
!pip install requests pandas textblob matplotlib plotly langdetect googletrans nltk
```
MyBinder: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crackie-hakz/news-sentimental-analysis/HEAD)
It may take 3-4 minutes for launching, please be patient!!
## Screenshots of plots
![image](https://github.com/crackie-hakz/news-sentimental-analysis/assets/145805767/3b315d18-937d-484f-b010-d4229efbac12)
![image](https://github.com/crackie-hakz/news-sentimental-analysis/assets/145805767/31503d12-5ca5-42d6-a896-f42fb76a2ba4)
![image](https://github.com/crackie-hakz/news-sentimental-analysis/assets/145805767/b174911d-16fc-4c26-8ad9-f783348d5d2b)
近期下载者:
相关文件:
收藏者: