Package: doc2vec 0.2.2

Jan Wijffels

doc2vec: Distributed Representations of Sentences, Documents and Topics

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>.

Authors:Jan Wijffels [aut, cre, cph], BNOSAC [cph], hiyijian [ctb, cph]

doc2vec_0.2.2.tar.gz
doc2vec_0.2.2.zip(r-4.7)doc2vec_0.2.2.zip(r-4.6)doc2vec_0.2.2.zip(r-4.5)
doc2vec_0.2.2.tgz(r-4.6-x86_64)doc2vec_0.2.2.tgz(r-4.6-arm64)doc2vec_0.2.2.tgz(r-4.5-x86_64)doc2vec_0.2.2.tgz(r-4.5-arm64)
doc2vec_0.2.2.tar.gz(r-4.7-arm64)doc2vec_0.2.2.tar.gz(r-4.7-x86_64)doc2vec_0.2.2.tar.gz(r-4.6-arm64)doc2vec_0.2.2.tar.gz(r-4.6-x86_64)
doc2vec_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
doc2vec/json (API)

# Install 'doc2vec' in R:
install.packages('doc2vec', repos = c('https://bnosac.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bnosac/doc2vec/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • be_parliament_2020 - Corpus with Questions asked in the Belgium Federal Parliament in 2020

On CRAN:

Conda:

doc2vecembeddingsnatural-language-processingparagraph2vecword2veccpp

6.01 score 52 stars 39 scripts 343 downloads 27 mentions 6 exports 1 dependencies

Last updated from:9621e424ac. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK208
linux-devel-x86_64OK183
source / vignettesOK178
linux-release-arm64OK178
linux-release-x86_64OK195
macos-release-arm64OK104
macos-release-x86_64OK257
macos-oldrel-arm64OK139
macos-oldrel-x86_64OK311
windows-develOK214
windows-releaseOK180
windows-oldrelOK154
wasm-releaseOK163

Exports:paragraph2vecparagraph2vec_similarityread.paragraph2vectop2vectxt_count_wordswrite.paragraph2vec

Dependencies:Rcpp