diff options
author | Peng Wu <alexepico@gmail.com> | 2010-11-02 16:01:46 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-11-02 16:01:46 +0800 |
commit | fd836905ef0f4d6669b60815eed3648a7890c232 (patch) | |
tree | 08ddb19ae2d57d9700149f2b376cd36729517698 /utils/segment/ngseg.cpp | |
parent | f20d44e42eab5df55656b7ebbfc7359b011dd08c (diff) | |
download | libpinyin-fd836905ef0f4d6669b60815eed3648a7890c232.tar.gz libpinyin-fd836905ef0f4d6669b60815eed3648a7890c232.tar.xz libpinyin-fd836905ef0f4d6669b60815eed3648a7890c232.zip |
add print help to ngseg
Diffstat (limited to 'utils/segment/ngseg.cpp')
-rw-r--r-- | utils/segment/ngseg.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp index 536219d..780d643 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -19,6 +19,19 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* n-gram based sentence segment. */ + +/* Note: + * Currently libpinyin only supports ucs2 characters, as this is a + * pre-processor tool for raw corpus, it will skip all sentences + * which contains non-ucs2 characters. + */ + +void print_help(){ + printf("Usage: ngseg [--generate-extra-enter]\n"); + exit(1); +} + #include <stdio.h> int main(int argc, char * argv[]){ |