diff options
author | Peng Wu <alexepico@gmail.com> | 2012-10-18 17:57:39 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-10-18 17:57:39 +0800 |
commit | e16062739449853c9b40c60b807d97fdfc8156bb (patch) | |
tree | fe3fad6575508af36a167a7ee22303824028075e /utils | |
parent | a949650e53700d1215bfe91b3f3172bb59fd2901 (diff) | |
download | libpinyin-e16062739449853c9b40c60b807d97fdfc8156bb.tar.gz libpinyin-e16062739449853c9b40c60b807d97fdfc8156bb.tar.xz libpinyin-e16062739449853c9b40c60b807d97fdfc8156bb.zip |
update ngseg
Diffstat (limited to 'utils')
-rw-r--r-- | utils/segment/ngseg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |