TextClassify
pytorch实现TextCNN、TextRNN、TextRCNN、Attention+RNN、DPCNN进行文本分类
Install / Use
/learn @MachineWei/TextClassifyREADME
文本分类
环境
python = 3.6
pytorch = 1.6.0
数据集
新闻分类数据集
包含train文件50000条,val5000条,test10000条
链接:https://pan.baidu.com/s/1Ej92nFjZwKRnhvCVY-YVXA
提取码:8y27
算法和测试集表现
|算法|word|char| | ---- | ---- | ---- | |textcnn|91.28%|90.86%| |textrnn|91.27%|90.22%| |textrcnn|93.16%|92.73%| |rnn+attenton|92.41%|92.16%| |dpcnn|92.27%|90.21%|
预测
demo.py是预测/部署阶段的代码
参考
- https://github.com/649453932/Chinese-Text-Classification-Pytorch
- https://github.com/gaussic/text-classification-cnn-rnn
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
