.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "TSLMENDIAN 1" .TH TSLMENDIAN 1 2024-02-10 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME tslmendian \- change the byte\-order of sunpinyin's threaded back\-off language model .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBtslmendian\fR [\fIoption\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBslmendian\fR converts the binary language model files used by SunPinyin from big-endian to small-endian or vice versa. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-e\fR \fIendian\fR" 4 .IX Item "-e endian" Specify the \fIoutput-lm-file\fR's endian-ness. It can be \fBle\fR or \fBge\fR. If not given, \fBtslmendian\fR uses the host's endian-ness. .IP \fB\-v\fR 4 .IX Item "-v" Prints out the endian-ness of \fBinput-lm-file\fR. .IP "\fB\-i\fR \fIinput-lm-file\fR" 4 .IX Item "-i input-lm-file" Identify the input file of convert. Generally, this file is generated by \fBslmthread\fR. .IP "\fB\-o\fR \fIout-lm-file\fR" 4 .IX Item "-o out-lm-file" Identify the output file of convert. .SH NOTES .IX Header "NOTES" The converted output file is equivalent to the input. But if you compare the output of \fBtslminfo\fR of both files, the ARPA file generated by \fBtslminfo\fR may different. This is due to the different precision in different machines. .PP 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. .SH AUTHOR .IX Header "AUTHOR" Originally written by Kov. Chai . Currently maintained by Kov.Chai . .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBslmthread\fR(1). \fBtslminfo\fR.