本程序使⽤斯坦福的IMDb数据集(Stanford's Large Movie Review Dataset)作为⽂本情感分类的数据集。这个数据集分为训练和测试⽤的两个数据集,分别包含25000条从IMDb下载的关于电影的评论。在每个数据集中,标签为“正⾯”和“负⾯”的评论数量相等
数据集下载:IMDb数据集
BasedRNN.py
是基于pytorch深度学习框架实现的使用LSTM对电影评价数据的情感分析
BasedCNN.py
是基于pytorch深度学习框架实现的使用CNN网络对电影评价数据的情感分析