Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-04T17:28:15.318Z Has data issue: false hasContentIssue false

Phonetisaurus: Exploring grapheme-to-phoneme conversion with joint n-gram models in the WFST framework

Published online by Cambridge University Press:  07 September 2015

JOSEF ROBERT NOVAK
Affiliation:
The University of Tokyo, Graduate School of Information Science and Technology, Tokyo, Japan e-mails: novakj@gavo.t.u-tokyo.ac.jp, mine@gavo.t.u-tokyo.ac.jp, hirose@gavo.t.u-tokyo.ac.jp
NOBUAKI MINEMATSU
Affiliation:
The University of Tokyo, Graduate School of Information Science and Technology, Tokyo, Japan e-mails: novakj@gavo.t.u-tokyo.ac.jp, mine@gavo.t.u-tokyo.ac.jp, hirose@gavo.t.u-tokyo.ac.jp
KEIKICHI HIROSE
Affiliation:
The University of Tokyo, Graduate School of Information Science and Technology, Tokyo, Japan e-mails: novakj@gavo.t.u-tokyo.ac.jp, mine@gavo.t.u-tokyo.ac.jp, hirose@gavo.t.u-tokyo.ac.jp
Rights & Permissions [Opens in a new window]

Abstract

This paper provides an analysis of several practical issues related to the theory and implementation of Grapheme-to-Phoneme (G2P) conversion systems utilizing the Weighted Finite-State Transducer paradigm. The paper addresses issues related to system accuracy, training time and practical implementation. The focus is on joint n-gram models which have proven to provide an excellent trade-off between system accuracy and training complexity. The paper argues in favor of simple, productive approaches to G2P, which favor a balance between training time, accuracy and model complexity. The paper also introduces the first instance of using joint sequence RnnLMs directly for G2P conversion, and achieves new state-of-the-art performance via ensemble methods combining RnnLMs and n-gram based models. In addition to detailed descriptions of the approach, minor yet novel implementation solutions, and experimental results, the paper introduces Phonetisaurus, a fully-functional, flexible, open-source, BSD-licensed G2P conversion toolkit, which leverages the OpenFst library. The work is intended to be accessible to a broad range of readers.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2015 
Figure 0

Table 1. Sample entries from the CMU pronunciation dictionary

Figure 1

Table 2. Example alignments for ‘TEST → T EH S S T’ and ‘TASTE → T EY S T’, the latter of which requires a phonemic null

Figure 2

Table 3. Two example alignments for the word ‘TEXTBOOK → T EH K S T B UH K’. The first depicts a naive one-to-one alignment, the second an arguably more natural one-to-many alignment

Figure 3

Table 4. Results of aligning and reformatting the dictionary as a corpus of joint sequences. A ‘,’ indicates a one-to-many relationship, while ‘ε’ represents a null

Figure 4

Fig. 1. Example FSA depicting possible graphemic representations of the homonyms ‘SIGHT’ and ‘SITE’.

Figure 5

Fig. 2. Example WFST mapping the homophones ‘SIGHT’ and ‘SITE’ to the pronunciation ‘S AY T’. The ‘ε’ symbol indicates null output.

Figure 6

Table 5. Definition of the log and tropical semirings utilized in this work. Note that ⊕log is defined as: x⊕logy = −log(e− x + e− y)

Figure 7

Fig. 3. Example alignment lattice for the word↔pronunciation pair ‘RIGHT’, ‘R AY T’ illustrating all possible alignments between the graphemes and phonemes in the given entry. In this example, the maximum length for a grapheme subsequence has been set to two, the maximum phoneme subsequence length to one, and deletions were permitted only on the phoneme side.

Figure 8

Algorithm 1: EM-driven M2One/One2M

Figure 9

Algorithm 2: Expectation step

Figure 10

Algorithm 3: Maximization step

Figure 11

Fig. 4. Example transforming an ARPA format statistical language model into equivalent WFSA format. This is a bi-gram model trained on a small toy corpus, using interpolated Kneser–Ney smoothing. Note that the conventional base for the ARPA format and the tropical semiring differ, and that the sentence-begin () and sentence-end () tags are given special treatment during model estimation.

Figure 12

Fig. 5. G2P n-gram model representation using ε back-off transitions.

Figure 13

Fig. 6. Illustration of attempting to compose linear FSA ‘aab’ with a WFST representation of a joint n-gram model while interpreting back-off transitions as ϕ arcs. Green arrows indicate arcs that are traversed, while red, dashed arcs indicate arcs that are incorrectly ignored.

Figure 14

Fig. 7. Example of ϕ-enabled, WFSA version of the G2P joint n-gram model where the input–output labels have been encoded.

Figure 15

Fig. 8. Example of modified ϕ-enabled WFST version of the G2P joint n-gram model. Explicit transitions have been added for each missing grapheme–phoneme correspondence at each state. Transitions added by the algorithm are dashed and green.

Figure 16

Fig. 9. Full RnnLM architecture utilized for G2P conversion.

Figure 17

Fig. 10. Example result of converting the word ‘SIXTH’ to an equivalent linear FSA w. This example does not utilize insertion self-loops.

Figure 18

Fig. 11. Flower transducer C, suitable for expanding clusters.

Figure 19

Fig. 12. Flower transducer F, suitable for mapping G↔P correspondences.

Figure 20

Fig. 13. FSA w′, result of computing RmEps(Projecto(w○C)). This is utilized to expand grapheme clusters learned during the alignment process. It is necessary in order to guarantee that all valid pronunciation hypotheses can be generated.

Figure 21

Fig. 14. FST w′′, result of computing RmEps(Min(Det(w′○F))).

Figure 22

Table 6. Overview of the NETtalk (Sejnowski and Rosenberg 1993), and CMUdict (Weide 1998) dictionary splits from Bisani and Ney (2008)

Figure 23

Table 7. Impact of allowing deletions (del G,del P), in the alignment lattice. Here, WER refers to Word Error Rate and PER to Phoneme Error Rate for the NETtalk 15k/5k split and the CMUdic 113k/13k split

Figure 24

Fig. 15. Plot of WER vs. n-gram order for several different smoothing algorithms on the CMU dataset.

Figure 25

Table 8. Overview of the Yandex Russian training and testing lexica. Note: this is the first report on this particular dataset

Figure 26

Fig. 16. Plot of WER vs. n-gram order for several different smoothing algorithms on the Yandex-ru dataset.

Figure 27

Table 9. WER% for the CMUdic 113k/13k split using N-best alignments with 1 ⩽ N ⩽ 8, Witten–Bell smoothing, and n-gram order seven. Here, dY means deletions were allowed on the output side only

Figure 28

Table 10. G2P training values determined during brute force search

Figure 29

Table 11. Oracle N-best CMUdict WER results for direct decoding with joint RnnLMs.† Averaged over five randomized trials

Figure 30

Table 12. Oracle N-best Yandex-ru WER results for direct decoding with joint RnnLMs.† Averaged over five randomized trials

Figure 31

Table 13. N-best Yandex-ru WER results for forward n-gram models using various subsets of the training corpus. Results are averaged over five randomized trials

Figure 32

Table 14. Training times for the smallest (15k entries) and largest (113k entries) training sets (Novak et al.2012)