class_docstr: Prepares images read by Spark into a format that is processable by Spark NLP.
  This component is needed to process images.
  
  ====================== ======================
  Input Annotation types Output Annotation type
  ====================== ======================
  ``NONE``               ``IMAGE``
  ====================== ======================
  
  Parameters
  ----------
  inputCol
      Input column name
  outputCol
      Output column name
  
  Examples
  --------
  >>> import sparknlp
  >>> from sparknlp.base import *
  >>> from pyspark.ml import Pipeline
  >>> data = spark.read.format("image").load("./tmp/images/").toDF("image")
  >>> imageAssembler = ImageAssembler().setInputCol("image").setOutputCol("image_assembler")
  >>> result = imageAssembler.transform(data)
  >>> result.select("image_assembler").show()
  >>> result.select("image_assembler").printSchema()
  root
   |-- image_assembler: array (nullable = true)
   |    |-- element: struct (containsNull = true)
   |    |    |-- annotatorType: string (nullable = true)
   |    |    |-- origin: string (nullable = true)
   |    |    |-- height: integer (nullable = true)
   |    |    |-- width: integer (nullable = true)
   |    |    |-- nChannels: integer (nullable = true)
   |    |    |-- mode: integer (nullable = true)
   |    |    |-- result: binary (nullable = true)
   |    |    |-- metadata: map (nullable = true)
   |    |    |    |-- key: string
   |    |    |    |-- value: string (valueContainsNull = true)
class_docstr_tok: ["Prepares","images","read","by","Spark","into","a","format","that","is","processable","by","Spark","NLP",".","This","component","is","needed","to","process","images",".","======================","======================","Input","Annotation","types","Output","Annotation","type","======================","======================","``","NONE","``","``","IMAGE","``","======================","======================","Parameters","--","--","--","--","--","inputCol","Input","column","name","outputCol","Output","column","name","Examples","--","--","--","--",">",">",">","import","sparknlp",">",">",">","from","sparknlp.base","import","*",">",">",">","from","pyspark.ml","import","Pipeline",">",">",">","data","=","spark.read.format","(","``","image","''",")",".load","(","``",".\/tmp\/images\/","''",")",".toDF","(","``","image","''",")",">",">",">","imageAssembler","=","ImageAssembler","(",")",".setInputCol","(","``","image","''",")",".setOutputCol","(","``","image_assembler","''",")",">",">",">","result","=","imageAssembler.transform","(","data",")",">",">",">","result.select","(","``","image_assembler","''",")",".show","(",")",">",">",">","result.select","(","``","image_assembler","''",")",".printSchema","(",")","root","|","--","image_assembler",":","array","(","nullable","=","true",")","|","|","--","element",":","struct","(","containsNull","=","true",")","|","|","|","--","annotatorType",":","string","(","nullable","=","true",")","|","|","|","--","origin",":","string","(","nullable","=","true",")","|","|","|","--","height",":","integer","(","nullable","=","true",")","|","|","|","--","width",":","integer","(","nullable","=","true",")","|","|","|","--","nChannels",":","integer","(","nullable","=","true",")","|","|","|","--","mode",":","integer","(","nullable","=","true",")","|","|","|","--","result",":","binary","(","nullable","=","true",")","|","|","|","--","metadata",":","map","(","nullable","=","true",")","|","|","|","|","--","key",":","string","|","|","|","|","--","value",":","string","(","valueContainsNull","=","true",")"]
code: def __init__(self):
      super(ImageAssembler, self).__init__(
          classname="com.johnsnowlabs.nlp.ImageAssembler"
      )
      self._setDefault(outputCol="image_assembler", inputCol="image")
  
file_path: spark-nlp/python/sparknlp/base/image_assembler.py
imports: from pyspark import keyword_only
  from pyspark.ml.param import TypeConverters, Params, Param
  from sparknlp.common import AnnotatorType
  from sparknlp.internal import AnnotatorTransformer
label_desc: Use image node_id 1 to create a new ImageAssembler object from inherited base classes: AnnotatorTransformer with example: obj = ImageAssembler()