Commit graph

165 commits

Author SHA1 Message Date
Eddie Antonio Santos
fc633ae94d
Rename WorkerInternalModel -> LexicalModel. 2019-10-01 14:31:40 -06:00
Eddie Antonio Santos
d75c04ca39
Remove worker-compiler-interfaces entirely. 2019-10-01 12:56:03 -06:00
Eddie Antonio Santos
81d8f7eb87
Completely move worker-compiler-interfaces.d.ts to lexical-model-types. 2019-10-01 12:48:19 -06:00
jahorton
a454b99971 Fixes double-space bug. 2019-08-07 09:38:55 +07:00
Eddie Antonio Santos
fd5173c882
Typo
Co-Authored-By: Marc Durdin <marc@durdin.net>
2019-07-31 09:40:09 -06:00
Eddie Antonio Santos
27e63e16b1
Be explicit about the type of punctuation defaults. 2019-07-30 10:20:36 -06:00
Eddie Antonio Santos
3017300f33
Factor out some interfaces required both by compiler and by worker to their own file. 2019-07-30 10:07:11 -06:00
Eddie Antonio Santos
fe0a99c6e4
Merge branch 'master' into lmlayer-specify-punctuation 2019-07-30 09:22:34 -06:00
Joshua Horton
d8cd238e36
Update common/predictive-text/worker/worker-interfaces.ts
Co-Authored-By: Eddie Antonio Santos <easantos@ualberta.ca>
2019-07-30 08:40:00 +07:00
Eddie Antonio Santos
d99337bf39
Add punctuation to trie model. 2019-07-29 16:06:43 -06:00
Eddie Antonio Santos
32a8dcb0c2
Convert determinePunctuationFromModel() to a static method. 2019-07-29 15:44:23 -06:00
Eddie Antonio Santos
b20541ea8b
Allow for the partial specification of punctuation, with more robust defaults selector thing. 2019-07-29 15:40:08 -06:00
Eddie Antonio Santos
5e2528a78c
Extract method: determinePunctuationFromModel(). 2019-07-29 15:29:36 -06:00
jahorton
8f374d24fc Missed including this edit. 2019-07-29 08:11:06 +07:00
jahorton
efbeafa78e PR review polish, round 1 2019-07-29 05:57:14 +07:00
jahorton
5776cd9138 Documents the methods of WorkerInternalModel 2019-07-26 16:03:12 +07:00
Eddie Antonio Santos
529f0d3adf
Move space adding to the model compositor. 2019-07-25 15:47:54 -06:00
Eddie Antonio Santos
87089a197d
Implement alternate open/close quote. 2019-07-25 15:11:40 -06:00
jahorton
1c8f2b3481 Adds comment for future extension work. 2019-07-23 11:00:06 +07:00
jahorton
d518d6d92c Addresses PR review elements. 2019-07-23 08:28:06 +07:00
jahorton
4ae9394f51 Fixes mid-word backspace issues. 2019-07-22 13:06:46 +07:00
jahorton
9137eca2e7 Null-context suggestion whitespace preservation 2019-07-22 11:53:25 +07:00
jahorton
989dc881fc Right, null-check that. 2019-07-22 10:22:49 +07:00
jahorton
b7f48e2666 Keep suggestion now always gets quoted 'displayAs' 2019-07-22 10:20:59 +07:00
jahorton
5c084c5c75 Patches out IE-incompatible whitespace regex. 2019-07-04 09:39:56 +07:00
jahorton
3a772852a2 Better whitespace detection in compositor. 2019-07-04 08:27:24 +07:00
jahorton
2e3e20559d Moves .isKeep prop to .tag == 'keep'. 2019-07-04 08:09:30 +07:00
jahorton
aec96341e9 Addresses most concerns of recent PR review. 2019-07-03 09:41:50 +07:00
jahorton
96225f1fdb KMW now uses LMLayer's new 'keep' suggestion 2019-07-01 15:34:13 +07:00
jahorton
8725428db5 LMLayer generation of 'keep' Suggestions 2019-07-01 15:24:32 +07:00
jahorton
db6f59f4c9 Detection of the 'keep' option. 2019-07-01 15:00:11 +07:00
jahorton
bb3a83b7c8 Fixes backspace handling and duplicated suggestions. 2019-07-01 13:33:24 +07:00
jahorton
7f64230824 Initial implementation of direct wordbreak API 2019-07-01 09:50:11 +07:00
Eddie Antonio Santos
41375e4731
Extract sum weights from trie to model compiler. 2019-06-12 15:06:13 -06:00
Eddie Antonio Santos
a8dfaaa5aa
Merge pull request #1817 from keymanapp/lmlayer-string-normalize
[LMLayer] Partial workaround for lack of  String.prototype.normalize() support.
2019-06-07 08:53:19 -06:00
Eddie Antonio Santos
9123c5218e
Merge pull request #1805 from keymanapp/lmlayer-remove-obsolete-wordlist
[LMLayer] Remove obsoleted wordlist model.
2019-06-04 13:52:17 -06:00
Eddie Antonio Santos
784555b7db
Add a test for the default wordform to key function. 2019-06-04 11:08:41 -06:00
Eddie Antonio Santos
3f4aa0e9d9
Remove String.prototype.normalize() in favor of a lookup table :/ 2019-06-04 09:37:45 -06:00
Eddie Antonio Santos
c1e88eb33c
Merge branch 'master' into lmlayer-remove-obsolete-wordlist 2019-06-03 09:22:48 -06:00
Eddie Antonio Santos
cc89dd0851
Merge branch 'master' into lmlayer-trie-weighting 2019-06-03 09:03:52 -06:00
Eddie Antonio Santos
6f028733ac
Fix comment, fix function name, and tweak a few things with sumWeights. 2019-06-03 08:59:39 -06:00
Eddie Antonio Santos
29351d4e66
Merge pull request #1804 from keymanapp/lmlayer-default-key-function
[LMLayer] Make default key function consistent in compiler and worker.
2019-06-02 05:02:22 -06:00
Eddie Antonio Santos
7244000412
Test fat-fingering 'the'. 2019-05-31 16:24:26 -06:00
Eddie Antonio Santos
1b4fed7bf5
Test the model compositor. 2019-05-31 15:47:29 -06:00
Eddie Antonio Santos
29a53f9537
Convert counts to probabilities in the trie model and expose to model compositor. 2019-05-31 14:24:38 -06:00
Eddie Antonio Santos
ab76aad83c
Refactor helper to lexically scoped function declaration. 2019-05-31 13:28:18 -06:00
Eddie Antonio Santos
5b6a9d774b
Merge branch 'master' into lmlayer-remove-obsolete-wordlist 2019-05-31 08:26:44 -06:00
Joshua Horton
c1c5af3508
Merge pull request #1802 from keymanapp/web-fat-finger-integration
[Web] Fat-finger language modeling
2019-05-31 14:32:52 +07:00
jahorton
6a7abb8f75 Tweaks DummyModel empty return to []. 2019-05-31 14:31:29 +07:00
Eddie Antonio Santos
9a00ccd9c8
Remove from worker. 2019-05-28 11:06:28 -06:00