ami/s5b compile-train-graphs ERROR

377 views
Skip to first unread message

Marta QL

unread,
Feb 15, 2018, 9:40:05 PM2/15/18
to kaldi-help
I am following experiment ami version s5b as a tutorial to learn kaldi. 
My problem is at the monophone training step. 
I have tried looking at sym2int.pl, but I am not sure what is going wrong exactly.
I would appreciate some help. 



[ Stack-Trace: ]


kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const*)

kaldi::MessageLogger::~MessageLogger()

kaldi::SequentialTableReaderArchiveImpl<kaldi::BasicVectorHolder<int> >::~SequentialTableReaderArchiveImpl()

kaldi::SequentialTableReaderArchiveImpl<kaldi::BasicVectorHolder<int> >::~SequentialTableReaderArchiveImpl()

kaldi::SequentialTableReader<kaldi::BasicVectorHolder<int> >::~SequentialTableReader()

main

__libc_start_main

_start


terminate called after throwing an instance of 'std::runtime_error'

  what():  

# Accounting: time=1 threads=1

# Ended (code 134) at Fri Feb 16 01:29:22 UTC 2018, elapsed time 1 seconds

# compile-train-graphs --read-disambig-syms=data/lang/phones/disambig.int exp/ihm/mono/tree exp/ihm/mono/0.mdl data/lang/L.fst "ark:sym2int.pl --map-oov  -f 2- data/lang/words.txt < data/ihm/train_15k/split5/5/text|" "ark:|gzip -c >exp/ihm/mono/fsts.5.gz" 

# Started at Fri Feb 16 01:29:21 UTC 2018

#

compile-train-graphs --read-disambig-syms=data/lang/phones/disambig.int exp/ihm/mono/tree exp/ihm/mono/0.mdl data/lang/L.fst 'ark:sym2int.pl --map-oov  -f 2- data/lang/words.txt < data/ihm/train_15k/split5/5/text|' 'ark:|gzip -c >exp/ihm/mono/fsts.5.gz' 

the --map-oov option requires an argument at /home/ubuntu/kaldi/egs/ami/s5b/utils//sym2int.pl line 27.

LOG (compile-train-graphs[5.3.116~1-ca5f]:main():compile-train-graphs.cc:147) compile-train-graphs: succeeded for 0 graphs, failed for 0

WARNING (compile-train-graphs[5.3.116~1-ca5f]:Close():kaldi-io.cc:512) Pipe sym2int.pl --map-oov  -f 2- data/lang/words.txt < data/ihm/train_15k/split5/5/text| had nonzero return status 65280

ERROR (compile-train-graphs[5.3.116~1-ca5f]:~SequentialTableReaderArchiveImpl():util/kaldi-table-inl.h:678) TableReader: error detected closing archive 'sym2int.pl --map-oov  -f 2- data/lang/words.txt < data/ihm/train_15k/split5/5/text|'


[ Stack-Trace: ]


kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const*)

kaldi::MessageLogger::~MessageLogger()

kaldi::SequentialTableReaderArchiveImpl<kaldi::BasicVectorHolder<int> >::~SequentialTableReaderArchiveImpl()

kaldi::SequentialTableReaderArchiveImpl<kaldi::BasicVectorHolder<int> >::~SequentialTableReaderArchiveImpl()

kaldi::SequentialTableReader<kaldi::BasicVectorHolder<int> >::~SequentialTableReader()

main

__libc_start_main

_start


terminate called after throwing an instance of 'std::runtime_error'

  what():  

# Accounting: time=1 threads=1

# Ended (code 134) at Fri Feb 16 01:29:22 UTC 2018, elapsed time 1 seconds

Daniel Povey

unread,
Feb 15, 2018, 9:43:07 PM2/15/18
to kaldi-help
You should have ran
utils/prepare_lang.sh data/local/dict "<unk>" data/local/lang data/lang

and your data/lang should look like this:

a08:s5b: cat data/lang/oov.int 
6
a08:s5b: cat data/lang/oov.txt
<unk>


I think you must have changed something, or something went wrong there.


--
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+unsubscribe@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/176b5b44-202b-4aee-9165-f6ff7031da26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marta QL

unread,
Feb 16, 2018, 1:33:34 AM2/16/18
to kaldi-help
I understand the problem now. 

I ran 
utils/prepare_lang.sh data/local/dict "<unk>" data/local/lang data/lang
and everything seems to be working fine now. 

Thank you for your help.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages