Kiwipiepy is a fast and accurate Korean morphological analyzer (tokenizer) for Python, wrapping the high-performance C++ library Kiwi. It supports various features like part-of-speech tagging, named entity recognition, dialect analysis, and typo correction. The library is actively maintained with frequent updates, often aligning with the core Kiwi library's releases.
pip install kiwipiepyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `Kiwi` tokenizer and perform basic morphological analysis on a Korean sentence. It also includes an example of using the `split_complex` option for more granular analysis.
Move `oov_handling` from `Kiwi(oov_handling=...)` to `kiwi.tokenize(text, oov_handling=...)`. Check documentation for new valid `oov_handling` string values.
Pass typo correction options to `kiwi.tokenize(text, typos=True, match_typo_with_stem=True, ...)` instead of `Kiwi(typos=True, ...)`.
Use the default `model_type` or explicitly specify `model_type='sbg'` (the current default and recommended general-purpose model) or `model_type='ngram'`.
For critical multithreaded applications, create a separate `Kiwi` instance for each thread or ensure any dictionary modifications are synchronized.
Ensure the `Kiwi` instance remains stable and in scope when performing subsequent operations like `join()` on results obtained from it. Upgrade to the latest version to benefit from fixes in v0.22.0.
Run `pip install kiwipiepy` to install the library.
Move the `oov_handling` argument to the `kiwi.tokenize()` method: `kiwi.tokenize(text, oov_handling='new_strategy')`.
Move typo correction options to the `kiwi.tokenize()` method: `kiwi.tokenize(text, typos=True, match_typo_with_stem=True)`.
Remove the `model_type` argument to use the default, or use a currently supported model type like `model_type='sbg'` or `model_type='ngram'`.
Ensure you are on the latest `kiwipiepy` version. If the issue persists, simplify the input, avoid concurrent dictionary modifications, or report the specific input that causes the crash to the library maintainers.
No dependency data recorded yet.