# hmaroum-dotcom/projet_trump-sentiment-analysis architecture

> Architecture diagram of the GitHub repository hmaroum-dotcom/projet_trump-sentiment-analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hmaroum-dotcom/projet_trump-sentiment-analysis
- Repository: https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis
- Video tour (about a minute): https://gitdiagram.com/hmaroum-dotcom/projet_trump-sentiment-analysis/video

## Overview

This repository is a notebook-based text-mining analysis of public reactions to Donald Trump’s January 2017 inauguration. The documented workflow structures social-media text chronologically, cleans and lemmatizes it, classifies sentiment with VADER, and visualizes temporal and aggregate patterns. The README also describes examining viral slogans and relating publication waves to ceremony events. Only the README is available as evidence; the notebook’s internal control flow and data sources are not verified.

Main entry points: [`Sentiments_Analysis_and_Mining.ipynb`](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb) (Chronological structuring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_preparation["Text preparation"]
  node_chronology["Chronological structuring"]
  node_nlp["Text cleaning and lemmatization"]
end

subgraph group_analysis["Sentiment analysis"]
  node_vader["VADER sentiment classification"]
end

subgraph group_insights["Insights and visuals"]
  node_patterns["Slogan and event analysis"]
  node_visualization["Temporal and global charts"]
end

node_analyst(("Analyst"))
node_posts["2017 social posts"]
node_notebook["Analysis notebook"]

node_analyst -->|"runs in Colab"| node_notebook
node_posts -->|"provides text"| node_chronology
node_notebook -->|"structures data"| node_chronology
node_chronology -->|"prepares text"| node_nlp
node_nlp -->|"feeds classification"| node_vader
node_vader -->|"supports analysis"| node_patterns
node_patterns -->|"visualizes findings"| node_visualization

click node_notebook "https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb"
click node_chronology "https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb"
click node_nlp "https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb"
click node_vader "https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb"
click node_patterns "https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb"
click node_visualization "https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chronology,node_nlp toneBlue
class node_vader toneAmber
class node_patterns,node_visualization toneMint
class node_analyst,node_posts toneIndigo
class node_notebook toneTeal
```

## Components

### Text preparation

- [Chronological structuring](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb): `Sentiments_Analysis_and_Mining.ipynb`
- [Text cleaning and lemmatization](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb): `Sentiments_Analysis_and_Mining.ipynb`

### Sentiment analysis

- [VADER sentiment classification](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb): `Sentiments_Analysis_and_Mining.ipynb`

### Insights and visuals

- [Slogan and event analysis](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb): `Sentiments_Analysis_and_Mining.ipynb`
- [Temporal and global charts](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb): `Sentiments_Analysis_and_Mining.ipynb`

### Other components

- **Analyst**
- **2017 social posts**
- [Analysis notebook](https://github.com/hmaroum-dotcom/projet_trump-sentiment-analysis/blob/main/Sentiments_Analysis_and_Mining.ipynb): `Sentiments_Analysis_and_Mining.ipynb`

## Connections

- Analyst → Analysis notebook: runs in Colab (evidence: `README.md`)
- 2017 social posts → Chronological structuring: provides text (evidence: `README.md`)
- Analysis notebook → Chronological structuring: structures data (evidence: `README.md`)
- Chronological structuring → Text cleaning and lemmatization: prepares text (evidence: `README.md`)
- Text cleaning and lemmatization → VADER sentiment classification: feeds classification (evidence: `README.md`)
- VADER sentiment classification → Slogan and event analysis: supports analysis (evidence: `README.md`)
- Slogan and event analysis → Temporal and global charts: visualizes findings (evidence: `README.md`)
