Skip to content

Commit

Permalink
Merge pull request #713 from HarshRaj29004/Alternate
Browse files Browse the repository at this point in the history
Narendra Modi - Text Speech Analysis
  • Loading branch information
abhisheks008 authored Jul 21, 2024
2 parents 0c5db61 + 2443cad commit 924825e
Show file tree
Hide file tree
Showing 22 changed files with 89,276 additions and 0 deletions.
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

0 comments on commit 924825e

Please sign in to comment.