# sorrychoe/pybigkinds architecture

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

- Interactive diagram: https://gitdiagram.com/sorrychoe/pybigkinds
- Repository: https://github.com/sorrychoe/pybigkinds

## Overview

pyBigKinds is a Python toolkit for low-code analysis of BigKinds news datasets supplied as pandas DataFrames. Users import the package API, inspect news coverage, preprocess keyword data, compute text representations and analysis results, then visualize keyword frequencies or reduced-dimensional data. Its core runtime is organized around shared keyword parsing/counting helpers, preprocessing, analytical representations, and plotting. README examples document press counts and press-specific word clouds; source excerpts confirm the implementation paths. No persistent store or external service is shown.

Main entry points: [`pyBigKinds/__init__.py`](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/__init__.py) (Public API), [`pyBigKinds/base.py`](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/base.py) (Keyword Helpers), [`pyBigKinds/preprocessing.py`](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py) (Keyword Tables), [`pyBigKinds/representation.py`](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py) (Dimension Reduction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Package API"]
  node_public_api["Public API<br/>[__init__.py]"]
  node_version["Version<br/>[_version.py]"]
end

subgraph group_shared["Shared Data Helpers"]
  node_keyword_helpers["Keyword Helpers<br/>[base.py]"]
end

subgraph group_analysis["Text Analysis"]
  node_news_stats["News Statistics<br/>[representation.py]"]
  node_keyword_tables["Keyword Tables<br/>[preprocessing.py]"]
  node_tfidf["TF-IDF Vectors<br/>[preprocessing.py]"]
  node_vector_normalizer["Vector Normalizer<br/>[preprocessing.py]"]
  node_dim_reduction["Dimension Reduction<br/>[representation.py]"]
  node_clustering["Clustering<br/>[representation.py]"]
  node_topic_model["Topic Modeling<br/>[representation.py]"]
  node_association_rules["Association Rules<br/>[representation.py]"]
end

subgraph group_viz["Visualization"]
  node_wordcloud["Keyword Word Cloud<br/>[visualization.py]"]
  node_top_words["Top Words Chart<br/>[visualization.py]"]
  node_scatterplot["Scatter Plot<br/>[visualization.py]"]
end

node_analyst(("Analyst"))

node_analyst -->|"calls"| node_public_api
node_public_api -->|"imports"| node_version
node_public_api -->|"exports"| node_news_stats
node_public_api -->|"exports"| node_keyword_tables
node_public_api -->|"exports"| node_tfidf
node_public_api -->|"exports"| node_vector_normalizer
node_public_api -->|"exports"| node_dim_reduction
node_public_api -->|"exports"| node_clustering
node_public_api -->|"exports"| node_topic_model
node_public_api -->|"exports"| node_association_rules
node_public_api -->|"exports"| node_wordcloud
node_public_api -->|"exports"| node_top_words
node_public_api -->|"exports"| node_scatterplot
node_keyword_tables -->|"uses"| node_keyword_helpers
node_tfidf -->|"uses"| node_keyword_helpers
node_vector_normalizer -.->|"normalizes vectors from"| node_keyword_tables
node_dim_reduction -->|"uses"| node_keyword_helpers
node_topic_model -->|"uses"| node_keyword_helpers
node_association_rules -->|"uses"| node_keyword_helpers
node_wordcloud -->|"uses"| node_keyword_helpers
node_top_words -->|"uses"| node_keyword_helpers

click node_public_api "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/__init__.py"
click node_version "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/_version.py"
click node_news_stats "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py"
click node_keyword_helpers "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/base.py"
click node_keyword_tables "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py"
click node_tfidf "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py"
click node_vector_normalizer "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py"
click node_dim_reduction "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py"
click node_clustering "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py"
click node_topic_model "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py"
click node_association_rules "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py"
click node_wordcloud "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/visualization.py"
click node_top_words "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/visualization.py"
click node_scatterplot "https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/visualization.py"

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_public_api,node_version toneBlue
class node_keyword_helpers toneAmber
class node_news_stats,node_keyword_tables,node_tfidf,node_vector_normalizer,node_dim_reduction,node_clustering,node_topic_model,node_association_rules toneMint
class node_wordcloud,node_top_words,node_scatterplot toneRose
class node_analyst toneIndigo
```

## Components

### Package API

- [Public API](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/__init__.py): `pyBigKinds/__init__.py`
- [Version](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/_version.py): `pyBigKinds/_version.py`

### Shared Data Helpers

- [Keyword Helpers](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/base.py): `pyBigKinds/base.py`

### Text Analysis

- [News Statistics](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py): `pyBigKinds/representation.py`
- [Keyword Tables](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py): `pyBigKinds/preprocessing.py`
- [TF-IDF Vectors](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py): `pyBigKinds/preprocessing.py`
- [Vector Normalizer](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/preprocessing.py): `pyBigKinds/preprocessing.py`
- [Dimension Reduction](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py): `pyBigKinds/representation.py`
- [Clustering](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py): `pyBigKinds/representation.py`
- [Topic Modeling](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py): `pyBigKinds/representation.py`
- [Association Rules](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/representation.py): `pyBigKinds/representation.py`

### Visualization

- [Keyword Word Cloud](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/visualization.py): `pyBigKinds/visualization.py`
- [Top Words Chart](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/visualization.py): `pyBigKinds/visualization.py`
- [Scatter Plot](https://github.com/sorrychoe/pybigkinds/blob/release/pyBigKinds/visualization.py): `pyBigKinds/visualization.py`

### Other components

- **Analyst**

## Connections

- Analyst → Public API: calls (evidence: `README.md`)
- Public API → Version: imports (evidence: `pyBigKinds/__init__.py`)
- Public API → News Statistics: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Keyword Tables: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → TF-IDF Vectors: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Vector Normalizer: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Dimension Reduction: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Clustering: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Topic Modeling: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Association Rules: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Keyword Word Cloud: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Top Words Chart: exports (evidence: `pyBigKinds/__init__.py`)
- Public API → Scatter Plot: exports (evidence: `pyBigKinds/__init__.py`)
- Keyword Tables → Keyword Helpers: uses (evidence: `pyBigKinds/preprocessing.py`)
- TF-IDF Vectors → Keyword Helpers: uses (evidence: `pyBigKinds/preprocessing.py`)
- Vector Normalizer → Keyword Tables: normalizes vectors from (evidence: `pyBigKinds/preprocessing.py`)
- Dimension Reduction → Keyword Helpers: uses (evidence: `pyBigKinds/representation.py`)
- Topic Modeling → Keyword Helpers: uses (evidence: `pyBigKinds/representation.py`)
- Association Rules → Keyword Helpers: uses (evidence: `pyBigKinds/representation.py`)
- Keyword Word Cloud → Keyword Helpers: uses (evidence: `pyBigKinds/visualization.py`)
- Top Words Chart → Keyword Helpers: uses (evidence: `pyBigKinds/visualization.py`)
