Learn R Programming

BERTopic (version 0.1.0)

bertopic_reduce_topics: Reduce/merge topics

Description

Wrapper over Python reduce_topics, compatible with multiple signatures.

Usage

bertopic_reduce_topics(
  model,
  nr_topics = "auto",
  representation_model = NULL,
  docs = NULL
)

Value

The input model (invisibly).

Arguments

model

A "bertopic_r" model.

nr_topics

Target number (integer) or "auto".

representation_model

Optional Python representation model.

docs

Optional character vector of training docs (used if required by backend).