A flexible textwrapper for CJK string
Project description
CJK Textwrap
cjk-textwrap
是Python 3.6textwrap
模块的中日韩字符兼容版本。此外,它提供了灵活的接口以便用户自定义分词器(如结巴分词)。
cjk-textwrap
is a CJK characters compatible version of Python 3.6's textwrap
module. Moreover, it provides flexible interfaces which allows users to define their own text segmentation for text wrapping like jieba.
Installation 安装
pip:
pip install cjk-textwrap
poetry:
poetry add cjk-textwrap
Feature 功能特性
Although user can get various language support by adding their custom splitter, cjk-textwrap
provides built-in English-Chinese
mixed text phrase wrapping support.
虽然可以通过自定义分词器添加各种语言的支持,但是cjk-textwrap
提供了原生的中-英文混合句支持。
- Chinese Support 中文支持
- Japanese Support 日文支持
- Korean Support 韩文支持
LICENSE 协议许可
This project is licensed under MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cjk-textwrap-0.1.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for cjk_textwrap-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4970711a1061d5ec3aea5545b18a6c2c51edc92d78b800695091c409b66f48 |
|
MD5 | a82199708a7d0ae3a4fc6ea389f99338 |
|
BLAKE2b-256 | 13f5e2a8c69f9665ce6e69a3a8148daf7965d74986dfda2e11165ca3931a59ed |