[phrases] Adding prefix-only trie searches, primarily with Germanic languages in mind (spelled out numbers, concatenated prefixes). Making the prefix/suffix APIs for single tokens more consistent with trie searches over longer strings/token arrays

This commit is contained in:
Al
2015-04-01 02:52:57 -04:00
parent 1ac4438e39
commit 310acbed2c
2 changed files with 67 additions and 22 deletions

View File

@@ -24,8 +24,9 @@ VECTOR_INIT(phrase_array, phrase_t)
phrase_array *trie_search(trie_t *self, char *text);
phrase_array *trie_search_tokens(trie_t *self, tokenized_string_t *response);
uint32_t trie_search_suffixes(trie_t *self, char *word);
phrase_t trie_search_suffixes(trie_t *self, char *word);
phrase_t trie_search_prefixes(trie_t *self, char *word);
#ifdef __cplusplus
}