blob: 0dae23c2766bdce0baba8f039836d56db615dc32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
.TH LIBPINYIN "1" "Fed 2012" "libpinyin" "User Commands"
.SH NAME
libpinyin \- Library to deal with pinyin
.SH DESCRIPTION
The libpinyin project aims to provide the algorithms core for intelligent sentence-based Chinese pinyin input methods.
.SH TOOLS
gen_binary_files \- generate initially binary pinyin libraries
import_interpolation \- import libpinyin textual format model data
gen_unigram \- increase the unigram frequency for all phrases
.SH USAGE
.HP
gen_binary_files --table-dir <DIRNAME>
.RS
.HP
.B --table-dir
Read textual format files from the <DIRNAME> directory.
.RE
.HP
import_interpolation \< <MODELFILE>
.HP
gen_unigram
.SH EXAMPLE
Download the model.text.tar.gz, and extracts all files into the data sub-directory, then run the commands below to generate the binary model data.
.RS
gen_binary_files --table-dir ../data
import_interpolation < ../data/interpolation.text
gen_unigram
.RE
|