Skip to content
 
 

Latest commit

 

History

91 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • BasicCNN
  • KimCNN
  • MultiLayerCNN
  • InceptionCNN
  • LSTM
  • FastText

Libary

You should have install these librarys

python3
torch
torchtext

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

How to run

Run in default setting

python main.py

CNN

python main.py --model cnn

LSTM

python main.py --model lstm

Contributor

Welcome your issues and contribution!!!

Releases

Packages

Contributors

Languages