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.

Files for text_process, version 2.4.1
Filename, size File type Python version Upload date Hashes
Filename, size text_process-2.4.1.tar.gz (13.3 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page