Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find model_dir #77

Open
awejha opened this issue Jun 24, 2023 · 0 comments
Open

cannot find model_dir #77

awejha opened this issue Jun 24, 2023 · 0 comments

Comments

@awejha
Copy link

awejha commented Jun 24, 2023

I have extracted the kaldi_model directory into "site-packages\kaldi_active_grammar\", however upon trying to execute plain_dictation.py I get the following error:
Traceback (most recent call last):
File "C:\Users\hp\source\repos\kaldi-active-grammar\examples\plain_dictation.py", line 5, in
recognizer = PlainDictationRecognizer() # Or supply non-default model_dir, tmp_dir, or fst_file
File "C:\Users\hp\AppData\Local\Programs\Python\Python310\lib\site-packages\kaldi_active_grammar\plain_dictation.py", line 40, in init
self._compiler = Compiler(model_dir, tmp_dir, cache_fsts=False)
File "C:\Users\hp\AppData\Local\Programs\Python\Python310\lib\site-packages\kaldi_active_grammar\compiler.py", line 266, in init
self.model = Model(model_dir, tmp_dir, tmp_dir_needed=tmp_dir_needed)
File "C:\Users\hp\AppData\Local\Programs\Python\Python310\lib\site-packages\kaldi_active_grammar\model.py", line 192, in init
raise KaldiError("cannot find model_dir: %r" % self.model_dir)
kaldi_active_grammar.KaldiError: cannot find model_dir: 'kaldi_model\'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant