Metadata-Version: 2.4
Name: cm_textlab
Version: 1.0.1
Summary: 计算概论C课程文本分析样本、常量、词频和词云工具
Author: Chen Mo
Author-email: chenmoemail@126.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Intended Audience :: Education
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: jieba>=0.42
Requires-Dist: wordcloud>=1.9
Requires-Dist: matplotlib>=3.5
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# cm_textlab

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

```bash
pip install cm_textlab
```

```python
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')
```

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