Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Mar 15, 2020
1 parent 393d9f5 commit a87022c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/btm.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
#' @param background logical if set to \code{TRUE}, the first topic is set to a background topic that
#' equals to the empirical word distribution. This can be used to filter out common words. Defaults to FALSE.
#' @param trace logical indicating to print out evolution of the Gibbs sampling iterations. Defaults to FALSE.
#' @param biterms optionally, your own set of biterms to use for modelling.
#' @param biterms optionally, your own set of biterms to use for modelling.\cr
#' This argument should be a data.frame with column names doc_id, term1, term2 and cooc, indicating how many times each biterm (as indicated by terms term1 and term2)
#' is occurring within a certain doc_id. The field cooc indicates how many times this biterm happens with the doc_id.
#' is occurring within a certain doc_id. The field cooc indicates how many times this biterm happens with the doc_id. \cr
#' Note that doc_id's which are not in \code{data} are not allowed, as well as terms (in term1 and term2) which are not also in \code{data}.
#' See the examples.
#' If provided, ignores the \code{window} argument and the \code{data} argument will only be used to calculate the background word frequency distribution.
#' See the examples.\cr
#' If provided, the \code{window} argument is ignored and the \code{data} argument will only be used to calculate the background word frequency distribution.
#' @note
#' A biterm is defined as a pair of words co-occurring in the same text window.
#' If you have as an example a document with sequence of words \code{'A B C B'}, and assuming the window size is set to 3,
Expand Down
8 changes: 4 additions & 4 deletions man/BTM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a87022c

Please sign in to comment.