Address Standardization and Correction Model

This model is t5-base fine-tuned to transform incorrect and non-standard addresses into standardized addresses. , primarily trained for US addresses.

How to use the model

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model = AutoModelForSeq2SeqLM.from_pretrained("Hnabil/t5-address-standardizer")
tokenizer = AutoTokenizer.from_pretrained("Hnabil/t5-address-standardizer")

inputs = tokenizer(
  "220, soyth rhodeisland aveune, mason city, iowa, 50401, us",
  return_tensors="pt"
)
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))

# ['220, s rhode island ave, mason city, ia, 50401, us']

Training data

The model has been trained on data from openaddresses.io.

Downloads last month
1,123
Safetensors
Model size
223M params
Tensor type
F32
ยท
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Model tree for Hnabil/t5-address-standardizer

Quantizations
1 model

Space using Hnabil/t5-address-standardizer 1