Skip to content

Commit d9da30c

Browse files
committed
Update README.md
1 parent b62e58b commit d9da30c

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name = "mocword"
33
version = "0.1.0"
44
edition = "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

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
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 "
@@ -27,7 +43,7 @@ them
2743
these
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

4056
The underscore is a white space.
4157

42-
## Query string
58+
## Query String
4359

4460
Ends with a white space -> predict successive words.
4561

img/give_me_a_star.gif

716 KB
Loading

0 commit comments

Comments
 (0)