Learn R Programming

BERTopic (version 0.1.0)

bertopic_transform: Transform new documents with a fitted BERTopic model

Description

Transform new documents with a fitted BERTopic model

Usage

bertopic_transform(model, new_text, embeddings = NULL)

Value

A list with topics and probs for the new documents.

Arguments

model

A "bertopic_r" model from bertopic_fit().

new_text

Character vector of new documents.

embeddings

Optional numeric matrix for new documents.