NVIDIA / OpenSeq2Seq

Toolkit for efficient experimentation with Speech Recognition, Text2Speech and NLP
https://nvidia.github.io/OpenSeq2Seq
Apache License 2.0
1.55k stars 369 forks source link

ModuleNotFoundError: No module named 'ctc_decoder' while running demo_sreaming_asr.py #516

Open upendrasingh18 opened 4 years ago

upendrasingh18 commented 4 years ago

while running demo_streaming_asr.py getting error ModuleNotFoundError: No module named 'ctc_decoder'

WillemGooderham1 commented 4 years ago

You have to build the ctc_decoder. The process is available here https://nvidia.github.io/OpenSeq2Seq/html/installation.html#installation-speech

ghost commented 4 years ago

@WillemGooderham1 The installation of decoders with the following command: bash scripts/install_decoders.sh is failing for me with this output: installing_decoders_output.txt [Note: I am trying to install Baidu CTC decoder]

And while trying to run python scripts/ctc_decoders_test.pyto check installation, I run into same error as the OP.

My machine: Ubuntu 18.04

WillemGooderham1 commented 4 years ago

Your install is failing because you don't have swig installed on your environment (or it isn't found)

ghost commented 4 years ago

But I don't see swig mentioned in the installation documents or the requirements.txt file..

computervisionpro commented 3 years ago

Hi,

I have windows operating system. I have installed swig and added swig to my environment path. I have ctc_decoder module but no swig_decoders. Can anyone help me where I can find it?

ModuleNotFoundError: No module named 'swig_decoders'