class_docstr: Base class for LIT annotator components.
  
  Annotators are for adding extra fields to datapoints, using a model to
  annotate datapoints given their feature values.
class_docstr_tok: ["Base","class","for","LIT","annotator","components",".","Annotators","are","for","adding","extra","fields","to","datapoints",",","using","a","model","to","annotate","datapoints","given","their","feature","values","."]
docstr: Annotator constructor.
  
  Args:
    name: prinable name of the annotator, for use in new dataset fields.
    annotator_model: model to use to create dataset annotations.
docstr_tok: ["Annotator","constructor",".","Args",":","name",":","prinable","name","of","the","annotator",",","for","use","in","new","dataset","fields",".","annotator_model",":","model","to","use","to","create","dataset","annotations","."]
code: def __init__(self, name: str, annotator_model: lit_model.Model):
      """Annotator constructor.
  
      Args:
        name: prinable name of the annotator, for use in new dataset fields.
        annotator_model: model to use to create dataset annotations.
      """
      self._name = name
      self._annotator_model = annotator_model
  
imports: import abc
  from collections.abc import Sequence
  import inspect
  from typing import Any, Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
label_desc: Use image node_id 1 to create a new Annotator object  with example: obj = Annotator(name, annotator_model)