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: Return the index of the bos character. If the bos character is not specified, return the length of the
  vocabulary.
docstr_tok: ["Return","the","index","of","the","bos","character",".","If","the","bos","character","is","not","specified",",","return","the","length","of","the","vocabulary","."]
code: def bos_id(self) -> int:
      """Return the index of the bos character. If the bos character is not specified, return the length of the
      vocabulary."""
      return self.char_to_id(self.bos) if self.bos else len(self.vocab)
  
imports: from dataclasses import replace
  from typing import Dict
  from TTS.tts.configs.shared_configs import CharactersConfig
label_desc: Use image node_id 4 for calling the BaseVocabulary obj's underlying member method code with example usage: obj.bos_id() and returns: unknown