class_docstr: Represents the output of Spark NLP Annotators and their details.
  
  Parameters
  ----------
  annotator_type : str
      The type of the output of the annotator. Possible values are ``DOCUMENT,
      TOKEN, WORDPIECE, WORD_EMBEDDINGS, SENTENCE_EMBEDDINGS, CATEGORY, DATE,
      ENTITY, SENTIMENT, POS, CHUNK, NAMED_ENTITY, NEGEX, DEPENDENCY,
      LABELED_DEPENDENCY, LANGUAGE, KEYWORD, DUMMY``.
  begin : int
      The index of the first character under this annotation.
  end : int
      The index of the last character under this annotation.
  result : str
      The resulting string of the annotation.
  metadata : dict
      Associated metadata for this annotation
  embeddings : list
      Embeddings vector where applicable
class_docstr_tok: ["Represents","the","output","of","Spark","NLP","Annotators","and","their","details",".","Parameters","--","--","--","--","--","annotator_type",":","str","The","type","of","the","output","of","the","annotator",".","Possible","values","are","``","DOCUMENT",",","TOKEN",",","WORDPIECE",",","WORD_EMBEDDINGS",",","SENTENCE_EMBEDDINGS",",","CATEGORY",",","DATE",",","ENTITY",",","SENTIMENT",",","POS",",","CHUNK",",","NAMED_ENTITY",",","NEGEX",",","DEPENDENCY",",","LABELED_DEPENDENCY",",","LANGUAGE",",","KEYWORD",",","DUMMY","``",".","begin",":","int","The","index","of","the","first","character","under","this","annotation",".","end",":","int","The","index","of","the","last","character","under","this","annotation",".","result",":","str","The","resulting","string","of","the","annotation",".","metadata",":","dict","Associated","metadata","for","this","annotation","embeddings",":","list","Embeddings","vector","where","applicable"]
code: def __eq__(self, other):
      same_annotator_type = self.annotatorType == other.annotatorType
      same_result = self.result == other.result
      same_begin = self.begin == other.begin
      same_end = self.end == other.end
      same_metadata = dict(self.metadata) == other.metadata
      same_embeddings = self.embeddings == other.embeddings
  
      same_annotation = (
          same_annotator_type
          and same_result
          and same_begin
          and same_end
          and same_metadata
          and same_embeddings
      )
  
      return same_annotation
  
file_path: spark-nlp/python/sparknlp/annotation.py
imports: from pyspark.sql.types import *
label_desc: Use image node_id 5 for calling the Annotation obj's underlying member method code with example usage: obj.__eq__(other) and returns: same_annotation