Shallow Fusion of Weighted Finite-State Transducer and Language Model for Text Normalization

Evelina Bakhturina, Yang Zhang, Boris Ginsburg
3/29/2022
cs.CL

Official code: NVIDIA-NeMo/Speech (18,606 stars, Apache-2.0, last commit 2026-10-20).

Abstract

Text normalization (TN) systems in production are largely rule-based using weighted finite-state transducers (WFST). However, WFST-based systems struggle with ambiguous input when the normalized form is context-dependent. On the other hand, neural text normalization systems can take context into account but they suffer from unrecoverable errors and require labeled normalization datasets, which are hard to collect. We propose a new hybrid approach that combines the benefits of rule-based and neural systems. First, a non-deterministic WFST outputs all normalization candidates, and then a neural language model picks the best one -- similar to shallow fusion for automatic speech recognition. While the WFST prevents unrecoverable errors, the language model resolves contextual ambiguity. The approach is easy to extend and we show it is effective. It achieves comparable or better results than existing state-of-the-art TN models.

View on arXivView PDF

Code Implementations(1)

NVIDIA-NeMo/SpeechOfficial100%
Apache-2.0

A scalable generative AI framework built for researchers and developers working on Large Language Models, Multimodal, and Speech AI (Automatic Speech Recognition and Text-to-Speech)

18,6063,656Jinja, ShellAug 5, 2019yesterdayApache-2.0
asrdeeplearninggenerative-aimachine-translationneural-networks+5 more

Similar Papers

Cite this paper

@article{bakhturina2022shallow,
  title  = {Shallow Fusion of Weighted Finite-State Transducer and Language Model for Text Normalization},
  author = {Evelina Bakhturina and Yang Zhang and Boris Ginsburg},
  year   = {2022},
  eprint = {2203.15917},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.15917}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.15917.svg)](https://codeofpaper.com/paper/2203.15917)

Discussion