NAP-Consistency-Checker: Local SEO NAP and Entity Validation

Type: Commercial | Domain: SEO, Local SEO
Hugging Face: syeedalireza/nap-consistency-checker

Validate NAP (Name, Address, Phone) consistency and entity alignment across pages and citation sources.

Author

Alireza Aminzadeh

Problem

Local SEO depends on consistent NAP across site and citations. Detecting variations and normalizing entities reduces confusion for users and search engines.

Approach

  • Input: Text snippets or structured NAP fields (name, address, phone) from multiple sources.
  • Output: Consistency flags (match/mismatch), normalized canonical form, optional entity resolution (same business or not).
  • Models: Rule-based normalization (address/phone parsing) + optional transformer/NER for extracting NAP from raw text; embedding similarity for entity matching.

Tech Stack

Category Tools
NLP Hugging Face Transformers, sentence-transformers (optional)
Rules regex, standard phone/address parsing
Data pandas, NumPy

Setup

pip install -r requirements.txt

Usage

python inference.py --input data/citations.csv --reference data/reference_nap.csv --output output/consistency_report.csv
  • normalize.py provides NAP normalization helpers (used by inference). No separate β€œbuild canonical” step; the reference is read from the reference CSV.

Project structure

09_nap-consistency-checker/
β”œβ”€β”€ config.py
β”œβ”€β”€ normalize.py       # NAP normalization helpers
β”œβ”€β”€ inference.py      # Compare citations to reference NAP
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .env.example
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ reference_nap.csv   # Canonical NAP (one row: name, address, phone)
β”‚   └── citations.csv       # Source, name, address, phone per citation
└── output/                 # consistency_report.csv

Data

  • Sample data (included): data/reference_nap.csv (one row: name, address, phone), data/citations.csv (columns: source, name, address, phone). Output: name_match, address_match, phone_match, nap_consistent.

License

MIT.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support