//init phrase table
PhraseLargeTable phrase_table;
MemoryChunk * chunk = new MemoryChunk;
- chunk->load("../../data/phrase_index.bin");
+ chunk->load("phrase_index.bin");
phrase_table.load(chunk);
//init phrase index
FacadePhraseIndex phrase_index;
chunk = new MemoryChunk;
- chunk->load("../../data/gb_char.bin");
+ chunk->load("gb_char.bin");
phrase_index.load(1, chunk);
chunk = new MemoryChunk;
- chunk->load("../../data/gbk_char.bin");
+ chunk->load("gbk_char.bin");
phrase_index.load(2, chunk);
//init bi-gram
Bigram system_bigram;
- system_bigram.attach("../../data/bigram.db", ATTACH_READONLY);
+ system_bigram.attach("bigram.db", ATTACH_READONLY);
Bigram user_bigram;
//init phrase lookup
//init phrase table
g_phrases = new PhraseLargeTable;
- FILE * gb_file = fopen("../../data/gb_char.table", "r");
+ FILE * gb_file = fopen("gb_char.table", "r");
if ( gb_file == NULL ){
fprintf(stderr, "can't open gb_char.table!\n");
exit(ENOENT);
g_phrases->load_text(gb_file);
fclose(gb_file);
- FILE * gbk_file = fopen("../../data/gbk_char.table", "r");
+ FILE * gbk_file = fopen("gbk_char.table", "r");
if ( gbk_file == NULL ){
fprintf(stderr, "can't open gbk_char.table!\n");
exit(ENOENT);