Skip to contents

Create an empty reducer for skipping dimensionality reduction step of bertopic pipeline

Usage

bt_empty_reducer()

Value

an empty dimensionality reduction model (Python class)

Details

This refers to the BaseDimensionalityReduction() function in the Python BERTopic library and can be used to skip over the dimensionality reduction step that occurs as part of fitting the bertopic model to the text data. This is convenient as it allows you to perform dimensionality reduction of document embeddings externally to the model which gives full transparency in terms of reduced embedding values and can save time if trialing fitting the model with various parameters.

Examples

empty_reducer <- bt_empty_reducer()

reducer <- bt_empty_reducer()