g2pE Algorithm Overview
masterThe conversion process follows these steps:
- Normalization: Spells out Arabic numbers and currency symbols (e.g.,
$200becomestwo hundred dollars). - Disambiguation: Attempts to retrieve correct pronunciations for heteronyms based on their Part-of-Speech (POS).
- Dictionary Lookup: Uses the CMU Pronouncing Dictionary for standard words.
- Neural Prediction: For Out-of-Vocabulary (OOV) words, it predicts pronunciations using a neural net model (inference is performed using NumPy).