summaryrefslogtreecommitdiffstats
path: root/utils/training
diff options
context:
space:
mode:
Diffstat (limited to 'utils/training')
-rw-r--r--utils/training/eval_correction_rate.cpp4
-rw-r--r--utils/training/gen_deleted_ngram.cpp6
2 files changed, 2 insertions, 8 deletions
diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp
index 633419f..f2bfadf 100644
--- a/utils/training/eval_correction_rate.cpp
+++ b/utils/training/eval_correction_rate.cpp
@@ -125,9 +125,9 @@ int main(int argc, char * argv[]){
}
pinyin_option_t options = USE_TONE;
- FacadeChewingTable largetable;
- largetable.load(options, SYSTEM_PINYIN_INDEX, NULL);
+ FacadeChewingTable2 largetable;
+ largetable.load(SYSTEM_PINYIN_INDEX, NULL);
FacadePhraseIndex phrase_index;
diff --git a/utils/training/gen_deleted_ngram.cpp b/utils/training/gen_deleted_ngram.cpp
index 40f9f5a..b0d0254 100644
--- a/utils/training/gen_deleted_ngram.cpp
+++ b/utils/training/gen_deleted_ngram.cpp
@@ -59,12 +59,6 @@ int main(int argc, char * argv[]){
exit(ENOENT);
}
- /* load phrase table. */
- PhraseLargeTable3 phrase_table;
- MemoryChunk * new_chunk = new MemoryChunk;
- new_chunk->load(SYSTEM_PHRASE_INDEX);
- phrase_table.load(new_chunk);
-
FacadePhraseIndex phrase_index;
const pinyin_table_info_t * phrase_files =