spiegel-keyman/common/test/predictive-text
Eddie Antonio Santos 6ae6027b2a
Add a basic README.
2019-04-12 09:15:54 -06:00
..
.gitignore Works as an event stream now! 2019-04-11 16:17:54 -06:00
example.crk.wordlist_wahkohtowin.model.js What I expect the model to look like. 2019-04-01 14:48:14 -04:00
index.js Works as an event stream now! 2019-04-11 16:17:54 -06:00
package-lock.json Works as an event stream now! 2019-04-11 16:17:54 -06:00
package.json Works as an event stream now! 2019-04-11 16:17:54 -06:00
README.md Add a basic README. 2019-04-12 09:15:54 -06:00

Predictive Text testing CLI

Provides a command line interface to try out predictive text models.

Install

NOTE: Requires Node >= 10.0

Install dependencies with npm:

npm install 

Usage

Start it like so:

$ node .

You will be presented with a prompt. Type any phrase in the model's language. Press Tab to start choosing a prediction. Press the left and right arrow keys to go through suggestions. Press Enter to select the given suggestion. Press Esc.

Press Ctrl+D or Ctrl+C to quit.

> He
[ Hello ] [ Hey ] [ He he ]

ROADMAP

  • The command line interface!
  • -f filename to load a model from a file
  • LMPATH environment variable to load a named model by id: e.g,. node . example.crk.wordlist will load the given model, provided LMPATH is defined.