kiwipiepy-model provides the language models necessary for kiwipiepy, a fast and accurate Korean morphological analyzer. It is a data-only package, implicitly installed as a dependency when you install kiwipiepy. The current version is 0.23.0, and it generally updates in lockstep with major versions of the core kiwipiepy library to provide the latest model improvements.
pip install kiwipiepyVerified import paths — ran on the pinned version, not inferred.
Initialize the Kiwi morphological analyzer. The default model is automatically loaded from the kiwipiepy-model package. This example demonstrates basic tokenization and sentence splitting, incorporating the new `oov_handling` parameter.
Instead of `Kiwi(typo_correct_options=...)`, use `kiwi.tokenize(..., typo_correct_options=...)` or `kiwi.split_into_sentences(..., typo_correct_options=...)`.
Remove deprecated OOV-related parameters (e.g., `oov_score_mode`) from `Kiwi()` constructor. Use `oov_handling='length_based'` or `oov_handling='ngram'` in the `Kiwi()` constructor, or pass it to analysis methods for specific calls.
Ensure you `pip install kiwipiepy` and `from kiwipiepy import Kiwi`. Do not attempt to import classes directly from `kiwipiepy_model`.
Install the main library: `pip install kiwipiepy`.
Pass `typo_correct_options` to `kiwi.tokenize()`, `kiwi.split_into_sentences()`, etc., instead of `Kiwi()`.
Remove `oov_score_mode` from the `Kiwi` constructor. Use the new `oov_handling` parameter (e.g., `oov_handling='ngram'`) when initializing `Kiwi()` or in analysis methods.