зеркало из https://github.com/mozilla/kaldi.git
Merge pull request #664 from kaldi-asr/arpa-warnlimit
arpa2fst: count the bos/eos warninig towards the limit
This commit is contained in:
Коммит
24f553cf04
|
@ -304,8 +304,9 @@ void ArpaLmCompiler::ConsumeNGram(const NGram &ngram) {
|
|||
if ((i > 0 && ngram.words[i] == Options().bos_symbol) ||
|
||||
(i + 1 < ngram.words.size()
|
||||
&& ngram.words[i] == Options().eos_symbol)) {
|
||||
KALDI_WARN << LineReference()
|
||||
<< " skipped: n-gram has invalid BOS/EOS placement";
|
||||
if (ShouldWarn())
|
||||
KALDI_WARN << LineReference()
|
||||
<< " skipped: n-gram has invalid BOS/EOS placement";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче