Can extvocab_top/HCLG.fst decode via online2-wav-nnet3-latgen-faster?

143 views
Skip to first unread message

CC ZHOU

unread,
Jul 6, 2019, 12:10:15 AM7/6/19
to kaldi-help

Hi Dan,

I understand  extvocab_top/HCLG.fst is the top graph to be used by make-grammar-fst when creating grammar.

I thought  extvocab_top/HCLG.fst, a ConstFst, can also be decoded by normal decoders, like online2-wav-nnet3-latgen-faster. Thusly, I did experiments and found it fails, reporting segmentation fault error:

Thread 1 "online2-wav-nne" received signal SIGSEGV, Segmentation fault.
kaldi::nnet3::DecodableAmNnetLoopedOnline::LogLikelihood (this=0x7fffffffc1f8, subsampled_frame=0, index=12059025) at decodable-online-looped.cc:255
255       trans_model_.TransitionIdToPdfFast(index));

The figure below is the log when creating extvocab_top/HCLG.fst. And I noticed --nonterm-phones-offset info is added during graph creation, followed by convert program make-grammar-fst.

WeChatWorkScreenshot_1903926c-bca2-4818-849f-22b8ab2803f0.png

Accordingly, I infer the error is related to graph making with nonterm-phones-offset info.

Could you please explain it to me?

Thank you!

CC Zhou

Daniel Povey

unread,
Jul 6, 2019, 12:20:47 AM7/6/19
to kaldi-help
Hi Dan,

I understand  extvocab_top/HCLG.fst is the top graph to be used by make-grammar-fst when creating grammar.

I thought  extvocab_top/HCLG.fst, a ConstFst, can also be decoded by normal decoders, like online2-wav-nnet3-latgen-faster.

No it can't, it's intended to be used only with the grammar-decoding framework.  It has special symbols which are out of range and will cause that segfault.  The checks were removed for speed, so it's just a segfault.
 
Thusly, I did experiments and found it fails, reporting segmentation fault error:

Thread 1 "online2-wav-nne" received signal SIGSEGV, Segmentation fault.
kaldi::nnet3::DecodableAmNnetLoopedOnline::LogLikelihood (this=0x7fffffffc1f8, subsampled_frame=0, index=12059025) at decodable-online-looped.cc:255
255       trans_model_.TransitionIdToPdfFast(index));

The figure below is the log when creating extvocab_top/HCLG.fst. And I noticed --nonterm-phones-offset info is added during graph creation, followed by convert program make-grammar-fst.

WeChatWorkScreenshot_1903926c-bca2-4818-849f-22b8ab2803f0.png

Accordingly, I infer the error is related to graph making with nonterm-phones-offset info.

Could you please explain it to me?

Thank you!

CC Zhou

--
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/0ce9b83e-e015-4900-a2fa-34308799b103%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CC ZHOU

unread,
Jul 7, 2019, 9:42:30 PM7/7/19
to kaldi-help
Thank you for your information!

在 2019年7月6日星期六 UTC+8下午12:20:47,Dan Povey写道:

Hi Dan,

I understand  extvocab_top/HCLG.fst is the top graph to be used by make-grammar-fst when creating grammar.

I thought  extvocab_top/HCLG.fst, a ConstFst, can also be decoded by normal decoders, like online2-wav-nnet3-latgen-faster.

No it can't, it's intended to be used only with the grammar-decoding framework.  It has special symbols which are out of range and will cause that segfault.  The checks were removed for speed, so it's just a segfault.
 
Thusly, I did experiments and found it fails, reporting segmentation fault error:

Thread 1 "online2-wav-nne" received signal SIGSEGV, Segmentation fault.
kaldi::nnet3::DecodableAmNnetLoopedOnline::LogLikelihood (this=0x7fffffffc1f8, subsampled_frame=0, index=12059025) at decodable-online-looped.cc:255
255       trans_model_.TransitionIdToPdfFast(index));

The figure below is the log when creating extvocab_top/HCLG.fst. And I noticed --nonterm-phones-offset info is added during graph creation, followed by convert program make-grammar-fst.

WeChatWorkScreenshot_1903926c-bca2-4818-849f-22b8ab2803f0.png

Accordingly, I infer the error is related to graph making with nonterm-phones-offset info.

Could you please explain it to me?

Thank you!

CC Zhou

--
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.
Reply all
Reply to author
Forward
0 new messages