# LDA **Repository Path**: xiaoheaicoding/LDA ## Basic Information - **Project Name**: LDA - **Description**: lda 主题模型 用于主题提取和文本分类 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-05-05 - **Last Updated**: 2021-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LDA # lda 算法以及使用示例 # 1在数据库中建立表 ldasql 指定utf8 import cn_lda_text.py content=cn_lda_text.lda('ldasql') # 2建立表 content.create_indextables() # 3读取训练集到数据库 文件在两个zip解压后直接使用  放在同一项目目录下 # 注意训练语料路径和停用词路径 在addtodb中设置 content.addtodb() # 4运行lda_model content.run_lda()