datamade / usaddress

:us: a python library for parsing unstructured United States address strings into address components
https://parserator.datamade.us/usaddress
MIT License
1.5k stars 302 forks source link

Error parsing California address #343

Open fablet opened 1 year ago

fablet commented 1 year ago

I have the following address: "'42054 Via San Luis Rey Fremont CA 94539'". When I run it through the tag method this is the response I get: [('AddressNumber', '42054'), ('StreetName', 'Via'), ('PlaceName', 'San Luis Rey Fremont'), ('StateName', 'CA'), ('ZipCode', '94539')] The street name should be "Via San Luis Rey", but you can see the tagger is struggling with the extra long CA street name. Any thoughts on how to combat this to accurately separate the street name from the city?