class_docstr: This class allows the use of `Annoy <https://github.com/spotify/annoy>`_ for fast (approximate)
  vector retrieval in `most_similar()` calls of
  :class:`~gensim.models.word2vec.Word2Vec`, :class:`~gensim.models.doc2vec.Doc2Vec`,
  :class:`~gensim.models.fasttext.FastText` and :class:`~gensim.models.keyedvectors.Word2VecKeyedVectors` models.
class_docstr_tok: ["This","class","allows","the","use","of","`","Annoy","<","https",":","\/\/github.com\/spotify\/annoy",">","`","_","for","fast","(","approximate",")","vector","retrieval","in","`","most_similar","(",")","`","calls","of",":","class",":","`","~gensim.models.word2vec.Word2Vec","`",",",":","class",":","`","~gensim.models.doc2vec.Doc2Vec","`",",",":","class",":","`","~gensim.models.fasttext.FastText","`","and",":","class",":","`","~gensim.models.keyedvectors.Word2VecKeyedVectors","`","models","."]
docstr: Find `num_neighbors` most similar items.
  
  Parameters
  ----------
  vector : numpy.array
      Vector for word/document.
  num_neighbors : int
      Number of most similar items
  
  Returns
  -------
  list of (str, float)
      List of most similar items in format [(`item`, `cosine_distance`), ... ]
docstr_tok: ["Find","`","num_neighbors","`","most","similar","items",".","Parameters","--","--","--","--","--","vector",":","numpy.array","Vector","for","word\/document",".","num_neighbors",":","int","Number","of","most","similar","items","Returns","--","--","--","-","list","of","(","str",",","float",")","List","of","most","similar","items","in","format","[","(","`","item","`",",","`","cosine_distance","`",")",",","...","]"]
code: def most_similar(self, vector, num_neighbors):
      """Find `num_neighbors` most similar items.
  
      Parameters
      ----------
      vector : numpy.array
          Vector for word/document.
      num_neighbors : int
          Number of most similar items
  
      Returns
      -------
      list of (str, float)
          List of most similar items in format [(`item`, `cosine_distance`), ... ]
  
      """
      ids, distances = self.index.get_nns_by_vector(
          vector, num_neighbors, include_distances=True
      )
  
      return [
          (self.labels[ids[i]], 1 - distances[i] ** 2 / 2)
          for i in range(len(ids))
      ]
  
file_path: gensim/gensim/similarities/annoy.py
imports: from __future__ import absolute_import
  import os
  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 5 for calling the AnnoyIndexer obj's underlying member method code with example usage: obj.most_similar(vector, num_neighbors) and returns: unknown