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

some tokens were labeled incorrectly #372

Open
masterkamlesh opened this issue Jan 5, 2025 · 0 comments
Open

some tokens were labeled incorrectly #372

masterkamlesh opened this issue Jan 5, 2025 · 0 comments

Comments

@masterkamlesh
Copy link

PS D:\pythons\indian_address_parser-main> python .\test2.py
Traceback (most recent call last):
File "D:\pythons\indian_address_parser-main\test2.py", line 4, in
parsed_address, address_type = usaddress.tag(address)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\AppData\Local\Programs\Python\Python312\Lib\site-packages\usaddress_init_.py", line 709, in tag
raise RepeatedLabelError(address_string, parse(address_string), label)
usaddress.RepeatedLabelError:
ERROR: Unable to tag this string because more than one area of the string has the same label

ORIGINAL STRING: 29 /.1000 A ; Madakkuni Temple Road,Near Kottooli Petrol Pump, Calicut, Kottooli Kuthiravattom Rd, Koottuli, Kozhikode, Kerala 673016
PARSED TOKENS: [('29', 'AddressNumber'), ('1000', 'StreetName'), ('A', 'StreetName'), ('Madakkuni', 'StreetName'), ('Temple', 'StreetName'), ('Road,', 'StreetNamePostType'), ('Near', 'Recipient'), ('Kottooli', 'Recipient'), ('Petrol', 'Recipient'), ('Pump,', 'Recipient'), ('Calicut,', 'Recipient'), ('Kottooli', 'Recipient'), ('Kuthiravattom', 'Recipient'), ('Rd,', 'StreetNamePostType'), ('Koottuli,', 'PlaceName'), ('Kozhikode,', 'StateName'), ('Kerala', 'StateName'), ('673016', 'ZipCode')]
UNCERTAIN LABEL: StreetNamePostType

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!

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