Commit graph

17 commits

Author SHA1 Message Date
Eddie Antonio Santos
c4947cfce6
Add searchTermToKey() function to TrieModelOptions. 2019-05-21 15:58:56 -06:00
jahorton
efb0350bac Adds support for rotating suggestions in KMW. 2019-05-14 15:00:48 +07:00
Eddie Antonio Santos
2356608b72
Change name to 'placeholder' to match lexical-models. 2019-05-03 08:05:30 -06:00
Eddie Antonio Santos
bc91ee9ec4
Use word breaking function in WordListModel. 2019-05-02 14:53:50 -06:00
Eddie Antonio Santos
dab2d0c2eb
Refactor: move placeholder word breaker to word_breakers directory/namespace. 2019-05-02 14:47:27 -06:00
Eddie Antonio Santos
89ad857210
Have TrieModel use a word-breaker internally. 2019-05-02 14:42:00 -06:00
Eddie Antonio Santos
a4db640621
Add word breaker as a parameter to TrieModel. 2019-05-02 14:33:28 -06:00
Eddie Antonio Santos
e3d98dddd3
Merge pull request #1748 from keymanapp/lmlayer-trie
[LMLayer] Trie-backed word list model
2019-04-29 21:32:01 -06:00
Eddie Antonio Santos
05de75229c
[LMLayer] Always accept wordlist as array of [word, count] pairs. 2019-04-29 20:39:31 -06:00
Eddie Antonio Santos
19b218cf97
Tweak current priority queue implementation. 2019-04-29 08:37:16 -06:00
Eddie Antonio Santos
dd94e4ba26
Remove checks for unsortedness. 2019-04-29 08:30:22 -06:00
Eddie Antonio Santos
58f429e344
Implement trie.firstN(). 2019-04-29 08:25:31 -06:00
Eddie Antonio Santos
7dd22b59bd
Implement looking up a wordform in a trie.
This trie implementation allows for word forms to be converted to keys.
Since keys do not have to have the exact same spelling, capitalization,
or even Unicode normalization form as the desried word form, this
enables a somewhat search for word forms based on prefixes.

The implementation was at one point Conrad Irwin's trie-ing,
<9f1d2e0858?
but has been heavily modfied since.
2019-04-26 16:28:14 -06:00
Eddie Antonio Santos
9b90c5e06e
Insert hacky code to make current lexical-model stuff working. 2019-03-28 13:45:36 -06:00
Joshua A. Horton
3b1e715f4b Adjusts predictive model spec for 'configuring' based on 'capabilities' 2019-03-06 10:15:14 +07:00
Joshua A. Horton
6218b808dd Retools how the LMLayer adds models, fixes most headless cases. 2019-02-28 14:45:42 +07:00
Joshua A. Horton
fb38399833 Adjusted models and their direct tests to be namespace-compatible. 2019-02-28 12:21:18 +07:00