datamade / usaddress

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

How to process this type of address? #325

Open JNFoo opened 2 years ago

JNFoo commented 2 years ago

8 W Tower 1215 E Michigan Ave Lansing MI 48912

Current error generated: _RepeatedLabelError: ERROR: Unable to tag this string because more than one area of the string has the same label

ORIGINAL STRING: 8 W Tower 1215 E Michigan Ave Lansing MI 48912 PARSED TOKENS: [('8', 'AddressNumber'), ('W', 'StreetNamePreDirectional'), ('Tower', 'StreetName'), ('1215', 'AddressNumber'), ('E', 'StreetNamePreDirectional'), ('Michigan', 'StreetName'), ('Ave', 'StreetNamePostType'), ('Lansing', 'PlaceName'), ('MI', 'StateName'), ('48912', 'ZipCode')] UNCERTAIN LABEL: AddressNumber

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!_