You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem appears in revision 215539. I have attached a simple one-line patch
that fixes it.
In method cld::GetNormalizedScore() in cld/compact_lang_det/cldutil.cc, the
loop in line 818 keeps overriding "expected_score" with "kMeanScore[cur_lang *
4 + i]" when it is larger than zero. Therefore, only the last written value is
visible out of the loop and all the other writes and iterations are not
necessary. The patch iterates from the end of "i" and breaks the first time
when "expected_score" is set.
Similar problem also appears in cld::GetReliability(), at line 846.
Original issue reported on code.google.com by pochang0...@gmail.com on 6 Aug 2013 at 8:45
The text was updated successfully, but these errors were encountered:
This issue is about the original cld project (retronym: CLD1), not the current
CLD2 project. cld is largely abandoned now. The performance bug described does
not occur in CLD2. /dick
Original comment by dsi...@google.com on 9 Aug 2013 at 6:28
Original issue reported on code.google.com by
pochang0...@gmail.com
on 6 Aug 2013 at 8:45The text was updated successfully, but these errors were encountered: