--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/3fbaf9c1-f6fa-4c16-b5cb-1bdc7a19faa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
......
--> data/lang_nosp_grammar1/L.fst is olabel sorted--> data/lang_nosp_grammar1/L_disambig.fst is olabel sorted--> SUCCESS [validating lang directory data/lang_nosp_grammar1]tree-info exp/mono/treetree-info exp/mono/treefstpushspecialfstminimizeencodedfstdeterminizestar --use-log=truefsttablecompose data/lang_nosp_grammar1/L_disambig.fst data/lang_nosp_grammar1/G.fstfstisstochastic data/lang_nosp_grammar1/tmp/LG.fst-0.0274324 -0.0283582[info]: LG not stochastic.fstcomposecontext --nonterm-phones-offset=364 --context-size=1 --central-position=0 --read-disambig-syms=data/lang_nosp_grammar1/phones/disambig.int --write-disambig-syms=data/lang_nosp_grammar1/tmp/disambig_ilabels_1_0.int data/lang_nosp_grammar1/tmp/ilabels_1_0.84902 data/lang_nosp_grammar1/tmp/LG.fstERROR (fstcomposecontext[5.5]:main():fstcomposecontext.cc:155) Grammar-fst graph creation only supports models with left-biphone context. (--nonterm-phones-offset option was supplied).
[ Stack-Trace: ]0 libkaldi-base.dylib 0x00000001055d2a6f kaldi::KaldiGetStackTrace() + 631 libkaldi-base.dylib 0x00000001055d27e2 kaldi::MessageLogger::LogMessage() const + 3542 fstcomposecontext 0x0000000104601c98 kaldi::MessageLogger::LogAndThrow::operator=(kaldi::MessageLogger const&) + 243 fstcomposecontext 0x00000001046017d5 main + 18454 libdyld.dylib 0x00007fff6197d3d5 start + 15 ??? 0x0000000000000008 0x0 + 8
kaldi::KaldiFatalErrorERROR: FstHeader::Read: Bad FST header: standard inputmv: rename data/lang_nosp_grammar1/tmp/ilabels_1_0.84902 to data/lang_nosp_grammar1/tmp/ilabels_1_0: No such file or directoryfstisstochastic data/lang_nosp_grammar1/tmp/CLG_1_0.fstERROR: FstHeader::Read: Bad FST header: data/lang_nosp_grammar1/tmp/CLG_1_0.fstERROR (fstisstochastic[5.5]:ReadFstKaldiGeneric():kaldi-fst-io.cc:53) Reading FST: error reading FST header from data/lang_nosp_grammar1/tmp/CLG_1_0.fst
[ Stack-Trace: ]0 libkaldi-base.dylib 0x00000001053bfa6f kaldi::KaldiGetStackTrace() + 631 libkaldi-base.dylib 0x00000001053bf7e2 kaldi::MessageLogger::LogMessage() const + 3542 libkaldi-fstext.dylib 0x0000000104fc1358 kaldi::MessageLogger::LogAndThrow::operator=(kaldi::MessageLogger const&) + 243 libkaldi-fstext.dylib 0x0000000104fc1830 fst::ReadFstKaldiGeneric(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) + 9604 fstisstochastic 0x00000001043e80fd main + 2855 libdyld.dylib 0x00007fff6197d3d5 start + 1
kaldi::KaldiFatalError[info]: CLG not stochastic.make-h-transducer --nonterm-phones-offset=364 --disambig-syms-out=exp/mono/grammar1/disambig_tid.int --transition-scale=1.0 data/lang_nosp_grammar1/tmp/ilabels_1_0 exp/mono/tree exp/mono/final.mdlERROR (make-h-transducer[5.5]:Input():kaldi-io.cc:756) Error opening input stream data/lang_nosp_grammar1/tmp/ilabels_1_0
[ Stack-Trace: ]0 libkaldi-base.dylib 0x000000010f43ea6f kaldi::KaldiGetStackTrace() + 631 libkaldi-base.dylib 0x000000010f43e7e2 kaldi::MessageLogger::LogMessage() const + 3542 libkaldi-util.dylib 0x000000010f195928 kaldi::MessageLogger::LogAndThrow::operator=(kaldi::MessageLogger const&) + 243 libkaldi-util.dylib 0x000000010f19f728 kaldi::Input::Input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool*) + 1524 make-h-transducer 0x000000010ce2b157 main + 4395 libdyld.dylib 0x00007fff6197d3d5 start + 16 ??? 0x0000000000000007 0x0 + 7
kaldi::KaldiFatalError
It would work for monophone systems without modification, IIRC.
On Thu, Jul 4, 2019 at 11:16 AM Ziye Fan <fanzi...@gmail.com> wrote:
Dear developers, hello. I know that the grammar-fst (mentioned here) is designed to work with left-biphone acoustic--models, but I was still wondering if it is possible to make the grammar-fst be used with monophone systems? And ifit does, what modifications should be made to make it happen and where to start with?Thanks.
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/eea0d484-1b13-4923-bda6-212cd3584d95%40googlegroups.com.
make-h-transducer --nonterm-phones-offset=364 --disambig-syms-out=exp/mono/grammar1/disambig_tid.int --transition-scale=1.0 data/lang_nosp_grammar1/tmp/ilabels_1_0 exp/mono/tree exp/mono/final.mdl
ERROR (make-h-transducer[5.5]:GetHmmAsFsa():hmm-utils.cc:41) Context size mismatch, ilabel-info [from context FST is 2, context-dependency object expects 1
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/57262b12-5097-4d98-8ad1-07c731257220%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/4cc0452b-fb23-46e2-b520-ee693f0bff71%40googlegroups.com.
The framework would have been substantially simpler in a monophone system; the left-context phones would not be needed. In fact, it would be possible to accomplish the monophone case using only OpenFst's ReplaceFst, or a much simpler version of the GrammarFst object that does the same as OpenFst's ReplaceFst, but has state-ids that are pairs of integers like GrammarFst does. (This saves memory as you don't have to store huge state tables or cached copies of FSTs).Dan
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/0b6b7cd5-83aa-4758-aeac-4c9dee3a2551%40googlegroups.com.
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/d8e1eba6-2346-4813-847c-a5a1cea5782an%40googlegroups.com.
I'm a bit puzzled about left-context-phones too. Is there a way to use grammar-fst in systems that don't have left-context, say, like in TLG, without changing the original grammar-fst code? Or, in systems without left-context, can we just go ahead with the grammar-fst code, ignoring left-context-phones and just assuming they consist of only #nonterm_bos?
I hope my previous message was clear, but to expand on that—if I'm aiming to implement dynamic expansion using grammar-fst within a TLG system, could I potentially fabricate a left_context_phones.txt that only contains #nonterm_bos, and then proceed to construct the decoding graph using the mini_librispeech/s5 recipe? An additional question is about handling the #nonterm symbols in my tokens list: should I treat them as regular tokens, disambiguation symbols, or is there some other specific way they need to be handled?
Any suggestions or references for making such modifications would be invaluable.
It would be great if you can help me! Thank you in advance!
Best,