Pytorch lightning required but not installed for text_normalization
Describe the bug
Installing nemo_toolkit[nemo_text_processing] does not bring in pytorch_lightning but then
from nemo_text_processing.text_normalization import normalize
errors as pytorch_lightning is required to import
Steps/Code to reproduce bug
- on a fresh venv, install
nemo_toolkit[nemo_text_processing] - run
from nemo_text_processing.text_normalization import normalize - See error
Expected behavior
If text processing requires pytorch_lightning it should be installed as a requirement
from nemo_text_processing.text_normalization import normalize should not require pytorch lightning. I was not able to reproduce this error.
I ran python -m pip install git+https://github.com/NVIDIA/NeMo.git@main#egg=nemo_toolkit[nemo_text_processing] then installed pynini with pip, and then ran from nemo_text_processing.text_normalization import normalize
closing due to inactivity