Skip to content

GDGVIT/quicktext

Repository files navigation

DSC VIT Logo

QuickText

Toolkit For Text Classification

About

Quicktext is a framework for developing LSTM and CNN based text classification models.

Features

  • It is easy to learn and use quicktext
  • The classifiers can be added to sPacy pipeline
  • It's built using PyTorch, hence has inbuilt quantization and onnx support

Installation

Install from source

pip install -q git+https://github.com/GDGVIT/quicktext.git

Getting Started

from quicktext import TextClassifier
from quicktext import Trainer
from quicktext.datasets import get_imdb

imdb = get_imdb()

classifier = TextClassifier(num_class=2, arch='bilstm')

trainer = Trainer(classifier)
trainer.fit(imdb.train, imdb.val, epochs=10, batch_size=64, gpus=1)

Supported Models

  • Bidirectional LSTM
  • CNN 2D filters
  • Fasttext
  • RCNN
  • Seq2Seq Attention

Examples

Contributors

Ramaneswaran

Raman

profile

linkedin

Made with ❤️ by DSC VIT