From e16062739449853c9b40c60b807d97fdfc8156bb Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 18 Oct 2012 17:57:39 +0800 Subject: update ngseg --- utils/segment/ngseg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/segment/ngseg.cpp') diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp index b40c6f0..9516bd6 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -55,7 +55,7 @@ bool deal_with_segmentable(PhraseLookup * phrase_lookup, phrase_lookup->get_best_match(current_ucs4->len, (ucs4_t *) current_ucs4->data, results); - phrase_lookup->convert_to_utf8(results, "\n", result_string); + phrase_lookup->convert_to_utf8(results, result_string); if (result_string) { printf("%s\n", result_string); @@ -77,7 +77,7 @@ bool deal_with_unknown(GArray * current_ucs4){ char * result_string = g_ucs4_to_utf8 ( (ucs4_t *) current_ucs4->data, current_ucs4->len, NULL, NULL, NULL); - printf("%s\n", result_string); + printf("%d %s\n", null_token, result_string); g_free(result_string); return true; } -- cgit