raotnameh / End-to-end-E2E-Named-Entity-Recognition-from-English-Speech

28 stars 14 forks source link

check failed. Invalid language model path #3

Closed FriedaSmith closed 4 years ago

FriedaSmith commented 4 years ago

Hello. I have a error. Using language model:http://www.openslr.org/resources/11/4-gram.arpa.gz python3 test.py --test-manifest data/ner/dev.csv --model-path models/without_space.pth --batch-size 64 --decoder beam --beam-width 800 --alpha .96 --beta 4 --lm-path lm/4_gram.arpa [ctcdecode/src/scorer.cpp:57] FATAL: "(access(filename, 0)) == (0)" check failed. Invalid language model path

raotnameh commented 4 years ago

Hi @FriedaSmith, As the exception says "the language model path is invalid" means either there is no file at that location or it is not an .arpa file. We have added a language model in the lm directory. Try using the language model at lm/lm.binary. It should work for you. Let me know if it does not work.

FriedaSmith commented 4 years ago

Thank you. I mistakenly wrote lm/4-gram as lm/4_gram. Sorry to bother you.