class_docstr: Interface for corpora that are the result of an online (streamed) transformation.
class_docstr_tok: ["Interface","for","corpora","that","are","the","result","of","an","online","(","streamed",")","transformation","."]
docstr: Transform the document at position `docno` within `corpus` specified in the constructor.
  
  Parameters
  ----------
  docno : int
      Position of the document to transform. Document offset inside `self.corpus`.
  
  Notes
  -----
  `self.corpus` must support random indexing.
  
  Returns
  -------
  list of (int, number)
      Transformed document in the sparse Gensim bag-of-words format.
  
  Raises
  ------
  RuntimeError
      If corpus doesn't support index slicing (`__getitem__` doesn't exists).
docstr_tok: ["Transform","the","document","at","position","`","docno","`","within","`","corpus","`","specified","in","the","constructor",".","Parameters","--","--","--","--","--","docno",":","int","Position","of","the","document","to","transform",".","Document","offset","inside","`","self.corpus","`",".","Notes","--","--","-","`","self.corpus","`","must","support","random","indexing",".","Returns","--","--","--","-","list","of","(","int",",","number",")","Transformed","document","in","the","sparse","Gensim","bag-of-words","format",".","Raises","--","--","--","RuntimeError","If","corpus","does","n't","support","index","slicing","(","`","__getitem__","`","does","n't","exists",")","."]
code: def __getitem__(self, docno):
      """Transform the document at position `docno` within `corpus` specified in the constructor.
  
      Parameters
      ----------
      docno : int
          Position of the document to transform. Document offset inside `self.corpus`.
  
      Notes
      -----
      `self.corpus` must support random indexing.
  
      Returns
      -------
      list of (int, number)
          Transformed document in the sparse Gensim bag-of-words format.
  
      Raises
      ------
      RuntimeError
          If corpus doesn't support index slicing (`__getitem__` doesn't exists).
  
      """
      if hasattr(self.corpus, "__getitem__"):
          return self.obj[self.corpus[docno]]
      else:
          raise RuntimeError(
              "Type {} does not support slicing.".format(
                  type(self.corpus)
              )
          )
  
imports: import logging
  from gensim import utils, matutils
label_desc: Use image node_id 4 for calling the TransformedCorpus obj's underlying member method code with example usage: obj.__getitem__(docno) and returns: self