Skip to main content

概要

文字列をひらがな、片仮名、漢字、数字、アルファベットごとに分割するツールです。 英日両文に適用可能ですが、ピリオドを含む一部の用語は適切に分割できない場合があります。 詳しくは、実行サンプルをご確認ください。

セットアップ

pip install divide-char-type

使い方

from divide_char_type import divide_char_type

data = divide_char_type("今日の天気は晴れです。")

print(data[0])

実行サンプル

['1.0', ' ', 'is', ' ', 'number', '.']
['1,000', ' ', 'is', ' ', 'number', '.']
['u.s.a.', ' ', 'is', ' ', 'state', '.']
['u.k', '.', ' ', 'is', ' ', 'state', '.']
['e.g.', ',', ' ', 'th', ',', ' ', 'ch', ',', ' ', 'sh', ',', ' ', 'ph', ',', ' ', 'gh', ',', ' ', 'ng', ',', ' ', 'qu']
['state', ' ', 'include', ' ', 'u.s.', ' ', 'u.s.', ' ', 'is', ' ', 'state', '.']
['state', ' ', 'include', ' ', 'u.k', '.', ' ', 'u.k', '.', ' ', 'is', ' ', 'state', '.']
['u.s.', 'は', '国', 'です', '。']
['u.s', '.', 'は', '国', 'です', '。']
['あいうえおーかきくけこ']
['アイウエオーカキクケコ']
['今日', 'の', '天気', 'は', '晴', 'れです', '。', '\n', '明日', 'の', '天気', 'は', '曇', 'りです', '。', '\n']
['&&&', '1.0', '&&&']

Metadata

Release files for divide-char-type 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for divide-char-type 0.2.0
File Size Uploaded Provenance Actions
divide-char-type-0.2.0.tar.gz 3.7 kB Without provenance Details for divide-char-type-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for divide-char-type 0.2.0
File Interpreter ABI Platform Actions
divide_char_type-0.2.0-py2-none-any.whl Python 2 none any Details for divide_char_type-0.2.0-py2-none-any.whl

Total release size: 7.8 kB

Release files / divide-char-type-0.2.0.tar.gz

Download URL divide-char-type-0.2.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a1844274d9cd4c6c5e0ac9abc1eaa35d54b3748ccb9c4712df622f5cab20ffb2
BLAKE2b-256 checksum
How to use checksums
d010304d6369ebc0f1a5930d6326f1cb0334a33dd7edd8b6bd8219c50507fd74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Release files / divide_char_type-0.2.0-py2-none-any.whl

Download URL divide_char_type-0.2.0-py2-none-any.whl
Size 4.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a899c20a821101c17ff6e102b6c21c5d45d0f2cbea45990c7e58bab6d25bef00
BLAKE2b-256 checksum
How to use checksums
7c5f1118efe6baee87281c4780f915ab87563482e3bde643ec572a0d17002c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Security for divide-char-type 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page