word2vec
Distributed Representations of Words
word2vec for R spent its 0.4 release proving two training paths give identical embeddings
◆Recent moves
- 8mo ago
Documentation braces and arXiv DOI note
Documentation wording in word2vec_similarity and a DESCRIPTION DOI note. Part of the same CRAN sweep that touched doc2vec and BTM the same day.
View source ↗ - 2y ago
Train from tokenised sentence lists; word2vec becomes generic
Makes word2vec() a generic with character and list methods so models can be trained from in-memory tokenised sentences, and sorts the vocabulary by frequency then token so both paths yield the same embeddings. Users upgrading get slightly different vectors as a result — a deliberate trade for reproducibility across input types.
View source ↗ - 5y ago
Cosine similarity option in word2vec_similarity
Adds a type argument allowing cosine similarity alongside the default dot product, answering a user request. Small but changes what the comparison function can express.
View source ↗ - 5y ago
doc2vec usable on trained models; txt_clean_word2vec added
Allows doc2vec to run on an already-trained word2vec model and adds txt_clean_word2vec for corpus preparation. Extends the package past training into downstream use of the resulting vectors.
View source ↗ - 5y ago
Conditional udpipe example; encoding argument
Guards an example on udpipe availability, bundled with the earlier addition of an encoding argument. Minor packaging and input handling.
View source ↗ - 5y ago
doc2vec support added
Adds doc2vec to the package, extending it from word-level to document-level vectors. The first step of the broadening that 0.3.3 and 0.4.0 continue.
View source ↗