Skip to content

jellalab/programming-unilab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Trump Speech Explorer – Data Visualization App

This project is an interactive Dash web application that allows users to explore and analyze speeches by Donald Trump. The application visualizes speech metadata, filters speeches by keywords and year, and generates word clouds and transcript views to explore language patterns.

Project Overview

The goal of this project is to demonstrate how text data and metadata from political speeches can be analyzed and visualized using Python. Users can interactively explore speeches, filter them based on keywords, and analyze the language used through NLP techniques.

Features

  • Interactive speech duration visualization using Plotly
  • Filter speeches by year and keywords
  • Choose between matching all or any selected keywords
  • Click a speech to view the full transcript
  • Generate word clouds from speeches
  • Filter word clouds by parts of speech (verbs, nouns, adjectives, adverbs, names)

Technologies Used

  • Python
  • Dash (interactive web applications)
  • Plotly (data visualization)
  • Pandas (data processing)
  • NLTK (natural language processing)
  • WordCloud (text visualization)

Project Structure

project-folder
│
├── app.py                      # Main Dash application
├── speeches_metadata.csv       # Metadata for speeches
├── keyword_presence.csv        # Keyword occurrence table
├── transcripts_reindexed/      # Folder containing speech transcripts
├── *.pkl                       # Preprocessed text files for NLP
└── README.md

How to Run the App

  1. Clone the repository
git clone https://github.com/yourusername/trump-speech-explorer.git
  1. Navigate to the project folder
cd trump-speech-explorer
  1. Install required packages
pip install dash pandas plotly nltk wordcloud
  1. Run the application
python app.py
  1. Open the local server in your browser (usually)
http://127.0.0.1:8050/

Data Sources

Speech transcripts and metadata were compiled for educational purposes as part of a university data analysis project.

Authors

Group 5

  • Amin
  • Piuan
  • Princess Victoria Jella
  • Mads

License

This project is shared for educational purposes.

About

first semester exams project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors