jasonrig / address-net

A package to structure Australian addresses
MIT License
195 stars 86 forks source link

Incorrect prediction if ",AU" in address string #4

Open lukerazor opened 5 years ago

lukerazor commented 5 years ago

python 3.5.2

import addressnet.predict as address_lib
print(address_lib.predict_one("Jubilee Street Newport,VIC,3015,AU")["locality_name"])
>NEWPORTU # Should be NEWPORT
print(address_lib.predict_one("Jubilee Street Newport,VIC,3015")["locality_name"])
>NEWPORT # Correct