Skip to main content

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


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)

Uploaded Source

Built Distribution

cjk_textwrap-0.1.0-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page