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.
code: def to_config(self) -> "CharactersConfig":
      return CharactersConfig(
          vocab_dict=self._vocab,
          pad=self.pad,
          eos=self.eos,
          bos=self.bos,
          blank=self.blank,
          is_unique=False,
          is_sorted=False,
      )
  
imports: from dataclasses import replace
  from typing import Dict
  from TTS.tts.configs.shared_configs import CharactersConfig
label_desc: Use image node_id 9 for calling the BaseVocabulary obj's underlying member method code with example usage: obj.to_config() and returns: CharactersConfig