Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Narendra Modi - Text Speech Analysis #713

Merged
merged 4 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Narendra Modi - Text Speeches Analysis/Dataset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## DATASET SOURCE:
- https://www.kaggle.com/adiamaan/modi-speeches

## Dataset Description :

- ID
- TITLE
- URL
- ARTICLE TEXT
- IMAGES
- PUBLISH INFO
- TAGS

### Columns Droped are :

- URL
- IMAGES

### Columns Created :

- YEAR
- MONTH
- Sentiments
- Sentimental Score
89,188 changes: 89,188 additions & 0 deletions Narendra Modi - Text Speeches Analysis/Dataset/modi_speeches.csv

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions Narendra Modi - Text Speeches Analysis/Models/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# NAREDRA MODI TEXT SPEECH ANALYSIS

### 🎯 Goal : This project is to analyze the speeches of Narendra Modi.

### 🧵 Dataset : https://www.kaggle.com/adiamaan/modi-speeches

### 🧾 Description :

- Objective: The key idea of this analysis is to extract meaningful insights from the
speeches of a prominent political figure. The analysis aims to understand the themes, keywords, frequency trends, and sentiments expressed in the speeches.

- Method: The analysis is conducted in four parts such as, Tag Frequency Analysis, Keyword Analysis,
Speech Frequency Analysis and finally Sentimental Analysis.

- Outcome: Through these analyses, we gain a comprehensive insight into the content of the speeches
and the thought process of Narendra Modi. The results highlight the main themes, commonly used keywords, trends in speech frequency, and the positive sentiment consistently present in the speeches.


### 🧮 What I had done!(Analytics) :

- Tag Frequency Analysis: Plotted the frequency of the 30 most popular tags on a bar graph, highlighting key
government goals such as Good Governance, Infrastructural Development, Promoting Digital India Campaign, and other government schemes.

- Keyword Analysis: Analyzed the key words mostly included in the speeches, revealing a focus on India,
Economy People, World friends, Productional growth, and Welfare.

- Speech Frequency Analysis: Analyzed the frequency of speeches over the years and months,
showing a peak in 2019 due to the general election, with over 300 speeches.

- Sentiment Analysis: Assessed the sentiment of the speeches,
finding that all were positive with scores greater than 0.9.

### Library used :
- Pandas
- Numpy
- String
- Matplotlib
- Seaborn
- Word cloud

### 📊 Visual Plots :

- ![](/Narendra%20Modi%20-%20Text%20Speeches%20Analysis/Images/Most%20common%20Tags.png)

- ![](/Narendra%20Modi%20-%20Text%20Speeches%20Analysis/Images/Word%20cloud.png)

- ![](/Narendra%20Modi%20-%20Text%20Speeches%20Analysis/Images/Most%20common%20words%20from%20speech.png)

- ![](/Narendra%20Modi%20-%20Text%20Speeches%20Analysis/Images/Number%20of%20Speeches%20per%20Year.png)

- ![](/Narendra%20Modi%20-%20Text%20Speeches%20Analysis/Images/Number%20of%20Speeches%20per%20Month.png)


### ✒️ Contributor :
*Harsh Raj*

*Abhishek Sharma* (Mentor)

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Narendra Modi - Text Speeches Analysis/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
matplotlib==3.5.2
numpy==1.19.2
pandas==1.4.3
nltk==3.8.1
seaborn==0.11.2
vaderSentiment