Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tslmendian(1) [debian man page]

TSLMENDIAN(1)						User Contributed Perl Documentation					     TSLMENDIAN(1)

tslmendian - change the byte-order of sunpinyin's threaded back-off language model SYNOPSIS
tslmendian [option] DESCRIPTION
slmendian converts the binary language model files used by SunPinyin from big-endian to small-endian or vice versa. OPTIONS
-e endian Specify the output-lm-file's endian-ness. It can be le or ge. If not given, tslmendian uses the host's endian-ness. -v Prints out the endian-ness of input-lm-file. -i input-lm-file Identify the input file of convert. Generally, this file is generated by slmthread or tslmpack. -o out-lm-file Identify the output file of convert. NOTES
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. AUTHOR
Originally written by Kov. Chai <>. Currently maintained by Kov.Chai <>. SEE ALSO
slmthread(1). tslminfo, tslmpack. perl v5.14.2 2012-06-09 TSLMENDIAN(1)

Check Out this Related Man Page

mlib_VectorReverseByteOrder(3MLIB)			    mediaLib Library Functions				mlib_VectorReverseByteOrder(3MLIB)

mlib_VectorReverseByteOrder - reverse byte order of vector SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_VectorReverseByteOrder(void *z, const void *x, mlib_s32 n, mlib_s32 s); DESCRIPTION
The mlib_VectorReverseByteOrder() function changes the encoding of each element from big endian to little endian, or from little endian to big endian. It copies and reverses the byte order of each element of the input vector into the output vector. PARAMETERS
The function takes the following arguments: z Pointer to the output vector. x Pointer to the input vector. n Number of elements in the vectors. s Size of elements in bytes. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_VectorReverseByteOrder_Inp(3MLIB), mlib_VectorReverseByteOrder_S16(3MLIB), mlib_VectorReverseByteOrder_S16_S16(3MLIB), attributes(5) SunOS 5.10 9 Nov 2004 mlib_VectorReverseByteOrder(3MLIB)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Identify matching data in a file and output to original line, in perl

Hi, I haven't done this for awhile, and further, I've never done it in perl so I appreciate any help you can give me. I have a file of lines, each with 5 data points that look like this: AB,N,ALLIANCEBERNSTEIN HLDNG L.P,AB,N ALD,N,ALLIED CAPITAL CORPORATION,ALD,N AFC,N,ALLIED CAPITAL... (4 Replies)
Discussion started by: Pcushing
4 Replies

2. Solaris

Solaris 5.8 - BinaryFile - Endianness

Dear Users, How do I account for endian-ness while reading a Binary File generated from Solaris 5.8 (Sparc) on a Windows XP (x86) system. I just know that its a Binary File. I have no knowledge about the native datatype of the Binary File. (20 Replies)
Discussion started by: angshuman_ag
20 Replies

3. Shell Programming and Scripting

help with file processing

Hi , I have a memory file like this with two columns: @C010 AA @C011 AA @C012 FE @C013 FF @C014 F7 @C015 FF first is memory add, second is the data. I wan to convert into a serial sequence starting from '00000' all the way to 'FFFFF' with those fields from the above file... (15 Replies)
Discussion started by: return_user
15 Replies

Featured Tech Videos