class_docstr: Base Vocabulary class.
  
  This class only needs a vocabulary dictionary without specifying the characters.
  
  Args:
      vocab (Dict): A dictionary of characters and their corresponding indices.
docstr: Map a character to an token ID.
docstr_tok: ["Map","a","character","to","an","token","ID","."]
code: def char_to_id(self, char: str) -> int:
      """Map a character to an token ID."""
      try:
          return self._char_to_id[char]
      except KeyError as e:
          raise KeyError(
              f" [!] {repr(char)} is not in the vocabulary."
          ) from e
  
imports: from dataclasses import replace
  from typing import Dict
  from TTS.tts.configs.shared_configs import CharactersConfig
label_desc: Use image node_id 11 for calling the BaseVocabulary obj's underlying member method code with example usage: obj.char_to_id(char) and returns: self