Address review comments
This commit is contained in:
parent
6dba6d4a95
commit
a323973521
|
@ -219,7 +219,7 @@ double Scorer::get_sent_log_prob(const std::vector<std::string>& words)
|
||||||
for (int win_start = 0, win_end = 1; win_end <= sent_len+1; ++win_end) {
|
for (int win_start = 0, win_end = 1; win_end <= sent_len+1; ++win_end) {
|
||||||
const int win_size = win_end - win_start;
|
const int win_size = win_end - win_start;
|
||||||
bool bos = win_size < max_order_;
|
bool bos = win_size < max_order_;
|
||||||
bool eos = win_end == sent_len + 1;
|
bool eos = win_end == (sent_len + 1);
|
||||||
|
|
||||||
// The last window goes one past the end of the words vector as passing the
|
// The last window goes one past the end of the words vector as passing the
|
||||||
// EOS=true flag counts towards the length of the scored sentence, so we
|
// EOS=true flag counts towards the length of the scored sentence, so we
|
||||||
|
|
Loading…
Reference in New Issue