summaryrefslogtreecommitdiffstats
path: root/utils/training/prune_k_mixture_model.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-05-05 11:13:34 +0800
committerPeng Wu <alexepico@gmail.com>2011-05-05 11:13:34 +0800
commit5f987095add7f63c7389fc5255c74fc408351c71 (patch)
treed9ceaf3db292e659756422883352074dd79af727 /utils/training/prune_k_mixture_model.cpp
parentd91e11a3e0e3215db7b87eb902dc7e7f9974823f (diff)
downloadlibpinyin-5f987095add7f63c7389fc5255c74fc408351c71.tar.gz
libpinyin-5f987095add7f63c7389fc5255c74fc408351c71.tar.xz
libpinyin-5f987095add7f63c7389fc5255c74fc408351c71.zip
refine attach method in flexible n-gram
Diffstat (limited to 'utils/training/prune_k_mixture_model.cpp')
-rw-r--r--utils/training/prune_k_mixture_model.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/training/prune_k_mixture_model.cpp b/utils/training/prune_k_mixture_model.cpp
index 7a724a9..09243f3 100644
--- a/utils/training/prune_k_mixture_model.cpp
+++ b/utils/training/prune_k_mixture_model.cpp
@@ -90,7 +90,7 @@ int main(int argc, char * argv[]){
/* TODO: magic header signature check here. */
KMixtureModelBigram bigram(K_MIXTURE_MODEL_MAGIC_NUMBER);
- bigram.attach(bigram_filename);
+ bigram.attach(bigram_filename, ATTACH_READWRITE);
KMixtureModelMagicHeader magic_header;
bigram.get_magic_header(magic_header);