From a32397352125d50abf69566b6515db3f40339612 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Fri, 27 Sep 2019 11:02:22 +0200 Subject: [PATCH] Address review comments --- native_client/ctcdecode/scorer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native_client/ctcdecode/scorer.cpp b/native_client/ctcdecode/scorer.cpp index ae0b98c0..72e87d23 100644 --- a/native_client/ctcdecode/scorer.cpp +++ b/native_client/ctcdecode/scorer.cpp @@ -219,7 +219,7 @@ double Scorer::get_sent_log_prob(const std::vector& words) for (int win_start = 0, win_end = 1; win_end <= sent_len+1; ++win_end) { const int win_size = win_end - win_start; 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 // EOS=true flag counts towards the length of the scored sentence, so we