OpenTextClassification icon indicating copy to clipboard operation
OpenTextClassification copied to clipboard

OpenTextClassification is all you need for text classification! Open text classification for everyone, enjoy your NLP journey! 这可能是目前为止最全面的开源文本分类项目,支持中英双语、多种模型、多种任...

Text Classification

  • Dataset: yahoo/dbpedia...
  • Model: CNN/(Bi)LSTM/(Bi)GRU.
  • Pytorch: 1.0.1
  • Python: 3.6
  • torchtext: 0.3.1.
  • Support pretrained word embedding.(word2vec,glove)

torchtext

  • This package can provide an elegant way to build vocabulary(torchtext).
TEXT.build_vocab(dataset, vectors)

Training

python preprocess.py #preprocessing
python main.py #training

Refs