Open hema98 opened 4 years ago
import usaddress usaddress.parse('480 wahington Blvd,Jersey City,NJ-07310')
Output: [('480', 'AddressNumber'), ('wahington', 'StreetName'), ('Blvd,', 'StreetNamePostType'), ('Jersey', 'PlaceName'), ('City,', 'SubaddressType'), ('NJ-07310', 'SubaddressIdentifier')]
'Jersey City' should be tagged to 'City'
I noticed the address parses as expected if the dash between the state and zip is removed. Change "NJ-07310" to "NJ 07310" Seems like it works with either the space, or with a comma: "NJ,07310"
import usaddress usaddress.parse('480 wahington Blvd,Jersey City,NJ-07310')
Output: [('480', 'AddressNumber'), ('wahington', 'StreetName'), ('Blvd,', 'StreetNamePostType'), ('Jersey', 'PlaceName'), ('City,', 'SubaddressType'), ('NJ-07310', 'SubaddressIdentifier')]
'Jersey City' should be tagged to 'City'