code: def __init__(self, classname, java_model=None):
      super(AnnotatorModel, self).__init__(java_model=java_model)
      if classname and not java_model:
          self.__class__._java_class_name = classname
          self._java_obj = self._new_java_obj(classname, self.uid)
      if java_model is not None:
          self._transfer_params_from_java()
      self._setDefault(lazyAnnotator=False)
  
file_path: spark-nlp/python/sparknlp/common/annotator_model.py
imports: from pyspark import keyword_only
  from pyspark.ml.util import JavaMLWritable
  from pyspark.ml.wrapper import JavaModel
  import sparknlp.internal
  from sparknlp.common import AnnotatorProperties
label_desc: Use image node_id 2 to create a new AnnotatorModel object from inherited base classes: JavaModel, _internal, JavaMLWritable, AnnotatorProperties, _internal with example: obj = AnnotatorModel(classname, java_model)