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.
Release files for cjk-textwrap 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjk-textwrap-0.1.0.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjk_textwrap-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / cjk-textwrap-0.1.0.tar.gz
| Download URL | cjk-textwrap-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a25f2788ec2e5e303ca9778f7ccbc734f49e0af193236d9269d13710ee10f7d
|
|
BLAKE2b-256 checksum How to use checksums |
f33697cd5e529973887133a9c0930a416ff16e6ef3fd1d0e3abf47d10873aecb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.5 Windows/10
|
Release files / cjk_textwrap-0.1.0-py3-none-any.whl
| Download URL | cjk_textwrap-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c4970711a1061d5ec3aea5545b18a6c2c51edc92d78b800695091c409b66f48
|
|
BLAKE2b-256 checksum How to use checksums |
13f5e2a8c69f9665ce6e69a3a8148daf7965d74986dfda2e11165ca3931a59ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.5 Windows/10
|