FreedomIntelligence/TextClassificationBenchmark
关于
PyTorch 文本分类基准测试
人工智能与机器学习实测星标增长
- 24小时
- +1
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Text Classification Benchmark
A Benchmark of Text Classification in PyTorch
Motivation
We are trying to build a Benchmark for Text Classification including
Many Text Classification DataSet, including Sentiment/Topic Classfication, popular language(e.g. English and Chinese). Meanwhile, a basic word embedding is provided.
Implment many popular and state-of-art Models, especially in deep neural network.
Have done
We have done some dataset and models
Dataset done
- IMDB
- SST
- Trec
Models done
- FastText
- BasicCNN (KimCNN,MultiLayerCNN, Multi-perspective CNN)
- InceptionCNN
- LSTM (BILSTM, StackLSTM)
- LSTM with Attention (Self Attention / Quantum Attention)
- Hybrids between CNN and RNN (RCNN, C-LSTM)
- Transformer - Attention is all you need
- ConS2S
- Capsule
- Quantum-inspired NN
Libary
You should have install these librarys
python3 torch torchtext (optional)
Dataset
Dataset will be automatically configured in current path, or download manually your data in Dataset, step-by step.
including
Glove embeding Sentiment classfication dataset IMDB
usage
Run in default setting
python main.pyCNN
python main.py --model cnnLSTM
python main.py --model lstmRoad Map
- Data preprossing framework
- Models modules
- Loss, Estimator and hyper-paramter tuning.
- Test modules
- More Dataset
- More models
Organisation of the repository
The core of this repository is models and dataset.
dataloader/: loading all dataset such asIMDB,SSTmodels/: creating all models such asFastText,LSTM,CNN,Capsule,QuantumCNN,Multi-Head Attentionopts.py: Parameter and config info.utils.py: tools.dataHelper: data helper
Contributor
Welcome your issues and contribution!!!
探索相关项目
加载中…