Hi there,
I tried to use lib on this example:
10 Forest Ave Apt 10 Old Greenwich CT 06870 and it won't parse it.
But with Lake Forest instead of Old Greenwich it works perfect.
Traceback (most recent call last):
File "/scratches/scratch_156.py", line 10, in <module>
t = usaddress.tag('10 Forest Ave Apt 10 Old Greenwich CT 06870', tag_mapping={
File "/usr/local/lib/python3.8/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: 10 Forest Ave Apt 10 Old Greenwich CT 06870
PARSED TOKENS: [('10', 'AddressNumber'), ('Forest', 'StreetName'), ('Ave', 'StreetNamePostType'), ('Apt', 'OccupancyType'), ('10', 'OccupancyIdentifier'), ('Old', 'StreetNamePreModifier'), ('Greenwich', 'PlaceName'), ('CT', 'StateName'), ('06870', '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
Hi there, I tried to use lib on this example:
10 Forest Ave Apt 10 Old Greenwich CT 06870
and it won't parse it. But withLake Forest
instead ofOld Greenwich
it works perfect.the actual code is bellow:
and the response is next: