Word and Document Vector Models
Overview
Create dense vector representation of words and documents using 'quanteda'. Implements Word2vec (Mikolov et al., 2013) doi:10.48550/arXiv.1310.4546, Doc2vec (Le & Mikolov, 2014) doi:10.48550/arXiv.1405.4053 and Latent Semantic Analysis (Deerwester et al., 1990) doi:10.1002/(SICI)1097-4571(199009)41:6%3C391::AID-ASI1%3E3.0.CO;2-9.
- Change normalization of word and document when
normalized = TRUE. - Export
is_word2vec(),is_doc2vec()andcheck_model()for package development. - Improve the consistency of
textmodel_word2vecandtextmodel_doc2vecobjects. - Add
as.textmodel_doc2vec.tokens()withcompound = TRUEto handle multi-word expressions more easily.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 3 earlier changesHide 3 earlier changes
- NOTE12 OK, 2 NOTE2026-04-08
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-07
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 16 (4 internal)
- Examples that run
- 33%1 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 30%
- Documented parameters
- 95%
- Return-value docs
- 60%
- Help pages citing references
- 25%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 34
- Median days to close, 50 most recently updated closed PRs
- 0
Issues over time
PRs over time
Commits over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/koheiw/wordvector on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-04 · The repository has a site deploy workflow
pkgdown site last built 2026-10-04, before release 0.6.5 (2026-10-08)
Dependencies
Installing wordvector adds 20 packages (16 with compiled code, 27 MB of source tarballs). Heaviest: stringi 11 MB, quanteda 4.2 MB, rsvd 3.3 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- quantedafix by Oct 22
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.6.5Latest2026-10-08 · current release · diff ↗ ··
added 5 exports
check_doc2vec, check_model, check_word2vec, is_doc2vec, is_word2vec6 hours in CRAN's queue
Listed in CRAN's incoming queue from 2026-10-08 00:38 to 2026-10-08 06:53 UTC, in 2 readings. - 0.6.4
- 0.6.32026-07-28 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.6.22026-04-06 · diff ↗
- 0.6.12026-02-25 · diff ↗
- 0.6.0
- 0.5.12025-06-20 · diff ↗
- 0.5.0
- RR 4.5.0 released · 2025-04-11
- 0.3.0
- 0.2.02025-01-07 · diff ↗ ·
removed 3 exports
doc2vec, lsa, word2vecadded 4 exports
textmodel_doc2vec, textmodel_lsa, textmodel_word2vec, weights - 0.1.02024-12-11
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-12-11
- Total releases
- 11 / 2 yrs
- License
- Apache License (>= 2.0)
- Minimum R
- ≥ 3.5.0
- Bundled data
- 2.7 MB / 1 file
- Download size
- 4.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("wordvector")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.