A newer version of the Gradio SDK is available:
5.36.2
metadata
title: Multi-Model Indian Address NER
emoji: 🏠
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.35.0
app_file: app.py
pinned: false
Multi-Model Indian Address NER Demo
This is a Gradio-based demo that allows you to compare three different Indian Address NER models:
- TinyBERT - Lightweight and fast
- ModernBERT - Modern architecture
- IndicBERT - Indic language optimized
What it does
This application allows you to:
- Single Model Analysis: Choose one model and extract entities from Indian addresses
- Model Comparison: Compare how all three models perform on the same address
- Interactive Testing: Use sample addresses or input your own
The models can identify:
- Building names
- Floor numbers
- House details
- Roads
- Sub-localities
- Localities
- Landmarks
- Cities
- States
- Countries
- Pincodes
How to use
Single Model Analysis
- Select a model from the dropdown (TinyBERT, ModernBERT, or IndicBERT)
- Enter an Indian address in the text box
- Click "Extract Entities" or press Enter
- View the extracted entities with confidence scores
Model Comparison
- Go to the "Model Comparison" tab
- Enter an address
- Click "Compare All Models"
- See how each model performs on the same input
Example addresses
- Shop No 123, Sunshine Apartments, Andheri West, Mumbai, 400058
- DLF Cyber City, Sector 25, Gurgaon, Haryana
- Flat 201, MG Road, Bangalore, Karnataka, 560001
Model Information
TinyBERT
- Parameters: ~66.4M
- Advantages: Fastest inference, lowest memory
- Best for: Real-time applications, mobile deployment
ModernBERT
- Parameters: ~599MB model
- Advantages: Modern architecture, balanced performance
- Best for: High accuracy with reasonable speed
IndicBERT
- Parameters: ~131MB model
- Advantages: Optimized for Indian languages/contexts
- Best for: Mixed language addresses, regional contexts
Framework: PyTorch + Transformers