├── .gitignore ├── README.md ├── __pycache__ ├── common.cpython-39.pyc ├── config.cpython-39.pyc ├── metrics.cpython-39.pyc ├── model.cpython-39.pyc ├── process_data_dl.cpython-39.pyc ├── process_data_ml.cpython-39.pyc └── process_data_pretrain.cpython-39.pyc ├── common.py ├── config.py ├── dl_algorithm ├── capsules_model.py ├── cnn.py ├── dl_config.py ├── dl_model.py ├── lstm.py └── transformer.py ├── logs └── events.out.tfevents.1679558718.huangzihengdeMacBook-Air.local ├── main.py ├── metrics.py ├── ml_algorithm └── ml_model.py ├── model.py ├── pic ├── pic_dl.png ├── pic_ml.png ├── pretrain_pic.png ├── result.png ├── tensorboard.png ├── test_pic.png └── train_pic.png ├── pretrain_algorithm ├── bert_graph.py ├── deberta_graph.py ├── nezha_graph.py ├── pre_model.py └── roberta_wwm.py ├── pretrain_model └── bert_wwm │ └── readme.txt ├── process_data_dl.py ├── process_data_ml.py ├── process_data_pretrain.py ├── requirements.txt ├── save_model └── knn.pkl ├── trick ├── dynamic_padding.py ├── early_stop.py ├── fgm_pgd_ema.py ├── init_model.py └── set_all_seed.py └── word2vec_train.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/README.md -------------------------------------------------------------------------------- /__pycache__/common.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/common.cpython-39.pyc -------------------------------------------------------------------------------- /__pycache__/config.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/config.cpython-39.pyc -------------------------------------------------------------------------------- /__pycache__/metrics.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/metrics.cpython-39.pyc -------------------------------------------------------------------------------- /__pycache__/model.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/model.cpython-39.pyc -------------------------------------------------------------------------------- /__pycache__/process_data_dl.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/process_data_dl.cpython-39.pyc -------------------------------------------------------------------------------- /__pycache__/process_data_ml.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/process_data_ml.cpython-39.pyc -------------------------------------------------------------------------------- /__pycache__/process_data_pretrain.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/__pycache__/process_data_pretrain.cpython-39.pyc -------------------------------------------------------------------------------- /common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/common.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/config.py -------------------------------------------------------------------------------- /dl_algorithm/capsules_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/dl_algorithm/capsules_model.py -------------------------------------------------------------------------------- /dl_algorithm/cnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/dl_algorithm/cnn.py -------------------------------------------------------------------------------- /dl_algorithm/dl_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/dl_algorithm/dl_config.py -------------------------------------------------------------------------------- /dl_algorithm/dl_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/dl_algorithm/dl_model.py -------------------------------------------------------------------------------- /dl_algorithm/lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/dl_algorithm/lstm.py -------------------------------------------------------------------------------- /dl_algorithm/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/dl_algorithm/transformer.py -------------------------------------------------------------------------------- /logs/events.out.tfevents.1679558718.huangzihengdeMacBook-Air.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/logs/events.out.tfevents.1679558718.huangzihengdeMacBook-Air.local -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/main.py -------------------------------------------------------------------------------- /metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/metrics.py -------------------------------------------------------------------------------- /ml_algorithm/ml_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/ml_algorithm/ml_model.py -------------------------------------------------------------------------------- /model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/model.py -------------------------------------------------------------------------------- /pic/pic_dl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/pic_dl.png -------------------------------------------------------------------------------- /pic/pic_ml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/pic_ml.png -------------------------------------------------------------------------------- /pic/pretrain_pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/pretrain_pic.png -------------------------------------------------------------------------------- /pic/result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/result.png -------------------------------------------------------------------------------- /pic/tensorboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/tensorboard.png -------------------------------------------------------------------------------- /pic/test_pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/test_pic.png -------------------------------------------------------------------------------- /pic/train_pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pic/train_pic.png -------------------------------------------------------------------------------- /pretrain_algorithm/bert_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pretrain_algorithm/bert_graph.py -------------------------------------------------------------------------------- /pretrain_algorithm/deberta_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pretrain_algorithm/deberta_graph.py -------------------------------------------------------------------------------- /pretrain_algorithm/nezha_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pretrain_algorithm/nezha_graph.py -------------------------------------------------------------------------------- /pretrain_algorithm/pre_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pretrain_algorithm/pre_model.py -------------------------------------------------------------------------------- /pretrain_algorithm/roberta_wwm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/pretrain_algorithm/roberta_wwm.py -------------------------------------------------------------------------------- /pretrain_model/bert_wwm/readme.txt: -------------------------------------------------------------------------------- 1 | # 这里放模型文件,vocab.txt config.json pytorch_model.bin -------------------------------------------------------------------------------- /process_data_dl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/process_data_dl.py -------------------------------------------------------------------------------- /process_data_ml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/process_data_ml.py -------------------------------------------------------------------------------- /process_data_pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/process_data_pretrain.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/requirements.txt -------------------------------------------------------------------------------- /save_model/knn.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/save_model/knn.pkl -------------------------------------------------------------------------------- /trick/dynamic_padding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/trick/dynamic_padding.py -------------------------------------------------------------------------------- /trick/early_stop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/trick/early_stop.py -------------------------------------------------------------------------------- /trick/fgm_pgd_ema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/trick/fgm_pgd_ema.py -------------------------------------------------------------------------------- /trick/init_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/trick/init_model.py -------------------------------------------------------------------------------- /trick/set_all_seed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/trick/set_all_seed.py -------------------------------------------------------------------------------- /word2vec_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hziheng/Machine-learning-project-for-text-classification/HEAD/word2vec_train.py --------------------------------------------------------------------------------