class_docstr: Base class for all processor variants 
class_docstr_tok: ["Base","class","for","all","processor","variants"]
docstr: Process a document that is potentially preprocessed by the processor.
  This is the main method of a processor variant.
  
  If `OVERRIDE` is set to True, all preprocessing by the processor would be bypassed, and the processor variant
  would serve as a drop-in replacement of the entire processor, and has to be able to interpret all the configs
  that are typically handled by the processor it replaces.
docstr_tok: ["Process","a","document","that","is","potentially","preprocessed","by","the","processor",".","This","is","the","main","method","of","a","processor","variant",".","If","`","OVERRIDE","`","is","set","to","True",",","all","preprocessing","by","the","processor","would","be","bypassed",",","and","the","processor","variant","would","serve","as","a","drop-in","replacement","of","the","entire","processor",",","and","has","to","be","able","to","interpret","all","the","configs","that","are","typically","handled","by","the","processor","it","replaces","."]
code: def process(self, doc):
      """
      Process a document that is potentially preprocessed by the processor.
      This is the main method of a processor variant.
  
      If `OVERRIDE` is set to True, all preprocessing by the processor would be bypassed, and the processor variant
      would serve as a drop-in replacement of the entire processor, and has to be able to interpret all the configs
      that are typically handled by the processor it replaces.
      """
      pass
  
imports: from abc import ABC, abstractmethod
  from stanza.models.common.doc import Document
  from stanza.pipeline.registry import NAME_TO_PROCESSOR_CLASS, PIPELINE_NAMES, PROCESSOR_VARIANTS
label_desc: Use image node_id 1 for calling the ProcessorVariant obj's underlying member method code with example usage: obj.process(doc) without return types