/
auroraos
/
mirror_libpostal
ОбзорДокументацияВойти
/
auroraos
/
mirror_libpostal
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
mirror_libpostal/
src/
..
cmp

[geodisambig] C msgpack serialization dependency

11 лет назад
geohash

[fix] memcpy in geohash, closes #707

год назад
klib

#501. Fixed build issues on MSYS on Windows.

6 лет назад
linenoise

Updated linenoise to be MSys2/MinGW compatible. Updated address_parser app to use the defined libpostal api and not include internal components directly. Removed windows src Makefile as it is now the same as the standard one.

9 лет назад
log

Removing console colors for Windows builds.

9 лет назад
murmur

[geodisambig] adding MurmurHash3, used by the Bloom filter

11 лет назад
sparkey

[build] pulling in change from parser-data that allows user to pass CFLAGS

10 лет назад
utf8proc

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
Makefile.am

[build] adding new source files to Makefile for the lieu APIs

9 лет назад
acronyms.c

[fix] possible acronym for single toke phrases if it's a directional

4 года назад
acronyms.h

[dedupe] adding a function to acronyms module to detect existing/known acronyms like MS for middle school, HS for high school, etc. Forms like MS have to be deined in the dictionaries specifically but any acronym written like M.S. will be detected as such by the tokenizer

9 лет назад
address_dictionary.c

[expand] adding method for checking phrase is in multiple dictionaries, and a helper method for determining whether an address phrase has a canonical interpretation

9 лет назад
address_dictionary.h

[expand] adding method for checking phrase is in multiple dictionaries, and a helper method for determining whether an address phrase has a canonical interpretation

9 лет назад
address_dictionary_builder.c

[expansion] using easier-to-access data structure for address dictionaries

10 лет назад
address_expansion_data.c

[auto][ci skip] Adding data files from Travis build #381

8 лет назад
address_expansion_rule.h

[fix] max dictionaries is now 5, weird that that wasn't committed by the Travis build

9 лет назад
address_parser.c

[fix] clear context->separators on each parse before adding to it, fixes #676

10 месяцев назад
address_parser.h

[parser] adding label constants to address_parser header

9 лет назад
address_parser_cli.c

Modifed the libpostal API to add an extra function libpostal_parser_print_features to toggle debugging info. Updated address_parser app to use the new function.

9 лет назад
address_parser_io.c

[fix] handle multiple separators (like parens used in https://www.openstreetmap.org/node/244081449). Creates bad trie entries otherwise, which affect more than just that toponym

9 лет назад
address_parser_io.h

[parser] header changes for the data set struct

10 лет назад
address_parser_test.c

[api] doing this now since we're bumping a major version. Using a libpostal prefixes for all public header functions and definitions

9 лет назад
address_parser_train.c

Add portable way of formatting khint_t type (from klib)

9 лет назад
averaged_perceptron.c

[parser] using new zeros API in averaged_perceptron.c

9 лет назад
averaged_perceptron.h

[parser] Averaged perceptron training

11 лет назад
averaged_perceptron_tagger.c

[parser] moving feature printing to averaged perceptron tagger, taking advantage of trie prefix-sharing in feature incorporating previous tags

9 лет назад
averaged_perceptron_tagger.h

[parser] moving feature printing to averaged perceptron tagger, taking advantage of trie prefix-sharing in feature incorporating previous tags

9 лет назад
averaged_perceptron_trainer.c

Fix log_* formats which expect long long uint but receive uint64_t.

9 лет назад
averaged_perceptron_trainer.h

[parser] learning a sparser averaged perceptron model for the parser using the following method:

9 лет назад
bench.c

[api] doing this now since we're bumping a major version. Using a libpostal prefixes for all public header functions and definitions

9 лет назад
bloom.c

[fix] calloc instead of malloc when performing initialization on structs that may fail halfway and need to clean up while partially initialized (calloc will set all the bytes to zero so the member pointers are NULL instead of garbage memory)

10 лет назад
bloom.h

[fix] Adding stdint.h include to most of the header files for portability

11 лет назад
cartesian_product.c

[utils] cartesian product iterator for grid search during model selection

9 лет назад
cartesian_product.h

[utils] cartesian product iterator for grid search during model selection

9 лет назад
chunked_shuffle

[utils] adding a chunked shuffle as the concatenated file sizes may get larger than memory

10 лет назад
collections.h

[utils] hash_get is no longer a string-only function, can be used for generic hashtables

9 лет назад
constants.h

[constants] max country code length

11 лет назад
crf.c

[fix] removing log error for sequences of length 0

9 лет назад
crf.h

[parser/crf] adding runtime CRF tagger, which can be loaded/used once trained. Currently only does Viterbi inference, can add top-N and/or sequence probabilities later

9 лет назад
crf_context.c

[revert] reverting the commits from #578, leaving header file in repo for the moment

3 года назад
crf_context.h

[parser/crf] adding the beginnings of a linear-chain Conditional Random Field implementation for the address parser.

9 лет назад
crf_trainer.c

[parser/crf] adding crf_trainer, which can be thought of as a "base class" as much as that's possible in C, for creating trainers for the CRF. It doesn't deal with the weights or their representation, just provides an interface for keeping track of string features and label names, and holds the crf_context

9 лет назад
crf_trainer.h

[utils] adding a function for checking if files exists (yay C), or at least the closest agreed-upon method for it (may return false if the user doesn't have permissions, but that's ok for our purposes here)

9 лет назад
crf_trainer_averaged_perceptron.c

Fix log_* formats which expect long long uint but receive uint64_t.

9 лет назад
crf_trainer_averaged_perceptron.h

[parser/crf] adding an initial training algorithm for CRFs, the averaged perceptron (FTW!)

9 лет назад
dedupe.c

[dedupe] account for missing ordinal suffixes in Soft-TFIDF deduping i.e. to count 1st Place and 1 Plce as the same where there might be a misspelling and the phrase wouldn't match under exact expansions

8 лет назад
dedupe.h

[api] adding APIs for getting default options and using a consistent naming convention

9 лет назад
double_metaphone.c

[similarity] using NULL-terminated varargs in double metaphone instead of specifying the number of arguments, should be more maintainable

9 лет назад
double_metaphone.h

[similarity] adding basic double metaphone implementation

9 лет назад
expand.c

[fix] ifdef includes around stndup

2 года назад
expand.h

[expand] adding a few of the address phrase checks to the expand header

9 лет назад
features.c

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
features.h

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
file_utils.c

avoid UB in bit shifts

3 года назад
file_utils.h

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
float_utils.c

[utils] adding non-branching sign functions

9 лет назад
float_utils.h

[utils] adding non-branching sign functions

9 лет назад
ftrl.c

[optimization] for the FTRL and SGD optimizers, use the new *_array_sum_sq function to do L2 regularization, vs. the L2 norm which will use the linear algebra meaning

9 лет назад
ftrl.h

[optimization] implemented Google's FTRL-Proximal, adapted for the multiclass/multinomial case. It is L1 and L2 regularized, and should both encourage sparsity with the L1 penalty while being robust to collinearity of features due to the L2 penalty. Ref: https://research.google.com/pubs/archive/41159.pdf

9 лет назад
gazetteer_data.c

[fix] DICTIONARY_STREET_NAME applies only to the street component, unlike synonyms, which would apply to any compnoent. This makes street names a good place to add synonyms found in streets that are not exactly thoroughfare types i.e. could not be removed from the string and have it retain more or less the same meaning.

8 лет назад
gazetteers.h

[dictionaries] Making new component for near/nearby prepositions

10 лет назад
geo_disambiguation.c

[geodisambig] Shaving a few hundred more megabytes off of the geodb by only adding a single geohash prefix and not indexing the neighbors (query can use its neighbors)

11 лет назад
geo_disambiguation.h

[geodisambig] Shaving a few hundred more megabytes off of the geodb by only adding a single geohash prefix and not indexing the neighbors (query can use its neighbors)

11 лет назад
geodb.c

[fix] calloc instead of malloc when performing initialization on structs that may fail halfway and need to clean up while partially initialized (calloc will set all the bytes to zero so the member pointers are NULL instead of garbage memory)

10 лет назад
geodb.h

[geodb] Additional filenames and struct members in geodb.h

11 лет назад
geodb_builder.c

[merge] merging master

10 лет назад
geonames.c

[fix] Check the return of malloc() in geonames.c

10 лет назад
geonames.h

[geodb] Adding separate bitset for geonames place types and using NFC normalization instead of NFD (requires retraining)

10 лет назад
geonames_fields.h

[geonames] Re-generating postal/geonames fields headers

11 лет назад
graph.c

[parser] using a bipartite graph (indptr + indices) to represent postal code<=>admin relationships instead of a set of 64-bit ints. Requires |V(postal codes)| + |E| 32 bit ints instead of |E| 64 bit ints. Saves several hundred MB in file size and even more space in memory because of the hashtable overhead

9 лет назад
graph.h

[parser] using a bipartite graph (indptr + indices) to represent postal code<=>admin relationships instead of a set of 64-bit ints. Requires |V(postal codes)| + |E| 32 bit ints instead of |E| 64 bit ints. Saves several hundred MB in file size and even more space in memory because of the hashtable overhead

9 лет назад
graph_builder.c

[parser] using a bipartite graph (indptr + indices) to represent postal code<=>admin relationships instead of a set of 64-bit ints. Requires |V(postal codes)| + |E| 32 bit ints instead of |E| 64 bit ints. Saves several hundred MB in file size and even more space in memory because of the hashtable overhead

9 лет назад
graph_builder.h

[geodb] Additional filenames and struct members in geodb.h

11 лет назад
jaccard.c

[similarity] adding a string array version of Jaccard similarity that creates the string sets internally for convenience

9 лет назад
jaccard.h

[similarity] adding a string array version of Jaccard similarity that creates the string sets internally for convenience

9 лет назад
json_encode.c

[api] Simple JSON encoding for strings, UTF-8 rather than Unicode

11 лет назад
json_encode.h

[api] Simple JSON encoding for strings, UTF-8 rather than Unicode

11 лет назад
language_classifier.c

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
language_classifier.h

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
language_classifier_cli.c

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
language_classifier_io.c

[log] log the offending line if token count does not match in language_classifier_io

9 лет назад
language_classifier_io.h

[language_classification] Automatic hyperparameter optimization using either the cross-validation set or two distinct subsets of the training set

11 лет назад
language_classifier_test.c

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
language_classifier_train.c

Fix log_* formats which expect size_t but receive uint32_t.

9 лет назад
language_features.c

[languages] adding replace_hyphens and split_alpha_from_numeric in language classifier input normalization

9 лет назад
language_features.h

[language_classifier] Features for address languages classification, quadgrams for most languages, unigrams for ideographic characters, script for single-script languages like Thai, Hebrew, etc.

11 лет назад
libpostal.c

Merge pull request #391 from edding/fix_memory_leak

2 года назад
libpostal.h

[near_dupes] exposing name_word_hashes directly in the API

4 года назад
libpostal_config.h

[build] adding libpostal_setup_datadir, libpostal_setup_parser_datadir, libpostal_setup_language_classifier_datadir functions for configuring the datadir at runtime

10 лет назад
libpostal_data.in

Fix dash syntax error in libpostal_data

3 года назад
logistic.c

[math] using new matrix methods in softmax

9 лет назад
logistic.h

[math] Generic dense matrix implementation using BLAS calls for matrix-matrix multiplication if available

10 лет назад
logistic_regression.c

Revert format regression introduced in ecd07b1

9 лет назад
logistic_regression.h

[classification] removing regularization update from gradient computation in logistic regression, as that's now handled by the optimizer

9 лет назад
logistic_regression_trainer.c

[classification] correcting cost functions in SGD and FTRL for use in parameter sweeps

9 лет назад
logistic_regression_trainer.h

[classification] correcting cost functions in SGD and FTRL for use in parameter sweeps

9 лет назад
main.c

[expand] adding a --root flag to the libpostal script for root-only expansion

7 лет назад
matrix.h

[fix] memcpy in aligned vector/matrix resize needs to know the original size. Since this is an internal static function and does not affect client APIs, changing it to aligned_malloc, aligned_free, and aligned_resize, which takes the original pointer size as well as the new. On Windows it simply passes the pointer, new size, and alignment through _aligned_realloc, whereas on other platforms only the aligned_malloc is for new_size bytes and uses old_size bytes for memcpy

3 года назад
minibatch.c

[fix] NULL check

11 лет назад
minibatch.h

[features] Functions for dealing with minibatches

11 лет назад
msgpack_utils.c

[utils] cstring_array_terminate, moving msgpack_utils to separate file

11 лет назад
msgpack_utils.h

[fix] Adding stdint.h include to most of the header files for portability

11 лет назад
near_dupe.c

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
near_dupe.h

[near_dupes] exposing name_word_hashes directly in the API

4 года назад
near_dupe_test.c

[dedupe/test] adding remaining options to near_dupe_test

8 лет назад
ngrams.c

[ngrams] changing args to ngrams

10 лет назад
ngrams.h

[ngrams] changing args to ngrams

10 лет назад
normalize.c

[fix/utf8] reviewed and fixed all points where utf8proc_iterate is called and may return an error which can cause the iteration not to make forward progress. This includes fixing a bug where injecting invalid UTF-8 through a series of HTML-encoded codepoints can cause the C library to hang. Note: we're not fixing all the garbage encoding in the world, so if encoding is bad the output of expand_address may not be useful but it won't hang. Fixes #448

год назад
normalize.h

[normalize/api] exposing normalize_string_languages and normalized_tokens_languages to the API for pre-normalizing numeric expressions at tokenization time

8 лет назад
numex.c

[fix/utf8] reviewed and fixed all points where utf8proc_iterate is called and may return an error which can cause the iteration not to make forward progress. This includes fixing a bug where injecting invalid UTF-8 through a series of HTML-encoded codepoints can cause the C library to hang. Note: we're not fixing all the garbage encoding in the world, so if encoding is bad the output of expand_address may not be useful but it won't hang. Fixes #448

год назад
numex.h

[numex] helper function to retrieve ordinal suffix lengths from a tokenized string for use in deduping

8 лет назад
numex_data.c

[auto][ci skip] Adding data files from Travis build #284

9 лет назад
numex_rule.h

[numex] Separating rules from keys for Linux gcc compilation

11 лет назад
numex_table_builder.c

[numex] adding ordinal suffixes themselves to the numex trie so they can be removed from strings

9 лет назад
place.c

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
place.h

[api/compat] PR #465 redefined the language classifier response struct in the API and was casting between incompatible pointer types. Using the exported struct throughout.

2 года назад
postal_fields.h

[geonames] Re-generating postal/geonames fields headers

11 лет назад
regularization.c

[optimization] moving regularization methods to their own module

9 лет назад
regularization.h

[optimization] moving regularization methods to their own module

9 лет назад
scanner.c

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
scanner.h

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
scanner.re

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
shuffle.c

#511. Fixed C compilation errors for the latest versions of Mac OS X

6 лет назад
shuffle.h

[utils] adding default chunk size to shuffle.h

9 лет назад
soft_tfidf.c

Fix segmentation fault in soft_tfidf.c

7 лет назад
soft_tfidf.h

[dedupe] account for missing ordinal suffixes in Soft-TFIDF deduping i.e. to count 1st Place and 1 Plce as the same where there might be a misspelling and the phrase wouldn't match under exact expansions

8 лет назад
sparse_matrix.c

[merge] merging master

10 лет назад
sparse_matrix.h

[math] Generic dense matrix implementation using BLAS calls for matrix-matrix multiplication if available

10 лет назад
sparse_matrix_utils.c

[fix] sparse_matrix_utils also had an incompatible pointer

2 года назад
sparse_matrix_utils.h

[utils] sparse_matrix_add_unique_columns_alias, adds the actual column indices to hashtable/array and aliases those in the table from 1 to N (where N is the number of unique columns in this batch). This way it's compatible with smaller matrices of batch weights.

9 лет назад
stochastic_gradient_descent.c

[optimization] for the FTRL and SGD optimizers, use the new *_array_sum_sq function to do L2 regularization, vs. the L2 norm which will use the linear algebra meaning

9 лет назад
stochastic_gradient_descent.h

[classification] correcting cost functions in SGD and FTRL for use in parameter sweeps

9 лет назад
string_similarity.c

[similarity] adding a multi-word alignmnet algorithm for streets and names like "de la cruz" vs. "dela cruz" or "Oceanwalk Ter" vs. "Ocean Walk Ter"

8 лет назад
string_similarity.h

[similarity] adding a multi-word alignmnet algorithm for streets and names like "de la cruz" vs. "dela cruz" or "Oceanwalk Ter" vs. "Ocean Walk Ter"

8 лет назад
string_utils.c

[fix/utf8] reviewed and fixed all points where utf8proc_iterate is called and may return an error which can cause the iteration not to make forward progress. This includes fixing a bug where injecting invalid UTF-8 through a series of HTML-encoded codepoints can cause the C library to hang. Note: we're not fixing all the garbage encoding in the world, so if encoding is bad the output of expand_address may not be useful but it won't hang. Fixes #448

год назад
string_utils.h

[dedupe] for near-dupe hashing, remove whitespace from root expansions so something like "Ocean Walk Dr" and "Oceanwalk Dr" will have a chance of matching downstream

8 лет назад
strndup.c

[fix] conditional compilation for strndup and drand48 for Windows, using config.h

9 лет назад
strndup.h

[fix] conditional compilation for strndup and drand48 for Windows, using config.h

9 лет назад
tagger.h

[fix] add #include guard to tagger.h

9 лет назад
token_types.h

[merge] merging commit from v1.1

9 лет назад
tokens.c

Fix bug in strndup fix for windows. Move all includes out of headers and into code for strndup.h and move it to be the last include.

9 лет назад
tokens.h

[expand] adding improvements to root expansions (using possible phrase roots even if they're abbreviated e.g. "E Ctr St", adding special valid components check for root expansions beyond what's stored in the build address dictionaries), removing spaces before checking unique strings, only splitting numeric from alpha in the case of non-ordinals, using cstring_array internally and char ** in the public API

9 лет назад
transliterate.c

[fix] double-free on a non-lowercased transliterator name

год назад
transliterate.h

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
transliteration_data.c

[transliteration] regenerate transliteration data

9 лет назад
transliteration_rule.h

[transliteration] Using revisit strings instead of keeping a backtrack count so we don't have to later map logical characters to the actual string, removing any duplicate keys in the table builder so that if any rules happen to overlap within a step, the first will take precedence

11 лет назад
transliteration_scripts_data.c

[transliteration] regenerated transliteration_scripts_data.c

10 лет назад
transliteration_table_builder.c

[logging] converting most of the steps in building the transliteration table to use debug logging

10 лет назад
trie.c

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
trie.h

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
trie_search.c

[fix/utf8] reviewed and fixed all points where utf8proc_iterate is called and may return an error which can cause the iteration not to make forward progress. This includes fixing a bug where injecting invalid UTF-8 through a series of HTML-encoded codepoints can cause the C library to hang. Note: we're not fixing all the garbage encoding in the world, so if encoding is bad the output of expand_address may not be useful but it won't hang. Fixes #448

год назад
trie_search.h

Removing EXPORT statements from all source files and most header files, leaving only the exports for the main API in libpostal.h. Modified Makefiles so that all the test apps build without having extra functions exported from libpostal.

9 лет назад
trie_utils.c

[fix] initialize next_id by zero in trie_new_from_cstring_array function

2 года назад
trie_utils.h

[mv] Moving trie_new_from_hash to a module

11 лет назад
unicode_script_types.h

[unicode] Regenerating unicode_script_data.c

11 лет назад
unicode_scripts.c

[fix/utf8] reviewed and fixed all points where utf8proc_iterate is called and may return an error which can cause the iteration not to make forward progress. This includes fixing a bug where injecting invalid UTF-8 through a series of HTML-encoded codepoints can cause the C library to hang. Note: we're not fixing all the garbage encoding in the world, so if encoding is bad the output of expand_address may not be useful but it won't hang. Fixes #448

год назад
unicode_scripts.h

[transliteration] Regenerating transliteration data files

11 лет назад
unicode_scripts_data.c

[unicode] Regenerating unicode_script_data.c

11 лет назад
vector.h

[fix] Windows name

3 года назад
vector_math.h

[revert] reverting the commits from #578, leaving header file in repo for the moment

3 года назад