ACL-OCL / Base_JSON /prefixP /json /P96 /P96-1032.json
Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "P96-1032",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T09:02:47.596074Z"
},
"title": "Efficient Tabular LR Parsing",
"authors": [
{
"first": "Giorgio",
"middle": [],
"last": "Satta",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "University of Groningen",
"location": {
"postBox": "P.O. Box 716",
"postCode": "9700 AS",
"settlement": "Groningen",
"country": "The Netherlands"
}
},
"email": "markjan@let@rug.nl"
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "We give a new treatment of tabular LR parsing, which is an alternative to Tomita's generalized LR algorithm. The advantage is twofold. Firstly, our treatment is conceptually more attractive because it uses simpler concepts, such as grammar transformations and standard tabulation techniques also know as chart parsing. Secondly, the static and dynamic complexity of parsing, both in space and time, is significantly reduced.",
"pdf_parse": {
"paper_id": "P96-1032",
"_pdf_hash": "",
"abstract": [
{
"text": "We give a new treatment of tabular LR parsing, which is an alternative to Tomita's generalized LR algorithm. The advantage is twofold. Firstly, our treatment is conceptually more attractive because it uses simpler concepts, such as grammar transformations and standard tabulation techniques also know as chart parsing. Secondly, the static and dynamic complexity of parsing, both in space and time, is significantly reduced.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "The efficiency of LR(k) parsing techniques (Sippu and Soisalon-Soininen, 1990 ) is very attractive from the perspective of natural language processing applications. This has stimulated the computational linguistics community to develop extensions of these techniques to general context-free grammar parsing. The best-known example is generalized LR parsing, also known as Tomita's algorithm, described by Tomita (1986) and further investigated by, for example, Tomita (1991) and Nederhof (1994a) . Despite appearances, the graph-structured stacks used to describe Tomita's algorithm differ very little from parse fables, or in other words, generalized LR parsing is one of the so called tabular parsing algorithms, among which also the CYK algorithm (Harrison, 1978 ) and Earley's algorithm (Earley, 1970) can be found. (Tabular parsing is also known as chart parsing.) In this paper we investigate the extension of LR parsing to general context-free grammars from a more general viewpoint: tabular algorithms can often be described by the composition of two constructions. One example is given by Lang (1974) and Billot and Lang (1989) : the construction of pushdown automata from grammars and the simulation of these automata by means of tabulation yield different tabular algorithms for different such constructions. Another example, on which our presentation is based, was first suggested by Leermakers (1989) : a grammar is first transformed and then a standard tabular algorithm along with some filtering condition is applied using the transformed grammar. In our case, the transformation and the subsequent application of the tabular algorithm result in a new form of tabular LR parsing.",
"cite_spans": [
{
"start": 43,
"end": 77,
"text": "(Sippu and Soisalon-Soininen, 1990",
"ref_id": "BIBREF24"
},
{
"start": 405,
"end": 418,
"text": "Tomita (1986)",
"ref_id": "BIBREF25"
},
{
"start": 461,
"end": 474,
"text": "Tomita (1991)",
"ref_id": "BIBREF26"
},
{
"start": 479,
"end": 495,
"text": "Nederhof (1994a)",
"ref_id": "BIBREF12"
},
{
"start": 750,
"end": 765,
"text": "(Harrison, 1978",
"ref_id": "BIBREF4"
},
{
"start": 791,
"end": 805,
"text": "(Earley, 1970)",
"ref_id": "BIBREF3"
},
{
"start": 860,
"end": 869,
"text": "parsing.)",
"ref_id": null
},
{
"start": 1098,
"end": 1109,
"text": "Lang (1974)",
"ref_id": "BIBREF7"
},
{
"start": 1114,
"end": 1136,
"text": "Billot and Lang (1989)",
"ref_id": "BIBREF0"
},
{
"start": 1396,
"end": 1413,
"text": "Leermakers (1989)",
"ref_id": "BIBREF8"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Our method is more efficient than Tomita's algorithm in two respects. First, reduce operations are implemented in an efficient way, by splitting them into several, more primitive, operations (a similar idea has been proposed by Kipps (1991) for Tomita's algorithm) . Second, several paths in the computation that must be simulated separately by Tomita's algorithm are collapsed into a single computation path, using state minimization techniques. Experiments on practical grammars have indicated that there is a significant gain in efficiency, with regard to both space and time requirements.",
"cite_spans": [
{
"start": 228,
"end": 240,
"text": "Kipps (1991)",
"ref_id": "BIBREF6"
},
{
"start": 245,
"end": 264,
"text": "Tomita's algorithm)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Our grammar transformation produces a so called cover for the input grammar, which together with the filtering condition fully captures the specification of the method, abstracting away from algorithmic details such as data structures and control flow. Since this cover can be easily precomputed, implementing our LR parser simply amounts to running the standard tabular algorithm. This is very attractive from an application-oriented perspective, since many actual systems for natural language processing are based on these kinds of parsing algorithm.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "The remainder of this paper is organized as follows. In Section 2 some preliminaries are discussed. We review the notion of LR automaton in Section.3 and introduce the notion of 2LR automaton in Section 4. Then we specify our tabular LR method in Section 5, and provide an analysis of the algorithm in Section 6. Finally, some empirical results are giv-en in Section 7, and further discussion of our method is provided in Section 8.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Throughout this paper we use standard formal language notation. We assume that the reader is familiar with context-free grammar parsing theory (Harrison, 1978) .",
"cite_spans": [
{
"start": 143,
"end": 159,
"text": "(Harrison, 1978)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "A context-free grammar (CFG) is a 4-tuple G = (S, N, P, S), where S and N are two finite disjoint sets of terminal and nonterminal symbols, respectively, S E N is the start symbol, and P is a finite set of rules. Each rule has the form A ---* a with A E N and a E V*, where V denotes N U E. The size of G, written I G I, is defined as E(A--*a)EP [Aot I; by I a I we mean the length of a string of symbols a.",
"cite_spans": [
{
"start": 346,
"end": 353,
"text": "[Aot I;",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "We generally use symbols A,B,C,... to range over N, symbols a, b, c,... to range over S, symbols X, Y, Z to range over V, symbols ~, 8, 7,... to range over V*, and symbols v, w, z,... to range over S*.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "We write e to denote the empty string.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "A CFG is said to be in binary form if ~ E {e} U V t.J N 2 for all of its rules A --* c~. (The binary form does not limit the (weak) generative capacity of context-free grammars (Harrison, 1978) .) For technicM reasons, we sometimes use the augmented grammar associated with G, defined as G t = (St, N t, pt, St), where St, t> and <1 are fresh symbols, S t = SU {t>,<l}, N t = NU {S t } and pt = p U {S t ~ t>S<~}.",
"cite_spans": [
{
"start": 177,
"end": 193,
"text": "(Harrison, 1978)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "A pushdown automaton (PDA) is a 5-tuple .4 = (Z, Q, T, qi,, q/in), where S, Q and T are finite sets of input symbols, stack symbols and transitions, respectively; qin E Q is the initiM stack symbol and q/i, E Q is the finM stack symbol. 1 Each transition has the form 61 ~-~ 62, where 61,82 E Q*, 1 < 161 l, 1 < 1621 < 2, and z = e or z = a. We generally use symbols q, r, s,... to range over Q, and the symbol 6 to range over Q*.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "Consider a fixed input string v E ~*. A configuration of the automaton is a pair (6, w) consisting of a stack 6 E Q* and the remaining input w, which is a suffix of the input string v. The rightmost symbol of 6 represents the top of the stack. The initial configuration has the form (qi~, v) , where the stack is formed by the initial stack symbol. The final configuration has the form (qi, q/i,, e), where the stack is formed by the final stack symbol stacked upon the initial stack symbol.",
"cite_spans": [
{
"start": 283,
"end": 291,
"text": "(qi~, v)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "ZWe dispense with the notion of state, traditionally incorporated in the definition of PDA. This does not affect the power of these devices, since states can be encoded within stack symbols and transitions.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "The application of a transition 81 ~-~ 82 is described as follows. If the top-most symbols of the stack are 61, then these symbols may be replaced by 62, provided that either z = e, or z = a and a is the first symbol of the remaining input. Furthermore, if z = a then a is removed from the remaining input. Formally, for a fixed PDA .4 we define the binary relation t-on configurations as the least relation satisfying (881, w) ~-(662, w) if there is a transition 61 ~ 62, and (881, aw) t- (682, w) if there is a transition 61 a 82. The recognition of a certain input v is obtained if starting from the initial configuration for that input we can reach the final configuration by repeated application of transitions, or, formally, if (qin, v) I\"* (q~,, aria, e) Ll:t automata Let G = (S, N, P, S) be a CFG. We recall the notion of LR automaton, which is a particular kind of PDA. We make use of the augmented grammar G t = (st, N t, pt, S t) introduced in Section 2. Let !LR : {A ~ a \u2022 ~ I (A --~ aft) E pt}.",
"cite_spans": [
{
"start": 490,
"end": 498,
"text": "(682, w)",
"ref_id": null
},
{
"start": 747,
"end": 761,
"text": "(q~,, aria, e)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "We introduce the function closure from 2 I~'R to 2 ILR and the function goto from 2 ILR \u00d7 V to 2 l~rt. For any q C ILK, closure(q) is the smallest set such that (i) q c closure(q); and (ii) (B --~ c~ \u2022 Aft) e closure(q) and (A ~ 7) e pt together imply (A --* \u2022 7) E closure(q).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "We then define",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "goto(q, X) = {A ---* ~X \u2022 fl I (A --* a \u2022 Xfl) E closure(q)}.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "We construct a finite set T~Lp ~ as the smallest collection of sets satisfying the conditions:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "(i) {S t ~ t>. S<~} E ~'~Ll=t; and (ii) for every q E ~T~LR and X E V, we have goto(q, X) E 7~LR, provided goto(q, X) ~ 0.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "Two elements from ~Lt~ deserve special attention: qm = {S t --+ t> * S<~}, and q/in, which is defined to be the unique set in \"~Ll:t containing (S t ~ t>S * <~); in other words, q/in = goto(q~n, S).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "For A \u2022 N, an A-redex is a string qoqlq2\"\" \"qm, m _> 0, of elements from T~Lrt, satisfying the following conditions: ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "(i) (A ~ a .) \u2022 closure(q,,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "(i) q ~ q q', for every a \u2022 S and q, q~ \u2022 ~LR such that q' = goto(q, a); (ii) q5 ~-L q q',",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definitions",
"sec_num": "2"
},
{
"text": "Transitions in (i) above are called shift, transitions in (ii) are called reduce.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "for every A \u2022 N, A-redex q~, and q' \u2022 TiLa such that q~ = goto(q, A).",
"sec_num": null
},
{
"text": "The automata .At, rt defined in the previous section are deterministic only for a subset of the CFGs, called the LR(0) grammars (Sippu and Soisalon-Soininen, 1990) , and behave nondeterministically in the general case. When designing tabular methods that simulate nondeterministic computations of ~4LR, two main difficulties are encountered:",
"cite_spans": [
{
"start": 128,
"end": 163,
"text": "(Sippu and Soisalon-Soininen, 1990)",
"ref_id": "BIBREF24"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "\u2022 A reduce transition in .ALrt is an elementary operation that removes from the stack a number of elements bounded by the size of the underlying grammar. Consequently, the time requirement of tabular simulation of .AL~ computations can be onerous, for reasons pointed out by Sheil (1976) and Kipps (1991) .",
"cite_spans": [
{
"start": 275,
"end": 287,
"text": "Sheil (1976)",
"ref_id": "BIBREF23"
},
{
"start": 292,
"end": 304,
"text": "Kipps (1991)",
"ref_id": "BIBREF6"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "\u2022 The set 7~Lrt can be exponential in the size of the grammar (Johnson, 1991) . If in such a case the computations of.ALR touch upon each state, then time and space requirements of tabular simulation are obviously onerous.",
"cite_spans": [
{
"start": 62,
"end": 77,
"text": "(Johnson, 1991)",
"ref_id": "BIBREF5"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "The first issue above is solved here by recasting .ALR in binary form. This is done by considering each reduce transition as a sequence of \"pop\" operations which affect at most two stack symbols at a time.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "(See also Lang (1974) , Villemonte de la Clergerie (1993) and Nederhof (1994a) , and for LR parsing specifically gipps (1991) and Leermakers (19925) .) The following definition introduces this new kind of automaton. We now turn to the second above-mentioned problem, regarding the size of set 7dgR. The problem is in part solved here as follows. The number of states in 7~Lrt is considerably reduced by identifying two states if they become identical after items A --~ cr \u2022 fl from ILrt have been simplified to only the suffix of the right-hand side ,8. This is reminiscent of techniques of state minimization for finite automata (Booth, 1967) , as they have been applied before to LR parsing, e.g., by Pager (1970) and Nederhof and Sarbo (1993) . Let G t be the augmented grammar associated with a CFG G, and let I2LI~ --{fl I (A ---, a,8) e pt}. We define variants of the closure and 9oto functions from the previous section as follows. For any set q C I2Lt~, closurel(q) is the smallest collection of sets such that We now construct a finite set T~2Lrt as the smallest set satisfying the conditions:",
"cite_spans": [
{
"start": 10,
"end": 21,
"text": "Lang (1974)",
"ref_id": "BIBREF7"
},
{
"start": 62,
"end": 78,
"text": "Nederhof (1994a)",
"ref_id": "BIBREF12"
},
{
"start": 119,
"end": 125,
"text": "(1991)",
"ref_id": null
},
{
"start": 130,
"end": 148,
"text": "Leermakers (19925)",
"ref_id": null
},
{
"start": 630,
"end": 643,
"text": "(Booth, 1967)",
"ref_id": "BIBREF1"
},
{
"start": 703,
"end": 715,
"text": "Pager (1970)",
"ref_id": "BIBREF17"
},
{
"start": 720,
"end": 745,
"text": "Nederhof and Sarbo (1993)",
"ref_id": "BIBREF15"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "(i) {S<l} 6 7~2LR; and (ii) for every q 6 T~2LI:t and X \u2022 V, we have goto'(q, X) \u2022 T~2LR, provided goto'(q, X) # @.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "As stack symbols, we take the elements from I2LR and a subset of elements from (V \u00d7 ~2Lrt):",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "Q2LR = {(X,q) I 3q'[goto'(q',X) = q]} U I2LR",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "In a stack symbol of the form (X, q), the X serves to record the grammar symbol that has been recognized last, cf. the symbols that formerly were found immediately before the dots.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "The 2LK automaton associated with G can now be introduced. ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "(i) (X,q) ~ (X,q) (a,q'), for every a \u2022 Z and (X, q), (a, q') \u2022 Q2Lrt such that q' = goto'(q, a); (ii) (X,q) ~+ (X,q)(e), for every (X,q) \u2022 Q2LR such that e \u2022 closure'(q); (iii) (Z,q)(~) ~ (Zg), for every (X,q) \u2022 Q2LR and 19 \u2022 q;",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "(iv) (X,q) (o~) ~ (X,q) (A,q'), for every (X,q), (A,q') \u2022 Q2LR and (A ---~ c~) \u2022 pt such that q' = goto'(q, A).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "Note that in the case of a reduce/reduce conflict with two grammar rules sharing some suffix in the right-hand side, the gathering steps of A2Lrt will treat both rules simultaneously, until the parts of the right-hand sides are reached where the two rules differ. (See Leermakers (1992a) for a similar sharing of computation for common suffixes.) An interesting fact is that the automaton .A2LR is very similar to the automaton .ALR constructed for a grammar transformed by the transformation rtwo given by Nederhof and Satta (1994) . 2",
"cite_spans": [
{
"start": 507,
"end": 532,
"text": "Nederhof and Satta (1994)",
"ref_id": "BIBREF16"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "2LR Automata",
"sec_num": "4"
},
{
"text": "The algorithm",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "This section presents a tabular LR parser, which is the main result of this paper. The parser is derived from the 2LR automata introduced in the previous section. Following the general approach presented by Leermakers (1989) , we simulate computations of 2For the earliest mention of this transformation, we have encountered pointers to Schauerte (1973) . Regrettably, we have as yet not been able to get hold of a copy of this paper. these devices using a tabular method, a grammar transformation and a filtering function.",
"cite_spans": [
{
"start": 207,
"end": 224,
"text": "Leermakers (1989)",
"ref_id": "BIBREF8"
},
{
"start": 337,
"end": 353,
"text": "Schauerte (1973)",
"ref_id": "BIBREF20"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "We make use of a tabular parsing algorithm which is basically an asynchronous version of the CYK algorithm, as presented by Harrison (1978) , extended to productions of the forms A ---* B and A ~ and with a left-to-right filtering condition. The algorithm uses a parse table consisting in a 0-indexed square array U. The indices represent positions in the input string. We define Ui to be Uk<i Uk,i.",
"cite_spans": [
{
"start": 124,
"end": 139,
"text": "Harrison (1978)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "Computation of the entries of U is moderated by a filtering process. This process makes use of a function pred from 2 N to 2 N, specific to a certain context-free grammar. We have a certain nonterminal Ainit which is initially inserted in U0,0 in order to start the recognition process.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "We are now ready to give a formal specification of the tabular algorithm.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "Algorithm 1 Let G = (~,N,P,S) be a CFG in binary form, let pred be a function from 2 N to 2 N, let Ai,,t be the distinguished element from N, and let v = ala2. \"'an 6 ~* be an input string. We compute the least (n+ 1) x (n+ 1) table U such that Ainit 6 U0,0 and (i) A 6 Uj_ 1,j if (A ~ aj) 6 P, A 6 pred(Uj_l);",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "(ii) A 6 Uj,j if (A --+ e) 6 P, A E pred(Uj);",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "(iii) A 6 Ui,j if B 6 Ui,~, C 6 Uk,j, (A ---. BC) 6 P, A 6 pred(Ui);",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "(iv) A 6 Uij if B 6 Uij, (A ~ B) 6 P, A 6 pred(UO.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "The string has been accepted when S 6 U0,,.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "We now specify a grammar transformation, based on the definition of .A2LR.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5",
"sec_num": null
},
{
"text": "qin,q~,) be the 2L1% automaton associated with a CFG G. The 2LR cover associated with G is the CFG Q2Lr , P2I rt, where the rules in P2LR are given by: a,q') --* a, for every (X, q) ~-~ (X, q) (a, q') E T2LR;",
"cite_spans": [],
"ref_spans": [
{
"start": 99,
"end": 113,
"text": "Q2Lr , P2I rt,",
"ref_id": null
},
{
"start": 152,
"end": 157,
"text": "a,q')",
"ref_id": null
}
],
"eq_spans": [],
"section": "Definition 4 Let A2LR = (S, Q2LR, T2LR, '",
"sec_num": null
},
{
"text": "(i) (",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "(ii) (e) ~ \u00a2, for every (X, q) ~-* (X, q) (e) 6 T2LR;",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "(iii) (X~) ~ (X, q) (~),",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "for every (X, q) (~) ~-* (X~) 6 T2LR;",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "(iv) (A,q') --, (a), for every (X, q) (or) ~-~ (X, q) (A, q') E T2La.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "Observe that there is a direct, one-to-one correspondence between transitions of.A2La and productions of C2LR(G).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "The accompanying function pred is defined as follows (q, q', q\" range over the stack elements):",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "pred(v) = {q I q'q\" ~-~ q E T2La} U {q ] q' E r, q' ~*q'qET~La} U {q I q'Er, q'q\"~-~q'qET2La}.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "The above definition implies that only the tabular equivalents of the shift, initiate and goto transitions are subject to actual filtering; the simulation of the gathering transitions does not depend on elements in r. Finally, the distinguished nonterminal from the cover used to initialize the table is qin'l Thus we start with (t>, {S<l)) E U0,0. The 2LR cover introduces spurious ambiguity: where some grammar G would allow a certain number of parses to be found for a certain input, the grammar C2Lrt(G) in general allows more parses.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "This problem is in part solved by the filtering function pred. The remaining spurious ambiguity is avoided by a particular way of constructing the parse trees, described in what follows.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "After Algorithm 1 has recognized a given input, the set of all parse trees can be computed as tree (q~n, O, n) where the function tree, which determines sets of either parse trees or lists of parse trees for entries in U, is recursively defined by: ((a, q') , i, j) is the set {a}. This set contains a single parse tree Consisting of a single node labelled a. where i < k < j, (8) E Uk,j, and there is at least one (X, q) E Ui,k and (X~) ---* (X, q) (8) in C2La(G), for some q. For each such k, select one such q. We define 7:, ~ = {t.ts I t E ( X fl ),i,j tree ((X,q) ,i,k) A ts E tree(fl, k,j)}. Each t. ts is a list of trees, with head t and tail ts. We emphasize that in the third clause above, one should not consider more than one q for given k in order to prevent spurious ambiguity. (In fact, for fixed X, i, k and for different q such that (X, q) E Ui,k, tvee ((X, q) ,i, k) yields the exact same set of trees.) With this proviso, the degree of ambiguity, i.e. the number of parses found by the algorithm for any input, is reduced to exactly that of the source grammar.",
"cite_spans": [
{
"start": 99,
"end": 110,
"text": "(q~n, O, n)",
"ref_id": null
},
{
"start": 562,
"end": 568,
"text": "((X,q)",
"ref_id": null
},
{
"start": 869,
"end": 876,
"text": "((X, q)",
"ref_id": null
}
],
"ref_spans": [
{
"start": 249,
"end": 257,
"text": "((a, q')",
"ref_id": null
}
],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "(i) tree",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "A practical implementation would construct the parse trees on-the-fly, attaching them to the table entries, allowing packing and sharing of subtrees (cf. the literature on parse forests (Tomita, 1986; Elllot and Lang, 1989) ). Our algorithm actually only needs one (packed) subtree for several ( X, q) E Ui,k with fixed X,i,k but different q. The resulting parse forests would then be optimally compact, contrary to some other LR-based tabular algorithms, as pointed out by Rekers (1992) , Nederhof (1993) and Nederhof (1994b) .",
"cite_spans": [
{
"start": 186,
"end": 200,
"text": "(Tomita, 1986;",
"ref_id": "BIBREF25"
},
{
"start": 201,
"end": 223,
"text": "Elllot and Lang, 1989)",
"ref_id": null
},
{
"start": 474,
"end": 487,
"text": "Rekers (1992)",
"ref_id": "BIBREF18"
},
{
"start": 490,
"end": 505,
"text": "Nederhof (1993)",
"ref_id": "BIBREF11"
},
{
"start": 510,
"end": 526,
"text": "Nederhof (1994b)",
"ref_id": "BIBREF13"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "C2I r (G) = (",
"sec_num": null
},
{
"text": "Analysis of the algorithm",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "In this section, we investigate how the steps performed by Algorithm 1 (applied to the 2LR cover) relate to those performed by .A2LR, for the same input.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "We define a subrelation ~+ of t -+ as: (6, uw) ~+ (66',w) if and only if (6, uw) = (6, zlz2\".'zmw) t-(88l,z2..-zmw) ~-... ~ (68re,w) = (86',w), for some m > 1, where I~kl > 0 for all k, 1 < k < m.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "Informally, we have (6, uw) ~+ (6~', w) if configuration (~8', w) can be reached from (6, uw) without the bottom-most part 8 of the intermediate stacks being affected by any of the transitions; furthermore, at least one element is pushed on top of 6.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "The following characterization relates the automaton .A2Lrt and Algorithm 1 applied to the 2LR cover.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "Symbol q E Q~Lrt is eventually added to Uij if and only if for some 6:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "(q;n,al...an) ~-* (di, ai+l...an) ~+ (~q, aj+l...",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "6",
"sec_num": null
},
{
"text": "In words, q is found in entry Ui,j if and only if, at input position j, the automaton would push some element q on top of some lower-part of the stack that remains unaffected while the input from i to j is being read.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "an).",
"sec_num": null
},
{
"text": "The above characterization, whose proof is not reported here, is the justification for calling the resulting algorithm tabular LR parsing. In particular, for a grammar for which .A2Lrt is deterministic, i.e. for an LR(0) grammar, the number of steps performed by J42LR and the number of steps performed by the above algorithm are exactly the same. In the case of grammars which are not LR(0), the tabular LR algorithm is more efficient than for example a backtrack realisation of -A2LR.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "an).",
"sec_num": null
},
{
"text": "For determining the order of the time complexity of our algorithm, we look at the most expensive step, which is the computation of an element (Xfl) E Ui,j from two elements (X, q) e Ui,k and (t3) E Uk,j, through (X, q) (fl) ,--% (Xfl) E T2LR. In a straightforward realisation of the algorithm, this step can be applied O(IT2LRI\" Iv 13) times (once for each i, k,j and each transition), each step taking a constant amount of time. We conclude that the time complexity of our algorithm is O ([ T2LR] \u2022 IV [Z).",
"cite_spans": [
{
"start": 489,
"end": 497,
"text": "([ T2LR]",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "an).",
"sec_num": null
},
{
"text": "As far as space requirements are concerned, each set Ui,j or Ui contains at most I O2w.RI elements.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "an).",
"sec_num": null
},
{
"text": "(One may assume an auxiliary table storing each Ui.)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "an).",
"sec_num": null
},
{
"text": "This results in a space complexity O(I Q2LRI\" Iv 12). The entries in the table represent single stack elements, as opposed to pairs of stack elements following Lang (1974) and Leermakers (1989) . This has been investigated before by Nederhof (1994a, p. 25) and Villemonte de la Clergerie (1993, p. 155) .",
"cite_spans": [
{
"start": 160,
"end": 171,
"text": "Lang (1974)",
"ref_id": "BIBREF7"
},
{
"start": 176,
"end": 193,
"text": "Leermakers (1989)",
"ref_id": "BIBREF8"
},
{
"start": 233,
"end": 256,
"text": "Nederhof (1994a, p. 25)",
"ref_id": null
},
{
"start": 278,
"end": 302,
"text": "Clergerie (1993, p. 155)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "an).",
"sec_num": null
},
{
"text": "Empirical results",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "7",
"sec_num": null
},
{
"text": "We have performed some experiments with Algorithm 1 applied to ,A2L R and .A ~ for 4 practical LR, context-free grammars. For ,4 ~ LR a cover was used analogous to the one in Definition 4; the filtering function remains the same. The first grammar generates a subset of the programming language ALGOL 68 (van Wijngaarden and others, 1975) . The second and third grammars generate a fragment of Dutch, and are referred to as the CORRie grammar (Vosse, 1994) and the Deltra grammar (Schoorl and Belder, 1990) , respectively. These grammars were stripped of their arguments in order to convert them into context-free grammars. The fourth grammar, referred to as the Alvey grammar (Carroll, 1993) , generates a fragment of English and was automatically generated from a unificationbased grammar.",
"cite_spans": [
{
"start": 304,
"end": 338,
"text": "(van Wijngaarden and others, 1975)",
"ref_id": null
},
{
"start": 443,
"end": 456,
"text": "(Vosse, 1994)",
"ref_id": "BIBREF29"
},
{
"start": 480,
"end": 506,
"text": "(Schoorl and Belder, 1990)",
"ref_id": "BIBREF21"
},
{
"start": 677,
"end": 692,
"text": "(Carroll, 1993)",
"ref_id": "BIBREF2"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "7",
"sec_num": null
},
{
"text": "The test sentences have been obtained by automatic generation from the grammars, using the Grammar Workbench (Nederhof and Koster, 1992) , which uses a random generator to select rules; therefore these sentences do not necessarily represent input typical of the applications for which the grammars were written. Table 1 summarizes the test material.",
"cite_spans": [
{
"start": 109,
"end": 136,
"text": "(Nederhof and Koster, 1992)",
"ref_id": "BIBREF14"
}
],
"ref_spans": [
{
"start": 312,
"end": 319,
"text": "Table 1",
"ref_id": "TABREF2"
}
],
"eq_spans": [],
"section": "7",
"sec_num": null
},
{
"text": "Our implementation is merely a prototype, which means that absolute duration of the parsing process G = (Z,N,P,S) ALGOL 68 ~ CORRie Deltra Alvey is little indicative of the actual efficiency of more sophisticated implementations. Therefore, our measurements have been restricted to implementationindependent quantities, viz. the number of elements stored in the parse table and the number of elementary steps performed by the algorithm. In a practical implementation, such quantities will strongly influence the space and time complexity, although they do not represent the only determining factors. Furthermore, all optimizations of the time and space efficiency have been left out of consideration. Table 2 presents the costs of parsing the test sentences. The first and third columns give the number of entries stored in table U, the second and fourth columns give the number of elementary steps that were performed. An elementary step consists of the derivation of ! one element in QLR or Q2LR from one or two other elements. The elements that are used in the filtering process are counted individually. We give an example for the case of .A~R. Suppose we derive an element q~ E Ui,j from an element (A -. \u2022 c~) E Ui,j, warranted by two elements ql,q2 E Ui, ql ~ q2, through pred, in the presence of ql (A --* \u2022 c~) ql q' e T~.~ and q2 (A ---* \u2022 c~) ~-~ q2 q' E T~R. We then count two parsing steps, one for ql and one for q2. Table 2 shows that there is a significant gain in space and time efficiency when moving from ,4~a to ,A2LR.",
"cite_spans": [
{
"start": 104,
"end": 113,
"text": "(Z,N,P,S)",
"ref_id": null
}
],
"ref_spans": [
{
"start": 701,
"end": 708,
"text": "Table 2",
"ref_id": "TABREF3"
},
{
"start": 1431,
"end": 1438,
"text": "Table 2",
"ref_id": "TABREF3"
}
],
"eq_spans": [],
"section": "7",
"sec_num": null
},
{
"text": "Apart from the dynamic costs of parsing, we have also measured some quantities relevant to the construction and storage of the two types of tabular LR parser. These data are given in Table 3 .",
"cite_spans": [],
"ref_spans": [
{
"start": 183,
"end": 190,
"text": "Table 3",
"ref_id": "TABREF5"
}
],
"eq_spans": [],
"section": "7",
"sec_num": null
},
{
"text": "We see that the number of states is strongly reduced with regard to traditional LR parsing. In the case of the Alvey grammar, moving from [T~LR [ to ] T~2LR[ amounts to a reduction to 20.3 %. Whereas time-and space-efficient computation of T~LR for this grammar is a serious problem, computation of T~2La will not be difficult on any modern computer. Also significant is the reduction from [T~R [ to [T2LR[, especially for the larger grammars. These quantities correlate with the amount of storage needed for naive representation of the respective automata.",
"cite_spans": [
{
"start": 138,
"end": 150,
"text": "[T~LR [ to ]",
"ref_id": null
},
{
"start": 390,
"end": 407,
"text": "[T~R [ to [T2LR[,",
"ref_id": null
},
{
"start": 408,
"end": 418,
"text": "especially",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "7",
"sec_num": null
},
{
"text": "Our treatment of tabular LR parsing has two important advantages over the one by Tomita: * It is conceptually simpler, because we make use of simple concepts such as a grammar transformation and the well-understood CYK algorithm, instead of a complicated mechanism working on graph-structured stacks.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "8"
},
{
"text": "\u2022 Our algorithm requires fewer LR states. This leads to faster parser generation, to smaller parsers, and to reduced time and space complexity of parsing itself.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "8"
},
{
"text": "The conceptual simplicity of our formulation of tabular LR parsing allows comparison with other tabular parsing techniques, such as Earley's algorithm (Earley, 1970) and tabular left-corner parsing (Nederhof, 1993) , based on implementationindependent criteria. This is in contrast to experiments reported before (e.g. by Shann (1991) ), which treated tabular LR parsing differently from the other techniques.",
"cite_spans": [
{
"start": 151,
"end": 165,
"text": "(Earley, 1970)",
"ref_id": "BIBREF3"
},
{
"start": 198,
"end": 214,
"text": "(Nederhof, 1993)",
"ref_id": "BIBREF11"
},
{
"start": 322,
"end": 334,
"text": "Shann (1991)",
"ref_id": "BIBREF22"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "8"
},
{
"text": "The reduced time and space complexities reported in the previous section pertain to the tabular realisation of two parsing techniques, expressed by the automata A~, R and A2La. The tabular realisation of the former automata is very close to a variant of Tomita's algorithm by Kipps (1991) . The objective of our experiments was to show that the automata ~4~La provide a better basis than .A~a for tabular LR parsing with regard to space and time complexity.",
"cite_spans": [
{
"start": 276,
"end": 288,
"text": "Kipps (1991)",
"ref_id": "BIBREF6"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "8"
},
{
"text": "Parsing algorithms that are not based on the LR technique have however been left out of consideration, and so were techniques for unification grammars and techniques incorporating finite-state processes. 3",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "8"
},
{
"text": "Theoretical considerations (Leermakers, 1989; Schabes, 1991; Nederhof, 1994b) have suggested that for natural language parsing, LR-based techniques may not necessarily be superior to other parsing techniques, although convincing empirical data to this effect has never been shown. This issue is difficult to resolve because so much of the relative efficiency of the different parsing techniques depends on particular grammars and particular input, as well as on particular implementations of the techniques. We hope the conceptual framework presented in this paper may at least partly alleviate this problem.",
"cite_spans": [
{
"start": 27,
"end": 45,
"text": "(Leermakers, 1989;",
"ref_id": "BIBREF8"
},
{
"start": 46,
"end": 60,
"text": "Schabes, 1991;",
"ref_id": "BIBREF19"
},
{
"start": 61,
"end": 77,
"text": "Nederhof, 1994b)",
"ref_id": "BIBREF13"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "8"
}
],
"back_matter": [
{
"text": "The first author is supported by the Dutch Organization for Scientific Research (NWO), under grant 305-00-802. Part of the present research was done while the second author was visiting the Center for Language and Speech Processing, Johns Hopkins University, Baltimore, MD.We received kind help from John Carroll, Job Honig, Kees Koster, Theo Vosse and Hans de Vreught in finding the grammars mentioned in this paper. Generous help with locating relevant literature was provided by Anton Nijholt, Rockford Ross, and Arnd Ruflmann. 3As remarked before by Nederhof (1993) , the algorithms by Schabes (1991) and Leermakers (1989) are not really related to LR parsing, although some notation used in these papers suggests otherwise.",
"cite_spans": [
{
"start": 554,
"end": 569,
"text": "Nederhof (1993)",
"ref_id": "BIBREF11"
},
{
"start": 590,
"end": 604,
"text": "Schabes (1991)",
"ref_id": "BIBREF19"
},
{
"start": 609,
"end": 626,
"text": "Leermakers (1989)",
"ref_id": "BIBREF8"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Acknowledgements",
"sec_num": null
}
],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "The structure of shared forests in ambiguous parsing",
"authors": [
{
"first": "S",
"middle": [],
"last": "Billot",
"suffix": ""
},
{
"first": "B",
"middle": [],
"last": "Lang",
"suffix": ""
}
],
"year": 1989,
"venue": "27th Annual Meeting of the ACL",
"volume": "",
"issue": "",
"pages": "143--151",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Billot, S. and B. Lang. 1989. The structure of shared forests in ambiguous parsing. In 27th An- nual Meeting of the ACL, pages 143-151.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "Sequential Machines and Automata Theory",
"authors": [
{
"first": "T",
"middle": [
"L"
],
"last": "Booth",
"suffix": ""
}
],
"year": 1967,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Booth, T.L. 1967. Sequential Machines and Au- tomata Theory. Wiley, New York.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Practical unification-based parsing of natural language",
"authors": [
{
"first": "J",
"middle": [
"A"
],
"last": "Carroll",
"suffix": ""
}
],
"year": 1993,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Carroll, J.A. 1993. Practical unification-based pars- ing of natural language. Technical Report No. 314, University of Cambridge, Computer Labora- tory, England. PhD thesis.",
"links": null
},
"BIBREF3": {
"ref_id": "b3",
"title": "An efficient context-free parsing algorithm",
"authors": [
{
"first": "J",
"middle": [],
"last": "Earley",
"suffix": ""
}
],
"year": 1970,
"venue": "Communications of the ACM",
"volume": "13",
"issue": "2",
"pages": "94--102",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Earley, J. 1970. An efficient context-free parsing al- gorithm. Communications of the ACM, 13(2):94- 102.",
"links": null
},
"BIBREF4": {
"ref_id": "b4",
"title": "Introduction to Formal Language Theory",
"authors": [
{
"first": "M",
"middle": [
"A"
],
"last": "Harrison",
"suffix": ""
}
],
"year": 1978,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Harrison, M.A. 1978. Introduction to Formal Lan- guage Theory. Addison-Wesley.",
"links": null
},
"BIBREF5": {
"ref_id": "b5",
"title": "The computational complexity of GLR parsing",
"authors": [
{
"first": "M",
"middle": [],
"last": "Johnson",
"suffix": ""
}
],
"year": 1991,
"venue": "Tomita",
"volume": "3",
"issue": "",
"pages": "35--42",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Johnson, M. 1991. The computational complexi- ty of GLR parsing. In Tomita (1991), chapter 3, pages 35-42.",
"links": null
},
"BIBREF6": {
"ref_id": "b6",
"title": "GLR parsing in time O(n3)",
"authors": [
{
"first": "J",
"middle": [
"R"
],
"last": "Kipps",
"suffix": ""
}
],
"year": 1991,
"venue": "Tomita",
"volume": "4",
"issue": "",
"pages": "43--59",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Kipps, J.R. 1991. GLR parsing in time O(n3). In Tomita (1991), chapter 4, pages 43-59.",
"links": null
},
"BIBREF7": {
"ref_id": "b7",
"title": "Deterministic techniques for efficient non-deterministic parsers",
"authors": [
{
"first": "B",
"middle": [],
"last": "Lang",
"suffix": ""
}
],
"year": 1974,
"venue": "Automata, Languages and Programming",
"volume": "14",
"issue": "",
"pages": "255--269",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Lang, B. 1974. Deterministic techniques for ef- ficient non-deterministic parsers. In Automata, Languages and Programming, 2nd Colloquium, LNCS 14, pages 255-269, Saarbrficken. Springer- Verlag.",
"links": null
},
"BIBREF8": {
"ref_id": "b8",
"title": "How to cover a grammar",
"authors": [
{
"first": "R",
"middle": [],
"last": "Leermakers",
"suffix": ""
}
],
"year": 1989,
"venue": "27th Annual Meeting of the ACL",
"volume": "",
"issue": "",
"pages": "135--142",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Leermakers, R. 1989. How to cover a grammar. In 27th Annual Meeting of the ACL, pages 135-142.",
"links": null
},
"BIBREF9": {
"ref_id": "b9",
"title": "A recursive ascent Earley parser",
"authors": [
{
"first": "R",
"middle": [],
"last": "Leermakers",
"suffix": ""
}
],
"year": 1992,
"venue": "Information Processing Letters",
"volume": "41",
"issue": "2",
"pages": "87--91",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Leermakers, R. 1992a. A recursive ascent Earley parser. Information Processing Letters, 41(2):87- 91.",
"links": null
},
"BIBREF10": {
"ref_id": "b10",
"title": "Recursive ascent parsing: from Earley to Marcus",
"authors": [
{
"first": "R",
"middle": [],
"last": "Leermakers",
"suffix": ""
}
],
"year": 1992,
"venue": "Theoretical Computer Science",
"volume": "104",
"issue": "",
"pages": "299--312",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Leermakers, R. 1992b. Recursive ascent parsing: from Earley to Marcus. Theoretical Computer Science, 104:299-312.",
"links": null
},
"BIBREF11": {
"ref_id": "b11",
"title": "Generalized left-corner parsing",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1993,
"venue": "Sixth Conference of the European Chapter of the ACL",
"volume": "",
"issue": "",
"pages": "305--314",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, M.J. 1993. Generalized left-corner pars- ing. In Sixth Conference of the European Chapter of the ACL, pages 305-314.",
"links": null
},
"BIBREF12": {
"ref_id": "b12",
"title": "Linguistic Parsing and Program Transformations",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1994,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, M.J. 1994a. Linguistic Parsing and Pro- gram Transformations. Ph.D. thesis, University of Nijmegen.",
"links": null
},
"BIBREF13": {
"ref_id": "b13",
"title": "An optimal tabular parsing algorithm",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1994,
"venue": "32nd Annual Meeting of the ACL",
"volume": "",
"issue": "",
"pages": "117--124",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, M.J. 1994b. An optimal tabular parsing algorithm. In 32nd Annual Meeting of the ACL, pages 117-124.",
"links": null
},
"BIBREF14": {
"ref_id": "b14",
"title": "A customized grammar workbench",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
},
{
"first": "K",
"middle": [],
"last": "Koster",
"suffix": ""
}
],
"year": 1992,
"venue": "English Language Corpora: Design, Analysis and Exploitation, Papers from the thirteenth International Conference on English Language Research on Computerized Corpora",
"volume": "",
"issue": "",
"pages": "163--179",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, M.J. and K. Koster. 1992. A customized grammar workbench. In J. Aarts, P. de Haan, and N. Oostdijk, editors, English Language Cor- pora: Design, Analysis and Exploitation, Papers from the thirteenth International Conference on English Language Research on Computerized Cor- pora, pages 163-179, Nijmegen. Rodopi.",
"links": null
},
"BIBREF15": {
"ref_id": "b15",
"title": "Increasing the applicability of LR parsing",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
},
{
"first": "J",
"middle": [
"J"
],
"last": "Sarbo",
"suffix": ""
}
],
"year": 1993,
"venue": "Third International Workshop on Parsing Technologies",
"volume": "",
"issue": "",
"pages": "187--201",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, M.J. and J.J. Sarbo. 1993. Increasing the applicability of LR parsing. In Third Interna- tional Workshop on Parsing Technologies, pages 187-201.",
"links": null
},
"BIBREF16": {
"ref_id": "b16",
"title": "An extended theory of head-driven parsing",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
},
{
"first": "G",
"middle": [],
"last": "Satta",
"suffix": ""
}
],
"year": 1994,
"venue": "32nd Annual Meeting of the ACL",
"volume": "",
"issue": "",
"pages": "210--217",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, M.J. and G. Satta. 1994. An extended theory of head-driven parsing. In 32nd Annual Meeting of the ACL, pages 210-217.",
"links": null
},
"BIBREF17": {
"ref_id": "b17",
"title": "A solution to an open problem by Knuth",
"authors": [
{
"first": "D",
"middle": [],
"last": "Pager",
"suffix": ""
}
],
"year": 1970,
"venue": "Information and Control",
"volume": "17",
"issue": "",
"pages": "462--473",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Pager, D. 1970. A solution to an open problem by Knuth. Information and Control, 17:462-473.",
"links": null
},
"BIBREF18": {
"ref_id": "b18",
"title": "Parser Generation for Interactive Environments",
"authors": [
{
"first": "J",
"middle": [],
"last": "Rekers",
"suffix": ""
}
],
"year": 1992,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Rekers, J. 1992. Parser Generation for Interactive Environments. Ph.D. thesis, University of Am- sterdam.",
"links": null
},
"BIBREF19": {
"ref_id": "b19",
"title": "Polynomial time and space shiftreduce parsing of arbitrary context-free grammars",
"authors": [
{
"first": "Y",
"middle": [],
"last": "Schabes",
"suffix": ""
}
],
"year": 1991,
"venue": "29th Annual Meeting of the ACL",
"volume": "",
"issue": "",
"pages": "106--113",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Schabes, Y. 1991. Polynomial time and space shift- reduce parsing of arbitrary context-free gram- mars. In 29th Annual Meeting of the ACL, pages 106-113.",
"links": null
},
"BIBREF20": {
"ref_id": "b20",
"title": "Transformationen von LR(k)-grammatiken. Diplomarbeit",
"authors": [
{
"first": "R",
"middle": [],
"last": "Schauerte",
"suffix": ""
}
],
"year": 1973,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Schauerte, R. 1973. Transformationen von LR(k)-grammatiken. Diplomarbeit, Universit~it GSttingen, Abteilung Informatik.",
"links": null
},
"BIBREF21": {
"ref_id": "b21",
"title": "Computational linguistics at Delft: A status report",
"authors": [
{
"first": "J",
"middle": [
"J"
],
"last": "Schoorl",
"suffix": ""
},
{
"first": "S",
"middle": [],
"last": "Belder",
"suffix": ""
}
],
"year": 1990,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Schoorl, J.J. and S. Belder. 1990. Computation- al linguistics at Delft: A status report. Report WTM/TT 90-09, Delft University of Technology, Applied Linguistics Unit.",
"links": null
},
"BIBREF22": {
"ref_id": "b22",
"title": "Experiments with GLR and chart parsing",
"authors": [
{
"first": "P",
"middle": [],
"last": "Shann",
"suffix": ""
}
],
"year": 1991,
"venue": "Tomita",
"volume": "",
"issue": "",
"pages": "17--34",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Shann, P. 1991. Experiments with GLR and chart parsing. In Tomita (1991), chapter 2, pages 17- 34.",
"links": null
},
"BIBREF23": {
"ref_id": "b23",
"title": "Observations on context-free parsing. Statistical Methods in Linguistics",
"authors": [
{
"first": "B",
"middle": [
"A"
],
"last": "Sheil",
"suffix": ""
}
],
"year": 1976,
"venue": "",
"volume": "",
"issue": "",
"pages": "71--109",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Sheil, B.A. 1976. Observations on context-free pars- ing. Statistical Methods in Linguistics, pages 71- 109.",
"links": null
},
"BIBREF24": {
"ref_id": "b24",
"title": "LR(k) and LL(k) Parsing",
"authors": [
{
"first": "S",
"middle": [],
"last": "Sippu",
"suffix": ""
},
{
"first": "E",
"middle": [],
"last": "Soisalon-Soininen",
"suffix": ""
}
],
"year": 1990,
"venue": "Parsing Theory",
"volume": "II",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Sippu, S. and E. Soisalon-Soininen. 1990. Pars- ing Theory, Vol. II: LR(k) and LL(k) Parsing. Springer-Verlag.",
"links": null
},
"BIBREF25": {
"ref_id": "b25",
"title": "Efficient Parsing for Natural Language",
"authors": [
{
"first": "M",
"middle": [],
"last": "Tomita",
"suffix": ""
}
],
"year": 1986,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Tomita, M. 1986. Efficient Parsing for Natural Lan- guage. Kluwer Academic Publishers.",
"links": null
},
"BIBREF26": {
"ref_id": "b26",
"title": "Generalized LR Parsing",
"authors": [
{
"first": "M",
"middle": [],
"last": "Tomita",
"suffix": ""
}
],
"year": 1991,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Tomita, M., editor. 1991. Generalized LR Parsing. Kluwer Academic Publishers.",
"links": null
},
"BIBREF27": {
"ref_id": "b27",
"title": "Revised report on the algorithmic language ALGOL 68",
"authors": [
{
"first": "A",
"middle": [],
"last": "Van Wijngaarden",
"suffix": ""
}
],
"year": 1975,
"venue": "Acta Informatica",
"volume": "5",
"issue": "",
"pages": "1--236",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "van Wijngaarden, A. et at. 1975. Revised report on the algorithmic language ALGOL 68. Acta Infor- matica, 5:1-236.",
"links": null
},
"BIBREF28": {
"ref_id": "b28",
"title": "Automates Piles et Programmation Dynamique --DyALog: Une application h la Programmation en Logique",
"authors": [
{
"first": "E",
"middle": [],
"last": "Villemonte De La Clergerie",
"suffix": ""
}
],
"year": 1993,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Villemonte de la Clergerie, E. 1993. Automates Piles et Programmation Dynamique --DyALog: Une application h la Programmation en Logique. Ph.D. thesis, Universit@ Paris VII.",
"links": null
},
"BIBREF29": {
"ref_id": "b29",
"title": "The Word Connection",
"authors": [
{
"first": "T",
"middle": [
"G"
],
"last": "Vosse",
"suffix": ""
}
],
"year": 1994,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Vosse, T.G. 1994. The Word Connection. Ph.D. thesis, University of Leiden.",
"links": null
}
},
"ref_entries": {
"FIGREF0": {
"text": "3",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF1": {
"text": "), for some a = X1X~. \u2022 \u2022 \u2022 Xm ; and (ii) goto(q~_l, Xk) = qk, for 1 < k < m. Note that in such an A-redex, (A --~ \u2022 X1Xg.... Xm) \u2022 closure(qo), and (A ~ X1...Xk * Xk+z'\"Xm) E qk, for 0 < k < m. The LR automaton associated with G is now introduced. Definition 1 .ALR = (S, QLR, TLR, qin, q~n), where QLR \"-~'~LR, qin = {S t -'* t> \u2022 S<~}, qlin = goto(qin, S), and TLR contains:",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF2": {
"text": "(i) q C elosure'(q); and (ii) (Aft) e closure' (q) and (A ---* 7) \u2022 pt together imply (7) \u2022 closure'(q). Also, we define goto'(q, x) = {,8 I (x,8) ~ closure'(q)}.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF3": {
"text": "A2LR ---~ ( , Q2LR, 2LR, qin, qfin), where Q LR is as defined above, = (C>, q~. = (S, goto'({S.~}, S)), and T2LR contains:",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF4": {
"text": "ii) tree(e, i, i) is the set {c}. This set consists of an empty list of trees.(iii) tree(Xl?,i,j) is the union of the sets T. k (x~),i,j,",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF5": {
"text": "iv) tree( ( A, q'), i, j) is the union of the setsT. a where (~) E Uij is such that ( A,ql ),i,j ' (A, q') ---* (c~) in C2La(G). We define T ~ -(a,q'),i,j --{glue(A, ts) l ts E tree(c~,i,j)}. The function glue constructs a tree from a fresh root node labelled A and the trees in list ts as immediate subtrees.",
"type_str": "figure",
"uris": null,
"num": null
},
"TABREF1": {
"text": "A~R = (~,QLR' TLR., qin, q1~n), where q, LR -----7~LR U ILR, qin = {S t \"* I> \u2022 S<2}, qJin = The role of a reduce step in .ALR is taken over in .A\u00a3K by an initiate step, a number of gathering steps, and a goto step. Observe that these steps involve the new stack symbols (A --~ a \u2022 ,8) \u2022 ILI~ that are distinguishable from possible stack symbols",
"html": null,
"type_str": "table",
"num": null,
"content": "<table><tr><td>I Definition 2 goto(qin, S) and TLR contains:</td><td>!</td></tr><tr><td colspan=\"2\">(i) q ~ q q,, for every a \u2022 S and q, q' \u2022 7~Lrt such</td></tr><tr><td>that q' = goto(q, a);</td><td/></tr><tr><td colspan=\"2\">(ii) q A. q (A --* a .), for every q \u2022 TiLR and (A</td></tr><tr><td>\u2022 ) \u2022 closure(q);</td><td/></tr><tr><td colspan=\"2\">(iii) q (A --* aX \u2022 ,8) ~ (A ~ a \u2022 X,8), for every</td></tr><tr><td colspan=\"2\">q \u2022 ~LR and (A ~ aX . ,8) \u2022 q;</td></tr><tr><td colspan=\"2\">(iv) q (A --* * c~) A, q q', for every q, q' \u2022 7~LR and</td></tr><tr><td colspan=\"2\">(A ~ ~) \u2022 pt such that q' = goto(q, A).</td></tr><tr><td colspan=\"2\">Transitions in (i) above are again called shift, tran-</td></tr><tr><td colspan=\"2\">sitions in (ii) are called initiate, those in (iii) are</td></tr><tr><td colspan=\"2\">called gathering, and transitions in (iv) are called</td></tr><tr><td>goto.</td><td/></tr></table>"
},
"TABREF2": {
"text": "The test material: the four grammars and some of their dimensions, and the average length of the test sentences (20 sentences of various length for each grammar).",
"html": null,
"type_str": "table",
"num": null,
"content": "<table><tr><td/><td>4 LR</td><td/><td>A2LR</td><td/></tr><tr><td>G</td><td colspan=\"2\">space ] time</td><td colspan=\"2\">space ] time</td></tr><tr><td>ALGOL 68</td><td>327</td><td>375</td><td>234</td><td>343</td></tr><tr><td>CORRie</td><td colspan=\"2\">7548 28028</td><td colspan=\"2\">5131 22414</td></tr><tr><td>Deltra</td><td colspan=\"2\">11772 94824</td><td colspan=\"2\">6526 70333</td></tr><tr><td>Alvey</td><td>599</td><td>1147</td><td>354</td><td>747</td></tr></table>"
},
"TABREF3": {
"text": "Dynamic requirements: average space and time per sentence.",
"html": null,
"type_str": "table",
"num": null,
"content": "<table/>"
},
"TABREF5": {
"text": "Static requirements.",
"html": null,
"type_str": "table",
"num": null,
"content": "<table/>"
}
}
}
}