Sentiment-Analysis-Chinese-pytorch-master.zip

上传者: 38411989 | 上传时间: 2025-04-08 12:59:45 | 文件大小: 119.64MB | 文件类型: ZIP
本项目使用了word2vec的中文预训练向量 模型分别有BiLSTM-attention和普通的LSTM两种 1、在Config中配置相关参数 2、然后运行DataProcess.py,生成相应的word2id,word2vec等文件 3、运行主函数main.py,得到训练好的模型,并保存模型 4、运行eval.py,读取模型,并得到评价 5、模型准确率平均85%左右

文件下载

资源详情

[{"title":"( 37 个子文件 119.64MB ) Sentiment-Analysis-Chinese-pytorch-master.zip","children":[{"title":"Sentiment-Analysis-Chinese-pytorch-master","children":[{"title":"Sentiment_model.py <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"Sentiment_Analysis_DataProcess.py <span style='color:#111;'> 8.52KB </span>","children":null,"spread":false},{"title":"Sentiment_Analysis_Config.py <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"test.py <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"word2vec_data","children":[{"title":"validation.txt <span style='color:#111;'> 1.55MB </span>","children":null,"spread":false},{"title":"stopwords.txt <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"pre.txt <span style='color:#111;'> 48B </span>","children":null,"spread":false},{"title":"train_data.txt <span style='color:#111;'> 4.58MB </span>","children":null,"spread":false},{"title":"word_vec.txt <span style='color:#111;'> 52.05MB </span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"test.txt <span style='color:#111;'> 104.66KB </span>","children":null,"spread":false},{"title":"wiki_word2vec_50.bin <span style='color:#111;'> 84.89MB </span>","children":null,"spread":false},{"title":"train.txt <span style='color:#111;'> 5.49MB </span>","children":null,"spread":false},{"title":"sen_model_best.pkl <span style='color:#111;'> 12.09MB </span>","children":null,"spread":false},{"title":"word2id.txt <span style='color:#111;'> 740.16KB </span>","children":null,"spread":false},{"title":"test_data.txt <span style='color:#111;'> 86.15KB </span>","children":null,"spread":false},{"title":"val_data.txt <span style='color:#111;'> 1.30MB </span>","children":null,"spread":false}],"spread":false},{"title":"__pycache__","children":[{"title":"Sentiment_Analysis_DataProcess.cpython-37.pyc <span style='color:#111;'> 6.45KB </span>","children":null,"spread":false},{"title":"Sentiment_Analysis_Config.cpython-37.pyc <span style='color:#111;'> 1011B </span>","children":null,"spread":false},{"title":"Sentiment_model.cpython-37.pyc <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"Sentiment_Analysis_eval.cpython-37.pyc <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"Sentiment-Analysis-Chinese-pytorch-master.iml <span style='color:#111;'> 453B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 24.25KB </span>","children":null,"spread":false}],"spread":true},{"title":".pytest_cache","children":[{"title":"CACHEDIR.TAG <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"v","children":[{"title":"cache","children":[{"title":"lastfailed <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"nodeids <span style='color:#111;'> 48B </span>","children":null,"spread":false},{"title":"stepwise <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 295B </span>","children":null,"spread":false}],"spread":true},{"title":"Sentiment_Analysis_main.py <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"Sentiment_Analysis_eval.py <span style='color:#111;'> 5.83KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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