{"id":24528,"library":"rhoknp","title":"rhoknp","description":"Yet another Python binding for Juman++/KNP/KWJA. Current version: 1.8.0. Provides a modern Python interface for Japanese morphological analysis (Juman++), dependency/case structure analysis (KNP), and anaphora resolution (KWJA). Follows semantic versioning with frequent patch releases.","status":"active","version":"1.8.0","language":"python","source_language":"en","source_url":"https://github.com/ku-nlp/rhoknp","tags":["japanese","nlp","morphological-analysis","dependency-parsing","anaphora-resolution"],"install":[{"cmd":"pip install rhoknp","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for morphological analysis; must be installed separately or via rhoknp with extras","package":"jumanpp","optional":true},{"reason":"Required for dependency/case structure analysis; must be installed separately or via rhoknp with extras","package":"knp","optional":true},{"reason":"Required for anaphora resolution; must be installed separately or via rhoknp with extras","package":"kwja","optional":true}],"imports":[{"note":"","wrong":"","symbol":"Jumanpp","correct":"from rhoknp import Jumanpp"},{"note":"","wrong":"","symbol":"Knp","correct":"from rhoknp import Knp"},{"note":"","wrong":"","symbol":"Kwja","correct":"from rhoknp import Kwja"},{"note":"","wrong":"","symbol":"Document","correct":"from rhoknp import Document"}],"quickstart":{"code":"from rhoknp import Jumanpp\njumanpp = Jumanpp()\nresult = jumanpp.analyze(\"太郎は本を読んだ。\")\nfor morpheme in result.morphemes:\n    print(morpheme.surf, morpheme.reading)","lang":"python","description":"Basic morphological analysis with Juman++."},"warnings":[{"fix":"Use 'from rhoknp import Jumanpp' instead of 'from rhoknp.juman.jumanpp import Jumanpp'.","message":"In v1.0.0, the import path changed from 'rhoknp.juman.jumanpp' to 'rhoknp'. Old syntax no longer works.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Replace jumanpp.analyze_sentence(text) with jumanpp.analyze(text).","message":"The 'analyze_sentence' method is deprecated in v1.5.0. Use 'analyze' instead.","severity":"deprecated","affected_versions":">=1.5.0"},{"fix":"Install the required binaries separately (e.g., via apt, Homebrew, or source).","message":"The Jumanpp/Knp/Kwja objects require the underlying executables (jumanpp, knp, kwja) to be installed on the system PATH. pip install rhoknp does not install them.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change import to 'from rhoknp import Jumanpp'.","cause":"Importing from deprecated submodule path used in versions <1.0.0.","error":"ModuleNotFoundError: No module named 'rhoknp.juman'"},{"fix":"Install Juman++ (e.g., 'apt install jumanpp' on Ubuntu or download from https://github.com/ku-nlp/jumanpp).","cause":"The jumanpp executable is not installed or not on PATH.","error":"JumanppNotFoundError: Juman++ command not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}