├── .gitignore ├── README.md ├── dataprocess.py ├── datas └── SougouNews │ ├── README.md │ ├── class.txt │ ├── test_data.txt │ ├── 附带原语料解析代码textanalysis.py │ └── 附带样本切割代码.txt ├── models ├── fasttext.py ├── textcnn.py ├── textrcnn.py ├── textrnn.py └── transformer.py ├── public ├── __init__.py ├── log │ ├── char级别训练记录.log │ └── word级别训练记录.log └── path.py ├── train.py └── train_all.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/README.md -------------------------------------------------------------------------------- /dataprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/dataprocess.py -------------------------------------------------------------------------------- /datas/SougouNews/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/datas/SougouNews/README.md -------------------------------------------------------------------------------- /datas/SougouNews/class.txt: -------------------------------------------------------------------------------- 1 | sports 2 | news 3 | house 4 | business -------------------------------------------------------------------------------- /datas/SougouNews/test_data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/datas/SougouNews/test_data.txt -------------------------------------------------------------------------------- /datas/SougouNews/附带原语料解析代码textanalysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/datas/SougouNews/附带原语料解析代码textanalysis.py -------------------------------------------------------------------------------- /datas/SougouNews/附带样本切割代码.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/datas/SougouNews/附带样本切割代码.txt -------------------------------------------------------------------------------- /models/fasttext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/models/fasttext.py -------------------------------------------------------------------------------- /models/textcnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/models/textcnn.py -------------------------------------------------------------------------------- /models/textrcnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/models/textrcnn.py -------------------------------------------------------------------------------- /models/textrnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/models/textrnn.py -------------------------------------------------------------------------------- /models/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/models/transformer.py -------------------------------------------------------------------------------- /public/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/public/__init__.py -------------------------------------------------------------------------------- /public/log/char级别训练记录.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/public/log/char级别训练记录.log -------------------------------------------------------------------------------- /public/log/word级别训练记录.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/public/log/word级别训练记录.log -------------------------------------------------------------------------------- /public/path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/public/path.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/train.py -------------------------------------------------------------------------------- /train_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CLOVEXCWZ/Pytorch_LongText_Classification_Demo/HEAD/train_all.py --------------------------------------------------------------------------------