Metadata-Version: 2.1
Name: cluster-model
Version: 0.1
Summary: Class for wrapping a cluster model from the river package for BERTopic Online Topic Modeling
Home-page: https://github.com/denaldo98/cluster_model
Author: Denaldo Lapi
Author-email: denaldo98@gmail.com
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE.MD

# cluster_model

Package containing a wrapper class <i>River</i> for performing Online Topic Modeling with BERTopic model as explained in the [related documentation](https://maartengr.github.io/BERTopic/getting_started/online/online.html).

The reference documentation states that the package [river](https://riverml.xyz/0.14.0/) can be used for performing Online Topic Modeling in BERTopic. However it is necessary to create a class having a `.partial_fit` function and the possibility to extract labels through `.labels`.

The module simply defines a Python class `class River` as specified in the BERTopic guidelines for performing Online Topic Modeling, which allows to instantiate a `river` cluster model contaning also the `.partial_fit` function and the possibility to extract labels through `.labels`.
