A deepparse address parser (Seq2Seq, with attention mechanism) using the multilingual BPEmb subword embeddings (100,000 merges, 300 dimensions), embedded per word by a bidirectional LSTM.
from deepparse.parser import AddressParser
address_parser = AddressParser(model_type="bpemb", attention_mechanism=True)
address_parser("350 rue des Lilas Ouest Québec Québec G1L 1B6")
One-layer LSTM encoder and decoder, hidden size 1,024, BPEmb embeddings of 300 dimensions, with an attention mechanism. The
model predicts 8 tags (StreetNumber, StreetName, Unit, Municipality, Province, PostalCode, Orientation
and GeneralDelivery) and the end-of-sequence tag.
Trained in 2020 on the dataset described in the deepparse-address-data repository (addresses of 20 countries, built from the libpostal data). See Leveraging Subword Embeddings for Multinational Address Parsing and Multinational Address Parsing: A Zero-Shot Evaluation.
Per-country tables: the Results page of the documentation.
Orientation and GeneralDelivery tags: in November 2026, it predicted
neither on 12,000 addresses of the worldwide-addresses test split.@misc{yassine2020leveraging,
title={{Leveraging Subword Embeddings for Multinational Address Parsing}},
author={Marouane Yassine and David Beauchemin and François Laviolette and Luc Lamontagne},
year={2020},
eprint={2006.16152},
archivePrefix={arXiv}
}