ModuleNotFoundError: No module named 'scripts.asr_language_modeling' #9068
Unanswered
MostafaAhmed98
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to train a kenlm language model on my Arabic cv dataset with the following code:
from scripts.asr_language_modeling.ngram_lm import kenlm_utils
!python scripts/asr_language_modeling/ngram_lm/train_kenlm.py nemo_model_file="path/to/nemo.model" \
train_paths='path_to_manifest \
kenlm_bin_path='kenlm/build/bin' \
kenlm_model_file='/content/language_model' \
ngram_length=6 \
preserve_arpa=true
but unfortunately im facing this error:
from scripts.asr_language_modeling.ngram_lm import kenlm_utils
ModuleNotFoundError: No module named 'scripts.asr_language_modeling'
i have installed the kenlm with the following commands:
!pip install https://github.com/kpu/kenlm/archive/master.zip
!git clone https://github.com/kpu/kenlm
cd kenlm
mkdir build
cd build
cmake ..
make -j 4
make install
and nemo with:
## Install NeMo
BRANCH = 'r1.23.0'
!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]
my root dir is:
/content/NeMo
Beta Was this translation helpful? Give feedback.
All reactions