daanzu / kaldi-active-grammar

Python Kaldi speech recognition with grammars that can be set active/inactive dynamically at decode-time
GNU Affero General Public License v3.0
339 stars 50 forks source link

full_example.py failed with no attribute 'init_decoder' #46

Closed zuheo23 closed 3 years ago

zuheo23 commented 3 years ago

I have the following problem running the full_example.py

setup:

`python full_example.py

Kaldi-Active-Grammar v1.8.3: If this free, open source engine is valuable to you, please consider donating https://github.com/daanzu/kaldi-active-grammar Disable message by calling kaldi_active_grammar.disable_donation_message() Traceback (most recent call last): File "full_example.py", line 12, in decoder = compiler.init_decoder() AttributeError: 'Compiler' object has no attribute 'init_decoder'`

daanzu commented 3 years ago

Ah, sorry, that is because of some changes as I prepare to release v2.0 (Real Soon Now). Try checking out the repo's v1.8.3 tag and it should work I think. Let me know if not!

daanzu commented 3 years ago

https://github.com/daanzu/kaldi-active-grammar/blob/b39d21035f3baff574ba36daf73e48e227cbaedc/examples/full_example.py

zuheo23 commented 3 years ago

The script runs with v1.8.3. Thanks.