[File] [PATCH] OpenFst blobs

Martin Jansche mjansche at gmail.com
Sun Sep 29 15:36:51 UTC 2019


Here (below the line) are magic numbers for OpenFst binary formats. The
formatting seems to have been lost when pasting into mail, unfortunately.

Empirically pstring/l works with Pascal-style strings that have a 4-byte LE
length, even though man magic(5) says that /l should indicate 2 bytes;
pstring/L does not work. I wonder if something is amiss there. Here's a
test case:

$ od -t x1 const8.fst
0000000 d6 fd b2 7e 06 00 00 00 63 6f 6e 73 74 38 08 00
0000020 00 00 73 74 61 6e 64 61 72 64 02 00 00 00 00 00
0000040 00 00 01 00 95 5a 6a 95 00 00 00 00 00 00 00 00
0000060 00 00 02 00 00 00 00 00 00 00 01 00 00 00 00 00
0000100 00 00 00 00 80 7f 00 01 00 00 00 00 00 00 01 00
0000120 00 00 01 00 00 00 01 00 00 00 00 00 00 00 01 00
0000140 00 00

magic follows:
-------------------

0 long 2125659606 OpenFst binary FST data
>&0 pstring/l x \b, fst type: %s
>>&0 pstring/l x \b, arc type: %s
>>>&0 long x \b, version: %d
>>>>&20 quad x \b, num states: %lld
>>>>>&0 quad >0 \b, num arcs: %lld

0 long   5656924 OpenFst binary FAR data, far type: stlist
>4 long x \b, version: %d

0 long 2125656924 OpenFst binary FAR data, far type: sttable
>4 long x \b, version: %d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20190929/890cc4f7/attachment.html>


More information about the File mailing list