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

Parse addresses with no address number and two words as street name #258

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bbharathrao
Copy link

Training for the address with no address number and two words as a part of street name.
Example 1:

The Way it is parsing currently

address1 = usaddress.tag("Mid Island Street HICKSVILLE NY 11801")
pprint(address1)
(OrderedDict([('AddressNumber', 'Mid'),
('StreetName', 'Island'),
('StreetNamePostType', 'Street'),
('PlaceName', 'Hicksville'),
('StateName', 'NY'),
('ZipCode', '11801')]),
'Street Address')

The Way it needs to be Parsed

address1 = usaddress.tag("Mid Island Street HICKSVILLE NY 11801")
pprint(address1)
(OrderedDict([('StreetName', 'Mid Island'),
('StreetNamePostType', 'Street'),
('PlaceName', 'Hicksville'),
('StateName', 'NY'),
('ZipCode', '11801')]),
'Street Address')

Example 2:
The Way it is parsing currently

address1 = usaddress.tag("New Park Rd West Hartford CT 16110")
pprint(address1)
(OrderedDict([('AddressNumber', 'New'),
('StreetName', 'Park'),
('StreetNamePostType', 'Rd'),
('PlaceName', 'West Hartford'),
('StateName', 'CT'),
('ZipCode', '16110')]),
'Street Address')

The Way it needs to be Parsed

address1 = usaddress.tag("New Park Rd West Hartford CT 16110")
pprint(address1)
(OrderedDict([('StreetName', New Park'),
('StreetNamePostType', 'Rd'),
('PlaceName', 'West Hartford'),
('StateName', 'CT'),
('ZipCode', '16110')]),
'Street Address')

Training xml located at:
usaddress/training/double_street_name.xml

Testing xml located at:
usaddress/measure_performance/test_data/test_double_street_name.xml

@bbharathrao bbharathrao changed the title Parse addresses with Highway Contract Route addresses names. Parse addresses with no address number and two words as street name Mar 25, 2019
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

Successfully merging this pull request may close these issues.

1 participant