class_docstr: Interface for similarity search over a corpus.
  
  In all instances, there is a corpus against which we want to perform the similarity search.
  For each similarity search, the input is a document or a corpus, and the output are the similarities
  to individual corpus documents.
  
  Examples
  --------
  .. sourcecode:: pycon
  
      >>> from gensim.similarities import MatrixSimilarity
      >>> from gensim.test.utils import common_corpus
      >>>
      >>> index = MatrixSimilarity(common_corpus)
      >>> similarities = index.get_similarities(common_corpus[1])  # get similarities between query and corpus
  
  Notes
  -----
  There is also a convenience wrapper, where iterating over `self` yields similarities of each document in the corpus
  against the whole corpus (i.e. the query is each corpus document in turn).
  
  See Also
  --------
  :mod:`gensim.similarities`
      Different index implementations of this interface.
class_docstr_tok: ["Interface","for","similarity","search","over","a","corpus",".","In","all","instances",",","there","is","a","corpus","against","which","we","want","to","perform","the","similarity","search",".","For","each","similarity","search",",","the","input","is","a","document","or","a","corpus",",","and","the","output","are","the","similarities","to","individual","corpus","documents",".","Examples","--","--","--","--","..","sourcecode",":",":","pycon",">",">",">","from","gensim.similarities","import","MatrixSimilarity",">",">",">","from","gensim.test.utils","import","common_corpus",">",">",">",">",">",">","index","=","MatrixSimilarity","(","common_corpus",")",">",">",">","similarities","=","index.get_similarities","(","common_corpus","[","1","]",")","#","get","similarities","between","query","and","corpus","Notes","--","--","-","There","is","also","a","convenience","wrapper",",","where","iterating","over","`","self","`","yields","similarities","of","each","document","in","the","corpus","against","the","whole","corpus","(","i.e",".","the","query","is","each","corpus","document","in","turn",")",".","See","Also","--","--","--","--",":","mod",":","`","gensim.similarities","`","Different","index","implementations","of","this","interface","."]
docstr: Get similarities of the given document or corpus against this index.
  
  Parameters
  ----------
  doc : {list of (int, number), iterable of list of (int, number)}
      Document in the sparse Gensim bag-of-words format, or a streamed corpus of such documents.
docstr_tok: ["Get","similarities","of","the","given","document","or","corpus","against","this","index",".","Parameters","--","--","--","--","--","doc",":","{","list","of","(","int",",","number",")",",","iterable","of","list","of","(","int",",","number",")","}","Document","in","the","sparse","Gensim","bag-of-words","format",",","or","a","streamed","corpus","of","such","documents","."]
code: def get_similarities(self, doc):
      """Get similarities of the given document or corpus against this index.
  
      Parameters
      ----------
      doc : {list of (int, number), iterable of list of (int, number)}
          Document in the sparse Gensim bag-of-words format, or a streamed corpus of such documents.
  
      """
      raise NotImplementedError(
          "cannot instantiate Abstract Base Class"
      )
  
imports: import logging
  from gensim import utils, matutils
label_desc: Use image node_id 2 for calling the SimilarityABC obj's underlying member method code with example usage: obj.get_similarities(doc) without return types