diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-06-13 14:42:07 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-06-13 14:42:07 +0200 |
commit | dcba237fdda20cb32a5d9890c3beae790db446c2 (patch) | |
tree | b09846c7ed1ea3c0f13748ed13ce49efeca7fecc /decoder/ff_klm.cc | |
parent | d86299e31deb81a836b1b2f2a356a6f4b28eda9e (diff) | |
parent | 34c2c129a376abfc79e76cf2fa1282b89ef605b6 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'decoder/ff_klm.cc')
-rw-r--r-- | decoder/ff_klm.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/decoder/ff_klm.cc b/decoder/ff_klm.cc index 7a84add7..09ef282c 100644 --- a/decoder/ff_klm.cc +++ b/decoder/ff_klm.cc @@ -11,6 +11,7 @@ #include "tdict.h" #include "lm/model.hh" #include "lm/enumerate_vocab.hh" +#include "utils/verbose.h" #include "lm/left.hh" @@ -232,7 +233,8 @@ class KLanguageModelImpl { ngram_ = new Model(filename.c_str(), conf); } order_ = ngram_->Order(); - cerr << "Loaded " << order_ << "-gram KLM from " << filename << " (MapSize=" << cdec2klm_map_.size() << ")\n"; + if (!SILENT) + cerr << "Loaded " << order_ << "-gram KLM from " << filename << " (MapSize=" << cdec2klm_map_.size() << ")\n"; // special handling of beginning / ending sentence markers kSOS_ = MapWord(kCDEC_SOS); @@ -252,7 +254,8 @@ class KLanguageModelImpl { string line; vector<WordID> dummy; int lc = 0; - cerr << " Loading word classes from " << file << " ...\n"; + if (!SILENT) + cerr << " Loading word classes from " << file << " ...\n"; AddWordToClassMapping_(TD::Convert("<s>"), TD::Convert("<s>")); AddWordToClassMapping_(TD::Convert("</s>"), TD::Convert("</s>")); while(in) { |