predict.lda {PivotalR} | R Documentation |
Labelling test documents using a learned LDA model
built by linlk{madlib.lda}
## S3 method for class 'lda.madlib' predict(object, data, docid, words, ...)
object |
The result of |
data |
An object of |
docid |
Text name of the column containing the id of the documents. |
words |
Column name of the input data table containing the vector of words/tokens in the documents. |
... |
Arguments passed to or from other methods, not implemented yet. |
A db.table
object, which points to a table that
contains the predicted values. The table has the following columns:
docid
wordcount
words
counts
topic_count
topic_assignment
One can use the function lk
to look at the values.
Author: Predictive Analytics Team at Pivotal Inc.
Maintainer: Frank McQuillan, Pivotal Inc. fmcquillan@pivotal.io
madlib.lda
builds a topic model using a set of documents.
## Not run: ## Please see the examples in madlib.lda doc. ## End(Not run)