Registry / ai-ml / rhoknp

rhoknp

JSON →
library1.8.0pypypi✓ verified 86d ago

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.

pip install rhoknp
INSTALL
IMPORT
SIG · RHOKNP
R
rhoknp
ai-mlpythonv1.8.0
Install
1.7s avg
Import
189ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.198s · 18.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.180s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Jumanpp
from rhoknp import Jumanpp
Knp
from rhoknp import Knp
Kwja
from rhoknp import Kwja
Document
from rhoknp import Document

Basic morphological analysis with Juman++.

from rhoknp import Jumanpp jumanpp = Jumanpp() result = jumanpp.analyze("太郎は本を読んだ。") for morpheme in result.morphemes: print(morpheme.surf, morpheme.reading)
Debug
Known issues
breakingIn v1.0.0, the import path changed from 'rhoknp.juman.jumanpp' to 'rhoknp'. Old syntax no longer works.
fix
Use 'from rhoknp import Jumanpp' instead of 'from rhoknp.juman.jumanpp import Jumanpp'.
affects: <1.0.0
deprecatedThe 'analyze_sentence' method is deprecated in v1.5.0. Use 'analyze' instead.
fix
Replace jumanpp.analyze_sentence(text) with jumanpp.analyze(text).
affects: >=1.5.0
gotchaThe 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.
fix
Install the required binaries separately (e.g., via apt, Homebrew, or source).
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'rhoknp.juman'
Importing from deprecated submodule path used in versions <1.0.0.
fix
Change import to 'from rhoknp import Jumanpp'.
JumanppNotFoundError: Juman++ command not found
The jumanpp executable is not installed or not on PATH.
fix
Install Juman++ (e.g., 'apt install jumanpp' on Ubuntu or download from https://github.com/ku-nlp/jumanpp).
Upgrade
Version history
1.8.0latest on PyPI · released Nov 2, 2025
Audit
Dependencies
jumanppoptionalRequired for morphological analysis; must be installed separately or via rhoknp with extras
knpoptionalRequired for dependency/case structure analysis; must be installed separately or via rhoknp with extras
kwjaoptionalRequired for anaphora resolution; must be installed separately or via rhoknp with extras
Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
rhoknp — pip install rhoknp · libregistry