class_docstr: This class allows to use `NMSLIB <https://github.com/nmslib/nmslib>`_ as indexer for `most_similar` method
  from :class:`~gensim.models.word2vec.Word2Vec`, :class:`~gensim.models.doc2vec.Doc2Vec`,
  :class:`~gensim.models.fasttext.FastText` and :class:`~gensim.models.keyedvectors.Word2VecKeyedVectors` classes.
class_docstr_tok: ["This","class","allows","to","use","`","NMSLIB","<","https",":","\/\/github.com\/nmslib\/nmslib",">","`","_","as","indexer","for","`","most_similar","`","method","from",":","class",":","`","~gensim.models.word2vec.Word2Vec","`",",",":","class",":","`","~gensim.models.doc2vec.Doc2Vec","`",",",":","class",":","`","~gensim.models.fasttext.FastText","`","and",":","class",":","`","~gensim.models.keyedvectors.Word2VecKeyedVectors","`","classes","."]
docstr: Load a NmslibIndexer instance from a file.
  
  Parameters
  ----------
  fname : str
      Path previously used in `save()`.
docstr_tok: ["Load","a","NmslibIndexer","instance","from","a","file",".","Parameters","--","--","--","--","--","fname",":","str","Path","previously","used","in","`","save","(",")","`","."]
code: def load(cls, fname):
      """Load a NmslibIndexer instance from a file.
  
      Parameters
      ----------
      fname : str
          Path previously used in `save()`.
  
      """
      fname_dict = fname + ".d"
      with open(fname_dict, "rb") as f:
          d = _pickle.load(f)
      index_params = d["index_params"]
      query_time_params = d["query_time_params"]
      nmslib_instance = cls(
          model=None,
          index_params=index_params,
          query_time_params=query_time_params,
      )
      index = nmslib.init(method="hnsw", space="cosinesimil")
      index.loadIndex(fname)
      nmslib_instance.index = index
      nmslib_instance.labels = d["labels"]
      return nmslib_instance
  
file_path: gensim/gensim/similarities/nmslib.py
imports: from __future__ import absolute_import
  import pickle
  from smart_open import open
  from gensim import utils
  from gensim.models.doc2vec import Doc2Vec
  from gensim.models.word2vec import Word2Vec
  from gensim.models.fasttext import FastText
  from gensim.models import KeyedVectors
label_desc: Use image node_id 3 for calling the NmslibIndexer obj's underlying member method code with example usage: obj.load(cls, fname) and returns: nmslib_instance