OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Text Classification Models Pytorch

A public Python/PyTorch repository of seven neural text-model implementations: fastText, TextCNN, bidirectional-LSTM TextRNN, RCNN, CharCNN, seq2seq with attention, and Transformer. It documents a workflow for training a selected model on prepared text data.

Independent OpenViST project profile, based on linked sources.

Text Classification Models Pytorch — Experiments comparing the included text-classification architectures
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a codebase of varied neural text-classification implementations and can work with its specified Python and library versions and data format.

Who it is for

  • Developers prototyping text categorization with PyTorch
  • Researchers comparing neural architectures for text classification

Documented uses

  • Train a text classifier using one of the included model implementations.
  • Compare convolutional, recurrent, character-level and attention-based model approaches.
  • Adapt a reference implementation to a custom dataset formatted to match the repository's data.
Before you choose

Requirements & limits

The repository is public and licensed under MIT.

  • Seven model implementations provide several architecture families to compare.
  • Custom datasets must be converted to the format of the provided data.
  • The listed dependencies include specific legacy versions.
  • The README's reported results used a 14 GB, two-core machine with a Tesla K80 GPU; parameters were not tuned.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare data and run a model's training script

Train a selected implementation with training and test files using the repository's documented workflow.

Before you start

  • Python 3.5.0
  • Pandas 0.23.4, NumPy 1.15.2, spaCy 2.0.13, PyTorch 0.4.1.post2 and torchtext 0.3.1
  • Training and test data in the repository's expected format
  • Pre-trained GloVe or Word2Vec embeddings in the data/ directory

Steps

  1. Place the data in the data/ directory; convert custom data to match the provided data format.

  2. Place the pre-trained word embeddings in the data/ directory.

  3. Go to the directory for the model you want to train.

  4. Run python train.py .

Expected outcome

The selected model's training script is invoked with the specified training and test files.

Guide limitations

  • The repository specifies legacy dependency versions.
  • The README does not describe the resulting model artifact or an inference workflow.
  • Reported model parameters were not tuned, and performance may differ on other data and setups.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
12 November 2026
Original website title
AnubhavGupta3377/Text-Classification-Models-Pytorch · Official homepage title · retained in its source language