From fd836905ef0f4d6669b60815eed3648a7890c232 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 2 Nov 2010 16:01:46 +0800 Subject: add print help to ngseg --- utils/segment/ngseg.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils/segment/ngseg.cpp') diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp index 536219d..780d643 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -19,6 +19,19 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* n-gram based sentence segment. */ + +/* Note: + * Currently libpinyin only supports ucs2 characters, as this is a + * pre-processor tool for raw corpus, it will skip all sentences + * which contains non-ucs2 characters. + */ + +void print_help(){ + printf("Usage: ngseg [--generate-extra-enter]\n"); + exit(1); +} + #include int main(int argc, char * argv[]){ -- cgit