summaryrefslogtreecommitdiffstats
path: root/utils/training
diff options
context:
space:
mode:
Diffstat (limited to 'utils/training')
-rw-r--r--utils/training/eval_correction_rate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp
index 85a034b..dd4d434 100644
--- a/utils/training/eval_correction_rate.cpp
+++ b/utils/training/eval_correction_rate.cpp
@@ -66,7 +66,7 @@ bool get_best_match(PinyinLookup2 * pinyin_lookup,
/* initialize constraints. */
CandidateConstraints constraints = g_array_new
- (FALSE, FALSE, sizeof(lookup_constraint_t));
+ (TRUE, FALSE, sizeof(lookup_constraint_t));
g_array_set_size(constraints, keys->len);
for ( size_t i = 0; i < constraints->len; ++i ) {
lookup_constraint_t * constraint = &g_array_index