1LIBPINYIN(1)                     User Commands                    LIBPINYIN(1)
2
3
4

NAME

6       libpinyin - Library to deal with pinyin
7
8

DESCRIPTION

10       The  libpinyin project aims to provide the algorithms core for intelli‐
11       gent sentence-based Chinese pinyin input methods.
12
13

TOOLS

15       gen_binary_files  -  generate   initially   binary   pinyin   libraries
16       import_interpolation  -  import  libpinyin  textual  format  model data
17       gen_unigram - increase the unigram frequency for all phrases
18
19

USAGE

21       gen_binary_files --table-dir <DIRNAME>
22
23              --table-dir Read textual format files from the <DIRNAME>  direc‐
24                     tory.
25
26       import_interpolation < <MODELFILE>
27
28       gen_unigram
29
30

EXAMPLE

32       Download  the  model.text.tar.gz, and extracts all files into a folder,
33       then run the commands below to generate the binary model data.
34
35              rm gb_char.bin  gbk_char.bin  phrase_index.bin  pinyin_index.bin
36              bigram.db
37
38              gen_binary_files --table-dir ../data
39
40              import_interpolation < ../data/interpolation.text
41
42              gen_unigram
43
44
45
46libpinyin                          Fed 2012                       LIBPINYIN(1)
Impressum