1TSLMENDIAN(1) User Contributed Perl Documentation TSLMENDIAN(1)
2
3
4
6 tslmendian - change the byte-order of sunpinyin's threaded back-off
7 language model
8
10 tslmendian [option]
11
13 slmendian converts the binary language model files used by SunPinyin
14 from big-endian to small-endian or vice versa.
15
17 -e endian
18 Specify the output-lm-file's endian-ness. It can be le or ge. If
19 not given, tslmendian uses the host's endian-ness.
20
21 -v Prints out the endian-ness of input-lm-file.
22
23 -i input-lm-file
24 Identify the input file of convert. Generally, this file is
25 generated by slmthread.
26
27 -o out-lm-file
28 Identify the output file of convert.
29
31 The converted output file is equivalent to the input. But if you
32 compare the output of tslminfo of both files, the ARPA file generated
33 by tslminfo may different. This is due to the different precision in
34 different machines.
35
36 And due to uninitialized padding data in data structure, the checksum
37 of the original data file may different from the converted-back file,
38 even though they are identical from SunPinyin's point of view.
39
41 Originally written by Kov. Chai <tchaikov.gmail.com>. Currently
42 maintained by Kov.Chai <tchaikov@gmail.com>.
43
45 slmthread(1). tslminfo.
46
47
48
49perl v5.38.0 2023-07-22 TSLMENDIAN(1)