TSLMENDIAN(1) | User Contributed Perl Documentation | TSLMENDIAN(1) |
tslmendian - change the byte-order of sunpinyin's threaded back-off language model
tslmendian [option]
slmendian converts the binary language model files used by SunPinyin from big-endian to small-endian or vice versa.
The converted output file is equivalent to the input. But if you compare the output of tslminfo of both files, the ARPA file generated by tslminfo may different. This is due to the different precision in different machines.
And due to uninitialized padding data in data structure, the checksum of the original data file may different from the converted-back file, even though they are identical from SunPinyin's point of view.
Originally written by Kov. Chai <tchaikov.gmail.com>. Currently maintained by Kov.Chai <tchaikov@gmail.com>.
slmthread(1). tslminfo.
2018-11-21 | perl v5.28.0 |