summaryrefslogtreecommitdiffstats
path: root/utils/training/estimate_interpolation.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-06 15:02:27 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-06 15:02:27 +0800
commit777cdb83b8cca6aa6f2c0e6862531160b984eada (patch)
treea678a6b083ec860ad961cd37c90ca5f793a626af /utils/training/estimate_interpolation.cpp
parentf15a90da963d90d326a9ff7cd506d8962bb5d4e9 (diff)
downloadlibpinyin-777cdb83b8cca6aa6f2c0e6862531160b984eada.tar.gz
libpinyin-777cdb83b8cca6aa6f2c0e6862531160b984eada.tar.xz
libpinyin-777cdb83b8cca6aa6f2c0e6862531160b984eada.zip
refine utils/training
Diffstat (limited to 'utils/training/estimate_interpolation.cpp')
-rw-r--r--utils/training/estimate_interpolation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/training/estimate_interpolation.cpp b/utils/training/estimate_interpolation.cpp
index 426214e..0dc1542 100644
--- a/utils/training/estimate_interpolation.cpp
+++ b/utils/training/estimate_interpolation.cpp
@@ -93,19 +93,19 @@ int main(int argc, char * argv[]){
//gb_char binary file
MemoryChunk * chunk = new MemoryChunk;
- chunk->load("../../data/gb_char.bin");
+ chunk->load("gb_char.bin");
phrase_index.load(1, chunk);
//gbk_char binary file
chunk = new MemoryChunk;
- chunk->load("../../data/gbk_char.bin");
+ chunk->load("gbk_char.bin");
phrase_index.load(2, chunk);
Bigram bigram;
- bigram.attach("../../data/bigram.db", ATTACH_READONLY);
+ bigram.attach("bigram.db", ATTACH_READONLY);
Bigram deleted_bigram;
- deleted_bigram.attach("../../data/deleted_bigram.db", ATTACH_READONLY);
+ deleted_bigram.attach("deleted_bigram.db", ATTACH_READONLY);
GArray * deleted_items = g_array_new(FALSE, FALSE, sizeof(phrase_token_t));
deleted_bigram.get_all_items(deleted_items);