summaryrefslogtreecommitdiffstats
path: root/utils/training/gen_k_mixture_model.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-30 15:12:11 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-30 15:12:11 +0800
commit43360fcb6129e0c27ed7086b600b8699b8bdbd37 (patch)
treec686ecc4ed7a170045034fb1cb6f0d4d52b1aa59 /utils/training/gen_k_mixture_model.cpp
parent09181e7491bfabbd11ea80633214231404766b22 (diff)
update utils/training in progress
Diffstat (limited to 'utils/training/gen_k_mixture_model.cpp')
-rw-r--r--utils/training/gen_k_mixture_model.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/training/gen_k_mixture_model.cpp b/utils/training/gen_k_mixture_model.cpp
index 0679a7f..bcd9e08 100644
--- a/utils/training/gen_k_mixture_model.cpp
+++ b/utils/training/gen_k_mixture_model.cpp
@@ -57,7 +57,7 @@ static GOptionEntry entries[] =
};
-bool read_document(PhraseLargeTable2 * phrase_table,
+bool read_document(PhraseLargeTable3 * phrase_table,
FacadePhraseIndex * phrase_index,
FILE * document,
HashofDocument hash_of_document,
@@ -337,10 +337,8 @@ int main(int argc, char * argv[]){
exit(ENOENT);
}
- PhraseLargeTable2 phrase_table;
- MemoryChunk * chunk = new MemoryChunk;
- chunk->load(SYSTEM_PHRASE_INDEX);
- phrase_table.load(chunk);
+ PhraseLargeTable3 phrase_table;
+ phrase_table.attach(SYSTEM_PHRASE_INDEX, ATTACH_READONLY);
FacadePhraseIndex phrase_index;