docstr: Parameters
  ----------
  corpus : iterable of iterable of (int, int)
      Input corpus.
  
  id2word : {dict of (int, str), :class:`~gensim.corpora.dictionary.Dictionary`}, optional
      Mapping `token_id` -> `token`, will be determine from corpus if `id2word == None`.
  
  num_topics : int, optional
      Number of topics.
docstr_tok: ["Parameters","--","--","--","--","--","corpus",":","iterable","of","iterable","of","(","int",",","int",")","Input","corpus",".","id2word",":","{","dict","of","(","int",",","str",")",",",":","class",":","`","~gensim.corpora.dictionary.Dictionary","`","}",",","optional","Mapping","`","token_id","`","-",">","`","token","`",",","will","be","determine","from","corpus","if","`","id2word","==","None","`",".","num_topics",":","int",",","optional","Number","of","topics","."]
code: def __init__(self, corpus, id2word=None, num_topics=300):
      """
  
      Parameters
      ----------
      corpus : iterable of iterable of (int, int)
          Input corpus.
  
      id2word : {dict of (int, str), :class:`~gensim.corpora.dictionary.Dictionary`}, optional
          Mapping `token_id` -> `token`, will be determine from corpus if `id2word == None`.
  
      num_topics : int, optional
          Number of topics.
  
      """
      self.id2word = id2word
      self.num_topics = num_topics
      if corpus is not None:
          self.initialize(corpus)
          self.add_lifecycle_event("created", msg=f"created {self}")
  
file_path: gensim/gensim/models/rpmodel.py
imports: import logging
  import numpy
  from gensim import interfaces, matutils, utils
label_desc: Use image node_id 1 to create a new RpModel object from inherited base classes: interfaces with example: obj = RpModel(corpus, id2word, num_topics)