{ "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>,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, {S 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": "
I Definition 2 goto(qin, S) and TLR contains:!
(i) q ~ q q,, for every a \u2022 S and q, q' \u2022 7~Lrt such
that q' = goto(q, a);
(ii) q A. q (A --* a .), for every q \u2022 TiLR and (A
\u2022 ) \u2022 closure(q);
(iii) q (A --* aX \u2022 ,8) ~ (A ~ a \u2022 X,8), for every
q \u2022 ~LR and (A ~ aX . ,8) \u2022 q;
(iv) q (A --* * c~) A, q q', for every q, q' \u2022 7~LR and
(A ~ ~) \u2022 pt such that q' = goto(q, A).
Transitions in (i) above are again called shift, tran-
sitions in (ii) are called initiate, those in (iii) are
called gathering, and transitions in (iv) are called
goto.
" }, "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": "
4 LRA2LR
Gspace ] timespace ] time
ALGOL 68327375234343
CORRie7548 280285131 22414
Deltra11772 948246526 70333
Alvey5991147354747
" }, "TABREF3": { "text": "Dynamic requirements: average space and time per sentence.", "html": null, "type_str": "table", "num": null, "content": "" }, "TABREF5": { "text": "Static requirements.", "html": null, "type_str": "table", "num": null, "content": "
" } } } }