class_docstr: Instantiated model of the DocumentSimilarityRankerApproach. For usage and examples see the
  documentation of the main class.
  
  ======================= ===========================
  Input Annotation types  Output Annotation type
  ======================= ===========================
  ``SENTENCE_EMBEDDINGS`` ``DOC_SIMILARITY_RANKINGS``
  ======================= ===========================
  
  Parameters
  ----------
  extractNearestNeighbor
      Whether to extract the nearest neighbor document
class_docstr_tok: ["Instantiated","model","of","the","DocumentSimilarityRankerApproach",".","For","usage","and","examples","see","the","documentation","of","the","main","class",".","=======================","===========================","Input","Annotation","types","Output","Annotation","type","=======================","===========================","``","SENTENCE_EMBEDDINGS","``","``","DOC_SIMILARITY_RANKINGS","``","=======================","===========================","Parameters","--","--","--","--","--","extractNearestNeighbor","Whether","to","extract","the","nearest","neighbor","document"]
docstr: Sets whether to extract the nearest neighbor document, by default False.
  
  Parameters
  ----------
  value : bool
      Whether to extract the nearest neighbor document
docstr_tok: ["Sets","whether","to","extract","the","nearest","neighbor","document",",","by","default","False",".","Parameters","--","--","--","--","--","value",":","bool","Whether","to","extract","the","nearest","neighbor","document"]
code: def setExtractNearestNeighbor(self, value):
      """Sets whether to extract the nearest neighbor document, by default False.
  
      Parameters
      ----------
      value : bool
          Whether to extract the nearest neighbor document
      """
  
      return self._set(extractNearestNeighbor=value)
  
imports: from sparknlp.common import *
  from pyspark import keyword_only
  from pyspark.ml.param import TypeConverters, Params, Param
  from sparknlp.internal import AnnotatorTransformer
label_desc: Use image node_id 5 for calling the DocumentSimilarityRankerFinisher obj's underlying member method code with example usage: obj.setExtractNearestNeighbor(value) and returns: self