Skip to content

Commit 0b77d71

Browse files
committed
Update MAN
1 parent 39a31f1 commit 0b77d71

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Changes in v0.6.1
22

33
- Mention doc2vec in package description.
4-
- Add `perplexity()` to asses models' the goodness-of-fit.
5-
- Save quanteda's internal docvars in the `textmodel_doc2vec` objects.
4+
- Add `perplexity()` to asses models' the goodness-of-fit to data.
5+
- Save **quanteda**'s internal docvars in the `textmodel_doc2vec` objects.
66
- Add `group` to `as.matrix()` to average sentence or paragraph vectors from the same documents.
77

88
## Changes in v0.6.0
@@ -52,4 +52,4 @@
5252
- Recreate `word2vec()` with new argument names and object structures.
5353
- Create `lda()` to train word vectors using Latent Semantic Analysis.
5454
- Add `similarity()` and `analogy()` functions using **proxyC**.
55-
- Add `data_corpus_news2014` that contain 20,000 news summaries as package data.
55+
- Add `data_corpus_news2014` that contain 20,000 news summaries as package data.

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ analogy <- function(formula) {
4141
#' @param mode specify the type of resulting object.
4242
#' @return a `matrix` of cosine similarity scores when `mode = "numeric"` or of
4343
#' words sorted in descending order by the similarity scores when `mode = "character"`.
44-
#' When `words` is a named numeric vector, word (or document) vectors are weighted and summed
44+
#' When `targets` is a named numeric vector, word (or document) vectors are weighted and summed
4545
#' before computing similarity scores.
4646
#' @export
4747
#' @seealso [probability()]
@@ -102,7 +102,7 @@ similarity <- function(x, targets, layer = c("words", "documents"),
102102
#' @param ... passed to `as.matrix()`.
103103
#' @return a matrix of words or documents sorted in descending order by the probability
104104
#' scores when `mode = "character"`; a matrix of the probability scores when `mode = "numeric"`.
105-
#' When `words` is a named numeric vector, probability scores are weighted by
105+
#' When `targets` is a named numeric vector, probability scores are weighted by
106106
#' the values.
107107
#' @export
108108
#' @seealso [similarity()]

R/word2vec.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ print.textmodel_doc2vec <- function(x, ...) {
226226
#' @param normalize if `TRUE`, returns normalized vectors.
227227
#' @param layer the layer from which the vectors are extracted.
228228
#' @param group \[experimental\] average sentence or paragraph vectors from the same document.
229-
#' Silently ignored when `layer = "word"`.
229+
#' Silently ignored when `layer = "words"`.
230230
#' @param ... not used.
231231
#' @return a matrix that contain the word or document vectors in rows.
232232
#' @export

man/as.matrix.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/probability.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/similarity.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)