Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
houysh 045052c9d3 | 2 years ago | |
---|---|---|
text_classification | 2 years ago | |
README.md | 2 years ago | |
model_comp.png | 2 years ago |
目前基于TensorLayer接口已实现基于RNN、LSTM、GRU、TransformerEncoder等网络结构的文本分类算法。
python text_classification_tl.py --run_mode train --network lstm --epochs=2 --model_path model_lstm.npz
python text_classification_tl.py --run_mode eval --network lstm --model_path model_lstm.npz
情感分析
标签 | 样本数 |
---|---|
0 | 12500 |
1 | 12500 |
随机抽取20%的数据作为测试集,剩余80%的数据为训练集
模型 | 精确率 |
---|---|
RNN | 0.8544 |
LSTM | 0.8534 |
GRU | 0.8548 |
TransformerEncoder | 0.8586 |
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》