word2vec+LSTM_Mini.rar

上传者: 36238975 | 上传时间: 2021-04-17 01:46:09 | 文件大小: 107.18MB | 文件类型: RAR
word2vec+lstm情感分析(三分类)+使用说明 使用方法: 1、修改 ../data/neg(消极)../data/pos(积极)../data/neutral(中立)训练数据 及 ../data/sum(测试数据)(本数据为我上网download数据库,是不同情感方向的评价数据。) 2、运行 ../lstm/lstm_train 并修改 参数列表 (建议只修改代码30-33行)及 (119行代码)x_train, x_test, y_train, y_test = train_test_split(combined, y, test_size=0.2) 此处0.2表示 train_data/test_data=1/5;(修改代码是为了提高lstm模型 accurancy 及 降低loss) 3、运行 ../lstm/lstm_test(该结果将存储在../result/result。xlsx 即为所求) 该模型优点:准确率较高; 缺点:损失函数较高;耗时长;处理大量数据时占用的内存较大

文件下载

资源详情

[{"title":"( 15 个子文件 107.18MB ) word2vec+LSTM_Mini.rar","children":[{"title":"Sentiment_Analysis_Mini","children":[{"title":"guide_from_mini.txt <span style='color:#111;'> 587B </span>","children":null,"spread":false},{"title":"data","children":[{"title":"neg.csv <span style='color:#111;'> 1.68MB </span>","children":null,"spread":false},{"title":"pos.csv <span style='color:#111;'> 2.15MB </span>","children":null,"spread":false},{"title":"neutral.csv <span style='color:#111;'> 2.13MB </span>","children":null,"spread":false},{"title":"sum.xlsx <span style='color:#111;'> 27.73KB </span>","children":null,"spread":false},{"title":"deal.py <span style='color:#111;'> 259B </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"lstm.yml <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"Word2vec_model.pkl <span style='color:#111;'> 6.95MB </span>","children":null,"spread":false},{"title":"lstm.h5 <span style='color:#111;'> 32.50MB </span>","children":null,"spread":false}],"spread":true},{"title":"lstm_data_test","children":[{"title":"Word2vec_model.pkl <span style='color:#111;'> 95.72MB </span>","children":null,"spread":false}],"spread":true},{"title":"result","children":[{"title":"result.xlsx <span style='color:#111;'> 23.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"lstm","children":[{"title":"lstm_test.py <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false},{"title":"test.ipynb <span style='color:#111;'> 24.73KB </span>","children":null,"spread":false},{"title":"lstm_train.py <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":".ipynb_checkpoints","children":[{"title":"test-checkpoint.ipynb <span style='color:#111;'> 24.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明