docstr: Abstract class for creating an arbitrary module to convert grapheme words
  to phoneme sequences, leave unchanged, or use apply_to_oov_word.
  Args:
      phoneme_dict: Arbitrary representation of dictionary (phoneme -> grapheme) for known words.
      word_tokenize_func: Function for tokenizing text to words.
      apply_to_oov_word: Function that will be applied to out of phoneme_dict word.
docstr_tok: ["Abstract","class","for","creating","an","arbitrary","module","to","convert","grapheme","words","to","phoneme","sequences",",","leave","unchanged",",","or","use","apply_to_oov_word",".","Args",":","phoneme_dict",":","Arbitrary","representation","of","dictionary","(","phoneme","-",">","grapheme",")","for","known","words",".","word_tokenize_func",":","Function","for","tokenizing","text","to","words",".","apply_to_oov_word",":","Function","that","will","be","applied","to","out","of","phoneme_dict","word","."]
code: def __init__(
      self,
      phoneme_dict=None,
      word_tokenize_func=lambda x: x,
      apply_to_oov_word=None,
      mapping_file: Optional[str] = None,
  ):
      """Abstract class for creating an arbitrary module to convert grapheme words
      to phoneme sequences, leave unchanged, or use apply_to_oov_word.
      Args:
          phoneme_dict: Arbitrary representation of dictionary (phoneme -> grapheme) for known words.
          word_tokenize_func: Function for tokenizing text to words.
          apply_to_oov_word: Function that will be applied to out of phoneme_dict word.
      """
      self.phoneme_dict = phoneme_dict
      self.word_tokenize_func = word_tokenize_func
      self.apply_to_oov_word = apply_to_oov_word
      self.mapping_file = mapping_file
      self.heteronym_model = None
  
file_path: NeMo/nemo/collections/tts/g2p/models/base.py
imports: from abc import ABC, abstractmethod
  from typing import Optional
  from nemo.utils import logging
label_desc: Use image node_id 1 to create a new BaseG2p object from inherited base classes: ABC with example: obj = BaseG2p(phoneme_dict, word_tokenize_func, apply_to_oov_word, mapping_file)