{"id":39607867,"url":"https://github.com/togatoga/kanpyo","last_synced_at":"2026-01-30T13:45:04.365Z","repository":{"id":245725092,"uuid":"703782553","full_name":"togatoga/kanpyo","owner":"togatoga","description":"Japanese Morphological Analyzer written in Rust","archived":false,"fork":false,"pushed_at":"2025-12-13T07:09:16.000Z","size":10871,"stargazers_count":106,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-14T21:27:08.242Z","etag":null,"topics":["japanese","morphological","rust","tokenizer"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/togatoga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-11T23:02:22.000Z","updated_at":"2025-12-13T07:08:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"974ad58c-3286-4671-8c51-676a2ed4bb73","html_url":"https://github.com/togatoga/kanpyo","commit_stats":null,"previous_names":["togatoga/kanpyo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/togatoga/kanpyo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togatoga%2Fkanpyo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togatoga%2Fkanpyo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togatoga%2Fkanpyo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togatoga%2Fkanpyo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/togatoga","download_url":"https://codeload.github.com/togatoga/kanpyo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togatoga%2Fkanpyo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28533742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["japanese","morphological","rust","tokenizer"],"created_at":"2026-01-18T08:01:28.582Z","updated_at":"2026-01-30T13:45:04.357Z","avatar_url":"https://github.com/togatoga.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Kanpyo\n\n[![Crates.io](https://img.shields.io/crates/v/kanpyo.svg)](https://crates.io/crates/kanpyo)\n\nKanpyo is Japanese morphological analyzer written in Rust inspired by [ikawaha/Kagome](https://github.com/ikawaha/kagome).\n\n## Caution\n\nThis is a work in progress. I would break the API without notice.\n\n## Installation\n\n### With Embedded Dictionary (Recommended)\n\nThe easiest way to install `kanpyo` is with the embedded dictionary. No additional setup required.\n\n```shell script\ncargo install kanpyo --features mecab-ipadic\n```\n\nor from git:\n\n```shell script\ncargo install --git https://github.com/togatoga/kanpyo kanpyo --features mecab-ipadic\n```\n\nThe dictionary will be automatically downloaded from GitHub Releases during the build process and embedded into the binary.\n\n### Without Embedded Dictionary\n\nIf you prefer a smaller binary size or want to use a custom dictionary:\n\n```shell script\ncargo install kanpyo\n```\n\nYou need to build and install a dictionary manually:\n\n```shell script\ncd kanpyo-dict\ntar xvf resource/mecab-ipadic-2.7.0-20070801.tar.gz -C resource\ncargo run --release --bin ipa-dict-builder -- --dict resource/mecab-ipadic-2.7.0-20070801\n```\n\nThe dictionary is installed in the following directory:\n\n- Linux: `$HOME/.config/kanpyo/`\n- macOS: `$HOME/Library/Application Support/kanpyo/`\n- Windows: `%APPDATA%\\kanpyo\\`\n\nYou're ready to use `kanpyo`!\n\n## Usage\n\n```shell script\nkanpyo --help\nJapanese Morphological Analyzer\n\nUsage: kanpyo [COMMAND]\n\nCommands:\n  tokenize  Tokenize input text\n  graphviz  Output lattice in Graphviz format\n  help      Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help     Print help\n  -V, --version  Print version\n```\n\n### Tokenize\n\n```shell script\nkanpyo tokenize \"すもももももももものうち\"          \nすもも  名詞,一般,*,*,*,*,すもも,スモモ,スモモ\nも      助詞,係助詞,*,*,*,*,も,モ,モ\nもも    名詞,一般,*,*,*,*,もも,モモ,モモ\nも      助詞,係助詞,*,*,*,*,も,モ,モ\nもも    名詞,一般,*,*,*,*,もも,モモ,モモ\nの      助詞,連体化,*,*,*,*,の,ノ,ノ\nうち    名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ\nEOS\n```\n\n#### REPL mode\n\n```shell script\nkanpyo\n自然言語処理\n自然    名詞,形容動詞語幹,*,*,*,*,自然,シゼン,シゼン\n言語    名詞,一般,*,*,*,*,言語,ゲンゴ,ゲンゴ\n処理    名詞,サ変接続,*,*,*,*,処理,ショリ,ショリ\nEOS\n形態素解析\n形態素  名詞,一般,*,*,*,*,形態素,ケイタイソ,ケイタイソ\n解析    名詞,サ変接続,*,*,*,*,解析,カイセキ,カイセキ\nEOS\n```\n\n#### From piped standard input\n\n```shell script\necho \"自然言語処理\" | kanpyo\n自然    名詞,形容動詞語幹,*,*,*,*,自然,シゼン,シゼン\n言語    名詞,一般,*,*,*,*,言語,ゲンゴ,ゲンゴ\n処理    名詞,サ変接続,*,*,*,*,処理,ショリ,ショリ\nEOS\n```\n\n### Graphviz\n\nPrint lattice in Graphviz format for debugging.\n\n```shell script\nkanpyo graphviz \"自然言語処理\" | dot -Tpng -o lattice.png\n```\n\n![lattice](https://github.com/togatoga/kanpyo/assets/7335831/d68ea754-51f9-458e-ac5f-50955be3c581)\n\n### TODO\n\n- [ ] Support various dictionaries(Sudachi, UniDic, neologd, etc.)\n- [ ] Support server mode\n- [ ] Support search mode\n- [ ] Tests for load dictionary and tokenize\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftogatoga%2Fkanpyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftogatoga%2Fkanpyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftogatoga%2Fkanpyo/lists"}