Repository navigation
v26.9.104
hasami 26.9.104
Installation
Manual Download
Download the appropriate binary for your platform and add it to your PATH.
macOS (Apple Silicon)
curl -L https://github.com/owayo/hasami/releases/download/v26.9.104/hasami-aarch64-apple-darwin.tar.gz | tar xz
sudo mv hasami /usr/local/bin/macOS (Intel)
curl -L https://github.com/owayo/hasami/releases/download/v26.9.104/hasami-x86_64-apple-darwin.tar.gz | tar xz
sudo mv hasami /usr/local/bin/Linux (x86_64)
curl -L https://github.com/owayo/hasami/releases/download/v26.9.104/hasami-x86_64-unknown-linux-gnu.tar.gz | tar xz
sudo mv hasami /usr/local/bin/Linux (ARM64)
curl -L https://github.com/owayo/hasami/releases/download/v26.9.104/hasami-aarch64-unknown-linux-gnu.tar.gz | tar xz
sudo mv hasami /usr/local/bin/Windows
Download hasami-x86_64-pc-windows-msvc.zip, extract, and add to PATH.
Dictionaries
hasami needs a dictionary. The dictionaries are not in the repository; they are attached to this release.
hasami dict download # the recommended dictionary, into ~/.local/share/hasami/ (%LOCALAPPDATA%\hasami on Windows)
hasami dict download --all # all three dictionaries
hasami tokenize "形態素解析のテスト" # uses the downloaded dictionary when --dict is omitted| Dictionary | Contents |
|---|---|
ipadic |
IPAdic |
ipadic-neologd |
IPAdic + NEologd |
ipadic-neologd-sudachi |
IPAdic + NEologd + SudachiDict (recommended) |
Each dictionary is attached as <name>.hsd. <name>.hsd.zst is the same dictionary compressed with zstd; hasami dict download fetches it and checks the SHA-256 after decompressing. dictionaries.json lists the dictionaries with their sizes and SHA-256, and SHA256SUMS covers every file of this release.
To download a dictionary with curl and verify it:
base=https://github.com/owayo/hasami/releases/download/v26.9.104
curl -fL --remote-name-all "$base/ipadic-neologd-sudachi.hsd" "$base/SHA256SUMS"
grep ' ipadic-neologd-sudachi.hsd$' SHA256SUMS | sha256sum --check --strict -The dictionaries contain data from IPAdic, mecab-ipadic-NEologd and SudachiDict. Their licenses are in THIRD_PARTY_LICENSES.md; distribute it together with the dictionaries when you redistribute them.