class_docstr: Corpus in the UCI bag-of-words format.
docstr: Parameters
  ----------
  fname : str
      Path to corpus in UCI format.
  fname_vocab : bool, optional
      Path to vocab.
  
  Examples
  --------
  .. sourcecode:: pycon
  
      >>> from gensim.corpora import UciCorpus
      >>> from gensim.test.utils import datapath
      >>>
      >>> corpus = UciCorpus(datapath('testcorpus.uci'))
      >>> for document in corpus:
      ...     pass
docstr_tok: ["Parameters","--","--","--","--","--","fname",":","str","Path","to","corpus","in","UCI","format",".","fname_vocab",":","bool",",","optional","Path","to","vocab",".","Examples","--","--","--","--","..","sourcecode",":",":","pycon",">",">",">","from","gensim.corpora","import","UciCorpus",">",">",">","from","gensim.test.utils","import","datapath",">",">",">",">",">",">","corpus","=","UciCorpus","(","datapath","(","'testcorpus.uci","'",")",")",">",">",">","for","document","in","corpus",":","...","pass"]
code: def __init__(self, fname, fname_vocab=None):
      """
      Parameters
      ----------
      fname : str
          Path to corpus in UCI format.
      fname_vocab : bool, optional
          Path to vocab.
  
      Examples
      --------
      .. sourcecode:: pycon
  
          >>> from gensim.corpora import UciCorpus
          >>> from gensim.test.utils import datapath
          >>>
          >>> corpus = UciCorpus(datapath('testcorpus.uci'))
          >>> for document in corpus:
          ...     pass
  
      """
      IndexedCorpus.__init__(self, fname)
      UciReader.__init__(self, fname)
  
      if fname_vocab is None:
          fname_vocab = utils.smart_extension(fname, ".vocab")
  
      self.fname = fname
      with utils.open(fname_vocab, "rb") as fin:
          words = [word.strip() for word in fin]
      self.id2word = dict(enumerate(words))
  
      self.transposed = True
  
imports: import logging
  from collections import defaultdict
  from gensim import utils
  from gensim.corpora import Dictionary
  from gensim.corpora import IndexedCorpus
  from gensim.matutils import MmReader
  from gensim.matutils import MmWriter
label_desc: Use image node_id 1 to create a new UciCorpus object from inherited base classes: UciReader, IndexedCorpus with example: obj = UciCorpus(fname, fname_vocab)