Skip to content

Commit

Permalink
bug fix saving parameter file
Browse files Browse the repository at this point in the history
  • Loading branch information
phikoehn committed May 31, 2016
1 parent 6d4ce2e commit d4a1e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ttables.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class TTable {
double max_p = -1;
for (auto& it : cpd)
if (it.second > max_p) max_p = it.second;
const double threshold = max_p * BEAM_THRESHOLD;
const double threshold = - log(max_p) * BEAM_THRESHOLD;
for (auto& it : cpd) {
const std::string& b = d.Convert(it.first);
double c = log(it.second);
Expand Down

0 comments on commit d4a1e82

Please sign in to comment.