usaddress icon indicating copy to clipboard operation
usaddress copied to clipboard

Invalid pre modifier parsing

Open ssbb opened this issue 2 years ago • 0 comments

I see an issues with some pre modifiers like OLD, LITTLE. Parser thinks it's a street name while it's not.

Example address:

  • 53 LITTLE W 12 ST

When trying to tag these addresses exception is raised:

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

ORIGINAL STRING:  53 LITTLE W 12 ST
PARSED TOKENS:    [('53', 'AddressNumber'), ('LITTLE', 'StreetName'), ('W', 'StreetNamePostDirectional'), ('12', 'StreetName'), ('ST', 'StreetNamePostType')]
UNCERTAIN LABEL:  StreetName

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/

ssbb avatar Jul 16 '21 18:07 ssbb