
    c                           G d  d          Z dS )c                   $    e Zd ZddZddZd ZdS )	BaseTopicModel
   c                 h    d                     d |                     ||          D                       S )as  Get a single topic as a formatted string.

        Parameters
        ----------
        topicno : int
            Topic id.
        topn : int
            Number of words from topic that will be used.

        Returns
        -------
        str
            String representation of topic, like '-0.340 * "category" + 0.298 * "$M$" + 0.183 * "algebra" + ... '.

        z + c              3   *   K   | ]\  }}d ||fz  V  dS )z	%.3f*"%s"N ).0kvs      7lib/python3.11/site-packages/gensim/models/basemodel.py	<genexpr>z-BaseTopicModel.print_topic.<locals>.<genexpr>   s/      ZZ41a+A.ZZZZZZ    )join
show_topic)selftopicnotopns      r   print_topiczBaseTopicModel.print_topic   s4      zzZZ4??7TX;Y;YZZZZZZr      c                 2    |                      ||d          S )a	  Get the most significant topics (alias for `show_topics()` method).

        Parameters
        ----------
        num_topics : int, optional
            The number of topics to be selected, if -1 - all topics will be in result (ordered by significance).
        num_words : int, optional
            The number of words to be included per topics (ordered by significance).

        Returns
        -------
        list of (int, list of (str, float))
            Sequence with (topic_id, [(word, value), ... ]).

        T)
num_topics	num_wordslog)show_topics)r   r   r   s      r   print_topicszBaseTopicModel.print_topics   s       :PTUUUr   c                     t           )zGet words X topics matrix.

        Returns
        --------
        numpy.ndarray:
            The term topic matrix learned during inference, shape (`num_topics`, `vocabulary_size`).

        Raises
        ------
        NotImplementedError

        )NotImplementedError)r   s    r   
get_topicszBaseTopicModel.get_topics'   s
     "!r   N)r   )r   r   )__name__
__module____qualname__r   r   r   r   r   r   r   r      sS        [ [ [ [$V V V V$" " " " "r   r   N)r   r   r   r   <module>r!      s7   3" 3" 3" 3" 3" 3" 3" 3" 3" 3"r   