Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
wrote a simple usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
high-moctane committed Oct 1, 2019
1 parent 3b09ede commit 10150a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@ func main() {

func run() int {
if !parseArgs() {
help := `The nextword prints the most likely English words that follow the stdin sentence.
The space character at the end of line plays an important role. If the line ends
with a space, the command show the next suggested words. However, if the line
ends with an alphabetic character, the suggested words start with the last word
of the line.
This command needs an external dataset. The dataset path should be set in an
environment value "$NEXTWORD_DATA_PATH". `

flag.Usage()
fmt.Fprintln(os.Stderr, "")
fmt.Fprintln(os.Stderr, help)
return 1
}

Expand Down

0 comments on commit 10150a5

Please sign in to comment.