Learn R Programming

BERTopic (version 0.1.0)

bertopic_set_topic_labels: Relabel topics

Description

Set custom labels for topics. Accepts a named character vector or a data.frame with columns topic and label.

Usage

bertopic_set_topic_labels(model, labels)

Value

The input model (invisibly).

Arguments

model

A "bertopic_r" model.

labels

A named character vector (names are topic ids) or a data.frame.