【文本處理 詞頻統計】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 =
相關文章
相關標籤/搜索