[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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user