A better description of .fst2

40 views
Skip to first unread message

Voja Kale

unread,
Mar 4, 2015, 12:13:43 AM3/4/15
to unitex-...@googlegroups.com
I think description given in Manual (v3.1) for .fst2 format is incomplete. Please correct me if I am wrong.
In explaining subgraphs, it describes only first two integers, while given example contains 4 numbers per line.

0000002                               < why so many zeros? Can't we just say 2?
-1 NP                                   < First subgraph, named NP
: 1 1                                     < The first integer indicates the number of the label or sub-graph that corresponds to the transition.
                                            < The second integer represents the number of the result state after the transition. Does this mean the line describes an edge from node 1 to node 1?
: 2 2 -2 2                               < I think Manual doesn't describe the format of this line.
t
f
and so on

How can we improve the description of .fst2 file format?

eric.laporte

unread,
Sep 22, 2015, 9:26:39 AM9/22/15
to Unitex-GramLab
Dear Voja Kale,

The description in the Manual (section 14.3 .2) is correct. It describes the format of ": 2 2 -2 2" by "The following lines describe the states of the graph. If the state is final, the line starts with the t character and with the : character if not. For each state, the list of transitions is a possibly empty sequence of pairs of integers". In each pair of integers, the first integer indicates a label and the second integer represents a state.
Best,

Eric Laporte

Reply all
Reply to author
Forward
0 new messages