# sudharsana125/amazon-ml-entity-resolution architecture

> Architecture diagram of the GitHub repository sudharsana125/amazon-ml-entity-resolution, 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/sudharsana125/amazon-ml-entity-resolution
- Repository: https://github.com/sudharsana125/amazon-ml-entity-resolution

## Overview

This repository provides Phase 1 business-entity preprocessing: normalize business names, addresses, and countries, and expose token extraction and DataFrame preprocessing utilities. The main implementation is in student_resource; root-level modules re-export its API. A submission validator is also present, but its source was not sampled, so its role and connections are not inferred.

Main entry points: [`student_resource/src/preprocessing.py`](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/preprocessing.py) (Entity preprocessing), [`src/preprocessing.py`](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/src/preprocessing.py) (Root API forwarder), [`src/__init__.py`](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/src/__init__.py) (Root API exports), [`student_resource/src/__init__.py`](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/__init__.py) (Package API exports)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_preprocessing["Entity preprocessing<br/>[preprocessing.py]"]
node_text_normalization["Text normalization<br/>[preprocessing.py]"]
node_root_forwarder["Root API forwarder<br/>[preprocessing.py]"]
node_root_exports["Root API exports<br/>[__init__.py]"]
node_package_exports["Package API exports<br/>[__init__.py]"]
node_validator["Submission validator"]

node_preprocessing -->|"normalizes with"| node_text_normalization
node_root_forwarder -->|"re-exports"| node_preprocessing
node_root_exports -->|"re-exports"| node_preprocessing
node_package_exports -->|"re-exports"| node_preprocessing

click node_preprocessing "https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/preprocessing.py"
click node_text_normalization "https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/preprocessing.py"
click node_root_forwarder "https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/src/preprocessing.py"
click node_root_exports "https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/src/__init__.py"
click node_package_exports "https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/__init__.py"
click node_validator "https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/utils/validate_submission.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_preprocessing,node_text_normalization,node_validator toneTeal
class node_root_forwarder,node_root_exports,node_package_exports toneMint
```

## Components

### Other components

- [Entity preprocessing](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/preprocessing.py): `student_resource/src/preprocessing.py`
- [Text normalization](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/preprocessing.py): `student_resource/src/preprocessing.py`
- [Root API forwarder](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/src/preprocessing.py): `src/preprocessing.py`
- [Root API exports](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/src/__init__.py): `src/__init__.py`
- [Package API exports](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/src/__init__.py): `student_resource/src/__init__.py`
- [Submission validator](https://github.com/sudharsana125/amazon-ml-entity-resolution/blob/main/student_resource/utils/validate_submission.py): `student_resource/utils/validate_submission.py`

## Connections

- Entity preprocessing → Text normalization: normalizes with (evidence: `student_resource/src/preprocessing.py`)
- Root API forwarder → Entity preprocessing: re-exports (evidence: `src/preprocessing.py`)
- Root API exports → Entity preprocessing: re-exports (evidence: `src/__init__.py`)
- Package API exports → Entity preprocessing: re-exports (evidence: `student_resource/src/__init__.py`)
