Skip to main content

easy utils for process text

Project description

# 环境:python3 # 安装:pip install text_process # 使用示例:

from text_process import text_utils text=”” # 中文分句: text_utils.text2sencents_zh(text) # 英文分句: text_utils.text2sencents_eh(text) # 英文分词(词组、单词、且已去停用词) text_utils.text2sencents_eh(text) # 中文分词(已去停用词) text_utils.text_process_zh_single(text) # 中文分词(词组 已去停用词) text_utils.text_process_zh_not_single(text) # 中文关键字(不包括词组) text_utils.getKeywords_zh_single(text) # 中文关键字(包括词组) text_utils.getKeywords_zh_not_single(text) # 英文关键字(包括词组) text_utils.getKeywords_en(text) # 文本相似度比较 compare_botor=text_utils.compare_bot() text2=”” compare_bot.compare_two_txt_accuracy(text,text2) #或者(适合少量数据) text_utils.compare_two_txt_accuracy(text,text2) # 中文摘要 text_utils.getAbstract_zh(title,text) # 英文摘要 text_utils.getAbstract_en(title,text)

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

text_process-2.4.1.tar.gz (13.3 MB view hashes)

Uploaded Source

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