赞
踩
本文主要介绍通过python实现数据聚类、脚本开发、办公自动化。读取voc数据,聚类voc数据。
python lda.py
# LDA主题分析模型 import pandas as pd import jieba from sklearn.feature_extraction.text import CountVectorizer from sklearn.decomposition import LatentDirichletAllocation import pyLDAvis fileName = "100005785591" # 文件名 # 加载停用词 with open('stopwordsfull', 'r', encoding='utf-8') as f: stopwords = set([line.strip() for line in f]) # 加载业务域名词 with open('luyouqi.txt', 'r', encoding='utf-8') as f: business_terms =
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。