OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Paragraph Vectors

Paragraph Vectors is a Python library using PyTorch to implement Paragraph Vectors (doc2vec), a method for learning vector representations of documents. It trains models from CSV data and supports exporting learned paragraph vectors to CSV.

Independent OpenViST project profile, based on linked sources.

Paragraph Vectors — Small-scale experiments with document embeddings and doc2vec
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you have documents in the required CSV format and want to train and export doc2vec representations using Python and PyTorch.

Who it is for

  • NLP practitioners preparing document embeddings for downstream workflows.
  • Researchers or developers exploring unsupervised doc2vec methods in a PyTorch-based project.

Documented uses

  • Train paragraph-vector representations from a collection of text documents.
  • Choose between the documented DM and DBOW model variants and configure training parameters.
  • Export learned document vectors to a CSV file.
Before you choose

Requirements & limits

The public GitHub repository identifies the project as open source under the MIT license.

  • PyTorch must be installed separately before installing the library.
  • Input CSV files require a header, with document text in the first column.
  • Training settings include model variant, vector dimension, epochs, batch size and learning rate.
  • The README labels the project early-stage.
  • The documented model training uses negative sampling; CPU workers generate batches while training is described as running on a GPU.

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

Train and export paragraph vectors from a CSV

Learn document vectors from a CSV dataset and export them to a CSV file.

Before you start

  • Python environment with PyTorch installed.
  • The paragraph-vectors repository installed; a virtual environment is recommended.
  • A CSV file placed in the repository's data directory, with a header and document text in the first column.

Steps

  1. Install PyTorch, then clone the repository and install the library with pip install -e .

  2. Place the prepared CSV in the data directory.

  3. Run train.py start with the CSV filename and selected training parameters; the README example sets epochs, batch size, noise words, vector dimension and learning rate.

  4. Run export_vectors.py start with the training CSV filename and the matching trained model filename.

Expected outcome

The library saves a trained model in the models directory and exports paragraph vectors as a CSV in the data directory.

Guide limitations

  • The documented export command requires a model trained on the same dataset named for export.
  • For DBOW, context_size must be 0; for DM it must be greater than 0.
  • Only sum is implemented for DM vector combination, although sum and concat are listed as options.
  • The README describes the project as early-stage.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 November 2026
Original website title
inejc/paragraph-vectors · Official homepage title · retained in its source language