summaryrefslogtreecommitdiffstats
path: root/utils/storage/gen_binary_files.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-06 14:11:44 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-06 14:11:44 +0800
commit6504338199d28764aae9a1cefe2e14cf02d4287e (patch)
tree5749215176c4952404e18e8e5b9e35c2f27db8f6 /utils/storage/gen_binary_files.cpp
parent589b10be816c4264fc1663f4680e4d71861f1682 (diff)
downloadlibpinyin-6504338199d28764aae9a1cefe2e14cf02d4287e.tar.gz
libpinyin-6504338199d28764aae9a1cefe2e14cf02d4287e.tar.xz
libpinyin-6504338199d28764aae9a1cefe2e14cf02d4287e.zip
refine utils/storage
Diffstat (limited to 'utils/storage/gen_binary_files.cpp')
-rw-r--r--utils/storage/gen_binary_files.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp
index 14aa973..90bc0c0 100644
--- a/utils/storage/gen_binary_files.cpp
+++ b/utils/storage/gen_binary_files.cpp
@@ -29,7 +29,7 @@ void print_help(){
int main(int argc, char * argv[]){
int i = 1;
- const char * table_dir = "../../data";
+ const char * table_dir = ".";
setlocale(LC_ALL, "");
while ( i < argc ){
@@ -90,24 +90,24 @@ int main(int argc, char * argv[]){
MemoryChunk * new_chunk = new MemoryChunk;
pinyinlargetable.store(new_chunk);
- new_chunk->save("../../data/pinyin_index.bin");
+ new_chunk->save("pinyin_index.bin");
pinyinlargetable.load(new_chunk);
new_chunk = new MemoryChunk;
phraselargetable.store(new_chunk);
- new_chunk->save("../../data/phrase_index.bin");
+ new_chunk->save("phrase_index.bin");
phraselargetable.load(new_chunk);
phrase_index.compat();
new_chunk = new MemoryChunk;
phrase_index.store(1, new_chunk);
- new_chunk->save("../../data/gb_char.bin");
+ new_chunk->save("gb_char.bin");
phrase_index.load(1, new_chunk);
new_chunk = new MemoryChunk;
phrase_index.store(2, new_chunk);
- new_chunk->save("../../data/gbk_char.bin");
+ new_chunk->save("gbk_char.bin");
phrase_index.load(2, new_chunk);
return 0;