# srujannampally/dependency_parser architecture

> Architecture diagram of the GitHub repository srujannampally/dependency_parser, 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/srujannampally/dependency_parser
- Repository: https://github.com/srujannampally/dependency_parser

## Overview

NLP Dependency Parser is a Streamlit application: a user enters a sentence, the app processes it with spaCy, then displays token/POS analysis, named entities, a dependency visualization, and sentence statistics. These are distinct outputs of the same parsed document, not a sequence of processing stages. The runtime is implemented entirely in app.py; the graph separates its responsibilities for clarity. Edges reflect the calls and data use shown in that file; no other runtime modules are present in the supplied tree.

Main entry points: [`app.py`](https://github.com/srujannampally/dependency_parser/blob/main/app.py) (Streamlit app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_app["Streamlit app<br/>[app.py]"]
end

subgraph group_analysis["NLP analysis"]
  node_model_loader["Model loader<br/>[app.py]"]
  node_spacy_model["spaCy model"]
  node_parser["Sentence parser<br/>[app.py]"]
end

subgraph group_results["Analysis results"]
  node_token_analysis["Token analysis<br/>[app.py]"]
  node_named_entities["Named entities<br/>[app.py]"]
  node_dependency_view["Dependency graph<br/>[app.py]"]
  node_statistics["Sentence statistics<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"enters sentence"| node_app
node_app -->|"loads model"| node_model_loader
node_model_loader -->|"loads"| node_spacy_model
node_app -->|"parses sentence"| node_parser
node_app -->|"builds table"| node_token_analysis
node_app -->|"displays entities"| node_named_entities
node_app -->|"renders dependencies"| node_dependency_view
node_app -->|"computes metrics"| node_statistics
node_parser -->|"provides document"| node_token_analysis
node_parser -->|"provides document"| node_named_entities
node_parser -->|"provides document"| node_dependency_view
node_parser -->|"provides document"| node_statistics

click node_app "https://github.com/srujannampally/dependency_parser/blob/main/app.py"
click node_model_loader "https://github.com/srujannampally/dependency_parser/blob/main/app.py"
click node_parser "https://github.com/srujannampally/dependency_parser/blob/main/app.py"
click node_token_analysis "https://github.com/srujannampally/dependency_parser/blob/main/app.py"
click node_named_entities "https://github.com/srujannampally/dependency_parser/blob/main/app.py"
click node_dependency_view "https://github.com/srujannampally/dependency_parser/blob/main/app.py"
click node_statistics "https://github.com/srujannampally/dependency_parser/blob/main/app.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_app,node_user toneBlue
class node_model_loader,node_spacy_model,node_parser toneAmber
class node_token_analysis,node_named_entities,node_dependency_view,node_statistics toneMint
```

## Components

### User interaction

- [Streamlit app](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`

### NLP analysis

- [Model loader](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`
- **spaCy model**
- [Sentence parser](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`

### Analysis results

- [Token analysis](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`
- [Named entities](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`
- [Dependency graph](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`
- [Sentence statistics](https://github.com/srujannampally/dependency_parser/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Streamlit app: enters sentence (evidence: `app.py`)
- Streamlit app → Model loader: loads model (evidence: `app.py`)
- Model loader → spaCy model: loads (evidence: `app.py`)
- Streamlit app → Sentence parser: parses sentence (evidence: `app.py`)
- Streamlit app → Token analysis: builds table (evidence: `app.py`)
- Streamlit app → Named entities: displays entities (evidence: `app.py`)
- Streamlit app → Dependency graph: renders dependencies (evidence: `app.py`)
- Streamlit app → Sentence statistics: computes metrics (evidence: `app.py`)
- Sentence parser → Token analysis: provides document (evidence: `app.py`)
- Sentence parser → Named entities: provides document (evidence: `app.py`)
- Sentence parser → Dependency graph: provides document (evidence: `app.py`)
- Sentence parser → Sentence statistics: provides document (evidence: `app.py`)
