From 9ebfcbba3dc5d069dd8bf89fcb69b2d388aa3289 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 11 May 2011 16:23:31 +0800 Subject: begin to write merge k mixture model. --- utils/training/Makefile.am | 5 +++++ utils/training/merge_k_mixture_model.cpp | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 utils/training/merge_k_mixture_model.cpp (limited to 'utils') 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 + * + * 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 {}+\n"); +} + +int main(int argc, char * argv[]){ + const char * result_filename = NULL; + return 0; +} -- cgit