datamade / usaddress

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

Incorrectly parsed address #275

Open wtsimple opened 4 years ago

wtsimple commented 4 years ago

The address: "37 OCEAN ISLE WEST BLVD OCEAN ISLE BEACH NC 28469" It seems to me that the address, aside from having the street coincidentally called Ocean Isle BLV while the area is Ocean Isle Beach, it's not a wrong address.

usaddress.RepeatedLabelError: 
ERROR: Unable to tag this string because more than one area of the string has the same label

ORIGINAL STRING:  37 OCEAN ISLE WEST BLVD OCEAN ISLE BEACH NC 28469
PARSED TOKENS:    [('37', 'AddressNumber'), ('OCEAN', 'StreetName'), ('ISLE', 'StreetNamePostType'), ('WEST', 'StreetNamePostDirectional'), ('BLVD', 'StreetNamePostType'), ('OCEAN', 'PlaceName'), ('ISLE', 'PlaceName'), ('BEACH', 'PlaceName'), ('NC', 'StateName'), ('28469', 'ZipCode')]
UNCERTAIN LABEL:  street_type