diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-06 15:02:27 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-06 15:02:27 +0800 |
commit | 777cdb83b8cca6aa6f2c0e6862531160b984eada (patch) | |
tree | a678a6b083ec860ad961cd37c90ca5f793a626af /utils/training/eval_correction_rate.cpp | |
parent | f15a90da963d90d326a9ff7cd506d8962bb5d4e9 (diff) | |
download | libpinyin-777cdb83b8cca6aa6f2c0e6862531160b984eada.tar.gz libpinyin-777cdb83b8cca6aa6f2c0e6862531160b984eada.tar.xz libpinyin-777cdb83b8cca6aa6f2c0e6862531160b984eada.zip |
refine utils/training
Diffstat (limited to 'utils/training/eval_correction_rate.cpp')
-rw-r--r-- | utils/training/eval_correction_rate.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp index 2db01c6..d658d4b 100644 --- a/utils/training/eval_correction_rate.cpp +++ b/utils/training/eval_correction_rate.cpp @@ -105,30 +105,30 @@ bool do_one_test(PinyinLookup * pinyin_lookup, } int main(int argc, char * argv[]){ - const char * evals_text = "../../data/evals.text"; + const char * evals_text = "evals.text"; PinyinCustomSettings custom; PinyinLargeTable largetable(&custom); MemoryChunk * new_chunk = new MemoryChunk; - new_chunk->load("../../data/pinyin_index.bin"); + new_chunk->load("pinyin_index.bin"); largetable.load(new_chunk); FacadePhraseIndex phrase_index; new_chunk = new MemoryChunk; - new_chunk->load("../../data/gb_char.bin"); + new_chunk->load("gb_char.bin"); phrase_index.load(1, new_chunk); new_chunk = new MemoryChunk; - new_chunk->load("../../data/gbk_char.bin"); + new_chunk->load("gbk_char.bin"); phrase_index.load(2, new_chunk); PhraseLargeTable phrases; new_chunk = new MemoryChunk; - new_chunk->load("../../data/phrase_index.bin"); + new_chunk->load("phrase_index.bin"); phrases.load(new_chunk); Bigram system_bigram; - system_bigram.attach("../../data/bigram.db", ATTACH_READONLY); + system_bigram.attach("bigram.db", ATTACH_READONLY); Bigram user_bigram; user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE); |