-
Notifications
You must be signed in to change notification settings - Fork 307
Open
Description
Hey,
I am using usaddress library to identify if a given address has a postal address, and came across this error while parsing one of them. I have added the code snippet with which you can reproduce the same error message as show below.
PS: I am not so familiar with US addresses, so I do not know what is wrong in the address or how to validate it.
Code
import usaddress
address = "2042 Beltline Rd SW, Ste B Ste 101, Decatur, AL 35601"
parsed_address = usaddress.tag(address)Error
ERROR: Unable to tag this string because more than one area of the string has the same label
ORIGINAL STRING: 2042 Beltline Rd SW, Ste B Ste 101, Decatur, AL 35601
PARSED TOKENS: [('2042', 'AddressNumber'), ('Beltline', 'StreetName'), ('Rd', 'StreetNamePostType'), ('SW,', 'StreetNamePostDirectional'), ('Ste', 'OccupancyType'), ('B', 'OccupancyIdentifier'), ('Ste', 'OccupancyType'), ('101,', 'OccupancyIdentifier'), ('Decatur,', 'PlaceName'), ('AL', 'StateName'), ('35601', 'ZipCode')]
UNCERTAIN LABEL: OccupancyType
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/Metadata
Metadata
Assignees
Labels
No labels