
    Wi1                          d dl Z G d d      Zy)    Nc                   P    e Zd ZdZddZdej                  dej                  fdZy)BaseClustera  The Base Cluster class.

    Using this class directly in BERTopic will make it skip
    over the cluster step. As a result, topics need to be passed
    to BERTopic in the form of its `y` parameter in order to create
    topic representations.

    Examples:
    This will skip over the cluster step in BERTopic:

    ```python
    from bertopic import BERTopic
    from bertopic.cluster import BaseCluster

    empty_cluster_model = BaseCluster()

    topic_model = BERTopic(hdbscan_model=empty_cluster_model)
    ```

    Then, this class can be used to perform manual topic modeling.
    That is, topic modeling on a topics that were already generated before
    without the need to learn them:

    ```python
    topic_model.fit(docs, y=y)
    ```
    Nc                 *    |	|| _         | S d | _         | S N)labels_)selfXys      b/home/sietch6/trending-topics-pipeline/venv/lib/python3.12/site-packages/bertopic/cluster/_base.pyfitzBaseCluster.fit!   s#    =DL   DL    r	   returnc                     |S r    )r   r	   s     r   	transformzBaseCluster.transform(   s    r   r   )__name__
__module____qualname____doc__r   npndarrayr   r   r   r   r   r      s'    82:: "** r   r   )numpyr   r   r   r   r   <module>r      s    % %r   