From 9323164541fe4f8d0847bd8dfb9c8a7b029fba23 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 25 Jul 2011 15:34:09 +0800 Subject: begin to write eval correction rate --- utils/training/Makefile.am | 7 ++++++- utils/training/eval_correction_rate.cpp | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 utils/training/eval_correction_rate.cpp (limited to 'utils') diff --git a/utils/training/Makefile.am b/utils/training/Makefile.am index a8b5478..38fdd60 100644 --- a/utils/training/Makefile.am +++ b/utils/training/Makefile.am @@ -36,7 +36,8 @@ noinst_PROGRAMS = gen_ngram \ import_k_mixture_model \ export_k_mixture_model \ k_mixture_model_to_interpolation \ - validate_k_mixture_model + validate_k_mixture_model \ + eval_correction_rate gen_ngram_SOURCES = gen_ngram.cpp @@ -85,3 +86,7 @@ k_mixture_model_to_interpolation_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ validate_k_mixture_model_SOURCES = validate_k_mixture_model.cpp validate_k_mixture_model_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ + +eval_correction_rate_SOURCES = eval_correction_rate.cpp + +eval_correction_rate_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ \ No newline at end of file diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp new file mode 100644 index 0000000..6009251 --- /dev/null +++ b/utils/training/eval_correction_rate.cpp @@ -0,0 +1,28 @@ +/* + * 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" + +int main(int argc, char * argv[]){ + return 0; +} -- cgit