While parsing the following type of address: 645 Front Street, San Diego 92101 CA, the zip code is detected as null.
try:
import usaddress
address = '645 Front Street, San Diego 92101 CA'
parseaddress = usaddress.tag(address)
print(parseaddress[0])
The output is:
OrderedDict([('AddressNumber', '645'), ('StreetName', 'Front'), ('StreetNamePostType', 'Street'), ('PlaceName', 'San Diego 92101'), ('StateName', 'CA')])
While parsing the following type of address: 645 Front Street, San Diego 92101 CA, the zip code is detected as null.
try: import usaddress address = '645 Front Street, San Diego 92101 CA' parseaddress = usaddress.tag(address) print(parseaddress[0])
The output is: OrderedDict([('AddressNumber', '645'), ('StreetName', 'Front'), ('StreetNamePostType', 'Street'), ('PlaceName', 'San Diego 92101'), ('StateName', 'CA')])
Is there any way to fix this?