usaddress
usaddress copied to clipboard
RepeatedLabelError from two word city
Address: 10600 FOLSOM BLVD RANCHO CORDOVA 95670 CA
Here is the building: https://www.google.com/maps/place/10600+Folsom+Blvd,+Rancho+Cordova,+CA+95670/@38.5959125,-121.293499,17z/data=!3m1!4b1!4m5!3m4!1s0x809add118796d177:0x8a022bc11033cc22!8m2!3d38.5959083!4d-121.2913103
What happened: Rancho Cordova
is a two word city in CA. Cordova appears to be parsed out as a state which conflicted with CA.
Error text:
usaddress.RepeatedLabelError:
ERROR: Unable to tag this string because more than one area of the string has the same label
ORIGINAL STRING: 10600 FOLSOM BLVD RANCHO CORDOVA 95670 CA
PARSED TOKENS: [('10600', 'AddressNumber'), ('FOLSOM', 'StreetName'), ('BLVD', 'StreetNamePostType'), ('RANCHO', 'PlaceName'), ('CORDOVA', 'StateName'), ('95670', 'ZipCode'), ('CA', 'StateName')]
UNCERTAIN LABEL: StateName
When this error is raised, it's likely that either (1) the string is not a valid person/corporation name or (2) some tokens were labeled incorrectly
To report an error in labeling a valid name, open an issue at https://github.com/datamade/usaddress/issues/new - it'll help us continue to improve probablepeople!
For more information, see the documentation at https://usaddress.readthedocs.io/