usaddress
usaddress copied to clipboard
Address parsing error
When I parse this address (The American Road, Mail Drop 1234,Dearborn, MI, 48121)
I get this error:
usaddress.RepeatedLabelError:
ERROR: Unable to tag this string because more than one area of the string has the same label
UNCERTAIN LABEL: city
Hi @epicfaace, thanks for raising this issue! We've made some updates to the parser since this was opened, and it no longer raising an error, but the labeling still looks a bit off:
| Address part | Tag |
|---|---|
| The | AddressNumber |
| American | StreetName |
| Road | StreetNamePostType |
| Mail Drop | SubaddressType |
| 1234 | SubaddressIdentifier |
| Dearborn | PlaceName |
| MI | StateName |
| 48121 | ZipCode |
What were you hoping for this labeling to look like? I could see the "The" at the beginning being labeled as a StreetName instead. It would also be a huge help if you had a handful of extra examples of this issue, but no worries if not.