Commit Graph

767 Commits

Author SHA1 Message Date
Al
e57783ff5f [fix] constructor 2016-07-21 17:04:57 -04:00
Al
677a86224e [fix] cli arg name 2016-07-21 17:04:57 -04:00
Al
d04a026528 [fix] no need to init language, etc. in new script 2016-07-21 17:04:57 -04:00
Al
ed4db5150f [fix] coding=utf8 2016-07-21 17:04:57 -04:00
Al
611002ea7a [fix] cleaning up imports 2016-07-21 17:04:57 -04:00
Al
a96e5760a9 [osm] Same great training script, only shorter 2016-07-21 17:04:57 -04:00
Al
840a83976b [parser/osm] OSM address formatter using the new component expansion 2016-07-21 17:04:57 -04:00
Al
cd353fb8da [fix] return value in Chain.query 2016-07-21 17:04:57 -04:00
Al
b884719101 [fix] var name 2016-07-21 17:04:57 -04:00
Al
d56c210fb9 [fix] add_address=True for CategoryQuery/ChainQuery 2016-07-21 17:04:57 -04:00
Al
b061c619d3 [categories] Method to determine which keys to check for category matches given a dict of OSM tags 2016-07-21 17:04:57 -04:00
Al
448f010b22 [fix] Removing template types from AddressFormatter, just drop components as needed 2016-07-21 17:04:57 -04:00
Al
99ebc3228a [addresses] Address component expansion makes a copy while building PO box addresses, now has a drop names method to drop just venue name, etc. 2016-07-21 17:04:57 -04:00
Al
f4a217045f [fix] name error in neighborhoods 2016-07-21 17:04:57 -04:00
Al
4e4686fbfe [gazetteers] Street and synonym dictionary for catching other abbreviations that occur in street names 2016-07-21 17:04:57 -04:00
Al
3017c22dc8 [fix] pivot keys in address formatter 2016-07-21 17:04:57 -04:00
Al
cdd14b137d [fix] set union will usually be over 0 subsets 2016-07-21 17:04:57 -04:00
Al
78935c31a3 [fix] import 2016-07-21 17:04:57 -04:00
Al
2a4794087f [fix] component dependencies 2016-07-21 17:04:57 -04:00
Al
3db44f7502 [places] Places dropout handles things like Luxembourg, Luxembourg, prefering the city in cases where a single component is retained 2016-07-21 17:04:57 -04:00
Al
6fc6f9f591 [addresses] Adding address-level component dropout to AddressComponents (returns an ordering so the client formatter can potentially emit multiple addresses with different components dropped out). Adding PO box and category probabilities to config 2016-07-21 17:04:57 -04:00
Al
aa15d28e0b [fix] docs 2016-07-21 17:04:57 -04:00
Al
0ab109f964 [chains] chain store queries also may use street address for certain preposition types 2016-07-21 17:04:57 -04:00
Al
6b8e7cc2de [categories] Updated category query to have add_address variable (e.g. for 'near 123 Main Street' vs. 'near Brooklyn, NY'), reuses category preposition 2016-07-21 17:04:57 -04:00
Al
47fc88e0fc [formatting] Better postprocessing of address-formatting templates so any country can potentially include the more rare components like city_district/state_district, etc., formatted queries for category (+ place/address), chain (+ place/address), and intersection 2016-07-21 17:04:57 -04:00
Al
38607b0a50 [fix] var name for error case 2016-07-21 17:04:57 -04:00
Al
4bdcb98320 [fix] country_language 2016-07-21 17:04:57 -04:00
Al
ce381134fb [categories/chains] Reusing category config in chain queries 2016-07-21 17:04:57 -04:00
Al
b50120f45c [chains] Adding chains gazetteer 2016-07-21 17:04:57 -04:00
Al
24bd95a2fa [numbering] Adding ability to have alpha-specific config (phrases that only apply to lettered apartments, etc.) 2016-07-21 17:04:57 -04:00
Al
319e4649cf [chains] Adding methods for determining if a venue name is a known chain, generating an alternate form (plurals, other spellings) for queries 2016-07-21 17:04:57 -04:00
Al
7b8dbf911c [addresses] Component dropout for PO box and category addresses 2016-07-21 17:04:57 -04:00
Al
985ba85623 [fix] handling None return values e.g. for languages with no configs yet 2016-07-21 17:04:57 -04:00
Al
0c3dd33990 [addresses] Adding place dropout to AddressComponents so admin components will be more standard 2016-07-21 17:04:57 -04:00
Al
b6b85afa2a [docs] Update usage 2016-07-21 17:04:57 -04:00
Al
e5f81a0f81 [addresses] Updates to unit directional probabilities and adding quadrant addresses for units like 1RF 2016-07-21 17:04:57 -04:00
Al
8756cbb652 [places] Only apply place dropout to admin components 2016-07-21 17:04:57 -04:00
Al
12f4a2ec6c [fix] removing extraneous code 2016-07-21 17:04:57 -04:00
Al
30751cc342 [places] Place config with dropout probabilities for admin boundaries by country, exceptions by OSM relation id 2016-07-21 17:04:57 -04:00
Al
dde8801b3f [addresses] only use ordinal for digits 2016-07-21 17:04:57 -04:00
Al
c77c13c1bd [polygons] When loading polygons from disk/GeoJSON, include holes 2016-07-21 17:04:57 -04:00
Al
68b647f572 [fix] args 2016-07-21 17:04:57 -04:00
Al
717c48ef36 [fix] missing definition 2016-07-21 17:04:57 -04:00
Al
02d25ce53e [fix] var name 2016-07-21 17:04:57 -04:00
Al
b56da09847 [addresses] Running combine_fields while generating sub-building information so that phrases only get added to single fields 2016-07-21 17:04:57 -04:00
Al
c89aaf5e57 [addresses] Don't add quattroshapes city on non_local_language, only as a supplement in case the city's not in OSM 2016-07-21 17:04:57 -04:00
Al
33d7437c4a [addresses] Adding use_floor_probability to address config 2016-07-21 17:04:57 -04:00
Al
b91be6ef7a [fix] OSM name keys, break out of loop early in categorizing OSM boundary components 2016-07-21 17:04:57 -04:00
Al
74ad180b34 [addresses] Prefer language-namespaced keys if requested 2016-07-21 17:04:57 -04:00
Al
1f1845da7a [fix] imports/args 2016-07-21 17:04:57 -04:00