I'm trying to parse a column of ~175,000 street names. Some of them are just one word (Jamaicaway), and some are multiple words (St. Edwards Pl). I want just the street body (Jamaicaway and St. Edwards, respectively).
I found the address_standardizer package and installed it, but when I run the example below I get the error relation "us_lex" does not exist.
SELECT house_num, name, suftype, city, country, state, unit
FROM standardize_address('us_lex', 'us_gaz', 'us_rules', 'One
Devonshire Place, PH 301, Boston, MA 02109');
I'd expect to get back just "Devonshire," but I'm getting the error instead. There doesn't seem to be much about this on the package page. Any insight?