class_docstr: Sentence LDA Document, inherited from LDADoc.
  Add add_sentence interface.
class_docstr_tok: ["Sentence","LDA","Document",",","inherited","from","LDADoc",".","Add","add_sentence","interface","."]
docstr: Initialize the SLDADoc according to num_topics.
          
docstr_tok: ["Initialize","the","SLDADoc","according","to","num_topics","."]
code: def init(self, num_topics):
      """Initialize the SLDADoc according to num_topics."""
      self._num_topics = num_topics
      self.__sentences = []
      self._num_accum = 0
      self._topic_sum = np.zeros(self._num_topics)
      self._accum_topic_sum = np.zeros(self._num_topics)
  
imports: import numpy
label_desc: Use image node_id 2 for calling the SLDADoc obj's underlying member method code with example usage: obj.init(num_topics) without return types