Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
baditaflorin opened this issue Dec 3, 2022 · 0 comments

Comments

@baditaflorin
Copy link

Billings, Montana
Billings is the largest city in the U.S. state of Montana, with a population of 117,116 as of the 2020 census.

  File "/Users/me/GITHUB_PROJECTS/test21.py", line 79, in <module>
    location_data = parse_location(location)
  File "/Users/me/GITHUB_PROJECTS/test21.py", line 24, in parse_location
    address_parts = usaddress.tag(address)
  File "/opt/homebrew/lib/python3.10/site-packages/usaddress/__init__.py", line 177, in tag
    raise RepeatedLabelError(address_string, parse(address_string),
usaddress.RepeatedLabelError:
ERROR: Unable to tag this string because more than one area of the string has the same label

ORIGINAL STRING:  1232 N 30th St Ste 200 Billings, MT 59101

PARSED TOKENS:    [('1232', 'AddressNumber'), ('N', 'StreetNamePreDirectional'), ('30th', 'StreetName'), ('St', 'StreetNamePostType'), ('Ste', 'OccupancyType'), ('200', 'OccupancyIdentifier'), ('Billings,', 'BuildingName'), ('MT', 'BuildingName'), ('59101', 'AddressNumber'), ('Get', 'StreetName'), ('Directions', 'StreetName')]
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!

For more information, see the documentation at https://usaddress.readthedocs.io/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant