lindera-cli 5.2.0

A morphological analysis CLI.
Documentation

Lindera CLI

License: MIT Crates.io

A morphological analysis command-line interface for Lindera.

Documentation

Install

You can install binary via cargo as follows:

% cargo install lindera-cli

Alternatively, you can download a binary from the following release page:

Dictionary

The easiest way to obtain a dictionary is the download subcommand, which installs the pre-built dictionary matching the CLI version under the OS-standard application data directory:

% lindera download ipadic
% echo "日本語の形態素解析を行うことができます。" | lindera tokenize --dict ipadic

Available dictionary names: ipadic, ipadic-neologd, unidic, ko-dic, cc-cedict, jieba.

Alternatively, pre-built dictionaries are available from GitHub Releases. Download a dictionary archive (e.g. lindera-ipadic-*.zip), extract it, and specify the path with the --dict option.

License

MIT