summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-05-21 16:14:42 +0800
committerPeng Wu <alexepico@gmail.com>2015-05-21 16:14:42 +0800
commitf855b47d291124256fa4c9b1ea2cef056db4020b (patch)
treeaeb936b2fa0d5791b2c41754df19490521e6b755 /utils
parentc68cd44758b6ce03cff661fca83cf2c72aef8991 (diff)
downloadlibpinyin-f855b47d291124256fa4c9b1ea2cef056db4020b.zip
libpinyin-f855b47d291124256fa4c9b1ea2cef056db4020b.tar.gz
libpinyin-f855b47d291124256fa4c9b1ea2cef056db4020b.tar.xz
update storage tools
Diffstat (limited to 'utils')
-rw-r--r--utils/storage/export_interpolation.cpp4
-rw-r--r--utils/storage/import_interpolation.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/storage/export_interpolation.cpp b/utils/storage/export_interpolation.cpp
index c43eefb..8521901 100644
--- a/utils/storage/export_interpolation.cpp
+++ b/utils/storage/export_interpolation.cpp
@@ -45,7 +45,7 @@ int main(int argc, char * argv[]){
FILE * output = stdout;
const char * bigram_filename = SYSTEM_BIGRAM;
- SystemTableInfo system_table_info;
+ SystemTableInfo2 system_table_info;
bool retval = system_table_info.load(SYSTEM_TABLE_INFO);
if (!retval) {
@@ -56,7 +56,7 @@ int main(int argc, char * argv[]){
FacadePhraseIndex phrase_index;
const pinyin_table_info_t * phrase_files =
- system_table_info.get_table_info();
+ system_table_info.get_default_tables();
if (!load_phrase_index(phrase_files, &phrase_index))
exit(ENOENT);
diff --git a/utils/storage/import_interpolation.cpp b/utils/storage/import_interpolation.cpp
index 205a27a..f642b56 100644
--- a/utils/storage/import_interpolation.cpp
+++ b/utils/storage/import_interpolation.cpp
@@ -250,7 +250,7 @@ int main(int argc, char * argv[]){
exit(EINVAL);
}
- SystemTableInfo system_table_info;
+ SystemTableInfo2 system_table_info;
gchar * filename = g_build_filename(table_dir, SYSTEM_TABLE_INFO, NULL);
bool retval = system_table_info.load(filename);
@@ -273,7 +273,7 @@ int main(int argc, char * argv[]){
FacadePhraseIndex phrase_index;
const pinyin_table_info_t * phrase_files =
- system_table_info.get_table_info();
+ system_table_info.get_default_tables();
if (!load_phrase_index(phrase_files, &phrase_index))
exit(ENOENT);