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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cjk-textwrap-0.1.0.tar.gz.
File metadata
- Download URL: cjk-textwrap-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a25f2788ec2e5e303ca9778f7ccbc734f49e0af193236d9269d13710ee10f7d
|
|
| MD5 |
1ee5e3d6ba61ea8cf728676ec2aa9a42
|
|
| BLAKE2b-256 |
f33697cd5e529973887133a9c0930a416ff16e6ef3fd1d0e3abf47d10873aecb
|
File details
Details for the file cjk_textwrap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cjk_textwrap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c4970711a1061d5ec3aea5545b18a6c2c51edc92d78b800695091c409b66f48
|
|
| MD5 |
a82199708a7d0ae3a4fc6ea389f99338
|
|
| BLAKE2b-256 |
13f5e2a8c69f9665ce6e69a3a8148daf7965d74986dfda2e11165ca3931a59ed
|