Is there a library for parsing US addresses?

后端 未结 7 570
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 11:54

I have a list of US addresses I need to break into city,state, zip code,state etc.

example address : \"16100 Sand Canyon Avenue, Suite 380 Irvine, CA 92618\"

Do

7条回答
  •  走了就别回头了
    2021-01-30 12:29

    There is powerful open-source library libpostal that fits for this use case very nicely. There are bindings to different programming languages. Libpostal is a C library for parsing/normalizing street addresses around the world using statistical NLP and open data. The goal of this project is to understand location-based strings in every language, everywhere.

    I have created a simple Docker image with Python binding pypostal you can spin off and try very easily pypostal-docker

提交回复
热议问题