将文本块分割成280字符的块尝试在句子等结尾处分割。
项目描述
文本到推文
这个小型软件包可以将大块文本简单地分割成280字符的块。
代码是从https://github.com/NaruBeast/tweet-splitter直接复制的。
安装
pip3 install text-to-tweets
用法
from text_to_tweets import tweet_splitter
tweets = tweet_splitter(
article_text,
counter=True # Add counters to tweets - e.g. "(3/10)"
)
项目详情
关闭
text-to-tweets-0.1.1.tar.gz的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 4ab571c1126cd2843521110b162c04704767734887f8ef3a32d85b9e737fa0f3 |
|
MD5 | 79791cd09bb2ce00ae6ba9a7c0b0650b |
|
BLAKE2b-256 | 116a704f4fbd5aa3213ae187d5d2835ac3033072c0e3e7e371a4dbaf547e9d4d |