class_docstr: Model for `Latent Semantic Indexing
  <https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing>`_.
  
  The decomposition algorithm is described in `"Fast and Faster: A Comparison of Two Streamed
  Matrix Decomposition Algorithms" <https://arxiv.org/pdf/1102.5597.pdf>`_.
  
  Notes
  -----
  * :attr:`gensim.models.lsimodel.LsiModel.projection.u` - left singular vectors,
  * :attr:`gensim.models.lsimodel.LsiModel.projection.s` - singular values,
  * ``model[training_corpus]`` - right singular vectors (can be reconstructed if needed).
  
  See Also
  --------
  `FAQ about LSI matrices
  <https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ#q4-how-do-you-output-the-u-s-vt-matrices-of-lsi>`_.
  
  Examples
  --------
  .. sourcecode:: pycon
  
      >>> from gensim.test.utils import common_corpus, common_dictionary, get_tmpfile
      >>> from gensim.models import LsiModel
      >>>
      >>> model = LsiModel(common_corpus[:3], id2word=common_dictionary)  # train model
      >>> vector = model[common_corpus[4]]  # apply model to BoW document
      >>> model.add_documents(common_corpus[4:])  # update model with new documents
      >>> tmp_fname = get_tmpfile("lsi.model")
      >>> model.save(tmp_fname)  # save model
      >>> loaded_model = LsiModel.load(tmp_fname)  # load model
class_docstr_tok: ["Model","for","`","Latent","Semantic","Indexing","<","https",":","\/\/en.wikipedia.org\/wiki\/Latent_semantic_analysis","#","Latent_semantic_indexing",">","`","_",".","The","decomposition","algorithm","is","described","in","`","``","Fast","and","Faster",":","A","Comparison","of","Two","Streamed","Matrix","Decomposition","Algorithms","''","<","https",":","\/\/arxiv.org\/pdf\/1102.5597.pdf",">","`","_",".","Notes","--","--","-","*",":","attr",":","`","gensim.models.lsimodel.LsiModel.projection.u","`","-","left","singular","vectors",",","*",":","attr",":","`","gensim.models.lsimodel.LsiModel.projection.s","`","-","singular","values",",","*","``","model","[","training_corpus","]","``","-","right","singular","vectors","(","can","be","reconstructed","if","needed",")",".","See","Also","--","--","--","--","`","FAQ","about","LSI","matrices","<","https",":","\/\/github.com\/RaRe-Technologies\/gensim\/wiki\/Recipes-","&","-FAQ","#","q4-how-do-you-output-the-u-s-vt-matrices-of-lsi",">","`","_",".","Examples","--","--","--","--","..","sourcecode",":",":","pycon",">",">",">","from","gensim.test.utils","import","common_corpus",",","common_dictionary",",","get_tmpfile",">",">",">","from","gensim.models","import","LsiModel",">",">",">",">",">",">","model","=","LsiModel","(","common_corpus","[",":3","]",",","id2word=common_dictionary",")","#","train","model",">",">",">","vector","=","model","[","common_corpus","[","4","]","]","#","apply","model","to","BoW","document",">",">",">","model.add_documents","(","common_corpus","[","4",":","]",")","#","update","model","with","new","documents",">",">",">","tmp_fname","=","get_tmpfile","(","``","lsi.model","''",")",">",">",">","model.save","(","tmp_fname",")","#","save","model",">",">",">","loaded_model","=","LsiModel.load","(","tmp_fname",")","#","load","model"]
docstr: Load a previously saved object using :meth:`~gensim.models.lsimodel.LsiModel.save` from file.
  
  Notes
  -----
  Large arrays can be memmap'ed back as read-only (shared memory) by setting the `mmap='r'` parameter.
  
  Parameters
  ----------
  fname : str
      Path to file that contains LsiModel.
  *args
      Variable length argument list, see :meth:`gensim.utils.SaveLoad.load`.
  **kwargs
      Arbitrary keyword arguments, see :meth:`gensim.utils.SaveLoad.load`.
  
  See Also
  --------
  :meth:`~gensim.models.lsimodel.LsiModel.save`
  
  Returns
  -------
  :class:`~gensim.models.lsimodel.LsiModel`
      Loaded instance.
  
  Raises
  ------
  IOError
      When methods are called on instance (should be called from class).
docstr_tok: ["Load","a","previously","saved","object","using",":","meth",":","`","~gensim.models.lsimodel.LsiModel.save","`","from","file",".","Notes","--","--","-","Large","arrays","can","be","memmap'ed","back","as","read-only","(","shared","memory",")","by","setting","the","`","mmap=","'","r","'","`","parameter",".","Parameters","--","--","--","--","--","fname",":","str","Path","to","file","that","contains","LsiModel",".","*","args","Variable","length","argument","list",",","see",":","meth",":","`","gensim.utils.SaveLoad.load","`",".","*","*","kwargs","Arbitrary","keyword","arguments",",","see",":","meth",":","`","gensim.utils.SaveLoad.load","`",".","See","Also","--","--","--","--",":","meth",":","`","~gensim.models.lsimodel.LsiModel.save","`","Returns","--","--","--","-",":","class",":","`","~gensim.models.lsimodel.LsiModel","`","Loaded","instance",".","Raises","--","--","--","IOError","When","methods","are","called","on","instance","(","should","be","called","from","class",")","."]
code: def load(cls, fname, *args, **kwargs):
      """Load a previously saved object using :meth:`~gensim.models.lsimodel.LsiModel.save` from file.
  
      Notes
      -----
      Large arrays can be memmap'ed back as read-only (shared memory) by setting the `mmap='r'` parameter.
  
      Parameters
      ----------
      fname : str
          Path to file that contains LsiModel.
      *args
          Variable length argument list, see :meth:`gensim.utils.SaveLoad.load`.
      **kwargs
          Arbitrary keyword arguments, see :meth:`gensim.utils.SaveLoad.load`.
  
      See Also
      --------
      :meth:`~gensim.models.lsimodel.LsiModel.save`
  
      Returns
      -------
      :class:`~gensim.models.lsimodel.LsiModel`
          Loaded instance.
  
      Raises
      ------
      IOError
          When methods are called on instance (should be called from class).
  
      """
      kwargs["mmap"] = kwargs.get("mmap", None)
      result = super(LsiModel, cls).load(fname, *args, **kwargs)
      projection_fname = utils.smart_extension(fname, ".projection")
      try:
          result.projection = super(LsiModel, cls).load(
              projection_fname, *args, **kwargs
          )
      except Exception as e:
          logging.warning(
              "failed to load projection from %s: %s",
              projection_fname,
              e,
          )
      return result
  
imports: import logging
  import sys
  import time
  import numpy
  import scipy.linalg
  import scipy.sparse
  from scipy.sparse import sparsetools
  from gensim import interfaces, matutils, utils
  from gensim.models import basemodel
  from gensim.utils import is_empty
label_desc: Use image node_id 10 for calling the LsiModel obj's underlying member method code with example usage: obj.load(cls, fname) and returns: result