class_docstr: Helper class to convert the knowledge graph from GraphExtraction into a
  generic format, such as RDF.
  
  ====================== ======================
  Input Annotation types Output Annotation type
  ====================== ======================
  ``NONE``               ``NONE``
  ====================== ======================
  
  Parameters
  ----------
  
  inputCol
      Name of input annotation column
  outputCol
      Name of finisher output column
  cleanAnnotations
      Whether to remove all the existing annotation columns, by default True
  outputAsArray
      Whether to generate an Array with the results, by default True
  
  Examples
  --------
  This is a continuation of the example of
  :class:`.GraphExtraction`. To see how the graph is extracted, see the
  documentation of that class.
  
  >>> graphFinisher = GraphFinisher() \
  ...     .setInputCol("graph") \
  ...     .setOutputCol("graph_finished")
  ...     .setOutputAsArray(False)
  >>> finishedResult = graphFinisher.transform(result)
  >>> finishedResult.select("text", "graph_finished").show(truncate=False)
  +-----------------------------------------------------+-----------------------------------------------------------------------+
  |text                                                 |graph_finished                                                         |
  +-----------------------------------------------------+-----------------------------------------------------------------------+
  |You and John prefer the morning flight through Denver|[[(prefer,nsubj,morning), (morning,flat,flight), (flight,flat,Denver)]]|
  +-----------------------------------------------------+-----------------------------------------------------------------------+
class_docstr_tok: ["Helper","class","to","convert","the","knowledge","graph","from","GraphExtraction","into","a","generic","format",",","such","as","RDF",".","======================","======================","Input","Annotation","types","Output","Annotation","type","======================","======================","``","NONE","``","``","NONE","``","======================","======================","Parameters","--","--","--","--","--","inputCol","Name","of","input","annotation","column","outputCol","Name","of","finisher","output","column","cleanAnnotations","Whether","to","remove","all","the","existing","annotation","columns",",","by","default","True","outputAsArray","Whether","to","generate","an","Array","with","the","results",",","by","default","True","Examples","--","--","--","--","This","is","a","continuation","of","the","example","of",":","class",":","`",".GraphExtraction","`",".","To","see","how","the","graph","is","extracted",",","see","the","documentation","of","that","class",".",">",">",">","graphFinisher","=","GraphFinisher","(",")","\\","...",".setInputCol","(","``","graph","''",")","\\","...",".setOutputCol","(","``","graph_finished","''",")","...",".setOutputAsArray","(","False",")",">",">",">","finishedResult","=","graphFinisher.transform","(","result",")",">",">",">","finishedResult.select","(","``","text","''",",","``","graph_finished","''",")",".show","(","truncate=False",")","+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","-+","|text","|graph_finished","|","+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","-+","|You","and","John","prefer","the","morning","flight","through","Denver|","[","[","(","prefer",",","nsubj",",","morning",")",",","(","morning",",","flat",",","flight",")",",","(","flight",",","flat",",","Denver",")","]","]","|","+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","-+"]
code: def __init__(self):
      super(GraphFinisher, self).__init__(
          classname="com.johnsnowlabs.nlp.GraphFinisher"
      )
      self._setDefault(cleanAnnotations=True, outputAsArray=True)
  
file_path: spark-nlp/python/sparknlp/base/graph_finisher.py
imports: from pyspark import keyword_only
  from pyspark.ml.param import TypeConverters, Params, Param
  from sparknlp.internal import AnnotatorTransformer
label_desc: Use image node_id 1 to create a new GraphFinisher object from inherited base classes: AnnotatorTransformer with example: obj = GraphFinisher()