kaldi-active-grammar icon indicating copy to clipboard operation
kaldi-active-grammar copied to clipboard

cannot generate pronunciation error in kag 3.1.0

Open m-spisiak opened this issue 3 years ago • 4 comments
trafficstars

Hi,

I ran into an issue after downloading the new models, date 20211030, they seem to be no longer able to generate pronunciation for unknown words. Error message as follows: kaldi_active_grammar.KaldiError: cannot generate word pronunciation: no generators available

is this on purpose, or am I missing something? Can it be remedied somehow?

Thanks a lot for a reply!

m-spisiak avatar Jan 24 '22 16:01 m-spisiak

I just found out that it is not caused by the new models, but by something else in my newly checked out repository. I have my own repo with kaldi-active-grammar and dragonfly2[kaldi] as dependecies. I will dig deeper tomorrow.

m-spisiak avatar Jan 24 '22 16:01 m-spisiak

I found out that the problem appears with kag v 3.1.0 and dragonfly2 0.34.0 when reverting back to kag 2.1.0 and dragonfly2 0.33.0 the error disappears

any ideas?

m-spisiak avatar Jan 25 '22 15:01 m-spisiak

Make sure g2p_en is installed pip install g2p-en==2.0.0 for offline generate pronunciation.

LexiconCode avatar Jan 25 '22 22:01 LexiconCode

Duplicate of https://github.com/daanzu/kaldi-active-grammar/issues/62

Timoses avatar Jun 19 '23 10:06 Timoses