diff options
author | Peng Wu <alexepico@gmail.com> | 2013-10-09 15:20:49 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-10-09 15:20:49 +0800 |
commit | 8c4416a0b02ee81925ab200be91e6a0a3de016fa (patch) | |
tree | dc671f4f57092cb58f198b6df153c41b32c87835 | |
parent | 5809122820407c47dcccaa0499ff92e64f669499 (diff) | |
download | libpinyin-8c4416a0b02ee81925ab200be91e6a0a3de016fa.tar.gz libpinyin-8c4416a0b02ee81925ab200be91e6a0a3de016fa.tar.xz libpinyin-8c4416a0b02ee81925ab200be91e6a0a3de016fa.zip |
fixes mergeseq.cpp
-rw-r--r-- | utils/segment/mergeseq.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/segment/mergeseq.cpp b/utils/segment/mergeseq.cpp index 1a26064..c428b9a 100644 --- a/utils/segment/mergeseq.cpp +++ b/utils/segment/mergeseq.cpp @@ -32,7 +32,6 @@ void print_help(){ } -static gboolean gen_extra_enter = FALSE; static gchar * outputfile = NULL; static GOptionEntry entries[] = @@ -269,6 +268,11 @@ int main(int argc, char * argv[]){ linebuf, output); } + /* append one null token for EOF. */ + feed_line(&phrase_table, &phrase_index, + unichars, tokeninfos, + "0 ", output); + g_array_free(unichars, TRUE); g_array_free(tokeninfos, TRUE); free(linebuf); |