Registry / ai-ml / nemo-text-processing

nemo-text-processing

JSON →
library1.1.0pypypiunverified

NVIDIA NeMo text processing toolkit for ASR and TTS, providing text normalization (TN) and inverse text normalization (ITN) for over 20 languages. Current version 1.1.0 (August 2024). Release cadence is irregular with minor version bumps every few months.

pip install nemo-text-processing
INSTALL
IMPORT
SIG · NEMO-TEXT-PROCESSI
N
nemo-text-processing
ai-mlpythonv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NEMO_TN_EN
from nemo_text_processing.text_normalization.en.utils import NEMO_TN_EN
from nemo_text_processing.text_normalization.en.utils import NEMO_TN_EN

Basic text normalization using English normalizer

from nemo_text_processing.text_normalization.normalize import Normalizer normalizer = Normalizer(input_case='cased', lang='en') text = "He was born on Dec 3rd, 1978." normalized = normalizer.normalize(text, verbose=True) print(normalized) # Output: "He was born on December third, nineteen seventy eight."
nemo_text_processing --version
Debug
Known issues
gotchaThe normalizer expects input_case='cased' or 'lower_cased'; using default may produce unexpected results for certain texts.
fix
Explicitly set input_case parameter.
affects: all
breakingIn v1.0.0, the get_normalizer function moved from nemo_text_processing.text_normalization to nemo_text_processing.utils.
fix
Update import to from nemo_text_processing.utils import get_normalizer
affects: >=1.0.0
gotchaNormalization depends on pynini (WFST library). Installation issues on Windows or Python 3.12+ may cause runtime errors. For Windows, consider installing pynini from conda-forge.
fix
Use conda install -c conda-forge pynini on Windows, or use a Linux environment.
affects: all
Upgrade
Version history
1.1.0latest on PyPI · released Aug 21, 2024
Audit
Dependencies
nemo-toolkitoptionalOptional dependency for full NeMo integration (audio, ASR pipeline)
pyninirequiredRequired for WFST-based TN/ITN operations
Agent activity
28 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
nemo-text-processing — pip install nemo-text-processing · libregistry