diff options
author | Peng Wu <alexepico@gmail.com> | 2012-09-04 21:22:44 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-09-04 21:22:44 +0800 |
commit | cf6be20927aa3dbe29bba4b18075be30c1eafcf4 (patch) | |
tree | 7745e17918e3573d9ede49ab109b7ab0a148730a /utils/segment | |
parent | cddb246f9d1cb0da41acc782d95548e4ca55e7a5 (diff) | |
download | libpinyin-cf6be20927aa3dbe29bba4b18075be30c1eafcf4.tar.gz |
fixes ngseg.cpp
Diffstat (limited to 'utils/segment')
-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 dd6df30..b40c6f0 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -154,7 +154,7 @@ int main(int argc, char * argv[]){ } state = CONTEXT_INIT; - bool result = phrase_table.search( 1, sentence, tokens); + int result = phrase_table.search( 1, sentence, tokens); g_array_append_val( current_ucs4, sentence[0]); if ( result & SEARCH_OK ) state = CONTEXT_SEGMENTABLE; @@ -162,7 +162,7 @@ int main(int argc, char * argv[]){ state = CONTEXT_UNKNOWN; for ( int i = 1; i < num_of_chars; ++i) { - bool result = phrase_table.search( 1, sentence + i, tokens); + int result = phrase_table.search( 1, sentence + i, tokens); if ( result & SEARCH_OK ) next_state = CONTEXT_SEGMENTABLE; else |