arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.04145cs.CLcs.NE
收藏

VietNormalizer:一个用于TTS和NLP应用的越南文文本规范化开源Python库

VietNormalizer: An Open-Source, Dependency-Free Python Library for Vietnamese Text Normalization in TTS and NLP Applications

Australian Catholic University(澳大利亚天主教大学);FPT University(FPT大学);ICMS;RMIT University(拉筹伯大学);NGHI Studio(NGHI工作室);Phuong Hai JSC(Phuong Hai公司)

Hung Vu Nguyen, Loan Do, Thanh Ngoc Nguyen, Ushik Shrestha Khwakhali, Thanh Pham, Vinh Do, Charlotte Nguyen, Hien Nguyen

AI总结:

VietNormalizer是一个开源Python库,提供无依赖的越南文文本规范化功能,支持TTS和NLP应用,通过统一的规则流程处理多种非标准词汇转换。

摘要:

我们介绍了VietNormalizer1,一个开源、无依赖的Python库,用于越南文文本规范化,旨在用于语音合成(TTS)和自然语言处理(NLP)应用。越南文文本规范化是一个关键但被忽视的预处理步骤:现实中的越南文文本充斥着非标准词汇(NSWs),包括数字、日期、时间、货币金额、百分比、缩写和外语术语,所有这些都必须在TTS合成或下游语言处理之前转换为完全可发音的越南文单词。现有的越南文规范化工具要么需要大量的神经依赖,只覆盖NSW类的狭窄子集,要么被嵌入到更大的NLP工具包中,没有独立安装的可能性。VietNormalizer通过一个统一的基于规则的流程来解决这些问题:(1)将任意整数、小数和大数字转换为越南文单词;(2)将日期和时间规范化为 spoken Vietnamese 形式;(3)处理VND和USD货币金额;(4)扩展百分比;(5)通过可定制的CSV字典解析缩写;(6)将非越南语借词和外语术语转写为越南语音近似值;(7)执行Unicode规范化和表情符号/特殊字符删除。所有正则表达式模式都在初始化时预编译,使高吞吐量的批量处理成为可能,具有最小的内存开销和没有GPU或外部API依赖。该库可通过pip install vietnormalizer安装,可在PyPI和GitHub上获得,网址为https://github.com/nghimestudio/vietnormalizer,并以MIT许可证发布。我们讨论了设计决策、现有方法的局限性以及基于规则的规范化范式在其他低资源声调和黏着语言中的通用性。

英文摘要:

We present VietNormalizer1, an open-source, zero-dependency Python library for Vietnamese text normalization targeting Text-to-Speech (TTS) and Natural Language Processing (NLP) applications. Vietnamese text normalization is a critical yet underserved preprocessing step: real-world Vietnamese text is densely populated with non-standard words (NSWs), including numbers, dates, times, currency amounts, percentages, acronyms, and foreign-language terms, all of which must be converted to fully pronounceable Vietnamese words before TTS synthesis or downstream language processing. Existing Vietnamese normalization tools either require heavy neural dependencies while covering only a narrow subset of NSW classes, or are embedded within larger NLP toolkits without standalone installability. VietNormalizer addresses these gaps through a unified, rule-based pipeline that: (1) converts arbitrary integers, decimals, and large numbers to Vietnamese words; (2) normalizes dates and times to their spoken Vietnamese forms; (3) handles VND and USD currency amounts; (4) expands percentages; (5) resolves acronyms via a customizable CSV dictionary; (6) transliterates non-Vietnamese loanwords and foreign terms to Vietnamese phonetic approximations; and (7) performs Unicode normalization and emoji/special-character removal. All regular expression patterns are pre-compiled at initialization, enabling high-throughput batch processing with minimal memory overhead and no GPU or external API dependency. The library is installable via pip install vietnormalizer, available on PyPI and GitHub at https://github.com/nghimestudio/vietnormalizer, and released under the MIT license. We discuss the design decisions, limitations of existing approaches, and the generalizability of the rule-based normalization paradigm to other low-resource tonal and agglutinative languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑