From 192acabaf321f8233c9b252444abb1d93ca7a419 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 18 Jul 2011 13:56:42 +0800 Subject: refine segment --- utils/segment/ngseg.cpp | 1 + utils/segment/spseg.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp index 596920d..7bfc8c1 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -145,6 +145,7 @@ int main(int argc, char * argv[]){ utf16_t * sentence = g_utf8_to_utf16(linebuf, -1, NULL, &len, NULL); if ( len != num_of_chars ) { fprintf(stderr, "non-ucs2 characters encountered:%s.\n", linebuf); + printf("\n"); continue; } diff --git a/utils/segment/spseg.cpp b/utils/segment/spseg.cpp index 65fe471..905991f 100644 --- a/utils/segment/spseg.cpp +++ b/utils/segment/spseg.cpp @@ -184,6 +184,7 @@ int main(int argc, char * argv[]){ utf16_t * sentence = g_utf8_to_utf16(linebuf, -1, NULL, &len, NULL); if ( len != num_of_chars ) { fprintf(stderr, "non-ucs2 characters encountered:%s.\n", linebuf); + printf("\n"); continue; } -- cgit