【文本处理 词频统计】python 实现词频统计

自定义词频统计函数:wordcountpython # -*- encoding=utf-8 -*- import string import pandas as pd word_list=[] freq_list=[] def wordcount(path): with open(path,'r',encoding='utf-8') as text: words =
相关文章
相关标签/搜索