# harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers architecture

> Architecture diagram of the GitHub repository harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers
- Repository: https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers

## Overview

This repository presents a Streamlit emotion-classification dashboard backed by preserved RoBERTa artifacts. The user enters text, the app loads a model bundle and predicts labels, then displays results and comparisons; it also offers scheme and results visualizations. The README additionally describes the research workflow—clustering GoEmotions labels, fine-tuning models, and analyzing errors—but its implementation is not available in the sampled source. The app excerpt confirms model loading, prediction, and visualization helpers; some UI wiring is not shown.

Main entry points: [`GoEmotions_Artifacts/app.py`](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py) (Streamlit dashboard), [`IMPLEMENTATION CODE.ipynb`](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb) (Model fine-tuning), [`GoEmotions_Artifacts/models/custom/roberta/config.json`](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/models/custom/roberta/config.json) (RoBERTa config), [`GoEmotions_Artifacts/custom_labels.json`](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/custom_labels.json) (Custom labels)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Research workflow"]
  node_label_design["Label clustering"]
  node_model_training["Model fine-tuning"]
  node_error_analysis["Error analysis"]
end

subgraph group_runtime["Prediction runtime"]
  node_model_loading["Model loading<br/>[app.py]"]
  node_prediction["Text prediction<br/>[app.py]"]
  node_explanation["Token highlighting<br/>[app.py]"]
  node_roberta_config["RoBERTa config<br/>[config.json]"]
end

subgraph group_dashboard["Dashboard and analysis"]
  node_dashboard["Streamlit dashboard<br/>[app.py]"]
  node_result_views["Result visualizations<br/>[app.py]"]
  node_scheme_views["Scheme comparison<br/>[app.py]"]
  node_custom_labels["Custom labels<br/>[custom_labels.json]"]
  node_ekman_labels["Ekman labels<br/>[ekman_labels.json]"]
end

node_user(("User"))

node_user -->|"enters text"| node_dashboard
node_dashboard -->|"requests bundle"| node_model_loading
node_model_loading -->|"provides bundle"| node_prediction
node_prediction -->|"uses bundle"| node_model_loading
node_dashboard -->|"requests highlights"| node_explanation
node_dashboard -.->|"shows results"| node_result_views
node_dashboard -.->|"shows schemes"| node_scheme_views
node_label_design -->|"defines labels"| node_model_training
node_model_training -->|"evaluates errors"| node_error_analysis
node_dashboard -.->|"loads labels"| node_custom_labels
node_dashboard -.->|"loads labels"| node_ekman_labels
node_model_loading -.->|"reads config"| node_roberta_config

click node_label_design "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb"
click node_model_training "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb"
click node_error_analysis "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb"
click node_dashboard "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py"
click node_model_loading "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py"
click node_prediction "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py"
click node_explanation "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py"
click node_result_views "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py"
click node_scheme_views "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py"
click node_custom_labels "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/custom_labels.json"
click node_ekman_labels "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/ekman_labels.json"
click node_roberta_config "https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/models/custom/roberta/config.json"

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_label_design,node_model_training,node_error_analysis,node_user toneBlue
class node_model_loading,node_prediction,node_explanation,node_roberta_config toneAmber
class node_dashboard,node_result_views,node_scheme_views,node_custom_labels,node_ekman_labels toneMint
```

## Components

### Research workflow

- [Label clustering](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb): `IMPLEMENTATION CODE.ipynb`
- [Model fine-tuning](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb): `IMPLEMENTATION CODE.ipynb`
- [Error analysis](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/IMPLEMENTATION%20CODE.ipynb): `IMPLEMENTATION CODE.ipynb`

### Prediction runtime

- [Model loading](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py): `GoEmotions_Artifacts/app.py`
- [Text prediction](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py): `GoEmotions_Artifacts/app.py`
- [Token highlighting](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py): `GoEmotions_Artifacts/app.py`
- [RoBERTa config](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/models/custom/roberta/config.json): `GoEmotions_Artifacts/models/custom/roberta/config.json`

### Dashboard and analysis

- [Streamlit dashboard](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py): `GoEmotions_Artifacts/app.py`
- [Result visualizations](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py): `GoEmotions_Artifacts/app.py`
- [Scheme comparison](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/app.py): `GoEmotions_Artifacts/app.py`
- [Custom labels](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/custom_labels.json): `GoEmotions_Artifacts/custom_labels.json`
- [Ekman labels](https://github.com/harrishpanicker/analyzing-the-relationship-between-english-words-and-emotions-evoked-in-readers/blob/main/GoEmotions_Artifacts/ekman_labels.json): `GoEmotions_Artifacts/ekman_labels.json`

### Other components

- **User**

## Connections

- User → Streamlit dashboard: enters text (evidence: `README.md`)
- Streamlit dashboard → Model loading: requests bundle (evidence: `GoEmotions_Artifacts/app.py`)
- Model loading → Text prediction: provides bundle (evidence: `GoEmotions_Artifacts/app.py`)
- Text prediction → Model loading: uses bundle (evidence: `GoEmotions_Artifacts/app.py`)
- Streamlit dashboard → Token highlighting: requests highlights (evidence: `GoEmotions_Artifacts/app.py`)
- Streamlit dashboard → Result visualizations: shows results (evidence: `GoEmotions_Artifacts/app.py`)
- Streamlit dashboard → Scheme comparison: shows schemes (evidence: `GoEmotions_Artifacts/app.py`)
- Label clustering → Model fine-tuning: defines labels (evidence: `README.md`)
- Model fine-tuning → Error analysis: evaluates errors (evidence: `README.md`)
- Streamlit dashboard → Custom labels: loads labels
- Streamlit dashboard → Ekman labels: loads labels
- Model loading → RoBERTa config: reads config
