8000 Wisconsin Legislators Offices · Issue #374 · datamade/usaddress · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Wisconsin Legislators Offices #374

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

Open
chris-erickson opened this issue Feb 20, 2025 · 2 comments
Open

Wisconsin Legislators Offices #374

chris-erickson opened this issue Feb 20, 2025 · 2 comments

Comments

@chris-erickson
Copy link

Typically look like:

Room 10 South
State Capitol
PO Box 7882
Madison, WI 53707

https://docs.legis.wisconsin.gov/2025/legislators/senate/2822

  File "/usr/local/lib/python3.11/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:  Room 10 South, State Capitol, PO Box 7882, Madison, WI 53707-7882
PARSED TOKENS:    [('Room', 'OccupancyType'), ('10', 'OccupancyIdentifier'), ('South,', 'StreetNamePostDirectional'), ('State', 'PlaceName'), ('Capitol,', 'PlaceName'), ('PO', 'StateName'), ('Box', 'USPSBoxType'), ('7882,', 'USPSBoxID'), ('Madison,', 'PlaceName'), ('WI', 'StateName'), ('53707-7882', 'ZipCode')]
UNCERTAIN LABEL:  address

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!
@xmedr
Copy link
Contributor
xmedr commented Apr 3, 2025

Ah I see what you mean. In that case, how does this tagging look to you?

Tag Address Part
OccupancyType Room
OccupancyIdentifier 10
OccupancyIdentifier South
LandmarkName State
LandmarkName Capitol
USPSBoxType PO
USPSBoxType Box
USPSBoxID 7882
PlaceName Madison
StateName WI
ZipCode 53707

And I imagine that I can grab some more examples from this site?
https://legis.wisconsin.gov/

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

3 participants
@chris-erickson @xmedr and others
0