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.
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.
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
Place the data in the data/ directory; convert custom data to match the provided data format.
Place the pre-trained word embeddings in the data/ directory.
Go to the directory for the model you want to train.
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.
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

