"""
Traceback (most recent call last):
File "c:\Users\AmericaN\Desktop\Lab\opa.py", line 42, in <module>
print(usaddress.tag('7800 Mockingbird Ln #119 N. Richland Hills, TX 76180',
File "C:\Users\AmericaN\Desktop\Lab\MyEnv\lib\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: 7800 Mockingbird Ln #119 N. Richland Hills, TX 76180
PARSED TOKENS: [('7800', 'AddressNumber'), ('Mockingbird', 'StreetName'), ('Ln', 'StreetNamePostType'), ('#', 'OccupancyIdentifier'), ('119', 'AddressNumber'), ('N.', 'StreetNamePreDirectional'), ('Richland', 'StreetName'), ('Hills,', 'StreetNamePostType'), ('TX', 'StateName'), ('76180', 'ZipCode')]
UNCERTAIN LABEL: address1
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/
"""
My Code is below:
I keep getting the following Exception:
How can i solve that ?