Predict method for BERTopic models
# S3 method for bertopic_r
predict(
object,
newdata,
type = c("both", "class", "prob"),
embeddings = NULL,
...
)Depending on type, an integer vector, a matrix/data frame, or a list.
A "bertopic_r" model.
Character vector of new documents.
One of "class", "prob", or "both".
Optional numeric matrix of embeddings.
Reserved for future arguments.