diff options
author | Peng Wu <alexepico@gmail.com> | 2011-05-11 16:23:31 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-05-11 16:23:31 +0800 |
commit | 9ebfcbba3dc5d069dd8bf89fcb69b2d388aa3289 (patch) | |
tree | 2bd99cbe7bf2ab592eb2836bb7cfee8b55910d32 /utils/training | |
parent | d757c8339b3e7bd747777f3c5fc3b7d7ca49fd1c (diff) | |
download | libpinyin-9ebfcbba3dc5d069dd8bf89fcb69b2d388aa3289.tar.gz libpinyin-9ebfcbba3dc5d069dd8bf89fcb69b2d388aa3289.tar.xz libpinyin-9ebfcbba3dc5d069dd8bf89fcb69b2d388aa3289.zip |
begin to write merge k mixture model.
Diffstat (limited to 'utils/training')
-rw-r--r-- | utils/training/Makefile.am | 5 | ||||
-rw-r--r-- | utils/training/merge_k_mixture_model.cpp | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/utils/training/Makefile.am b/utils/training/Makefile.am index 5cee6bc..44e4dad 100644 --- a/utils/training/Makefile.am +++ b/utils/training/Makefile.am @@ -31,6 +31,7 @@ noinst_PROGRAMS = gen_ngram \ gen_k_mixture_model \ estimate_interpolation \ estimate_k_mixture_model \ + merge_k_mixture_model \ prune_k_mixture_model gen_ngram_SOURCES = gen_ngram.cpp @@ -57,6 +58,10 @@ estimate_k_mixture_model_SOURCES = estimate_k_mixture_model.cpp estimate_k_mixture_model_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ +merge_k_mixture_model_SOURCES = merge_k_mixture_model.cpp + +merge_k_mixture_model_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ + prune_k_mixture_model_SOURCES = prune_k_mixture_model.cpp prune_k_mixture_model_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
\ No newline at end of file diff --git a/utils/training/merge_k_mixture_model.cpp b/utils/training/merge_k_mixture_model.cpp new file mode 100644 index 0000000..dd7ab6d --- /dev/null +++ b/utils/training/merge_k_mixture_model.cpp @@ -0,0 +1,31 @@ +/* + * libpinyin + * Library to deal with pinyin. + * + * Copyright (C) 2011 Peng Wu <alexepico@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "pinyin.h" + +void print_help(){ + printf("merge_k_mixture_model <RESULT_FILENAME> {<SOURCE_FILENAME>}+\n"); +} + +int main(int argc, char * argv[]){ + const char * result_filename = NULL; + return 0; +} |