class_docstr: Corpus in Blei's LDA-C format.
  
  The corpus is represented as two files: one describing the documents, and another
  describing the mapping between words and their ids.
  
  Each document is one line::
  
      N fieldId1:fieldValue1 fieldId2:fieldValue2 ... fieldIdN:fieldValueN
  
  
  The vocabulary is a file with words, one word per line; word at line K has an implicit `id=K`.
class_docstr_tok: ["Corpus","in","Blei","'s","LDA-C","format",".","The","corpus","is","represented","as","two","files",":","one","describing","the","documents",",","and","another","describing","the","mapping","between","words","and","their","ids",".","Each","document","is","one","line",":",":","N","fieldId1",":","fieldValue1","fieldId2",":","fieldValue2","...","fieldIdN",":","fieldValueN","The","vocabulary","is","a","file","with","words",",","one","word","per","line",";","word","at","line","K","has","an","implicit","`","id=K","`","."]
docstr: Get document corresponding to `offset`.
  Offset can be given from :meth:`~gensim.corpora.bleicorpus.BleiCorpus.save_corpus`.
  
  Parameters
  ----------
  offset : int
      Position of the document in the file (in bytes).
  
  Returns
  -------
  list of (int, float)
      Document in BoW format.
docstr_tok: ["Get","document","corresponding","to","`","offset","`",".","Offset","can","be","given","from",":","meth",":","`","~gensim.corpora.bleicorpus.BleiCorpus.save_corpus","`",".","Parameters","--","--","--","--","--","offset",":","int","Position","of","the","document","in","the","file","(","in","bytes",")",".","Returns","--","--","--","-","list","of","(","int",",","float",")","Document","in","BoW","format","."]
code: def docbyoffset(self, offset):
      """Get document corresponding to `offset`.
      Offset can be given from :meth:`~gensim.corpora.bleicorpus.BleiCorpus.save_corpus`.
  
      Parameters
      ----------
      offset : int
          Position of the document in the file (in bytes).
  
      Returns
      -------
      list of (int, float)
          Document in BoW format.
  
      """
      with utils.open(self.fname, "rb") as f:
          f.seek(offset)
          return self.line2doc(f.readline())
  
file_path: gensim/gensim/corpora/bleicorpus.py
imports: from __future__ import with_statement
  from os import path
  import logging
  from gensim import utils
  from gensim.corpora import IndexedCorpus
label_desc: Use image node_id 5 for calling the BleiCorpus obj's underlying member method code with example usage: obj.docbyoffset(offset) and returns: self