skillfed

rhoknp

Yet another Python binding for Juman++/KNP/KWJA

rhoknp v1.8.0 103.2K downloads/30d#12,826 on PyPI40
Permissive license MIT Active released

What it is and what it does

rhoknp wraps three Japanese language processing engines—Juman++ for morphological analysis, KNP for syntactic and semantic parsing, and KWJA for advanced discourse analysis—into a unified Python API. It provides type-annotated classes for working with Japanese linguistic units (morphemes, phrases, clauses, sentences, documents) and supports serialization to and from standard analysis formats.

The package is designed for researchers and developers working with Japanese NLP pipelines. It handles both sentence-level and document-level analysis, allowing you to load raw text, apply morphological or syntactic analysis, traverse the resulting linguistic structures, and persist results in standard formats. The main distinction from the older pyknp binding is comprehensive type annotations, document-level analysis support, and a redesigned API reflecting current use cases.

Use it for:

  • Perform morphological analysis on Japanese text to extract individual word forms and their grammatical properties
  • Parse Japanese sentences into syntactic structures (phrases, clauses) for linguistic research or downstream NLP tasks
  • Load and manipulate pre-analyzed Japanese text in JUMAN or KNP formats for batch processing or data exploration
  • Build document-level Japanese NLP pipelines that preserve cohesion and discourse relations across multiple sentences
  • Serialize linguistic analysis results for storage, sharing, or integration with other Japanese language processing tools

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

rhoknp is a Python binding for Japanese language processing tools (Juman++, KNP, KWJA) that performs morphological analysis, syntactic parsing, and document-level language analysis on Japanese text.

Yes. rhoknp is actively maintained, has no known vulnerabilities, and offers low install friction. It is the recommended choice if you need a modern, type-safe Python interface to Japanese morphological and syntactic analysis tools. Install it if you are working with Japanese NLP and require access to Juman++, KNP, or KWJA; note that the underlying analysis engines may need separate installation depending on your use case.

Install

rhoknp on PyPI

pip

pip install rhoknp

uv

uv add rhoknp

poetry

poetry add rhoknp

Installing rhoknp

Before you install

Low install friction with a pure-wheel distribution. Actively maintained with recent commits and no known vulnerabilities. Single lightweight runtime dependency (typing-extensions) and Python 3.10+ support across current versions.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install rhoknp

import rhoknp

jumanpp = rhoknp.Jumanpp()
sentence = jumanpp.apply_to_sentence("電気抵抗率は電気の通しにくさを表す物性値である。")
for morpheme in sentence.morphemes:
    print(morpheme)

Requires Python 3.10+. The underlying Juman++, KNP, or KWJA tools must be installed separately on your system for morphological analysis and parsing to work; rhoknp alone provides data structure and serialization support.

Verify before relying

  • Whether Juman++, KNP, or KWJA must be installed separately on the system for rhoknp to function beyond basic data structure handling
  • Performance characteristics and typical processing speed for document-level analysis on typical input sizes

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — typing-extensions
Maintenance actively maintained — 285 days since the last release
Last repo commit
First released
Downloads 103,165/month — #12,826 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: rhoknp-1.8.0-py3-none-any.whl

Keywords: NLP, Japanese, Juman++, KNP, KWJA

License :: OSI Approved :: MIT LicenseNatural Language :: JapaneseOperating System :: MacOSOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/EngineeringTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text ProcessingTopic :: Text Processing :: Linguistic

Tags

japanese morphological analysisjuman++ python bindingknp syntactic parsingjapanese nlp toolsjapanese text processingkwja language analysisjapanese dependency parsing
japanese-nlpmorphological-analysissyntactic-parsing

More Libraries packages