Eddie Antonio Santos
2356608b72
Change name to 'placeholder' to match lexical-models.
2019-05-03 08:05:30 -06:00
Eddie Antonio Santos
64073fb02d
Clean up ASCII word breaker unit test.
2019-05-02 15:11:03 -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
d2dd697706
Implement ASCII word breaker.
2019-05-02 13:50:47 -06:00
Eddie Antonio Santos
ed9e95f9a7
Test the ASCII word breaker.
2019-05-02 13:32:14 -06:00
Eddie Antonio Santos
b2282c0349
Add new interfaces for word breaking.
2019-05-02 13:17:42 -06:00
Eddie Antonio Santos
617d657d69
Remove previous versions of the word breaker.
2019-05-02 12:57:04 -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
75ef303422
Update english-1000 in integration test.
2019-04-29 20:46:53 -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
258d41943e
Test suggest after a single word.
2019-04-29 08:27:42 -06:00
Eddie Antonio Santos
58f429e344
Implement trie.firstN().
2019-04-29 08:25:31 -06:00
Eddie Antonio Santos
4382bccd95
Test empty context/transform.
2019-04-29 08:13:08 -06:00
Eddie Antonio Santos
c8913a4b41
Implement test for non-empty context.
2019-04-29 08:09:41 -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
9415975765
Start tests for new Trie model.
2019-04-26 15:18:49 -06:00
Eddie Antonio Santos
3e913e14f0
Merge branch 'master' into lmlayer-cli
2019-04-16 12:43:33 -06:00
Darcy Wong
c9cd7b0a5e
Merge pull request #1704 from keymanapp/web-apply-suggestion
...
[Web] Application of predictive Suggestions.
2019-04-03 08:06:58 +07:00
Eddie Antonio Santos
9b90c5e06e
Insert hacky code to make current lexical-model stuff working.
2019-03-28 13:45:36 -06:00
Eddie Antonio Santos
f28a657f41
Things are more work-y...
2019-03-28 10:26:34 -06:00
Joshua A. Horton
577075d6ab
Fixes #predict unit test.
2019-03-28 15:04:58 +07:00
Joshua A. Horton
66bf2856f5
For Suggestion application: OutputTarget.restoreTo
2019-03-28 10:10:10 +07:00
Eddie Antonio Santos
b000fa1bb2
Allow LMLayer to be imported as a Node module.
2019-03-26 13:10:35 -06:00
Eddie Antonio Santos
d202c478ec
Update dependencies based on npm audit.
2019-03-26 11:07:29 -06:00
Joshua A. Horton
e0682a0b3b
Adds ID for tracking to Transcriptions.
2019-03-14 12:47:38 +07:00
Joshua Horton
e7321a27d9
Merge pull request #1651 from keymanapp/lmlayer-wordbreak-spec
...
[LMLayer] Wordbreaker specification
2019-03-12 07:17:34 +07:00
Eddie Antonio Santos
8279598717
Merge pull request #1655 from keymanapp/web-lmlayer-document-fsm
...
Add a state diagram of the LMLayer worker
2019-03-06 23:07:50 -07:00
Eddie Antonio Santos
d573c55080
Check in build.sh if Graphviz is installed.
2019-03-06 23:00:26 -07:00
Joshua A. Horton
3cb98db46d
Merge branch 'lmlayer-wordbreak-spec' of https://github.com/keymanapp/keyman into lmlayer-wordbreak-spec
2019-03-07 09:04:34 +07:00
Joshua A. Horton
66e9193d69
Merge branch 'web-lmlayer-model-registration' into lmlayer-wordbreak-spec
2019-03-07 09:04:00 +07:00
Joshua A. Horton
a8d6e50b56
Addresses more PR review concerns, renames activateModel -> loadModel.
2019-03-07 08:46:22 +07:00
Eddie Antonio Santos
c53f493b9c
Add a state diagram of the LMLayer worker.
2019-03-06 14:50:25 -07:00
Eddie Antonio Santos
ab22076350
Fix an inconsistent comment.
2019-03-06 13:04:18 -07:00
Joshua A. Horton
810edb2fde
Forgot the $ symbol in the if-condition.
2019-03-06 12:13:25 +07:00
Joshua A. Horton
9a1a21d767
Workaround for the mac sed issue, plus minor doc for one other point.
2019-03-06 11:53:49 +07:00
Joshua A. Horton
69f7319414
Right, KMW links to the actual LMLayer code, not the .d.ts file...
2019-03-06 11:35:52 +07:00
Joshua A. Horton
a873695c10
Updates and improves LMLayer definition files and their links.
2019-03-06 11:08:21 +07:00
Joshua A. Horton
0f8c6b4db3
Merge branch 'web-lmlayer-model-registration' into lmlayer-wordbreak-spec
2019-03-06 10:21:37 +07: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
b6cc287cb1
Renames the 'uninitialized' state to 'modelless', fixes (most?) docs.
2019-03-06 09:58:29 +07:00
Joshua A. Horton
473ed67b29
Adds a 'config' state to the LMLayer worker.
2019-03-06 09:35:46 +07:00
Joshua A. Horton
263af9c721
Addresses many of Eddie's PR review comments.
2019-03-06 08:24:57 +07:00
Joshua A. Horton
49bae3c774
Adds basic definitions for pending word-breaker implementation.
2019-03-05 16:16:42 +07:00
Joshua A. Horton
393dc5b270
LMLayer.initialize -> .activateModel, adds .deactivateModel.
2019-03-04 10:25:22 +07:00
Joshua A. Horton
320ac0901d
Implements a shutdown() function on LMLayer, killing the worker.
2019-03-04 09:01:34 +07:00