Skip to content

An origin project of text classification with the algorithm of Naive Bayes

Notifications You must be signed in to change notification settings

chenfei0328/BayesProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BayesProject

An origin project of text classification with the algorithm of Naive Bayes

各文件介绍
1 Segmentation.py : 数据预处理,利用jieba分词模块将训练集中的文本进行分词
2 VectorSpaceModel.py : 建立向量空间模型,构建词汇表和tf-idf矩阵
3 Bayes.py : 利用朴素贝叶斯算法训练数据集,生成条件概率矩阵和类别分类矩阵
4 Entrance.py : 功能一测试算法正确率,功能二用户输入语句控制台输出分类
5 claPro.txt : 朴素贝叶斯生成的用以计算分类的类别概率矩阵
6 conPro.txt : 朴素贝叶斯生成的用以计算分类的条件概率矩阵
7 PY测试文件夹 : 测试文件,未完成
数据集、词汇表、tf-idf矩阵文件太大,无法上传,若有需要,可戳Email:756186612@qq.com     (最新:作者电脑已重装,这些数据资料荡然无存,抱歉!) 详细过程可看https://blog.csdn.net/chenfei0328/article/details/73197547

About

An origin project of text classification with the algorithm of Naive Bayes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages