| { |
| "paper_id": "P92-1011", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T08:12:00.836106Z" |
| }, |
| "title": "COMPARING TWO GRAMMAR-BASED GENERATION A CASE STUDY", |
| "authors": [ |
| { |
| "first": "Miroslav", |
| "middle": [], |
| "last": "Martinovic", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "Courant Institute of Mathematical Sciences New York University", |
| "location": { |
| "addrLine": "715 Broadway, rm. 704", |
| "postCode": "10003", |
| "settlement": "New York", |
| "region": "N.Y" |
| } |
| }, |
| "email": "" |
| }, |
| { |
| "first": "Tomek", |
| "middle": [], |
| "last": "Strzalkowski", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "Courant Institute of Mathematical Sciences New York University", |
| "location": { |
| "addrLine": "715 Broadway, rm. 704", |
| "postCode": "10003", |
| "settlement": "New York", |
| "region": "N.Y" |
| } |
| }, |
| "email": "" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "In this paper we compare two grammar-based generation algorithms: the Semantic-Head-Driven Generation Algorithm (SHDGA), and the Essential Arguments Algorithm (EAA). Both algorithms have successfully addressed several outstanding problems in grammarbased generation, including dealing with non-monotonic compositionality of representation, left-recursion, deadlock-prone rules, and nondeterminism. We concentrate here on the comparison of selected properties: generality, efficiency, and determinism. We show that EAA's traversals of the analysis tree for a given language construct, include also the one taken on by SHDGA. We also demonstrate specific and common situations in which SHDGA will invariably run into serious inefficiency and nondeterminism, and which EAA will handle in an efficient and deterministic manner. We also point out that only EAA allows to treat the underlying grammar in a truly multi-directional manner.", |
| "pdf_parse": { |
| "paper_id": "P92-1011", |
| "_pdf_hash": "", |
| "abstract": [ |
| { |
| "text": "In this paper we compare two grammar-based generation algorithms: the Semantic-Head-Driven Generation Algorithm (SHDGA), and the Essential Arguments Algorithm (EAA). Both algorithms have successfully addressed several outstanding problems in grammarbased generation, including dealing with non-monotonic compositionality of representation, left-recursion, deadlock-prone rules, and nondeterminism. We concentrate here on the comparison of selected properties: generality, efficiency, and determinism. We show that EAA's traversals of the analysis tree for a given language construct, include also the one taken on by SHDGA. We also demonstrate specific and common situations in which SHDGA will invariably run into serious inefficiency and nondeterminism, and which EAA will handle in an efficient and deterministic manner. We also point out that only EAA allows to treat the underlying grammar in a truly multi-directional manner.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Abstract", |
| "sec_num": null |
| } |
| ], |
| "body_text": [ |
| { |
| "text": "Recently, two important new algorithms have been published ([SNMP89] , [SNMP90] , [S90a] , [S90b] and [$91] ) that address the problem of automated generation of natural language expressions from a structured representation of meaning. Both algorithms follow the same general principle: given a grammar, and a structured representation of meaning, produce one or more corresponding surface strings, and do so with a minimal possible effort. In this paper we limit our analysis of the two algorithms to unification-based formalisms.", |
| "cite_spans": [ |
| { |
| "start": 59, |
| "end": 68, |
| "text": "([SNMP89]", |
| "ref_id": "BIBREF15" |
| }, |
| { |
| "start": 71, |
| "end": 79, |
| "text": "[SNMP90]", |
| "ref_id": "BIBREF16" |
| }, |
| { |
| "start": 82, |
| "end": 88, |
| "text": "[S90a]", |
| "ref_id": null |
| }, |
| { |
| "start": 91, |
| "end": 97, |
| "text": "[S90b]", |
| "ref_id": null |
| }, |
| { |
| "start": 102, |
| "end": 107, |
| "text": "[$91]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": "1." |
| }, |
| { |
| "text": "The first algorithm, which we call here the Semantic-Head-Driven Generation Algorithm (SHDGA), uses information about semantic heads ~ in grammar rules to obtain the best possible traversal of the generation tree, using a mixed top-down/bottom-up strategy.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": "1." |
| }, |
| { |
| "text": "The semantic head of a rule is the literal on the right-hand side that shares the semantics with the literal on the left.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": "1." |
| }, |
| { |
| "text": "The second algorithm, which we call the Essential Arguments Algorithm (EAA), rearranges grammar productions at compile time in such a way that a simple top-down left-to-right evaluation will follow an optimal path.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": "1." |
| }, |
| { |
| "text": "Both algorithms have resolved several outstanding problems in dealing with natural language grammars, including handling of left recursive rules, non-monotonic compositionality of representation, and deadlockprone rules 2. In this paper we attempt to compare these two algorithms along their generality and efficiency lines. Throughout this paper we follow the notation used in [SNMP90] .", |
| "cite_spans": [ |
| { |
| "start": 378, |
| "end": 386, |
| "text": "[SNMP90]", |
| "ref_id": "BIBREF16" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": "1." |
| }, |
| { |
| "text": "SHDGA traverses the derivation tree in the semantic-head-first fashion. Starting from the goal predicate node (called the root), containing a structured representation (semantics) from which to generate, it selects a production whose leg-hand side semantics unifies with the semantics of the root. If the selected production passes the semantics unchanged from the left to some nonterminal on the right (the so-called chain rule), this later nonterminal becomes the new root and the algorithm is applied recursively. On the other hand, if no right-hand side literal has the same semantics as the root (the so called non-chain rule), the production is expanded, and the algorithm is reeursively applied to every literal on its right-hand side. When the evaluation of a non-chain rule is completed, SHDGA connects its left-hand side literal (called the pivot) to the initial root using (in a backward manner) a series of appropriate chain rules. At this time, all remaining literals in the chain rules are expanded in a fixed order (left-to-right).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "Since SHDGA traverses the derivation tree ha the fashion described above, this traversal is neither topdown ('I'D), nor bottom-up (BU), nor left-to-right (LR) globally, with respect to the entire tree. However, it is LR locally, when the siblings of the semantic head literal are selected for expansion on the right-hand side of a chain rule, or when a non-chain rule is evaluated. In fact the overall traversal strategy combines both the TD mode (non-chain rule application) and the BU mode (backward application of chain rules).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "EAA takes a unification grammar (usually Prologcoded) and normalizes it by rewriting certain left recursive rules and altering the order of right-hand side nonterminals in other rules. It reorders literals ha the original grammar (both locally within each rule, and globally between different rules) ha such a way that the optimal traversal order is achieved for a given evaluation strategy (eg. top-down left-to-righ0. This restructuring is done at compile time, so in effect a new executable grammar is produced. The resulting parser or generator is TD but not LR with respect to the original grammar, however, the new grammar is evaluated TD and LR (i.e., using a standard Prolog interpreter). As a part of the node reordering process EAA calculates the minimal sets of essential arguments (msea's) for all literals ha the grammar, which in turn will allow to project an optimal evaluation order. The optimal evaluation order is achieved by expanding only those literals which are ready at any given moment, i.e., those that have at least one of their mseas instantiated. The following example illustrates the traversal strategies of both algorithms. The grammar is taken from [SNMP90] , and normalized to remove deadlock-prone rules in order to simplify the exposition? The analysis tree for both algorithms is presented on the next page. (Figure 1 .). The input semantics is given as decl(call_up~ohnfriends)). The output string becomes john calls up friends. The difference lists for each step are also provided. They are separated from the rest of the predicate by the symbol I-The different orders in which the two algorithms expand the branches of the derivation tree and generate the terminal nodes are marked, ha italics for SHDGA, and in roman case for EAA. The rules that were applied at each level are also given.", |
| "cite_spans": [ |
| { |
| "start": 793, |
| "end": 801, |
| "text": "(msea's)", |
| "ref_id": null |
| }, |
| { |
| "start": 1180, |
| "end": 1188, |
| "text": "[SNMP90]", |
| "ref_id": "BIBREF16" |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 1343, |
| "end": 1352, |
| "text": "(Figure 1", |
| "ref_id": null |
| } |
| ], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "(0) sentence/deel(S)--> s(f'mite)/S. (1) sentence/imp(S) --> vp(nonfmite,[np(_)/you]) IS. ,,..... (2) s(Form)/S -> Subj, vp(Form,[Subj/S. ...\u00b0\u00b0\u00b0. (3) vp(Form,Subcat)/S --> v(Form,Z)/S, vpl(Form,Z)/Subcat. (4) vpl(Form,[Compl[ Z])/Ar --> vpl(Form, Z)/Ar, Compl. (5) vpl(Form,Ar)/Ar. (6) vp(Form,[Subj])/S --> v(Form,[Subj])/VP, anx(Form, [Subj],VP)/S. (7) anx(Form,[Subjl,S)/S. (8) aux(Form,[Subjl,A)/Z--> adv(A)/B, aux(Form[Subj],B)/Z. ....... (9) v(finite,[np(_)/O,np(3-sing)lS])llove(S,O) --> [loves]. (10) v(f'mite, [np(_)/O,p/up,np(3 -sing)/S])/ call_up(S,O) --> [calls]. (11) v(fmite,[np(3-sing)/S])/leave(S) --> [leaves]. ...... \u00b0", |
| "eq_num": "(" |
| } |
| ], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "If EAA is rerun for alternative solutions, it will produce the same output string, but the order in which nodes vpl (finite, [p/up,np(3-sing) /john])/[Subj]/Sl_S2, and np(..)/~ends/S2__l] (level 4), and also, vp1 (finite,[np(3sing) /john])/[Subj]/S1_S12, and p/up/S12_S2, at the level below, are visited, will be reversed. This happens because both literals in both pairs are ready for the expansion at the moment when the selection is to be made. Note that the traversal made by SHDGA and the first traversal taken by EAA actually generate the terminal nodes ha the same order. This property is formally defined below.", |
| "cite_spans": [ |
| { |
| "start": 125, |
| "end": 141, |
| "text": "[p/up,np(3-sing)", |
| "ref_id": null |
| }, |
| { |
| "start": 213, |
| "end": 231, |
| "text": "(finite,[np(3sing)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "Definition. Two traversals T' and T\" of a tree T are said to be the same-to-a-subtree (stas), if the followhag claim holds: Let N be any node of the tree T, and S~ ..... S all subtrees rooted at N. If the order in which the subtrees will be taken on for the traversal by T' is S? ..... S. n and by T\"", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "S. t ..... S.\", then SJ =SJ ..... S.\"=S.\". s s .1 J l .I t j", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "(S~ is one of the subtrees rooted at N, for any k, and 1)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "Stas however does not imply that the order in which the nodes are visited will necessarily be the same. ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MAIN CHARACTERISTICS OF SHDGA'S AND EAA'S TRAVERSALS", |
| "sec_num": "2." |
| }, |
| { |
| "text": "The traversals by SHDGA and EAA as marked on the graph are stas. This means that the order in which the terminals were produced (the leaves were visited) is the same (in this case: calls up friends john). As noted previously, EAA can make other traversals to produce the same output string, and the order in which the terminals are generated will be different in each case. (This should not be confused with the order of the terminals in the output string, which is always the same). The orders in which terminals are generated during alternative EAA traversals are: up calls friends john, friends calls up john, friends up calls john. In general, EAA can be forced to make a traversal corresponding to any permutation of ready literals in the right-hand side of a rule.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "We should notice that in the above example SHDGA happened to make all the right moves, i.e., it always expanded a literal whose msea happened to be instantiated. As we will see in the following sections, this will not always be the case for SHDGA and will become a source of serious efficiency problems. On the other hand, whenever SHDGA indeed follows an optimal traversal, EAA will have a traversal that is sameto-a-subtree with it.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "The previous discussion can be summarized by the next theorem.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "Theorem: If the SHDGA, at each particular step during its implicit traversal of the analysis tree, visits only the vertices representing literals that have at least one of their sets of essential arguments instantiated at the moment of the visit, then the traversal taken by the SHDGA is the same-to-a-subtree (stas) as one of the traversals taken by EAA.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "The claim of the theorem is an immediate consequence of two facts. The first is that the EAA always selects for the expansion one of the literals with a msea currently instantiated. The other is the definition of traversals being same-to-a-subtree (always choosing the same subtree for the next traversal).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "The following simple extract from a grammar, defining a wh-question, illustrates the forementioned (see Figure 2. ...\u00b0.,,,\u00b0,", |
| "cite_spans": [], |
| "ref_spans": [ |
| { |
| "start": 104, |
| "end": 113, |
| "text": "Figure 2.", |
| "ref_id": "FIGREF1" |
| } |
| ], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "whobj/this--> [this]. \u00b0\u00b0oo,ooo\u00b0\u00b0", |
| "eq_num": "(5)" |
| } |
| ], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "The input semantics for this example is wrote(who,this), and the output string who wrote this. The numbering for the edges taken by the SHDGA is given in italics, and for the EAA in roman case. Both algorithm~ expand the middle subtree first, then the left, and finally the right one.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "Each of the three subtrees has only one path, therefore the choices of their subtrees are unique, and therefore both algorithms agree on that, too. However, the way they actually traverse these subtrees is different. For example, the middle subtree is traversed bottom-up by SHDGA and top-down by EAA. whpred is expanded first by SI-IDGA (because it shares the semantics with the root, and there is an applicable nonchain rule), and also by EAA (because it is the only literal on the right-hand side of the rule (1) that has one of its msea's instantiated (its semantics)).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "After the middle subtree is completely expanded, both sibling literals for the whpred have their semantics instantiated and thus they are both ready for expansion. We must note that SHDGA will always select the leftmost literal (in this case, whsubj), whether it is ready or not. EAA will select the same in the first pass, but it will expand whobj first, and then whsubj, if we force a second pass. In the first pass, the terminals are generated in the order wrote who this, while in the second pass the order is wrote this who. The first traversal for EAA, and the only one for SHDGA are same-to-asubtree.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "GENERALITY-WISE SUPERIORITY OF EAA OVER SHDGA", |
| "sec_num": "3." |
| }, |
| { |
| "text": "EAA OVER SHDGA", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "The following example is a simplified fragment of a parser-oriented grammar for yes or no questions. Using this fragment we will illustrate some deficiencies of SHDGA.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "o.\u00b0o.ooo..", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "(1) sentence/ques(askif(S)) --> yesnoq/askif(S). The analysis tree (given on Figure 3 .) for the input semantics ques ( askif (often (see (you,him) ) ) ) (the output string being do you see him often) is presented below.", |
| "cite_spans": [ |
| { |
| "start": 118, |
| "end": 147, |
| "text": "( askif (often (see (you,him)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 77, |
| "end": 85, |
| "text": "Figure 3", |
| "ref_id": "FIGREF2" |
| } |
| ], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "Both algorithms start with the rule (1). SHDGA selects (1) because it has the left-hand side nonterminal with the same semantics as the root, and it is a nonchain rule. EAA selects (1) because its left-hand side unifies with the initial query (-?-sentence (OutString__G) / ques(askif(often(see(you,him) ", |
| "cite_spans": [ |
| { |
| "start": 243, |
| "end": 302, |
| "text": "(-?-sentence (OutString__G) / ques(askif(often(see(you,him)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "))) ).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "Next, rule (2) is selected by both algorithms. Again, by SHDGA, because it has the left-hand side nonterminal with the same semantics as the current root (yesnoq/askif...), and it is a non-chain rule; and by EAA, because the yesnoq/askif.., is the only nonterminal on the right-hand side of the previously chosen rule and it has an instantiated msea (its semantics). The crucial difference takes place when the right-hand side of rule", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "(2) is processed. EAA deterministically selects adj for expansion, because it is the only rhs literal with an instantiated msea's. As a result of expanding adj, the main verb semantics becomes instantiated, and therefore main__verb is the next literal selected for expansion. After processing of main_verb is completed, Subject, Object, and Tense variables are instantiated, so that both subj and obj become ready. Also, the tense argument for aux_verb is instantiated (Form in rule (2) In contrast, the SHDGA will proceed by selecting the leftmost literal (auxverb (Num,Pers,Form) /Aux) of the rule (2). At this moment, none of its arguments is instantiated and any attempt to unify with an auxiliary verb in a lexicon will succeed. Suppose then that have is returned and unified with aux_verb with pres._perf as Tense and sing_l as Number. This restricts further choices of subj and main_verb. However, obj will still be completely randomly chosen, and then adj will reject all previous choices. The decision for rejecting them will come when the literal adj is expanded, because its semantics is often(see(you,him)) as inherited from yesnoq, but it does not match the previous choices for aux_verb, subj, main_verb, and obj. Thus we are forced to backtrack repeatedly, and it may be a while before the correct choices are made.", |
| "cite_spans": [ |
| { |
| "start": 566, |
| "end": 581, |
| "text": "(Num,Pers,Form)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 469, |
| "end": 486, |
| "text": "(Form in rule (2)", |
| "ref_id": "FIGREF1" |
| } |
| ], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "In fact the same problem will occur whenever SHDGA selects a rule for expansion such that its leftmost righthand side literal (first to be processed) is not ready. Since SHDGA does not check for readiness before expanding a predicate, other examples similar to the one discussed above can be found easily. We may also point out that the fragment used in the previous example is extracted from an actual computer grammar for English (Sager's String Grammar), and therefore, it is not an artificial problem.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "The only way to avoid such problems with SHDGA would be to rewrite the underlying grammar, so that the choice of the most instantiated literal on the righthand side of a rule is forced. This could be done by changing rule (2) in the example above into several rules which use meta nonterminals Aux, Subj, Main_Verb, and Obj in place of literals attx verb, subj, mainverb, and obj respectively, as shown below: Since Aux, Subj, Main_Verb, and Obj are uninstantiated variables, we are forced to go directly to adj first. After adj is expanded the nonterminals to the left of it will become properly instantiated for expansion, so in effect their expansion has been delayed.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": ".....\u00b0.... yesnoq/askif(S)--> askif/S. askif/S --> Aux,", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "However, this solution seems to put additional burden on the grammar writer, who need not be aware of the evaluation strategy to be used for its grammar.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "Both algorithms handle left recursion satisfactorily. SHDGA processes recursive chain rules rules in a constrained bottom-up fashion, and this also includes deadlock prone rules. EAA gets rid of left recursive rules during the grammar normalization process that takes place at compile-time, thus avoiding the run-time overhead.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY-WISE SUPERIORITY OF", |
| "sec_num": "4." |
| }, |
| { |
| "text": "Another property of EAA regarded as superior over the SHDGA is its mult-direcfionality. EAA can be used for parsing as well as for generation. The algorithm will simply recognize that the top-level msea is now the string, and will adjust to the new situation. Moreover, EAA can be run in any direction paved by the predicates' mseas as they become instantiated at the time a rule is taken up for expansion.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MULTI-DIRECTIONALITY", |
| "sec_num": "5." |
| }, |
| { |
| "text": "In contrast, SHDGA can only be guaranteed to work in one direction, given any particular grammar, although the same architecture can apparently be used for both generation, [SNMP90] , and parsing, [K90] ", |
| "cite_spans": [ |
| { |
| "start": 173, |
| "end": 181, |
| "text": "[SNMP90]", |
| "ref_id": "BIBREF16" |
| }, |
| { |
| "start": 197, |
| "end": 202, |
| "text": "[K90]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MULTI-DIRECTIONALITY", |
| "sec_num": "5." |
| }, |
| { |
| "text": ", [N89].", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MULTI-DIRECTIONALITY", |
| "sec_num": "5." |
| }, |
| { |
| "text": "The point is that some grammars (as shown in the example above) need to be rewritten for parsing or generation, or else they must be constructed in such a way so as to avoid indeterminacy. While it is possible to rewrite grammars in a form appropriate for headfirst computation, there are real grammars which will not evaluate efficiently with SHDGA, even though EAA can handle such grammars with no problems.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MULTI-DIRECTIONALITY", |
| "sec_num": "5." |
| }, |
| { |
| "text": "In this paper we discussed several aspects of two natural language generation algorithms: SHDGA and EAA. Both algorithms operate under the same general set of conditions, that is, given a grammar, and a structured representation of meaning, they attempt to produce one or more corresponding surface strings, and do so with a minimal possible effort. We analyzed the performance of each algorithm in a few specific situations, and concluded that EAA is both more general and more efficient algorithm than SHDGA. Where EAA enforces the optimal traversal of the derivation tree by precomputing all possible orderings for nonterminal expansion, SHDGA can be guaranteed to display a compa-rable performance only if its grammar is appropriately designed, and the semantic heads are carefully assigned (manually). With other grammars SHDGA will follow non-optimal generation paths which may lead to extreme inefficiency.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "CONCLUSION", |
| "sec_num": "6." |
| }, |
| { |
| "text": "In addition, EAA is a truly multi-directional algorithm, while SHDGA is not, which is a simple consequence of the restricted form of grammar that SHDGA can safely accept. This comparison can be broadened in several directions. For example, an interesting problem that remains to be worked out is a formal characterization of the grammars for which each of the two generation algorithms is guaranteed to produce a finite and/or optimal search tree. Moreover, while we showed that SHDGA will work properly only on a subset of EAA's grammars, there may be legitimate g~ that neither algorithm can handle.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "CONCLUSION", |
| "sec_num": "6." |
| }, |
| { |
| "text": "Deadlock-prone rules are rules in which the order of the expansion of right-hand side literals cannot be determined locally (i.e. using only information available in this rule).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "", |
| "sec_num": null |
| } |
| ], |
| "back_matter": [ |
| { |
| "text": "This paper is based upon work supported by the Defense Advanced Research Project Agency under Contract N00014-90-J-1851 from the Office of Naval Research, the National Science Foundation under Grant IRI-89-02304, and the Canadian Institute for Robotics and Intelligent Systems (IRIS).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "ACKNOWLEDGEMENTS", |
| "sec_num": "7." |
| } |
| ], |
| "bib_entries": { |
| "BIBREF0": { |
| "ref_id": "b0", |
| "title": "Metamorphosis Grammars", |
| "authors": [ |
| { |
| "first": "A", |
| "middle": [], |
| "last": "Colmerauer", |
| "suffix": "" |
| } |
| ], |
| "year": 1978, |
| "venue": "Natural Language Communication with Computers", |
| "volume": "63", |
| "issue": "", |
| "pages": "133--189", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "COLMERAUER, A. 1978. \"Metamor- phosis Grammars.\" In Natural Language Communi- cation with Computers, Edited by L. Bole. Lecture Notes in Computer Science, 63. Springer-Verlag, New York, NY, pp. 133-189.", |
| "links": null |
| }, |
| "BIBREF1": { |
| "ref_id": "b1", |
| "title": "A Generalized Greibach Normal Form for DCG's", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Dymetman", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "Ministere des Communications Canada", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "DYMETMAN, M. 1990. \"A Gener- alized Greibach Normal Form for DCG's.\" CCRIT, Laval, Quebec: Ministere des Communications Can- ada.", |
| "links": null |
| }, |
| "BIBREF2": { |
| "ref_id": "b2", |
| "title": "Left-Recursion Elimination, Guiding, and Bidirectionality in Lexical Grammars", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Dymetman", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "DYMETMAN, M. 1990. \"Left-Re- cursion Elimination, Guiding, and Bidirectionality in Lexical Grammars.\" To Appear.", |
| "links": null |
| }, |
| "BIBREF3": { |
| "ref_id": "b3", |
| "title": "On Gapping Grammars", |
| "authors": [ |
| { |
| "first": "V", |
| "middle": [], |
| "last": "Dahl", |
| "suffix": "" |
| }, |
| { |
| "first": "Abramson", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| }, |
| { |
| "first": "H", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| } |
| ], |
| "year": 1984, |
| "venue": "Proceedings of the Second International Conference on Logic Programming", |
| "volume": "", |
| "issue": "", |
| "pages": "77--88", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "DAHL, V., and ABRAMSON, H. 1984. \"On Gapping Grammars.\" Proceedings of the Second International Conference on Logic Programming.Uppsala, Sweden, pp. 77-88.", |
| "links": null |
| }, |
| "BIBREF4": { |
| "ref_id": "b4", |
| "title": "Reversible Logic Grammars for Machine Translation", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Dymetman", |
| "suffix": "" |
| }, |
| { |
| "first": "Isabelle", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| }, |
| { |
| "first": "P", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| } |
| ], |
| "year": 1988, |
| "venue": "Proceedings of the 2nd International Conference on Theoretical and Methodological Issues in Machine Translation of Natural Languages", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "DYMETMAN, M., and ISABELLE, P. 1988. \"Reversible Logic Grammars for Machine Translation.\" Proceedings of the 2nd International Conference on Theoretical and Methodological Issues in Machine Translation of Natural Languages. Car- negie-Mellon University, Pittsburgh, PA.", |
| "links": null |
| }, |
| "BIBREF5": { |
| "ref_id": "b5", |
| "title": "A Symmetrical Approach to Parsing and Generation", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Dymetman", |
| "suffix": "" |
| }, |
| { |
| "first": "P", |
| "middle": [], |
| "last": "Isabelle", |
| "suffix": "" |
| }, |
| { |
| "first": "Perrault", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| }, |
| { |
| "first": "F", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Proceedings of the 13th International Conference on Computational Linguistics (COLING-90)", |
| "volume": "3", |
| "issue": "", |
| "pages": "90--96", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "DYMETMAN, M., ISABELLE, P., and PERRAULT, F. 1991. \"A Symmetrical Approach to Parsing and Generation.\" Proceedings of the 13th International Conference on Computational Linguis- tics (COLING-90). Helsinki, Finland, Vol. 3., pp. 90- 96.", |
| "links": null |
| }, |
| "BIBREF7": { |
| "ref_id": "b7", |
| "title": "Natural \u00a3zmguage Processing in Prolog", |
| "authors": [], |
| "year": null, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Natural \u00a3zmguage Processing in Prolog. Addison- Wesley, Reading, MA.", |
| "links": null |
| }, |
| "BIBREF8": { |
| "ref_id": "b8", |
| "title": "Current Issues in Parsing Technology", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Kay", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "KAY, M. 1990. \"Head-Driven Pars- ing.\" In M. Tomita (ed.), Current Issues in Parsing Technology, Kluwer Academic Publishers, Dordrecht, the Netherlands.", |
| "links": null |
| }, |
| "BIBREF9": { |
| "ref_id": "b9", |
| "title": "Functional Unification Grammar: A Formalism for Machine Translation", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Kay", |
| "suffix": "" |
| } |
| ], |
| "year": 1984, |
| "venue": "Proceedings of the lOth International Conference on Computational Linguistics", |
| "volume": "", |
| "issue": "", |
| "pages": "75--78", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "[K84] KAY, M. 1984. \"Functional Unifica- tion Grammar: A Formalism for Machine Translation.\" Proceedings of the lOth International Conference on Computational Linguistics (COLING-84). Stanford University, Stanford, CA., pp. 75-78.", |
| "links": null |
| }, |
| "BIBREF10": { |
| "ref_id": "b10", |
| "title": "~An Overview of Head-Driven Bottom-Up Generation", |
| "authors": [ |
| { |
| "first": "G", |
| "middle": [], |
| "last": "Van Noord", |
| "suffix": "" |
| }, |
| { |
| "first": "P", |
| "middle": [], |
| "last": "Peng", |
| "suffix": "" |
| }, |
| { |
| "first": "Strzalkowski", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| }, |
| { |
| "first": "T", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| } |
| ], |
| "year": 1989, |
| "venue": "Proceedings of the Second European Workshop on Natural Language Generation", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "[N89] VAN NOORD, G. 1989. ~An Over- view of Head-Driven Bottom-Up Generation.\" In Pro- ceedings of the Second European Workshop on Natu- ral Language Generation. Edinburgh, Scotland. [PS90] PENG, P., and STRZALKOWSKI, T.", |
| "links": null |
| }, |
| "BIBREF11": { |
| "ref_id": "b11", |
| "title": "An Implementation of A Reversible Grammar", |
| "authors": [], |
| "year": null, |
| "venue": "Proceedings of the 8th Conference of the Catmdian Society for the Computational Studies of Intelligence (CSCS1-90)", |
| "volume": "", |
| "issue": "", |
| "pages": "121--127", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "\"An Implementation of A Reversible Grammar.\" Proceedings of the 8th Conference of the Catmdian So- ciety for the Computational Studies of Intelligence (CSCS1-90). University of Ottawa, Ottawa, Ontario, pp. 121-127.", |
| "links": null |
| }, |
| "BIBREF12": { |
| "ref_id": "b12", |
| "title": "How to Invert A Natural Language Parser into An Efficient Generator: An Algorithm for Logic Grammars", |
| "authors": [ |
| { |
| "first": "T", |
| "middle": [], |
| "last": "Strzalkowski", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "Proceedings of the 13th International Conference on Computational Linguistics (COLING-90)", |
| "volume": "2", |
| "issue": "", |
| "pages": "90--96", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "STRZALKOWSKI, T. 1990. \"How to Invert A Natural Language Parser into An Efficient Gen- erator: An Algorithm for Logic Grammars.\" Proceed- ings of the 13th International Conference on Compu- tational Linguistics (COLING-90). Helsinki, Finland, Vol. 2., pp. 90-96.", |
| "links": null |
| }, |
| "BIBREF13": { |
| "ref_id": "b13", |
| "title": "Reversible Logic Grammars for Natural Language Parsing and Generation", |
| "authors": [ |
| { |
| "first": "T", |
| "middle": [], |
| "last": "Strzalkowski", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "Computational Intelligence Journal", |
| "volume": "6", |
| "issue": "", |
| "pages": "145--171", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "STRZALKOWSKI, T. 1990. \"Revers- ible Logic Grammars for Natural Language Parsing and Generation.\" Computational Intelligence Journal, Volume 6., pp. 145-171.", |
| "links": null |
| }, |
| "BIBREF14": { |
| "ref_id": "b14", |
| "title": "A General Computational Method for Grammar Inversion", |
| "authors": [ |
| { |
| "first": "T", |
| "middle": [], |
| "last": "Strzalkowski", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Proceedings era Workshop Sponsored by the Special Interest Groups on Generation and Parsing of the ACL", |
| "volume": "", |
| "issue": "", |
| "pages": "91--99", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "STRZALKOWSKI, T. 1991. \"A Gen- eral Computational Method for Grammar Inversion.\" Proceedings era Workshop Sponsored by the Special Interest Groups on Generation and Parsing of the ACL. Berkeley, CA., pp. 91-99.", |
| "links": null |
| }, |
| "BIBREF15": { |
| "ref_id": "b15", |
| "title": "A Semantic-Head-Driven Generation Algorithm for Unification-Based Formalisms", |
| "authors": [ |
| { |
| "first": "S", |
| "middle": [ |
| "M" |
| ], |
| "last": "Shieber", |
| "suffix": "" |
| }, |
| { |
| "first": "G", |
| "middle": [], |
| "last": "Van Noord", |
| "suffix": "" |
| }, |
| { |
| "first": "R", |
| "middle": [ |
| "C" |
| ], |
| "last": "Moore", |
| "suffix": "" |
| }, |
| { |
| "first": "Pereira", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| }, |
| { |
| "first": "F", |
| "middle": [ |
| "C N" |
| ], |
| "last": "", |
| "suffix": "" |
| } |
| ], |
| "year": 1989, |
| "venue": "Proceedings of the 27th Meeting of the ACL", |
| "volume": "", |
| "issue": "", |
| "pages": "7--17", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "SHIEBER, S.M., VAN NOORD, G., MOORE, R.C., and PEREIRA, F.C.N. 1989. \"A Semantic-Head-Driven Generation Algorithm for Uni- fication-Based Formalisms.\" Proceedings of the 27th Meeting of the ACL. Vancouver, B.C., pp. 7-17.", |
| "links": null |
| }, |
| "BIBREF16": { |
| "ref_id": "b16", |
| "title": "Semantic-Head-Driven Generation", |
| "authors": [ |
| { |
| "first": "S", |
| "middle": [ |
| "M" |
| ], |
| "last": "Shieber", |
| "suffix": "" |
| }, |
| { |
| "first": "G", |
| "middle": [], |
| "last": "Van Noord", |
| "suffix": "" |
| }, |
| { |
| "first": "R", |
| "middle": [ |
| "C" |
| ], |
| "last": "Moore", |
| "suffix": "" |
| }, |
| { |
| "first": "Pereira", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| }, |
| { |
| "first": "F", |
| "middle": [ |
| "C N" |
| ], |
| "last": "Wedekind", |
| "suffix": "" |
| }, |
| { |
| "first": "J", |
| "middle": [], |
| "last": "", |
| "suffix": "" |
| } |
| ], |
| "year": 1988, |
| "venue": "Generation as Structure Driven Derivation.* Proceedings of the 12th International Conference on Computational Linguistics", |
| "volume": "16", |
| "issue": "", |
| "pages": "732--737", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "SHIEBER, S.M., VAN NOORD, G., MOORE, R.C., and PEREIRA, F.C.N. 1990. \"Semantic-Head-Driven Generation.\" Computational Linguistics, Volume 16, Number 1. [W88] WEDEKIND, J. 1988. \"Generation as Structure Driven Derivation.* Proceedings of the 12th International Conference on Computational Linguis- tics (COL1NG-88). Budapest, Hungary, pp. 732-737.", |
| "links": null |
| } |
| }, |
| "ref_entries": { |
| "FIGREF0": { |
| "uris": null, |
| "num": null, |
| "type_str": "figure", |
| "text": "12) np(3-sing)/john --> [john]. (13) np(3-pl)/friends --> [friends]. (14) adv(VP)/often(VP)--> [often]." |
| }, |
| "FIGREF1": { |
| "uris": null, |
| "num": null, |
| "type_str": "figure", |
| "text": "2i\" ye's'noq/asld f(S)--> auxverb(Num,Pers,Form)/Aux, subj (Num,Pers)/Subj, mainverb(Form, [Sub j, Obj])/Verb, obj(_,J/Obj, adj([Verb])/S. wb,p~wr~e(wko.a,~) [ EAA's and SHDGA's STAS Traversals of Who Question's Analysis Tree." |
| }, |
| "FIGREF2": { |
| "uris": null, |
| "num": null, |
| "type_str": "figure", |
| "text": "auxverb(sing, one,pres__perf)/laave(pres__perf, sing) --> [have]. (4) aux_verb(sing,one,pres_cont)/be(pres_cont, sing-l)--> [am]. (5) auxverb(sing,one,pres)/do(pres,sing-1) --> [do]. (6) aux_verb(sing,two,pres)/do(pres,sing-2)--> [do]. (7) aux_verb(sing,three,pres)/do(pres,sing-3) --> [does]. (8) aux_verb(pl,one,pres)/do(pres,pl-1) --> [do]. (9) subj(Num,Pers)/Subj --> np(Num, Pers,su)/Subj. (10) obj(Num,Pers)/Obj --> np(Num,Pers,ob)/Obj. (11) np(Num,Pers,Case)/NP --> noun(Num,Pers, Case)/NP. (12) np(Num,Pers,Case)/NP --> pnoun(Num,Pers, Case)/NP. (13) pnoun(sing,two,su)/you --> [you]. (14) pnoun(sing,three,ob)/him --> [him]. (15) main_verb(pres,[Subj,Obj])/see(Subj,Obj) --> [see]. (15a) main_verb(pres__perf, [Subj, Obj ])/seen(Subj, Obj ) --> [seen]. (15b) mainverb(perf, [Subj,Obj])/saw(Subj, Obj) --> [saw]. (16) adj([Verb])/often(Verb)--> [often]." |
| }, |
| "TABREF2": { |
| "html": null, |
| "type_str": "table", |
| "text": "obj are expanded (in any order), Num, and Pers for aux_verb are bound, and finally aux_verb is ready, too.", |
| "content": "<table><tr><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td>). After subj,</td></tr><tr><td/><td/><td/><td colspan=\"5\">se ntee~e/ques(askifloft en(see(yoo,him)))) ] String_[]</td><td/><td/><td/><td/></tr><tr><td/><td/><td/><td/><td/><td>'</td><td>I</td><td>1</td><td/><td colspan=\"2\">Ru~ (z)</td><td/></tr><tr><td/><td/><td/><td colspan=\"5\">yesnoqlaskiffonenlsee(you,him))) [ String_[]</td><td/><td/><td/><td/><td>Rule</td></tr><tr><td colspan=\"3\">aux_verb(sing,t wo, pres)/</td><td colspan=\"2\">sobj(sing,two)/</td><td/><td colspan=\"3\">main_verb(pres, [you, him])/</td><td colspan=\"2\">obj(sing,three)</td><td/><td>adj([see(you,him) ])/</td></tr><tr><td colspan=\"3\">do(pres,sing-2) [ Idol ROI_R0</td><td colspan=\"2\">youI[youlRl] RI</td><td/><td colspan=\"3\">see(you,him) ] [see [ R2]_R2</td><td colspan=\"2\">him [ [him ] R3]_R3</td><td/><td>often(see(</td></tr><tr><td>Rule(o)</td><td/><td/><td>Role (9)</td><td/><td/><td>Rule (15)</td><td/><td/><td>Rule (10)</td><td/><td/><td>you, him)) I [one~ I [ILl Rule (16) I</td></tr><tr><td>11</td><td/><td>3</td><td>5</td><td>6</td><td/><td>4</td><td>7</td><td/><td>8</td><td/><td>10</td><td>3</td><td>11</td></tr><tr><td>V</td><td>do</td><td>1</td><td colspan=\"2\">np(sing,two,su)/ you I [you I R I]_RI Rule.z)[ 6 5</td><td/><td>1I</td><td>see</td><td>II1</td><td colspan=\"2\">np(sing,three,ob)/ him I [him [ R3]_R3 9 Rul e(l , ) I</td><td>9</td><td>I</td><td>often</td><td>V</td></tr><tr><td/><td/><td/><td colspan=\"3\">pnoun(sing,two,su)/</td><td/><td/><td/><td colspan=\"3\">pnoun(slng,three,ob)/</td></tr><tr><td/><td/><td/><td colspan=\"2\">you I [you[ RI]RI</td><td/><td/><td/><td/><td colspan=\"2\">him l [him I R3LR3</td><td/></tr><tr><td/><td/><td/><td>Rule (13)</td><td>]</td><td/><td/><td/><td/><td>Rule (14)</td><td>I</td><td/></tr><tr><td/><td/><td/><td>7</td><td>4</td><td/><td/><td/><td/><td>10</td><td/><td>8</td></tr><tr><td/><td/><td/><td>llI</td><td>you</td><td>//</td><td/><td/><td/><td>IV</td><td>him</td><td>/V</td></tr></table>", |
| "num": null |
| }, |
| "TABREF3": { |
| "html": null, |
| "type_str": "table", |
| "text": ".........", |
| "content": "<table><tr><td>Subj, Main Verb, Obj,</td></tr><tr><td>adj ([Verb],[Aux,S-ubj,Main_Verb,Obj])IS.</td></tr></table>", |
| "num": null |
| } |
| } |
| } |
| } |