Failed to read token [started at file position -1] at nnet2

370 views
Skip to first unread message

Iris Luo

unread,
Aug 26, 2017, 11:36:41 PM8/26/17
to kaldi-help
Hi, I'm an undergraduate from China. Recently I have met a problem when running the nnet2 script.
Here is the error message:

# nnet-combine-fast --initial-model=100000 --num-lbfgs-iters=40 --use-gpu=no --num-threads=8 --verbose=3 --minibatch-size=512 "" ark:exp/nnet2_online/nnet_ms_a/egs/combine.egs exp/nnet2_online/nnet_ms_a/final.mdl 
# Started at Sun Aug 27 11:00:09 CST 2017
#
nnet-combine-fast --initial-model=100000 --num-lbfgs-iters=40 --use-gpu=no --num-threads=8 --verbose=3 --minibatch-size=512 '' ark:exp/nnet2_online/nnet_ms_a/egs/combine.egs exp/nnet2_online/nnet_ms_a/final.mdl
ERROR (nnet-combine-fast:ExpectToken():io-funcs.cc:197) Failed to read token [started at file position -1], expected <TransitionModel>

[ Stack-Trace: ]
nnet-combine-fast() [0x9c660a]
kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const*)
kaldi::MessageLogger::~MessageLogger()
kaldi::ExpectToken(std::istream&, bool, char const*)
kaldi::TransitionModel::Read(std::istream&, bool)
main
__libc_start_main
_start


# Accounting: time=0 threads=1
# Ended (code 255) at Sun Aug 27 11:00:09 CST 2017, elapsed time 0 seconds

I'll be very grateful if someone can give me some advice.
Auto Generated Inline Image 1

Daniel Povey

unread,
Aug 26, 2017, 11:39:24 PM8/26/17
to kaldi-help
there is a scripting problem.  In the place in the command line where the arg is "", a list of input models is expected.

--
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.
For more options, visit https://groups.google.com/d/optout.

Iris Luo

unread,
Aug 27, 2017, 3:06:22 AM8/27/17
to kaldi...@googlegroups.com
Thanks. It helps.

You received this message because you are subscribed to a topic in the Google Groups "kaldi-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaldi-help/0idD0x0rqOI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaldi-help+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages