Crates.io | mocword |
lib.rs | mocword |
version | 0.2.0 |
source | src |
created_at | 2022-02-19 13:06:56.560391 |
updated_at | 2022-05-02 06:33:42.250288 |
description | Predict next words. |
homepage | |
repository | |
max_upload_size | |
id | 535176 |
size | 758,606 |
Predict next words (`・ω・´)
Important: You must prepare Mocword dataset in advance. See below (Dataset and Environment Variable).
Visit Releases.
cargo install mocword
You need to get Mocword dataset from high-moctane/mocword-data.
export MOCWORD_DATA=/path/to/mocword.sqlite
$ mocword -q "this is "
the
a
not
an
what
to
that
true
done
so
$ mocword -q "one of t" --limit 3
the
them
these
$ mocword
this is
the a not an what to that true done so
one of t_
the them these those their two three this that themselves
The underscore is a white space.
Ends with a white space -> predict successive words.
Ends without any white space -> predict words which begin with the last word's prefix.
MIT