【文件属性】:
文件名称:Chinese-Text-Classification-Pytorch-mas
文件大小:15.94MB
文件格式:ZIP
更新时间:2022-09-20 09:18:30
Chinese-Text-Cla
Chinese-Text-Classification-Pytorch-master。
数据齐全,说明文档详细。点击即用!
# 训练并测试:
# TextCNN
python run.py --model TextCNN
# TextRNN
python run.py --model TextRNN
# TextRNN_Att
python run.py --model TextRNN_Att
# TextRCNN
python run.py --model TextRCNN
# FastText, embedding层是随机初始化的
python run.py --model FastText --embedding random
# DPCNN
python run.py --model DPCNN
# Transformer
python run.py --model Transformer
【文件预览】:
Chinese-Text-Classification-Pytorch-master
----models()
--------FastText.py(4KB)
--------TextRCNN.py(3KB)
--------TextRNN.py(4KB)
--------Transformer.py(7KB)
--------DPCNN.py(4KB)
--------TextRNN_Att.py(4KB)
--------TextCNN.py(3KB)
----utils.py(6KB)
----THUCNews()
--------data()
--------saved_dict()
----utils_fasttext.py(6KB)
----train_eval.py(5KB)
----LICENSE(1KB)
----run.py(2KB)
----README.md(3KB)