Skip to main content

cm_textlab

文本分析样本、常量、词频和词云工具,适合文本处理专题使用。

pip install cm_textlab
import cm_textlab

text = cm_textlab.load_sample_text('三国片段')
print(cm_textlab.CHINESE_PUNCTUATION)
print(cm_textlab.top_words(text, n=10))

freq = cm_textlab.word_frequency(text)
cm_textlab.save_wordfreq_csv(freq, '词频.csv')
cm_textlab.make_wordcloud(text, '词云.png')

这个库提供样本、停用词、分词和词云;学生仍然要自己写循环、字典统计、文件读取和结果解释。

Metadata

Release files for cm-textlab 1.0.1

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

Source distribution (sdist)

Source distribution for cm-textlab 1.0.1
File Size Uploaded Provenance Actions
cm_textlab-1.0.1.tar.gz 3.8 kB Without provenance Details for cm_textlab-1.0.1.tar.gz

Release files / cm_textlab-1.0.1.tar.gz

Download URL cm_textlab-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
982dd2ac7d2cb6dbf9ef626b2edce975d2702780eed96c5f9e4f05c53fd380df
BLAKE2b-256 checksum
How to use checksums
96e53141a7e153440d4444edd21d1b6703fa4f45551a0b3ffd200bfd2a8d6607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for cm-textlab 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

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