# kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques architecture

> Architecture diagram of the GitHub repository kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques
- Repository: https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques

## Overview

##### Project Type and Purpose
- This is a data‐science/NLP analysis pipeline implemented as a series of Jupyter notebooks.
- Purpose: scrape FOMC transcripts, store them, run classical NLP (VADER sentiment, LDA topics), run transformer‐based NLP (FinBERT sentiment, extractive summarization, BERTopic topic modeling), and produce visual analytics.

##### File Structure
- All processing steps are codified in individual notebooks:
- Notebook 1: Data scraping & metadata extraction
- Notebook 2: Classical sentiment (VADER), word clouds, LDA topic modeling
- Notebook 3: FinBERT sentiment analysis
- Notebook 4: FinBERT-based summarization
- Notebook 5: BERTopic transformer-based topic modeling
- Supporting documents (tech slides, problem statement) and a README for context.
- No separate folders—each notebook is effectively a pipeline stage.

##### README for Architecture Insights
- Sequential “Step 1 → Step 2 → … → Step 6” pipeline.
- Tech stack at each stage: BeautifulSoup/Requests for scraping; Pandas for data; VADER/Gensim for classical NLP; Transformers, BERTopic, UMAP, HDBSCAN for modern NLP; Matplotlib/Seaborn/Plotly/WordCloud for visualizations.
- No external microservices or databases are explicitly defined—it’s file‐based or in‐memory storage.

##### Main Components
a. Data Source
- Federal Reserve website (FOMC calendar & transcripts).
b. Ingestion Module
- Notebook 01: Scraper + metadata extractor.
c. Raw Data Storage
- Local files or data lake (CSV/JSON directory).
d. Preprocessing
- Text cleaning, noise detection.
- Often part of notebooks 2 & 3.
e. Classical NLP Branch
i. Sentiment Analysis (VADER) – Notebook 2
ii. Word Cloud Generation – Notebook 2
iii. Topic Modeling (LDA) – Notebook 2
f. Transformer NLP Branch
i. Sentiment Analysis (FinBERT) – Notebook 3
ii. Extractive Summarization (FinBERT + MMR) – Notebook 4
iii. Topic Modeling (BERTopic + UMAP + HDBSCAN) – Notebook 5
g. Results Storage
- Structured output (dataframes, pickled objects).
h. Visualization & Reporting
- Matplotlib/Seaborn/Plotly dashboards, word clouds, slides.
i. Final Deliverables
- FedNLP_Slides.pdf, summary CSVs, charts.

##### Relationships and Data Flows
Data Source → Ingestion → Raw Data Storage
Raw Data Storage → Preprocessing → Branch into Classical & Transformer NLP
Each NLP module outputs into Results Storage
Results Storage → Visualization & Reporting → Final Deliverables

##### Architectural Patterns & Principles
- Pipeline pattern: sequential, branching pipelines for classical vs modern NLP.
- Modular separation: each notebook is its own processing stage/module.
- Single responsibility: scraping, cleaning, sentiment, topics, summarization are discrete steps.

##### Key Technologies & Frameworks
- Scraping: BeautifulSoup, Requests
- Data management: Pandas
- Classical NLP: VADER, Gensim (LDA)
- Transformers: Hugging Face (FinBERT), BERTopic, UMAP, HDBSCAN
- Visualization: Seaborn, Matplotlib, Plotly, WordCloud

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% External Data Source
    DataSource["Federal Reserve Website (FOMC Transcripts)"]:::external

    %% Ingestion Module
    DataSource -->|"HTML"| Ingestion["Notebook 01 – Scraper & Metadata Extraction"]:::process
    click Ingestion "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/01_Scrape_FOMC_Minutes_ipynb.ipynb"

    %% Raw Data Storage
    Ingestion -->|"CSV/JSON"| RawData["Raw Transcripts"]:::storage

    %% Preprocessing Step
    RawData -->|"Pandas DataFrame"| Preprocessing["Preprocessing (Cleaning & Noise Detection)"]:::process

    %% Classical NLP Branch
    Preprocessing -->|"DataFrame"| Classical["Notebook 02 – VADER Sentiment, Word Cloud & LDA"]:::process
    click Classical "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/02_Sentiment_+_Word_Cloud.ipynb"
    Classical -->|"Pickle/DataFrame"| Processed["Processed Results"]:::storage

    %% Transformer NLP Branch
    Preprocessing -->|"DataFrame"| T3["Notebook 03 – FinBERT Sentiment Analysis"]:::process
    click T3 "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/03_FOMC_Meeting_Minutes_Sentiment_Analysis_FinBERT_Transformer.ipynb"
    T3 -->|"DataFrame"| T4["Notebook 04 – Extractive Summarization (FinBERT + MMR)"]:::process
    click T4 "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/04_Summarization_with_FinBERT_+_MMR.ipynb"
    T4 -->|"DataFrame"| T5["Notebook 05 – BERTopic Topic Modeling (UMAP + HDBSCAN)"]:::process
    click T5 "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/05_FOMC_Topic_Modeling_BERTopic_Analysis.ipynb"
    T5 -->|"Pickle/DataFrame"| Processed

    %% Visualization & Reporting
    Processed -->|"DataFrame/Plots"| Visualization["Visualization & Reporting (Matplotlib/Seaborn/Plotly/WordCloud)"]:::process

    %% Final Deliverables
    Visualization -->|"PNG/CSV/PDF"| Slides["Final Deliverables (FedNLP_Slides.pdf, Charts, Summary CSVs)"]:::external
    click Slides "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/FedNLP_Slides.pdf"

    %% Project Documentation
    Slides --> Doc1["Problem Statement"]:::doc
    click Doc1 "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/Fed_Problem Statement.pdf"
    Slides --> Doc2["Project Overview & Instructions"]:::doc
    click Doc2 "https://github.com/kkrishnaa30/fednlp-analyzing-federal-reserve-meeting-minutes-with-nlp-techniques/blob/main/README.md"

    %% Styling
    classDef external fill:#FFA500,stroke:#333,stroke-width:1px,color:#000;
    classDef process fill:#8FBC8F,stroke:#333,stroke-width:1px,color:#000;
    classDef storage fill:#87CEFA,stroke:#333,stroke-width:1px,color:#000;
    classDef doc fill:#FFD700,stroke:#333,stroke-width:1px,color:#000;
```
