Commit Graph

621 Commits

Author SHA1 Message Date
Al
62c29a8406 [mv] Moving osm_admin_boundaries to just admin_boundaries 2016-04-27 00:10:45 -04:00
Al
dc73465bba [addresses] Using YAML inheritance instead of baking it into the config parser 2016-04-26 18:29:05 -04:00
Al
6076264cd4 [addresses] Generalizing the functions used for address configs so they can be reused for per-country OSM configs, etc. 2016-04-26 18:27:16 -04:00
Al
1a7c45013d [intersections] Intersections generator for OSM 2016-04-26 18:24:50 -04:00
Al
e86921c081 [neighborhoods] Moving neighborhoods index to its own package 2016-04-26 14:26:46 -04:00
Al
9890ad3811 [addresses] config for phrases around postcodes like CP in Spanish 2016-04-23 12:37:04 -04:00
Al
088152bdbf [fix] instance var 2016-04-23 12:35:09 -04:00
Al
cfad1df8cb [fix] import 2016-04-23 12:01:17 -04:00
Al
a065246e51 [fix] set 2016-04-22 16:49:45 -04:00
Al
87f9ec4227 [fix] chmod +x 2016-04-22 16:46:23 -04:00
Al
9b54fda8b2 [chains] Adding code to generate chain_stores repo TSV files from OSM 2016-04-22 16:45:28 -04:00
Al
907c8fe96d [addresses] /po_box/po_boxes/ 2016-04-20 17:07:39 -04:00
Al
6ff0b25f40 [addresses] Generate house number related phrases 2016-04-20 17:06:30 -04:00
Al
1eeda65cfd [dictionaries] /house_number/house_numbers/ 2016-04-20 15:57:12 -04:00
Al
dba8be445d [fix] None handling and number dictionaries 2016-04-20 14:59:54 -04:00
Al
901f720368 [addresses] different dictionaries for sampling cardinal/unit directions, not converting None to a string 2016-04-19 17:05:10 -04:00
Al
10320723b1 [dictionaries] Removing ambiguous abbreviations for flat 2016-04-19 17:02:58 -04:00
Al
38ec82a42b [addresses] Unit/apartment number generation 2016-04-19 17:01:24 -04:00
Al
1acf0d592b [addresses] sample positive floors 2016-04-19 16:59:16 -04:00
Al
868fcb752b [mv] Moving sampling to math.sampling 2016-04-19 11:57:42 -04:00
Al
ce2b2d9559 [addresses] Conjunction can be subclassed 2016-04-19 11:22:13 -04:00
Al
c92af0da78 [addresses] Adding ability to randomly append relative/cardinal directions 2016-04-19 11:21:23 -04:00
Al
450aee95c2 [addresses] Adding base class for numeric phrases (appended to a number using numeric/numeric_affix), using probability 1.0 if only one of numeric/numeric_affix/ordinal is specified 2016-04-19 11:07:25 -04:00
Al
1b2e92dc14 [fix] polygons 2016-04-19 10:15:31 -04:00
Al
9abc679f09 [fix] typo 2016-04-19 00:53:39 -04:00
Al
47ffd18c8c [polygons] Adding __iter__ and __len__ to polygon index and keeping track of the number of polygons for iteration 2016-04-19 00:42:57 -04:00
Al
2a570481ba [addresses] implementing null_probability (raw number, no phrase), orindal genders, and direction_probability 2016-04-15 03:25:41 -04:00
Al
430ad2e187 [numbers] suffixed_number 2016-04-15 02:04:58 -04:00
Al
028dbacc87 [dictionaries] making entrances/postcodes plural for consistency 2016-04-15 01:10:03 -04:00
Al
883ef2ec56 [dictionaries] Moving intersections to cross streets 2016-04-14 17:53:45 -04:00
Al
5850793768 [expansion] Add postcode dictionary to gazetteer types 2016-04-14 14:33:02 -04:00
Al
6babbfaf02 [addresses] generator for floor numbers as well as special aliases like basement, mezzanine, etc. using the address configs 2016-04-14 14:22:08 -04:00
Al
36b3d515ad [expansion] Modifying the Python gazetteers to use new dictionaries API 2016-04-14 14:17:09 -04:00
Al
2ff4940e36 [expansion] Adding number and intersections to dictionary types 2016-04-14 14:15:33 -04:00
Al
49b02796c0 [addresses] Adding abbreviations as a separate module so it can be used with multiple data sets 2016-04-14 03:10:01 -04:00
Al
a6553b77d3 [addresses] PO Box phrase generator 2016-04-14 02:38:45 -04:00
Al
d29ade7210 [addresses] conjunction class for building phrases like "5th and 6th" or "Units 1 & 2" across languages using the address configs 2016-04-14 01:21:44 -04:00
Al
f0ac3522da [addresses] base class for numbered components (floors, units, house numbers in some languages/countries). Can generate many variants of a number (e.g. Floor 2, 2nd Floor, Floor #2, Floor No. 2, etc.) 2016-04-14 01:17:43 -04:00
Al
fe006e0d62 [addresses] utilities for sampling from an arbitrary discrete distribution, building cumulative distributions, and sampling from a Zipfian distribution which seems to be a reasonable way of generating plausible apartment/floor numbers when the height/number of units is unknown. Picking a letter uniformly at random means P('Unit A') == P('Unit Z') when 'A' should be much more likely. Sampling from a Zipfian gets the desired effect in situations where address components are numbered by "counting from 0/1/A" while still allowing for a long tail 2016-04-14 01:13:39 -04:00
Al
58feeab714 [addresses] address config class for general sampling of forms specified in the address configs (default/alternatives to choose a phrase, canonical/abbreviated/sample to choose an abbreviation or surface form for that phrase) 2016-04-14 01:06:54 -04:00
Al
7332445525 [polygons] Persistent polygons for neighborhoods index as well, cache size at 100k 2016-04-11 01:24:45 -04:00
Al
e6dcf975f6 [polygons] neighborhoods repo has the correct polygons for NYC, removing the pediacities version 2016-04-10 20:27:38 -04:00
Al
f739b46d6d [fix] priorities in neighborhood index 2016-04-10 18:56:03 -04:00
Al
761413e723 [fix] var name 2016-04-10 14:02:55 -04:00
Al
83fcf39d49 [fix] Fixes to Zetashapes reverse geocoder 2016-04-10 14:01:43 -04:00
Al
ef72ad592b [fix] moving methods 2016-04-09 21:35:17 -04:00
Al
dee143798a [polygons/neighborhoods] refactoring Zetashapes download, adding in PediaCities polygons for NYC neighborhoods 2016-04-09 21:32:39 -04:00
Al
38b39887ec [polygons] refactoring methods for getting cached/non-cached polygons 2016-04-09 19:52:48 -04:00
Al
78924fa308 [polygons] Quattroshapes neighborhoods use regular in-memory polygons 2016-04-09 19:28:56 -04:00
Al
d38de71854 [dictionaries] encapsulating reading address dictionaries so it's easy to implement sampling for the address training data 2016-04-08 18:12:30 -04:00