Commit Graph

1479 Commits

Author SHA1 Message Date
Al
d35f97f6f1 [fix] All file_read_uint64 calls that use stack variables read into a uint64_t not a size_t so as not to smash the stack under a 32-bit arch (issue #18) 2016-02-29 22:36:00 -05:00
Al Barrentine
3aba78d806 Merge pull request #20 from federicomenaquintero/master
Some malloc() checks and a leak fix.
2016-02-25 16:22:23 -05:00
Federico Mena Quintero
4eac38c40c [fix] Check the return of malloc() in geonames.c 2016-02-25 14:53:31 -06:00
Federico Mena Quintero
2ae2450db7 [fix] Check the return of malloc() in numex.c 2016-02-25 14:53:27 -06:00
Federico Mena Quintero
b172071d3b [fix] Remove superfluous #define; the caller actually uses sizeof(DEFAULT_ALPHABET) itself 2016-02-25 14:53:27 -06:00
Federico Mena Quintero
10c6768b5b [fix] Don't leak the trie if the number of nodes can't be read from a file 2016-02-25 14:53:27 -06:00
Federico Mena Quintero
e60ad47677 [fix] Check return of malloc() in trie.c 2016-02-25 14:53:22 -06:00
Al
7371a88c53 [docs][ci skip] Adding note about PHP binding 2016-02-25 00:16:13 -05:00
Al
52ebc9fc46 [fix] Paths relative to the current file in address_dictionaries.py so it can be run from anywhere 2016-02-24 13:10:44 -05:00
Al
87cf63942e [dictionaries] Regenerating address_expansion_data.c 2016-02-22 18:39:38 -05:00
Al
366a4a454a Merge branch 'riordan-NY-SAM-Abbreviations' 2016-02-22 18:26:35 -05:00
Al
f349dbac01 [dictionaries] Removing Rue from English street types (addresses using Rue as the street type are actually in French, which is a valid, detectable, regional language for the US in libpostal). Some of the abbreviations also belong in the synonyms or place names dictionaries. 2016-02-22 18:26:02 -05:00
Riordan
21cf7245a7 Added additional street types from NY State Post-Address Types
NY State [posted their state address database](http://gis.ny.gov/gisdata/inventories/details.cfm?DSID=921) along with the metadata standards for consuming it. Included in this metadata is a [guide to abbreviations](http://gis.ny.gov/gisdata/supportfiles/Updated-Deliverable-Schema.pdf), incorporated in this commit.
2016-02-22 17:27:14 -05:00
Al
dda204ce71 [fix][ci skip] Installation instruction tweaks 2016-02-22 00:55:31 -05:00
Al
fa11dbd181 [fix][ci skip] smaller GIF take deux 2016-02-22 00:48:40 -05:00
Al
fe89f5d27a [fix][ci skip] Adding expand_address usage GIF at normal size 2016-02-22 00:30:38 -05:00
Al
724c102259 [fix][ci skip] Python example, then C 2016-02-22 00:23:20 -05:00
Al
d95c74ef9e [fix][ci skip] heading for consistency 2016-02-22 00:15:53 -05:00
Al
c19781c724 [docs][ci skip] README updates, usage GIFs 2016-02-22 00:13:17 -05:00
Al
82c05cacb1 [docs][ci skip] Adding note about the new Java/JNI bindings 2016-02-19 16:43:02 -05:00
Al
1c0237beb7 [docs][ci skip] Adding teardown calls to the C examples 2016-02-18 21:10:36 -05:00
Al
37cfe8ab3b [test] Adding automated parser tests to the C library 2016-02-17 17:19:10 -05:00
Al
43f41230b6 [docs][ci skip] README fix 2016-02-16 22:12:18 -05:00
Al
ba243a5d58 [docs][ci skip] Adding C examples to the README in addition to the Python examples 2016-02-16 22:02:44 -05:00
Al
3925a288c2 [docs][ci skip] Adding note about Golang bindings 2016-02-16 21:40:26 -05:00
Al
4349a45b0f [build] Adding pkg-config support 2016-02-16 11:39:49 -05:00
Al
37c09d1ed9 [api] Adding function to free expansions from expand_address 2016-02-16 10:56:45 -05:00
Al
98165e89ad [api] Using bools instead of bit fields in the public API 2016-02-15 18:33:39 -05:00
Al
cf2a79bef1 [api] Default options accessible through getters, not static structs 2016-02-15 17:34:00 -05:00
Al
f5ae95eb70 [docs][ci skip] Adding note about Ruby bindings to README 2016-02-14 22:03:40 -05:00
Al
e5239b00db [docs][ci skip] Moving CI badge back below heading 2016-02-10 09:54:51 -05:00
Al
2b9d502ffa [docs][ci skip] CI badge positioning in README 2016-02-10 09:49:38 -05:00
Al
c5e715f6e5 [docs][ci skip] README updates for batch mode, notes about batch testing 2016-02-10 09:46:59 -05:00
Al
166119f5c3 [test] Adding numex tests for the concatenated case 2016-02-10 09:26:12 -05:00
Al
98c395d34c [numex] Concatenating a string of numeric expressions with no intervening tokens like Seventeen Eighty or Ten Oh Four 2016-02-10 09:21:31 -05:00
Al
ffde22395c [numex] Adding test cases where stopword should not get swallowed into the numeric expression 2016-02-10 08:30:53 -05:00
Al
59cf5bfc62 [numex] Fixing cases with stopwords not attached to a numeric expression 2016-02-10 08:30:01 -05:00
Al
c32ef9ccf8 [fix] freeing up iterator in normalize_string 2016-02-09 01:06:51 -05:00
Al
87ef471f8b [test] Adding test cases for tokenized tail search 2016-02-08 17:56:28 -05:00
Al
12c2477359 [phrases] Another fix to tail token search 2016-02-08 17:55:21 -05:00
Al
39f162b029 [phrases] fix in tokenized tail search when whitespace tokens are preserved 2016-02-08 16:37:52 -05:00
Al
4ed0474f7e [fix] test for normalized output on an expansion with an accented canonical 2016-02-08 12:32:14 -05:00
Al
84d5ba18f0 [api] Fixing multi-language expansions with overlapping expansions, whitespace, utf8 normalization of canonical strings 2016-02-08 02:50:34 -05:00
Al
0695738253 [fix] cleaning up memory in normalize_string_languages 2016-02-08 02:43:12 -05:00
Al
afd5844f21 [normalize] Permuting transliterators only once on the entire string rather than at each script break (so # permutations is bounded and can't get huge). Fixing some spacing issues. Adding method to check for an alpha+numeric token in normalization. 2016-02-08 01:16:47 -05:00
Al
393fd7e0f3 [build] Using env var for data dir in geodata build script 2016-02-08 01:11:42 -05:00
Al
aaad213a20 [cli] Adding printf while models are being loaded in address parser cli 2016-02-08 01:10:06 -05:00
Al
9ac0379a65 [phrases] Case where trie search finds a match, makes progress beyond the next token but has to fall back. Adding trie search test case 2016-02-08 01:07:56 -05:00
Al
3701d8380f [cli] Command-line expansion client now supports piping in stdin, Unix-style 2016-02-03 13:48:51 -05:00
Al
90b9bb097c [docs] Adding German example back to README parser examples 2016-02-02 13:05:53 -05:00