1GENPYT(1) User Contributed Perl Documentation GENPYT(1)
2
3
4
6 genpyt - generate the PINYIN lexicon
7
9 genpyt lexicon-file result-file log-file slm-file
10
12 genpyt is used to generate the PINYIN lexicon. It only works on
13 zh_CN.UTF-8 locale.
14
16 lexicon-file
17 Specify a dictionary file. It should be a line-based text file in
18 utf-8 encoding . Each line looks like:
19
20 CCC id [pinyin'pinyin'pinyin]*
21
22 A default dictionary file can be found at
23 /usr/share/sunpinyin/dict.utf8.
24
25 result-file
26 The output binary PINYIN lexicon file. This lexicon contains a trie
27 presenting the key tree of PINYIN. And all of the candidate words
28 are sorted using the unigram in slm-file. This file can be used
29 with sunpinyin input method engines.
30
31 log-file
32 Specify the file to where the log goes. The log-file can be seen as
33 the human-readble presentation of the binary output file.
34
35 slm-file
36 The language model from which the unigram information are
37 retrieved. Typically, the slm-file is generated by slmthread.
38
40 Originally written by Phill.Zhang <phill.zhang@sun.com>. Currently
41 maintained by Kov.Chai <tchaikov@gmail.com>.
42
44 slmthread(1).
45
46
47
48perl v5.30.1 2020-01-31 GENPYT(1)