#' Function to create train Topic Model #' #' @param x tmCorpus object #' @param ... settings for mallet.doc.topics and mallet.topic.words #' #' @return returns object of a class tmTopicModel #' #' @export train <- function(x, ...) UseMethod("train")
1 2 3 4 5 6 7 |
x |
A |
k |
number of topics |
stoplist_file |
file direcroty or vector of stopwords |
token_regexp |
regular expression token |
alpha_opt |
mallet LDA topic model parameter |
burn_in |
mallet LDA topic model parameter |
train |
mallet LDA topic model parameter |
maximize |
mallet LDA topic model parameter |
package |
package to train topic mdoel can be set to "mallet" or "topicmodels" |
... |
other model arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.