Skip to content

Commit

Permalink
Fix lmplz complaint about vocab_pad
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Feb 11, 2014
1 parent 70d48ae commit d983a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm/builder/lmplz_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) {
}
#endif

if (vm.count("vocab_pad") && !pipeline.initial_probs.interpolate_unigrams) {
if (pipeline.vocab_size_for_unk && !pipeline.initial_probs.interpolate_unigrams) {
std::cerr << "--vocab_pad requires --interpolate_unigrams" << std::endl;
return 1;
}
Expand Down

0 comments on commit d983a14

Please sign in to comment.