Skip to content

doc2vec

0.2.2

Distributed Representations of Sentences, Documents and Topics

0packages depend
5.8Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Jan WijffelsFirst published 2020-12-104 releasesCRAN page ↗GitHub ↗

Learn vector representations of sentences, paragraphs or documents by using the 'Paragraph Vector' algorithms, namely the distributed bag of words ('PV-DBOW') and the distributed memory ('PV-DM') model. The techniques in the package are detailed in the paper "Distributed Representations of Sentences and Documents" by Mikolov et al. (2014), available at doi:10.48550/arXiv.1405.4053. The package also provides an implementation to cluster documents based on these embedding using a technique called top2vec. Top2vec finds clusters in text documents by combining techniques to embed documents and words and density-based clustering. It does this by embedding documents in the semantic space as defined by the 'doc2vec' algorithm. Next it maps these document embeddings to a lower-dimensional space using the 'Uniform Manifold Approximation and Projection' (UMAP) clustering algorithm and finds dense areas in that space using a 'Hierarchical Density-Based Clustering' technique (HDBSCAN). These dense areas are the topic clusters which can be represented by the corresponding topic vector which is an aggregate of the document embeddings of the documents which are part of that topic cluster. In the same semantic space similar words can be found which are representative of the topic. More details can be found in the paper 'Top2Vec: Distributed Representations of Topics' by D. Angelov available at doi:10.48550/arXiv.2008.09470.

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-08
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 338 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
89%
Return-value docs
100%
References docs
18%

Downloads

5.8K
CRAN downloads in the past year
Rank #11,088 · ~16/day · ~486/mo
Daily download trend is not available in this view yet.
29230 days
88290 days
5.8K1 year
Compare downloads with other packages →
Also on484 r2u18 autocran2.4K conda_forge

Repository

Repository
52Stars
8Forks
9Open issues
0Open PRs
5Releases
88Commits
1Contributors
doc2vecembeddingsr-packageword2vecparagraph2vecnatural-language-processing
88 commits · Last activity 2025-11-27 · 0% stars, 30d

Stars over time

2024-12-11 · 482026-07-07 · 52

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/bnosac/doc2vec on 2026-08-16.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (3)
Rcppstatsutils
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Contributors (1)
Contributor, Copyright holder
Copyright holders (3)
Author, Maintainer, Copyright holder
Contributor, Copyright holder
Copyright holder
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.2Latest
    2025-11-27 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.0
    2021-03-28 · diff ↗
  • 0.1.1
    2021-01-21 · diff ↗
  • unarchivedReturned to CRAN
    2021-01-21
  • archivedRemoved from CRAN
    2021-01-06
    check errors were not corrected in time
  • 0.1.0
    2020-12-10
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-12-10
Total releases
4 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
2.8 MB / 1 file
Download size
3.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("doc2vec")
Wijffels, J., BNOSAC, & hiyijian. (2025). doc2vec: Distributed Representations of Sentences, Documents and Topics (Version 0.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.doc2vec

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for doc2vec version 0.2.2 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy