usaddress icon indicating copy to clipboard operation
usaddress copied to clipboard

Address parsing error

Open epicfaace opened this issue 1 year ago • 1 comments

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

epicfaace avatar Jun 17 '24 02:06 epicfaace

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.

xmedr avatar Jun 11 '25 21:06 xmedr