Downloads · 30 days
48
19% of all-time downloads
howdoiuse-keyboard/indian-address-parser-model
indian-address-parser-model is a token classification model from howdoiuse-keyboard. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
A fine-tuned IndicBERTv2-SS + CRF model for parsing unstructured Indian addresses into structured components.
Downloads · 30 days
48
19% of all-time downloads
All-time downloads
257
Public
Repo size
3.3 GB
Likes
0
Public
Click a slice to open those files.
.bin1.1 GB · 99%
From the Hugging Face model README
A fine-tuned IndicBERTv2-SS + CRF model for parsing unstructured Indian addresses into structured components.
| Entity Type | Precision | Recall | F1-Score |
|---|---|---|---|
| AREA | 0.87 | 0.87 | 0.87 |
| CITY | 1.00 | 1.00 | 1.00 |
| FLOOR | 0.85 | 0.85 | 0.85 |
| GALI | 0.75 | 0.67 | 0.71 |
| HOUSE_NUMBER | 0.79 | 0.79 | 0.79 |
| KHASRA | 0.75 | 0.82 | 0.78 |
| PINCODE | 1.00 | 1.00 | 1.00 |
| Overall | 0.79 | 0.81 | 0.80 |
HOUSE_NUMBER - House/Plot/Flat numbersFLOOR - Floor indicators (Ground, First, etc.)BLOCK - Block identifiersSECTOR - Sector numbersGALI - Gali (lane) numbersCOLONY - Colony/Society namesAREA - Area/Locality namesSUBAREA - Sub-area namesKHASRA - Khasra (land record) numbersPINCODE - 6-digit postal codesCITY - City namesSTATE - State namesfrom address_parser import AddressParser
# Load model
parser = AddressParser.from_pretrained("YOUR_USERNAME/indian-address-parser-model")
# Parse address
result = parser.parse("PLOT NO752 FIRST FLOOR, BLOCK H-3, NEW DELHI, 110041")
# Access structured output
print(result.house_number) # "PLOT NO752"
print(result.floor) # "FIRST FLOOR"
print(result.city) # "NEW DELHI"
print(result.pincode) # "110041"