diff options
Diffstat (limited to 'utils/storage/gen_binary_files.cpp')
-rw-r--r-- | utils/storage/gen_binary_files.cpp | 10 |
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; |