summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libpinyin.ver1
-rw-r--r--src/storage/phrase_index.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libpinyin.ver b/src/libpinyin.ver
index 9f89c62..b53033c 100644
--- a/src/libpinyin.ver
+++ b/src/libpinyin.ver
@@ -65,6 +65,7 @@ LIBPINYIN {
pinyin_get_pinyin_offset;
pinyin_get_left_character_offset;
pinyin_get_right_character_offset;
+ pinyin_get_character_offset;
pinyin_get_n_phrase;
pinyin_get_phrase_token;
pinyin_get_full_pinyin_auxiliary_text;
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 86fb8e3..6ac1d42 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -156,7 +156,7 @@ public:
return 0;
#endif
- /* used preprocessor to avoid zero freq, in gen_chewing_table. */
+ /* used preprocessor to avoid zero freq, in gen_pinyin_table. */
gfloat retval = matched / (gfloat) total_freq;
return retval;
}