diff options
author | Peng Wu <alexepico@gmail.com> | 2012-11-15 11:44:37 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-11-15 11:44:37 +0800 |
commit | d25206aa335a7b6735e704423877bdc64083548b (patch) | |
tree | 2ab1fe24e068167f9d12c70ce925dd7ff1ba5ecd /utils/training | |
parent | b102f5a4314f05352b997892647d721daad89b09 (diff) | |
download | libpinyin-d25206aa335a7b6735e704423877bdc64083548b.tar.gz libpinyin-d25206aa335a7b6735e704423877bdc64083548b.tar.xz libpinyin-d25206aa335a7b6735e704423877bdc64083548b.zip |
fixes constraints array
Diffstat (limited to 'utils/training')
-rw-r--r-- | utils/training/eval_correction_rate.cpp | 2 |
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 |