summaryrefslogtreecommitdiffstats
path: root/utils/segment
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-19 13:44:33 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-19 13:55:12 +0800
commitaee9198d0a266429436dfbde4660baeb47429c4b (patch)
treecab25703aa31ac20d23fa1933775076597d51a9d /utils/segment
parent3d9959ed830c4ae5bc7b4f7a525f25f34fc67313 (diff)
downloadlibpinyin-aee9198d0a266429436dfbde4660baeb47429c4b.tar.gz
libpinyin-aee9198d0a266429436dfbde4660baeb47429c4b.tar.xz
libpinyin-aee9198d0a266429436dfbde4660baeb47429c4b.zip
fixes utils helper
Diffstat (limited to 'utils/segment')
-rw-r--r--utils/segment/spseg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/segment/spseg.cpp b/utils/segment/spseg.cpp
index 073a3d8..b7d6176 100644
--- a/utils/segment/spseg.cpp
+++ b/utils/segment/spseg.cpp
@@ -196,7 +196,7 @@ int main(int argc, char * argv[]){
for ( glong i = 0; i < strings->len; ++i ) {
SegmentStep * step = &g_array_index(strings, SegmentStep, i);
char * string = g_ucs4_to_utf8( step->m_phrase, step->m_phrase_len, NULL, NULL, NULL);
- printf("%s\n", string);
+ printf("%d %s\n", step->m_handle, string);
g_free(string);
}