File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed
Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 22name = " mocword"
33version = " 0.1.0"
44edition = " 2021"
5+ license = " MIT"
6+ authors = [" high-moctane <high.moctane@gmail.com>" ]
7+ description = " Predict next words."
58
69# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
710
Original file line number Diff line number Diff line change 1- # mocword
1+ # Mocword
22
3- Predict next English words (`・ω・´)
3+ Predict next words (`・ω・´)
4+
5+ ![ give_me_a_star] ( img/give_me_a_star.gif )
6+
7+ ## Installation
8+
9+ ```
10+ cargo install mocword
11+ ```
12+
13+ ## Dataset and Environment Variable
14+
15+ You need to get Mocword dataset from [ high-moctane/mocword-data] ( https://github.com/high-moctane/mocword-data ) .
16+
17+ ```
18+ export MOCWORD_DATA=/path/to/mocword.sqlite
19+ ```
420
521## Usage
622
7- ### One shot mode
23+ ### One Shot Mode
824
925```
1026$ mocword -q "this is "
2743these
2844```
2945
30- ### Interactive mode
46+ ### Interactive Mode
3147
3248```
3349$ mocword
@@ -39,7 +55,7 @@ the them these those their two three this that themselves
3955
4056The underscore is a white space.
4157
42- ## Query string
58+ ## Query String
4359
4460Ends with a white space -> predict successive words.
4561
You can’t perform that action at this time.
0 commit comments