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

error tagging address - building name not identified correctly #293

Open WTE-home opened 3 years ago

WTE-home commented 3 years ago

got an error - two PlaceNames returned The building name is " Lindell Square" tagging id'd Lindell as a PlaceName and Square as StreetNamePostType

resulted in 2 PlaceName (city) of Lindell and Wilmington. Through the following error.

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

ORIGINAL STRING: 1601 Milltown Rd, Lindell Square, Suite 15, Wilmington, DE 19808 PARSED TOKENS: [('1601', 'AddressNumber'), ('Milltown', 'StreetName'), ('Rd,', 'StreetNamePostType'), ('Lindell', 'PlaceName'), ('Square,', 'StreetNamePostType'), ('Suite', 'OccupancyType'), ('15,', 'OccupancyIdentifier'), ('Wilmington,', 'PlaceName'), ('DE', 'StateName'), ('19808', 'ZipCode')]