| { |
| "paper_id": "P96-1012", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T09:02:41.785906Z" |
| }, |
| "title": "Another Facet of LIG Parsing", |
| "authors": [ |
| { |
| "first": "Pierre", |
| "middle": [], |
| "last": "Boullier", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "INRIA-Rocquencourt", |
| "location": { |
| "postBox": "BP 105", |
| "postCode": "78153", |
| "settlement": "Le Chesnay Cedex", |
| "country": "France" |
| } |
| }, |
| "email": "pierre.boullier@inria.fr" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "In this paper 1 we present a new parsing algorithm for linear indexed grammars (LIGs) in the same spirit as the one described in (Vijay-Shanker and Weir, 1993) for tree adjoining grammars. For a LIG L and an input string x of length n, we build a non ambiguous context-free grammar whose sentences are all (and exclusively) valid derivation sequences in L which lead to x. We show that this grammar can be built in (9(n 6) time and that individual parses can be extracted in linear time with the size of the extracted parse tree. Though this O(n 6) upper bound does not improve over previous results, the average case behaves much better. Moreover, practical parsing times can be decreased by some statically performed computations.", |
| "pdf_parse": { |
| "paper_id": "P96-1012", |
| "_pdf_hash": "", |
| "abstract": [ |
| { |
| "text": "In this paper 1 we present a new parsing algorithm for linear indexed grammars (LIGs) in the same spirit as the one described in (Vijay-Shanker and Weir, 1993) for tree adjoining grammars. For a LIG L and an input string x of length n, we build a non ambiguous context-free grammar whose sentences are all (and exclusively) valid derivation sequences in L which lead to x. We show that this grammar can be built in (9(n 6) time and that individual parses can be extracted in linear time with the size of the extracted parse tree. Though this O(n 6) upper bound does not improve over previous results, the average case behaves much better. Moreover, practical parsing times can be decreased by some statically performed computations.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Abstract", |
| "sec_num": null |
| } |
| ], |
| "body_text": [ |
| { |
| "text": "The class of mildly context-sensitive languages can be described by several equivalent grammar types. Among these types we can notably cite tree adjoining grammars (TAGs) and linear indexed grammars (LIGs). In (Vijay-Shanker and Weir, 1994) TAGs are transformed into equivalent LIGs. Though context-sensitive linguistic phenomena seem to be more naturally expressed in TAG formalism, from a computational point of view, many authors think that LIGs play a central role and therefore the understanding of LIGs and LIG parsing is of importance. For example, quoted from (Schabes and Shieber, 1994 ) \"The LIG version of TAG can be used for recognition and parsing. Because the LIG formalism is based on augmented rewriting, the parsing algorithms can be much simpler to understand 1See (Boullier, 1996) for an extended version. and easier to modify, and no loss of generality is incurred\". In (Vijay-Shanker and Weir, 1993) LIGs are used to express the derivations of a sentence in TAGs. In (Vijay-Shanker, Weir and Rainbow, 1995) the approach used for parsing a new formalism, the D-Tree Grammars (DTG), is to translate a DTG into a Linear Prioritized Multiset Grammar which is similar to a LIG but uses multisets in place of stacks.", |
| "cite_spans": [ |
| { |
| "start": 210, |
| "end": 240, |
| "text": "(Vijay-Shanker and Weir, 1994)", |
| "ref_id": "BIBREF9" |
| }, |
| { |
| "start": 568, |
| "end": 594, |
| "text": "(Schabes and Shieber, 1994", |
| "ref_id": "BIBREF5" |
| }, |
| { |
| "start": 783, |
| "end": 799, |
| "text": "(Boullier, 1996)", |
| "ref_id": "BIBREF2" |
| }, |
| { |
| "start": 890, |
| "end": 920, |
| "text": "(Vijay-Shanker and Weir, 1993)", |
| "ref_id": "BIBREF8" |
| }, |
| { |
| "start": 988, |
| "end": 1027, |
| "text": "(Vijay-Shanker, Weir and Rainbow, 1995)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "LIGs can be seen as usual context-free grammars (CFGs) upon which constraints are imposed. These constraints are expressed by stacks of symbols associated with non-terminals. We study parsing of LIGs, our goal being to define a structure that verifies the LIG constraints and codes all (and exclusively) parse trees deriving sentences.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Since derivations in LIGs are constrained CF derivations, we can think of a scheme where the CF derivations for a given input are expressed by a shared forest from which individual parse trees which do not satisfied the LIG constraints are erased. Unhappily this view is too simplistic, since the erasing of individual trees whose parts can be shared with other valid trees can only be performed after some unfolding (unsharing) that can produced a forest whose size is exponential or even unbounded.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "In (Vijay-Shanker and Weir, 1993) , the contextfreeness of adjunction in TAGs is captured by giving a CFG to represent the set of all possible derivation sequences. In this paper we study a new parsing scheme for LIGs based upon similar principles and which, on the other side, emphasizes as (Lang, 1991) and (Lang, 1994) , the use of grammars (shared forest) to represent parse trees and is an extension of our previous work (Boullier, 1995) .", |
| "cite_spans": [ |
| { |
| "start": 3, |
| "end": 33, |
| "text": "(Vijay-Shanker and Weir, 1993)", |
| "ref_id": "BIBREF8" |
| }, |
| { |
| "start": 292, |
| "end": 304, |
| "text": "(Lang, 1991)", |
| "ref_id": "BIBREF3" |
| }, |
| { |
| "start": 309, |
| "end": 321, |
| "text": "(Lang, 1994)", |
| "ref_id": "BIBREF4" |
| }, |
| { |
| "start": 426, |
| "end": 442, |
| "text": "(Boullier, 1995)", |
| "ref_id": "BIBREF0" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "This previous paper describes a recognition algorithm for LIGs, but not a parser. For a LIG and an input string, all valid parse trees are actually coded into the CF shared parse forest used by this recognizer, but, on some parse trees of this forest, the checking of the LIG constraints can possibly failed. At first sight, there are two conceivable ways to extend this recognizer into a parser: 1. only \"good\" trees are kept;", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "2. the LIG constraints are Ire-]checked while the extraction of valid trees is performed.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "As explained above, the first solution can produce an unbounded number of trees. The second solution is also uncomfortable since it necessitates the reevaluation on each tree of the LIG conditions and, doing so, we move away from the usual idea that individual parse trees can be extracted by a simple walk through a structure.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "In this paper, we advocate a third way which will use (see section 4), the same basic material as the one used in (Boullier, 1995) . For a given LIG L and an input string x, we exhibit a non ambiguous CFG whose sentences are all possible valid derivation sequences in L which lead to x. We show that this CFG can be constructed in (.9(n 6) time and that individual parses can be extracted in time linear with the size of the extracted tree.", |
| "cite_spans": [ |
| { |
| "start": 114, |
| "end": 130, |
| "text": "(Boullier, 1995)", |
| "ref_id": "BIBREF0" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "In a CFG G = (VN, VT, P, S), the derives relation is the set {(aBa',aj3a') I B --~ j3 e P A V = G VN U VT A a, a ~ E V*}. A derivation is a sequence of strings in V* s.t. the relation derives holds between any two consecutive strings. In a rightmost derivation, at each step, the rightmost non-terminal say B is replaced by the right-hand side (RHS) of a B-production. Equivalently if a0 ~ ... ~ an is G G a rightmost derivation where the relation symbol is overlined by the production used at each step, we say that rl ... rn is a rightmost ao/a~-derivation.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Derivation Grammar and CF Parse Forest", |
| "sec_num": "2" |
| }, |
| { |
| "text": "For a CFG G, the set of its rightmost S/xderivations, where x E E(G), can itself be defined by a grammar. This shows that the rightmost derivation language of a CFG is also CF. We will show in section 4 that a similar result holds for LIGs.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Derivation Grammar and CF Parse Forest", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Following (Lang, 1994) , CF parsing is the intersection of a CFG and a finite-state automaton (FSA) which models the input string x 2. The result of this intersection is a CFG G x --(V~, V~, px, ISIS) called a shared parse forest which is a specialization of the initial CFG G = (V~, VT, P, S) to x. Each produc-J E px, is the production ri E P up to some tion r i non-terminal renaming. The non-terminal symbols in V~ are triples denoted [A]~ where A E VN, and p and q are states. When such a non-terminal is productive, [A] q :~ w, we have q E 5(p, w).", |
| "cite_spans": [ |
| { |
| "start": 10, |
| "end": 22, |
| "text": "(Lang, 1994)", |
| "ref_id": "BIBREF4" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Derivation Grammar and CF Parse Forest", |
| "sec_num": "2" |
| }, |
| { |
| "text": "G ~ If we build the rightmost derivation grammar associated with a shared parse forest, and we remove all its useless symbols, we get a reduced CFG say D ~ . The CF recognition problem for (G, x) is equivalent to the existence of an [S]~-production in D x. Moreover, each rightmost S/x-derivation in G is (the reverse of) a sentence in E(D*). However, this result is not very interesting since individual parse trees can be as easily extracted directly from the parse forest. This is due to the fact that in the CF case, a tree that is derived (a parse tree) contains all the information about its derivation (the sequence of rewritings used) and therefore there is no need to distinguish between these two notions. Though this is not always the case with non CF formalisms, we will see in the next sections that a similar approach, when applied to LIGs, leads to a shared parse forest which is a LIG while it is possible to define a derivation grammar which is CF.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Derivation Grammar and CF Parse Forest", |
| "sec_num": "2" |
| }, |
| { |
| "text": "An indexed grammar is a CFG in which stack of symbols are associated with non-terminals. LIGs are a restricted form of indexed grammars in which the dependence between stacks is such that at most one stack in the RHS of a production is related with the stack in its LHS. Other non-terminals are associated with independant stacks of bounded size.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Linear Indexed Grammars", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Following (Vijay-Shanker and Weir, 1994) Definition 2 L = (VN,VT,VI,PL,S) denotes a LIG where VN, VT, VI and PL are respectively finite sets of non-terminals, terminals, stack symbols and productions, and S is the start symbol.", |
| "cite_spans": [ |
| { |
| "start": 10, |
| "end": 40, |
| "text": "(Vijay-Shanker and Weir, 1994)", |
| "ref_id": "BIBREF9" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Linear Indexed Grammars", |
| "sec_num": "3" |
| }, |
| { |
| "text": "In the sequel we will only consider a restricted 2if x = al... as, the states can be the integers 0... n, 0 is the initial state, n the unique final state, and the transition function 5 is s.t. i E 5(i--1, a~) and i E 5(i, ~).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Linear Indexed Grammars", |
| "sec_num": "3" |
| }, |
| { |
| "text": "PL = {A0 --+ w} U {A(..a) --+ PlB(..a')r2} where A,B \u2022 VN, W \u2022 V~A0 < [w[ < 2, aa' \u2022 V;A 0 < [aa'[ < 1 and r,r2 \u2022 v u( }u(c01 c \u2022", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "An element like A(..a) is a primary constituent while C0 is a secondary constituent. The stack schema (..a) of a primary constituent matches all the stacks whose prefix (bottom) part is left unspecified and whose suffix (top) part is a; the stack of a secondary constituent is always empty.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "Such a form has been chosen both for complexity reasons and to decrease the number of cases we have to deal with. However, it is easy to see that this form of LIG constitutes a normal form.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "We use r 0 to denote a production in PL, where the parentheses remind us that we are in a LIG!", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "The CF-backbone of a LIG is the underlying CFG in which each production is a LIG production where the stack part of each constituent has been deleted, leaving only the non-terminal part. We will only consider LIGs such there is a bijection between its production set and the production set of its CFbackbone 3.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "We call object the pair denoted A(a) where A is a non-terminal and (a) a stack of symbols. Let", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "Vo = {A(a) [ A \u2022 VN Aa \u2022 V", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": ";} be the set of objects. We define on (Vo LJ VT)* the binary relation derives denoted =~ (the relation symbol is sometimes L overlined by a production):", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "r A(a\"a)r L I i A()=~w rlA()r2 ' ' FlWF2 L", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "In the first above element we say that the object B(a\"a ~) is the distinguished child of A(a\"a), and if F1F2 = C0, C0 is the secondary object. A derivation F~,..., Fi, Fi+x,..., Ft is a sequence of strings where the relation derives holds between any two consecutive strings The language defined by a LIG L is the set:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "\u00a3(L) = {x [ S 0 :=~ x A x \u2022 V~ } L", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "As in the CF case we can talk of rightmost derivations when the rightmost object is derived at each step. Of course, many other derivation strategies may be thought of. For our parsing algorithm, we need such a particular derives relation. Assume that at one step an object derives both a distinguished 3rp and rp0 with the same index p designate associated productions. child and a secondary object. Our particular derivation strategy is such that this distinguished child will always be derived after the secondary object (and its descendants), whether this secondary object lays to its left or to its right. This derives relation is denoted =~ and is called linear 4.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "form of LIGs with productions of the form", |
| "sec_num": null |
| }, |
| { |
| "text": "A spine is the sequence of objects Al(al) \u2022 .. Ai(ai) Ai+l (~i+1)... Ap(ap) if, there is a derivation in which each object Ai+l (ai+l) is the distinguished child of Ai(ai) (and therefore the distinguished descendant of Aj(aj), 1 <_ j <_ i).", |
| "cite_spans": [ |
| { |
| "start": 69, |
| "end": 75, |
| "text": "Ap(ap)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "l,L", |
| "sec_num": null |
| }, |
| { |
| "text": "For a given LIG L, consider a linear SO~x-derivation", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Linear Derivation Grammar", |
| "sec_num": "4" |
| }, |
| { |
| "text": "so . . . . . . = t,L t,L l,L", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Linear Derivation Grammar", |
| "sec_num": "4" |
| }, |
| { |
| "text": "The sequence of productions rl0...riO...rnO (considered in reverse order) is a string in P~. The purpose of this section is to define the set of such strings as the language defined by some CFG.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Linear Derivation Grammar", |
| "sec_num": "4" |
| }, |
| { |
| "text": "we first define a bunch of binary relations which are borrowed from (Boullier , 1995) - 4linear reminds us that we are in a LIG and relies upon a linear (total) order over object occurrences in a derivation. See (Boullier, 1996) for a more formal definition. 5Though in the referred paper, these relations are defined on constituents, the algorithm also applies to nonterminals.", |
| "cite_spans": [ |
| { |
| "start": 68, |
| "end": 85, |
| "text": "(Boullier , 1995)", |
| "ref_id": "BIBREF0" |
| }, |
| { |
| "start": 212, |
| "end": 228, |
| "text": "(Boullier, 1996)", |
| "ref_id": "BIBREF2" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Associated with a LIG L = (VN, VT, VI, PL, S),", |
| "sec_num": null |
| }, |
| { |
| "text": "6In fact we will only use valid non-terminals [ApB] for which the relation p holds between A and B. ", |
| "cite_spans": [ |
| { |
| "start": 46, |
| "end": 51, |
| "text": "[ApB]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Associated with a LIG L = (VN, VT, VI, PL, S),", |
| "sec_num": null |
| }, |
| { |
| "text": "The productions in pD define all the ways linear derivations can be composed from linear subderivations. This compositions rely on one side upon property 1 (recall that the productions in PL, must be produced in reverse order) and, on the other side, upon the order in which secondary spines (the rlF2spines) are processed to get the linear derivation order.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Associated with a LIG L = (VN, VT, VI, PL, S),", |
| "sec_num": null |
| }, |
| { |
| "text": "In (Boullier, 1996) , we prove that LDGs are not ambiguous (in fact they are SLR(1)) and define", |
| "cite_spans": [ |
| { |
| "start": 3, |
| "end": 19, |
| "text": "(Boullier, 1996)", |
| "ref_id": "BIBREF2" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Associated with a LIG L = (VN, VT, VI, PL, S),", |
| "sec_num": null |
| }, |
| { |
| "text": "\u00a3(D) = {nO.-.r-OISOr~)... r_~)x l,L f.,L Ax 6 \u00a3(L)}", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Associated with a LIG L = (VN, VT, VI, PL, S),", |
| "sec_num": null |
| }, |
| { |
| "text": "If, by some classical algorithm, we remove from D all its useless symbols, we get a reduced CFG say D' = (VN D' , VT D' , pD', SO' ) . In this grammar, all its terminal symbols, which are productions in L, are useful. By the way, the construction of D' solve the emptiness problem for LIGs: L specify the empty set iff the set VT D' is empty 7.", |
| "cite_spans": [ |
| { |
| "start": 114, |
| "end": 132, |
| "text": "VT D' , pD', SO' )", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Associated with a LIG L = (VN, VT, VI, PL, S),", |
| "sec_num": null |
| }, |
| { |
| "text": "Given a LIG L : (VN, VT, Vz, PL, S) we want to find all the syntactic structures associated with an input string x 6 V~. In section 2 we used a CFG (the shared parse forest) for representing all parses in a CFG. In this section we will see how to build a CFG which represents all parses in a LIG. In (Boullier, 1995) we give a recognizer for LIGs with the following scheme: in a first phase a general CF parsing algorithm, working on the CF-backbone builds a shared parse forest for a given input string x. In a second phase, the LIG conditions are checked on this forest. This checking can result in some subtree (production) deletions, namely the ones for which there is no valid symbol stack evaluation. If the resulting grammar is not empty, then x is a sentence. However, in the general case, this resulting grammar is not a shared parse forest for the initial LIG in the sense that the computation of stack of symbols along spines are not guaranteed to be consistent. Such invalid spines are not deleted during the check of the LIG conditions because they could be 7In (Vijay-Shanker and Weir, 1993) the emptiness problem for LIGs is solved by constructing an FSA. composed of sub-spines which are themselves parts of other valid spines. One way to solve this problem is to unfold the shared parse forest and to extract individual parse trees. A parse tree is then kept iff the LIG conditions are valid on that tree. But such a method is not practical since the number of parse trees can be unbounded when the CF-backbone is cyclic. Even for non cyclic grammars, the number of parse trees can be exponential in the size of the input. Moreover, it is problematic that a worst case polynomial size structure could be reached by some sharing compatible both with the syntactic and the %emantic\" features.", |
| "cite_spans": [ |
| { |
| "start": 300, |
| "end": 316, |
| "text": "(Boullier, 1995)", |
| "ref_id": "BIBREF0" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "LIG parsing", |
| "sec_num": "5" |
| }, |
| { |
| "text": "However, we know that derivations in TAGs are context-free (see (Vijay-Shanker, 1987) ) and (Vijay-Shanker and Weir, 1993) exhibits a CFG which represents all possible derivation sequences in a TAG. We will show that the analogous holds for LIGs and leads to an O(n 6) time parsing algorithm.", |
| "cite_spans": [ |
| { |
| "start": 64, |
| "end": 85, |
| "text": "(Vijay-Shanker, 1987)", |
| "ref_id": "BIBREF7" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "LIG parsing", |
| "sec_num": "5" |
| }, |
| { |
| "text": "We ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "x~\u00a3(L) \u00a2==~ xCf~(L ~)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "If we follow (Lang, 1994) , the previous definition which produces a LIGed forest from any L and x is a (LIG) parserS: given a LIG L and a string x, we have constructed a new LIG L ~ for the intersection Z;(L) C) {x}, which is the shared forest for all parses of the sentences in the intersection. However, we wish to go one step further since the parsing (or even recognition) problem for LIGs cannot be trivially extracted from the LIGed forests.", |
| "cite_spans": [ |
| { |
| "start": 13, |
| "end": 25, |
| "text": "(Lang, 1994)", |
| "ref_id": "BIBREF4" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Our vision for the parsing of a string x with a LIG L can be summarized in few lines. Let G be the CFbackbone of L, we first build G ~ the CFG shared parse forest by any classical general CF parsing algorithm and then L x its LIGed forest. Afterwards, we build the reduced LDG DL~ associated with L ~ as shown in section 4.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Sof course, instead of x, we can consider any FSA.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "The recognition problem for (L, x) (i.e. is x an element of \u00a3(L)) is equivalent to the non-emptiness of the production set of OLd.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Moreover, each linear SO~x-derivation in L is (the reverse of) a string in ff.(DL*)9. So the extraction of individual parses in a LIG is merely reduced to the derivation of strings in a CFG.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "An important issue is about the complexity, in time and space, of DL~. Let n be the length of the input string x. Since G is in binary form we know that the shared parse forest G x can be build in O(n 3) time and the number of its productions is also in O(n3). Moreover, the cardinality of V~ is O(n 2) and, for any given non-terminal, say [A] q, there are at most O(n) [A]g-productions. Of course, these complexities extend to the LIGed forest L z.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "We now look at the LDG complexity when the input LIG is a LIGed forest. In fact, we mainly have to check two forms of productions (see definition 3). The first form is production 6 In the second form (productions (5), 7and 9 if FIF2 = X0) and a production r 0 (the number of relation symbols ~ is a constant), therefore, the \u00f7 number of such productions seems to be of fourth degree in the number of non-terminals and linear in the number of productions. However, these variables are not independant. For a given A, the number of triples (B,X, r0) is the number of A-productions hence O(n). So, at the end, the number of productions of that form is O(nh).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "We can easily check that the other form of productions have a lesser degree.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Therefore, the number of productions is dominated by the first form and the size (and in fact the construction time) of this grammar is 59(n6).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "This (once again) shows that the recognition and parsing problem for a LIG can be solved in 59(n 6) time.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "For a LDG D = (V D, V D, pD SD), we note that for any given non-terminal A E VN D and string a E \u00a3:(A) with [a[ >_ 2, a single production A -4 X1X2 or A -4 X1X2X3 in pD is needed to \"cut\" a into two or three non-empty pieces al, 0\"2, and 0-3, such that \u00b0In fact, the terminal symbols in DL~ axe productions in L ~ (say Rq()), which trivially can be mapped to productions in L (here rp()).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Xi ~ a{, except when the production form num-D bet (4) is used. In such a case, this cutting needs two productions (namely (4) and 7). This shows that the cutting out of any string of length l, into elementary pieces of length 1, is performed in using O(l) productions. Therefore, the extraction of a linear so~x-derivation in L is performed in time linear with the length of that derivation. If we assume that the CF-backbone G is non cyclic, the extraction of a parse is linear in n. Moreover, during an extraction, since DL= is not ambiguous, at some place, the choice of another A-production will result in a different linear derivation.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Of course, practical generations of LDGs must improve over a blind application of definition 3. One way is to consider a top-down strategy: the Xproductions in a LDG are generated iff X is the start symbol or occurs in the RHS of an already generated production. The examples in section 6 are produced this way.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "If the number of ambiguities in the initial LIG is bounded, the size of DL=, for a given input string x of length n, is linear in n.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "The size and the time needed to compute DL. are relations. As pointed out in (Boullier, 1995) , their O(n 4) maximum sizes seem to be seldom reached in practice. This means that the average parsing time is much better than this (..9(n 6) worst case.", |
| "cite_spans": [ |
| { |
| "start": 77, |
| "end": 93, |
| "text": "(Boullier, 1995)", |
| "ref_id": "BIBREF0" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "Moreover, our parsing schema allow to avoid some useless computations. Assume that the symbol It is easy to see that its CF-backbone G, whose 92 production set Pc is:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Definition 4 Let L = (VN, VT, VI, PL, S) be a LIG, G = (VN,VT,PG, S) its CF-backbone, x a string in E(G), and G ~ = (V~,V~,P~,S ~) its shared parse ]orest for x.", |
| "sec_num": null |
| }, |
| { |
| "text": "defines the language \u00a3(G) = {wcw ' I w,w' 6 {a, b, c]*}. We remark that the stacks of symbols in L constrain the string w' to be equal to w and therefore the language \u00a3(L) is {wcw I w 6 {a, b, c]*}.", |
| "cite_spans": [ |
| { |
| "start": 33, |
| "end": 43, |
| "text": "' I w,w' 6", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "S-+ Sa S-~ Sb S-+ S c S-~ T T-}aT T -+ bT T -~ cT T -+ c", |
| "sec_num": null |
| }, |
| { |
| "text": "We note that in L the key part is played by the middle c, introduced by production rs0, and that this grammar is non ambiguous, while in G the symbol c, introduced by the last production T ~ c, is only a separator between w and w' and that this grammar is ambiguous (any occurrence of c may be this separator).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "S-+ Sa S-~ Sb S-+ S c S-~ T T-}aT T -+ bT T -~ cT T -+ c", |
| "sec_num": null |
| }, |
| { |
| "text": "The computation of the relations gives: ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "S-+ Sa S-~ Sb S-+ S c S-~ T T-}aT T -+ bT T -~ cT T -+ c", |
| "sec_num": null |
| }, |
| { |
| "text": "+ = {(S,T)}", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "S-+ Sa S-~ Sb S-+ S c S-~ T T-}aT T -+ bT T -~ cT T -+ c", |
| "sec_num": null |
| }, |
| { |
| "text": "The numbers (i) refer to definition 3. We can easily checked that this grammar is reduced. need to be computed in the ~+, ~+ , and ~:+ relations since they will never produce a useful non-terminal. In this example, the subset ~: of ~: is useless.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "S-+ Sa S-~ Sb S-+ S c S-~ T T-}aT T -+ bT T -~ cT T -+ c", |
| "sec_num": null |
| }, |
| { |
| "text": "The next example shows the handling of a cyclic grammar.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "-b", |
| "sec_num": "1" |
| }, |
| { |
| "text": "The following LIG L, where A is the start symbol: ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Second Example", |
| "sec_num": "6.2" |
| }, |
| { |
| "text": "We can easily checked that this grammar is reduced.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Second Example", |
| "sec_num": "6.2" |
| }, |
| { |
| "text": "We want to parse the input string x --a (i.e. find all the linear SO/a-derivations ). ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Second Example", |
| "sec_num": "6.2" |
| }, |
| { |
| "text": "This CFG is reduced. Since its production set is non empty, we have a 6 \u00a3(L). Its language is {r4(){r]())kr~O{r~O} k ]0 < k) which shows that the only valid linear derivations w.r.t. L must contain an identical number k of productions which push 7a (i.e. the production rl0) and productions which pop 7a (i.e. the production r3()).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Second Example", |
| "sec_num": "6.2" |
| }, |
| { |
| "text": "As in the previous example, we can see that the element [S]~ ~ [B]~ is useless.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Second Example", |
| "sec_num": "6.2" |
| }, |
| { |
| "text": "We have shown that the parses of a LIG can be represented by a non ambiguous CFG. This representation captures the fact that the values of a stack of symbols is well parenthesized. When a symbol 3' is pushed on a stack at a given index at some place, this very symbol must be popped some place else, and we know that such (recursive) pairing is the essence of context-freeness. In this approach, the number of productions and the construction time of this CFG is at worst O(n6), 94 though much better results occur in practical situations. Moreover, static computations on the initial LIG may decrease this practical complexity in avoiding useless computations. Each sentence in this CFG is a derivation of the given input string by the LIG, and is extracted in linear time.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "+ 7 Conclusion", |
| "sec_num": null |
| } |
| ], |
| "back_matter": [ |
| { |
| "text": "We can observe that this shared parse forest denotes in fact three different parse trees. Each one corresponding to a different cutting out of x = wcw' (i.e. w = ~ and w' = ce, or w : c and w' = c, or w = ec and w' = g).The corresponding LIGed forest whose start symbol is S * = [S]~ and production set P~ is: For this LIGed forest the relations are: ]. If we assume that an Aproduction is generated iff it is an [[S]o3]-production or A occurs in an already generated production, we get: (3)This CFG is reduced. Since its production set is non empty, we have ccc E ~(L). Its language is {r~ \u00b0 0 r9 0 r4 ()r~ 0 } which shows that the only linear derivation in L is S() ~) S(%)c r~)g,L", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "annex", |
| "sec_num": null |
| } |
| ], |
| "bib_entries": { |
| "BIBREF0": { |
| "ref_id": "b0", |
| "title": "Yet another (_O(n 6) recognition algorithm for mildly context-sensitive languages", |
| "authors": [ |
| { |
| "first": "Pierre", |
| "middle": [], |
| "last": "Boullier", |
| "suffix": "" |
| } |
| ], |
| "year": 1995, |
| "venue": "Proceedings of the fourth international workshop on parsing technologies (IWPT'95)", |
| "volume": "", |
| "issue": "", |
| "pages": "34--47", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Pierre Boullier. 1995. Yet another (_O(n 6) recog- nition algorithm for mildly context-sensitive lan- guages. In Proceedings of the fourth international workshop on parsing technologies (IWPT'95), Prague and Karlovy Vary, Czech Republic, pages 34-47.", |
| "links": null |
| }, |
| "BIBREF2": { |
| "ref_id": "b2", |
| "title": "Another Facet of LIG Parsing (extended version)", |
| "authors": [ |
| { |
| "first": "Pierre", |
| "middle": [], |
| "last": "Boullier", |
| "suffix": "" |
| } |
| ], |
| "year": 1996, |
| "venue": "Research Report No P858 at", |
| "volume": "22", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Pierre Boullier. 1996. Another Facet of LIG Parsing (extended version). In Research Report No P858 at http://www, inria, fr/RRKT/KK-2858.html, INRIA-Rocquencourt, France, Apr. 1996, 22 pages.", |
| "links": null |
| }, |
| "BIBREF3": { |
| "ref_id": "b3", |
| "title": "Towards a uniform formal framework for parsing", |
| "authors": [ |
| { |
| "first": "Bernard", |
| "middle": [], |
| "last": "Lang", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Current Issues in Parsing Technology", |
| "volume": "", |
| "issue": "", |
| "pages": "153--171", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Bernard Lang. 1991. Towards a uniform formal framework for parsing. In Current Issues in Pars- ing Technology, edited by M. Tomita, Kluwer Aca- demic Publishers, pages 153-171.", |
| "links": null |
| }, |
| "BIBREF4": { |
| "ref_id": "b4", |
| "title": "Recognition can be harder than parsing", |
| "authors": [ |
| { |
| "first": "Bernard", |
| "middle": [], |
| "last": "Lang", |
| "suffix": "" |
| } |
| ], |
| "year": 1994, |
| "venue": "Computational Intelligence", |
| "volume": "10", |
| "issue": "", |
| "pages": "486--494", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Bernard Lang. 1994. Recognition can be harder than parsing. In Computational Intelligence, Vol. 10, No. 4, pages 486-494.", |
| "links": null |
| }, |
| "BIBREF5": { |
| "ref_id": "b5", |
| "title": "An Alternative Conception of Tree-Adjoining Derivation", |
| "authors": [ |
| { |
| "first": "Yves", |
| "middle": [], |
| "last": "Schabes", |
| "suffix": "" |
| }, |
| { |
| "first": "Stuart", |
| "middle": [ |
| "M" |
| ], |
| "last": "Shieber", |
| "suffix": "" |
| } |
| ], |
| "year": 1994, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Yves Schabes, Stuart M. Shieber. 1994. An Alter- native Conception of Tree-Adjoining Derivation.", |
| "links": null |
| }, |
| "BIBREF7": { |
| "ref_id": "b7", |
| "title": "A study of tree adjoining grammars", |
| "authors": [ |
| { |
| "first": "K", |
| "middle": [], |
| "last": "Vijay-Shanker", |
| "suffix": "" |
| } |
| ], |
| "year": 1987, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "K. Vijay-Shanker. 1987. A study of tree adjoining grammars. PhD thesis, University of Pennsylva- nia.", |
| "links": null |
| }, |
| "BIBREF8": { |
| "ref_id": "b8", |
| "title": "The Used of Shared Forests in Tree Adjoining Grammar Parsing", |
| "authors": [ |
| { |
| "first": "K", |
| "middle": [], |
| "last": "Vijay-Shanker", |
| "suffix": "" |
| }, |
| { |
| "first": "David", |
| "middle": [ |
| "J" |
| ], |
| "last": "Weir", |
| "suffix": "" |
| } |
| ], |
| "year": 1993, |
| "venue": "Proceedings of the 6th Conference of the European Chapter of the Association for Computational Linguistics (EACL'93)", |
| "volume": "", |
| "issue": "", |
| "pages": "384--393", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "K. Vijay-Shanker, David J. Weir. 1993. The Used of Shared Forests in Tree Adjoining Grammar Pars- ing. In Proceedings of the 6th Conference of the European Chapter of the Association for Com- putational Linguistics (EACL'93), Utrecht, The Netherlands, pages 384-393.", |
| "links": null |
| }, |
| "BIBREF9": { |
| "ref_id": "b9", |
| "title": "Parsing some constrained grammar formalisms", |
| "authors": [ |
| { |
| "first": "K", |
| "middle": [], |
| "last": "Vijay-Shanker", |
| "suffix": "" |
| }, |
| { |
| "first": "David", |
| "middle": [ |
| "J" |
| ], |
| "last": "Weir", |
| "suffix": "" |
| } |
| ], |
| "year": 1994, |
| "venue": "A CL Computational Linguistics", |
| "volume": "19", |
| "issue": "", |
| "pages": "591--636", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "K. Vijay-Shanker, David J. Weir. 1994. Parsing some constrained grammar formalisms. In A CL Computational Linguistics, Vol. 19, No. 4, pages 591-636.", |
| "links": null |
| }, |
| "BIBREF10": { |
| "ref_id": "b10", |
| "title": "Parsing D-Tree Grammars", |
| "authors": [ |
| { |
| "first": "K", |
| "middle": [], |
| "last": "Vijay-Shanker", |
| "suffix": "" |
| }, |
| { |
| "first": "David", |
| "middle": [ |
| "J" |
| ], |
| "last": "Weir", |
| "suffix": "" |
| }, |
| { |
| "first": "Owen", |
| "middle": [], |
| "last": "Rambow", |
| "suffix": "" |
| } |
| ], |
| "year": 1995, |
| "venue": "Proceedings of the fourth international workshop on parsing technologies (IWPT'95)", |
| "volume": "", |
| "issue": "", |
| "pages": "252--259", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "K. Vijay-Shanker, David J. Weir, Owen Rambow. 1995. Parsing D-Tree Grammars. In Proceed- ings of the fourth international workshop on pars- ing technologies (IWPT'95), Prague and Karlovy Vary, Czech Republic, pages 252-259.", |
| "links": null |
| } |
| }, |
| "ref_entries": { |
| "FIGREF0": { |
| "uris": null, |
| "num": null, |
| "text": "4,-= {(A,B) [A(..) ~ r,B(..)r~ e PL} 1 \"r -~ = {(A,B) I A(.. ) -~ rlB(..~)r2 e PL} 1 {(A1,Ap) [A10 =~ rlA,()r~ and A,0 q-L is a distinguished descendant of A1 O} The l-level relations simply indicate, for each production, which operation can be apply to the stack associated with the LHS non-terminal to get the stack associated with its distinguished child; ~ in-1 dicates equality, -~ the pushing of 3\", and ~-the pop-1 1 ping of 3'-If we look at the evolution of a stack along a spine A1 (ax)... Ai (ai)Ai+x (ai+x)... Ap (ap), between any two objects one of the following holds: OL i ~ O~i+1, Oli3 , ~ OLi+I, or ai = ai+l~. The -O-relation select pairs of non-terminals + (A1, Ap) s.t. al = ap = e along non trivial spines.", |
| "type_str": "figure" |
| }, |
| "FIGREF2": { |
| "uris": null, |
| "num": null, |
| "text": "A(..) ~ rlB(..~)r2 \u2022 PL} (7)", |
| "type_str": "figure" |
| }, |
| "FIGREF3": { |
| "uris": null, |
| "num": null, |
| "text": "", |
| "type_str": "figure" |
| }, |
| "FIGREF4": { |
| "uris": null, |
| "num": null, |
| "text": "define the LIGed forest for x as being the LIG L ~ = (V~r, V~, VI, P~, S ~) s.t. G z is its CF-backbone and its productions are the productions o] P~ in which the corresponding stack-schemas o] L have been added. For example rg 0 = [AI~(..~) -4 [BI{(..~')[C]~0 e P~ iff J k r q = [A] k -4 [B]i[C]j e P~Arp = A -4 BC e G A rpO = A(..~) -4 B(..~')C 0 e n. Between a LIG L and its LIGed forest L ~ for x, we have:", |
| "type_str": "figure" |
| }, |
| "FIGREF5": { |
| "uris": null, |
| "num": null, |
| "text": "([A +-~ C] -+ [B + C][A ~-0 B]), where three different non-terminals in VN are implied (i.e. A, B and C), so the number of productions of that form is cubic in the number of non-terminals and therefore is O(n6).", |
| "type_str": "figure" |
| }, |
| "FIGREF6": { |
| "uris": null, |
| "num": null, |
| "text": "), exemplified by [A ~ C] -4 [B ~ c][rlr2]r(), there \u00f7 are four non-terminals in VN (i.e. A, B, C, and X", |
| "type_str": "figure" |
| }, |
| "FIGREF7": { |
| "uris": null, |
| "num": null, |
| "text": "closely related to the actual sizes of the -<~-, >-and + +", |
| "type_str": "figure" |
| }, |
| "FIGREF8": { |
| "uris": null, |
| "num": null, |
| "text": "[A ~ B] is useless in the LDG DL associated with the initial LIG L, we know that any non-terminal s.t. [[A]{ +-~ [B]~] is also useless in DL=. Therefore, the static computation of a reduced LDG for the initial LIG L (and the corresponding -\u00a2-, >-and .~ + + relations) can be used to direct the parsing process and decrease the parsing time (see section 6, we illustrate our algorithm with a LIG L --({S, T], {a, b, c}, {7~, 75, O'c}, PL, S) where PL contains the following productions: (..) --+ S(..%)c rhO : T(..7~) --+ aT(..) rT0 = T(..%) -+ cT(..) r20 = S(..) --+ S(..Tb)b r40 = S(..) --+ T(..) r60 = T(..%) -+ bT(..) rs0 = T0 --+ c", |
| "type_str": "figure" |
| }, |
| "FIGREF10": { |
| "uris": null, |
| "num": null, |
| "text": "Let x = ccc be an input string. Since x is an element of \u00a3(G), its shared parse forest G x is notempty. Its production set P~ is: rl = [s]~ -+ [s]~c r~ = [S]o ~ -+ [S]~c r4 ~ = [s]~ --+ IT] 1 r~ = [T]I 3 --+ c[T] 3 r 9 = [T]~ =+ c[T] 2 ~1 = [T]~ -+ c r~ = [S]~ -+ [T]o ~ r44 = [S]~ --~ [T]o r~ = [T]3o =-+ c[T]31 rs s = [T] 3 --+ c rs 1\u00b0 = [T]~ --+ c In computing the relations for the initial LIG L, we remark that though T ~2 T, T ~ T, and T ~ T, + + + the non-terminals IT ~ T], [T ~ T], and IT ~: T] are + + not used in pp. This means that for any LIGed forest L ~, the elements of the form ([Tip q, [T]~:) do not \")'a", |
| "type_str": "figure" |
| }, |
| "FIGREF11": { |
| "uris": null, |
| "num": null, |
| "text": "rl() = A(..) ~ A(..%) r2() = A(..) ~ B(..) r30 = B(..%) -~ B(..) r40 = B0 ~ ais cyclic (we have A =~ A and B =~ B in its CFbackbone), and the stack schemas in production rl 0 indicate that an unbounded number of push % actions can take place, while production r3 0 indicates an unbounded number of pops. Its CF-backbone is unbounded ambiguous though its language contains the single string a.The computation of the relations gives: of the LDG associated with L is [A] and its productions set pO is:", |
| "type_str": "figure" |
| }, |
| "FIGREF12": { |
| "uris": null, |
| "num": null, |
| "text": "[A]~, [B]~), (IBIS, [B]~)} The start symbol of the LDG associated with L x is [[A]~]. If we assume that an A-production is generated iff it is an [[A]~]-production or A occurs in an already generated production, its production set is:", |
| "type_str": "figure" |
| } |
| } |
| } |
| } |