Skip to content

Commit

Permalink
Have query print file format information to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jul 20, 2016
1 parent 93276de commit a309ac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lm/query_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ int main(int argc, char *argv[]) {
using namespace lm::ngram;
ModelType model_type;
if (RecognizeBinary(file, model_type)) {
std::cerr << "This binary file contains " << lm::ngram::kModelNames[model_type] << "." << std::endl;
switch(model_type) {
case PROBING:
Query<lm::ngram::ProbingModel>(file, config, sentence_context, printer);
Expand Down

0 comments on commit a309ac0

Please sign in to comment.