summaryrefslogtreecommitdiffstats
path: root/utils/training/gen_unigram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/training/gen_unigram.cpp')
-rw-r--r--utils/training/gen_unigram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/training/gen_unigram.cpp b/utils/training/gen_unigram.cpp
index bb9b6b3..fe63e36 100644
--- a/utils/training/gen_unigram.cpp
+++ b/utils/training/gen_unigram.cpp
@@ -64,7 +64,7 @@ bool generate_unigram(const pinyin_table_info_t * phrase_files) {
int result = phrase_index.get_range(i, range);
if ( result == ERROR_OK ) {
for (size_t token = range.m_range_begin;
- token <= range.m_range_end; ++token) {
+ token < range.m_range_end; ++token) {
phrase_index.add_unigram_frequency(token, freq);
}
}