class_docstr: Helper class for :class:`gensim.models.hdpmodel.HdpModel` to format the output of topics.
class_docstr_tok: ["Helper","class","for",":","class",":","`","gensim.models.hdpmodel.HdpModel","`","to","format","the","output","of","topics","."]
docstr: Give the topic terms along with their probabilities for a single topic data.
  
  Parameters
  ----------
  topic_data : list of (str, numpy.float)
      Contains probabilities for each word id belonging to a single topic.
  num_words : int
      Number of words for which probabilities are to be extracted from the given single topic data.
  
  Returns
  -------
  list of (str, numpy.float)
      A sequence of topic terms and their probabilities.
code: def show_topic_terms(self, topic_data, num_words):
      """Give the topic terms along with their probabilities for a single topic data.
  
      Parameters
      ----------
      topic_data : list of (str, numpy.float)
          Contains probabilities for each word id belonging to a single topic.
      num_words : int
          Number of words for which probabilities are to be extracted from the given single topic data.
  
      Returns
      -------
      list of (str, numpy.float)
          A sequence of topic terms and their probabilities.
  
      """
      return [
          (self.dictionary[wid], weight)
          for (weight, wid) in topic_data[:num_words]
      ]
  
imports: import logging
  import time
  import warnings
  import numpy
  from scipy.special import gammaln, psi
  from gensim import interfaces, utils, matutils
  from gensim.matutils import dirichlet_expectation, mean_absolute_difference
  from gensim.models import basemodel, ldamodel
  from gensim.utils import deprecated
label_desc: Use image node_id 6 for calling the HdpTopicFormatter obj's underlying member method code with example usage: obj.show_topic_terms(topic_data, num_words) and returns: unknown