CLI Tools

rhoknp provides a command-line interface (CLI).

Before using the CLI, you need to install rhoknp with the following command:

pip install rhoknp[cli]

cat

The cat command prints KNP files with syntax highlighting.

rhoknp cat <PATH-TO-KNP-FILE> [--dark]

serve

The serve command starts a web server to provide a playground for the given language analyzer.

rhoknp serve {jumanpp|knp|kwja} [--host HOST] [--port PORT]

show

The show command shows the given KNP file in a tree format.

rhoknp show <PATH-TO-KNP-FILE> [--pos] [--rel]

stats

The stats command shows the statistics of the given KNP file.

rhoknp stats <PATH-TO-KNP-FILE> [--json]