Eddie Antonio Santos
|
82ba375fb5
|
Enable word list model in the top-level API.
|
2019-01-18 14:23:16 -07:00 |
|
Eddie Antonio Santos
|
a247bf8119
|
Implement prediction with multiple words.
|
2019-01-18 14:00:24 -07:00 |
|
Eddie Antonio Santos
|
baf8bdb12b
|
Implement predicting for the empty buffer.
|
2019-01-18 13:23:49 -07:00 |
|
Eddie Antonio Santos
|
89f9d8a2f1
|
Tidy up: define WordListModel in a IIFE so that it can have private constants.
|
2019-01-18 13:08:00 -07:00 |
|
Eddie Antonio Santos
|
2c8237c379
|
Implement simple prefix search for a single word.
|
2019-01-18 13:00:15 -07:00 |
|
Eddie Antonio Santos
|
4abbbc41a5
|
Suggest prefix via exhaustive search over word list.
|
2019-01-17 14:42:59 -07:00 |
|
Eddie Antonio Santos
|
198b6a1e3e
|
Test prefix queries.
|
2019-01-17 13:43:22 -07:00 |
|
Eddie Antonio Santos
|
d6b2b96621
|
Create stub for word list model.
|
2019-01-17 11:09:06 -07:00 |
|
Eddie Antonio Santos
|
c479d49adb
|
No longer allow model to be specified as source code.
|
2019-01-16 15:14:53 -07:00 |
|
Eddie Antonio Santos
|
42ffffc48b
|
Document the LMLayerWorker with state diagram.
|
2019-01-14 14:46:47 -07:00 |
|
Eddie Antonio Santos
|
626b9f2898
|
Remove TODO comments addressed in this PR.
|
2019-01-14 14:28:58 -07:00 |
|
Eddie Antonio Santos
|
c204f4b793
|
Implement token tracking in top-level API.
|
2019-01-14 13:36:57 -07:00 |
|
Eddie Antonio Santos
|
97a59ae8d0
|
Send back the token in the 'suggestions' message.
|
2019-01-14 13:17:14 -07:00 |
|
Eddie Antonio Santos
|
c1409c3e62
|
Update documentation/interfaces to be consistent with each other.
|
2019-01-11 15:28:34 -07:00 |
|
Eddie Antonio Santos
|
0e1cb0d55b
|
Rearrange different message type definitions.
|
2019-01-10 15:56:30 -07:00 |
|
Eddie Antonio Santos
|
f2dde2a7f9
|
Refactor: extract method: setupInitialState().
|
2019-01-10 15:39:56 -07:00 |
|
Eddie Antonio Santos
|
d943bdd54e
|
Refactor: LMLayerWorker now implements the state pattern: uninitialized and ready states.
|
2019-01-10 15:34:07 -07:00 |
|
Eddie Antonio Santos
|
f2b1335c97
|
LMLayerWorker [message: predict] works.
|
2019-01-10 14:35:23 -07:00 |
|
Eddie Antonio Santos
|
c35250c358
|
Fix how test was sending model.
|
2019-01-10 14:19:06 -07:00 |
|
Eddie Antonio Santos
|
3bae3faf5e
|
Change interfaces to allow for the dummy model.
|
2019-01-10 14:11:31 -07:00 |
|
Eddie Antonio Santos
|
88519d1497
|
Implement DummyModel future.
|
2019-01-08 15:27:55 -07:00 |
|
Eddie Antonio Santos
|
11f6685e70
|
DummyModel#predict() returns any injected suggestions immediately.
|
2019-01-08 15:18:40 -07:00 |
|
Eddie Antonio Santos
|
eb8aec564f
|
Import Transform, Context, and Suggestion types. Update predict() interface to match.
|
2019-01-08 14:51:08 -07:00 |
|
Eddie Antonio Santos
|
06555c3630
|
Implement simple, injectable configuration.
|
2019-01-08 13:54:36 -07:00 |
|
Eddie Antonio Santos
|
b2becde2ae
|
Add capabilities argument to WorkerInternalModel constructor.
|
2019-01-08 13:16:04 -07:00 |
|
Eddie Antonio Santos
|
f07c715d06
|
Embetter comments.
|
2019-01-08 13:03:14 -07:00 |
|
Eddie Antonio Santos
|
f1c6dca02d
|
Factor out worker interfaces and types into worker-interfaces.ts.
|
2019-01-08 12:54:26 -07:00 |
|
Eddie Antonio Santos
|
26ad83d52b
|
Put dummy model into its own file.
|
2019-01-07 14:57:57 -07:00 |
|
Eddie Antonio Santos
|
fc8f1eaa63
|
Add internal models to LMLayerWorker.models.
|
2019-01-07 14:49:11 -07:00 |
|
Eddie Antonio Santos
|
f1382fe58c
|
Remove undeveloped "model" interface.
|
2018-11-30 13:44:58 -07:00 |
|
Eddie Antonio Santos
|
36e18e4019
|
Refactor: extract interfaces common to worker and top-level.
|
2018-11-30 13:43:29 -07:00 |
|
Eddie Antonio Santos
|
140efa7dc7
|
Require the capabilities object in the initialize message.
|
2018-11-30 13:35:40 -07:00 |
|
Joshua A. Horton
|
cf13caa98e
|
Merge branch 'lmlayer-init' into lmlayer-build-reorg
|
2018-11-29 23:35:37 +07:00 |
|
Joshua A. Horton
|
32b834521e
|
Reorganized the build structure into something simpler to -clean.
|
2018-11-29 09:11:26 +07:00 |
|
Eddie Antonio Santos
|
8404ef3c13
|
Comment ALL THE THINGS.
|
2018-11-28 14:20:09 -07:00 |
|
Eddie Antonio Santos
|
17dfd2d76e
|
Merge branch 'lmlayer-init' into lmlayer-sans-import-scripts
|
2018-11-19 19:58:35 -07:00 |
|
Eddie Antonio Santos
|
0dfa36a3b6
|
Attempt to clarify comment on LMLayerWorker.install().
|
2018-11-19 18:35:58 -07:00 |
|
Eddie Antonio Santos
|
d774f08cc7
|
Clarify comment.
|
2018-11-19 17:23:43 -07:00 |
|
Eddie Antonio Santos
|
5e3f59f68b
|
Fix invalid invocation.
|
2018-11-19 17:05:50 -07:00 |
|
Eddie Antonio Santos
|
d1f8d71026
|
Install an LMLayerWorker when in a Worker scope.
|
2018-11-19 15:29:26 -07:00 |
|
Eddie Antonio Santos
|
e7fe927718
|
Clean up recently imported interfaces.
|
2018-11-19 13:52:19 -07:00 |
|
Eddie Antonio Santos
|
bb25564c92
|
Add a bunch of types that may or may not be useful.
|
2018-11-19 13:41:10 -07:00 |
|
Eddie Antonio Santos
|
ef3e718639
|
Raise an error when sent a message other than 'initialize' on instantiation.
|
2018-11-19 13:30:39 -07:00 |
|
Eddie Antonio Santos
|
f0decd6204
|
Extact method: loadModel().
|
2018-11-19 13:20:24 -07:00 |
|
Eddie Antonio Santos
|
2f3eb5d10e
|
Set configuration from values sent by keyboard.
|
2018-11-19 13:07:41 -07:00 |
|
Eddie Antonio Santos
|
748a504e14
|
Run source code passed in as 'model'
|
2018-11-19 12:58:08 -07:00 |
|
Eddie Antonio Santos
|
ef3a93fd4a
|
Remove usage of importScripts().
|
2018-11-19 12:35:48 -07:00 |
|
Eddie Antonio Santos
|
88b181286a
|
Convert Message type to OutgoingMessage.
|
2018-11-19 11:19:54 -07:00 |
|
Eddie Antonio Santos
|
963aa634d0
|
Import the model.
|
2018-11-19 11:10:41 -07:00 |
|
Eddie Antonio Santos
|
feeb7ffbdb
|
Add need for importScripts(); but this breaks all the tests :c
|
2018-11-19 11:00:35 -07:00 |
|