code: def __init__(self, **kwargs: Any) -> None:
      self.vocab2idx = kwargs.get("vocab2idx", {})
      self.idx2vocab = dict([(v, k) for k, v in self.vocab2idx.items()])
  
      self.segment = False
  
      self.token_pad: str = kwargs.get("token_pad", "[PAD]")  # type: ignore
      self.token_unk: str = kwargs.get("token_unk", "[UNK]")  # type: ignore
      self.token_bos: str = kwargs.get("token_bos", "[CLS]")  # type: ignore
      self.token_eos: str = kwargs.get("token_eos", "[SEP]")  # type: ignore
  
      self._sequence_length_from_saved_model: Optional[int] = None
  
file_path: Kashgari/kashgari/processors/abc_processor.py
imports: from abc import ABC
  from typing import Dict, List, Optional, Any, Tuple
  import numpy
  from kashgari.generators import CorpusGenerator
  from kashgari.types import TextSamplesVar
label_desc: Use image node_id 2 to create a new ABCProcessor object from inherited base classes: ABC with example: obj = ABCProcessor()