<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="294"/><title>Towards Convenient Bi-Directional Grammar Formalisms</title><author surname="Newman" givenname="P."><org  name="IBM Palo Alto Scientific Center" country="USA" city="Palo Alto"/></author></firstpageheader><frontmatter><p><b>Towards Convenient Bi Directional Grammar Formalisms</b></p><p>P. Newman . IBM Palo Alto Scientific Center</p><p>1530 Page Mill Road Palo Alto, CA 94304, USA</p></frontmatter><abstract>This paper discusses the advantages for practical hi-, directional grammars of combining a lexical focus with the G PSG-originated principle of immediate-' dominance/linc.ar-precedencc (ID/LP) rule partitioning. It. also, outlines an implementation approach following these guidelines. The approach is inspired by Slot Grammar, with additions including more explicit map­pings between, surface and- internal representations, and preferential constituent ordering rules. </abstract></header><body><section number="1." title="Introduction"><p>The term <i>bi-directional grammar. formalism </i>here refers to an implementation formalism capable of producing grammars usable in both analysis and generation. Such grammars can be advantageous for machine translation and other applications for reasons of economy; they also aid in grammar validation, as suggested by Dymetman and Isabelle (1988).</p><p>There have been major strides taken in recent years in bi-directional formalisms, based on many different paradigms, in many cases, some elements of the specifi-. cations arc direction-unique. However, bi-directionalily-is not an end in itself, as contrasted with its potential gains. So the goal can be usefully approximated with formalisms which make some . limited , distinctions between information applying to parsing and to gener­ation.</p><p>Among recent, efforts in this area are: ' (a) the CRITTFR system described by Dymetman; and Isabelle (1988), in which an annotated definite clause grammar is compiled differently, based on the annotations, for the two purposes, (b) the inversion of a systemic generator by Kasper (1988) (in which phrase structure is said to be added manually for parsing), (c) the DLYV, generator of Caraceni and Stock (1988), which is based on an aug­mented transition network (A I N) and which seems to employ a "generate and. test", approach to generation, and (d) .the. Berlin G PSG elfort of Buseman and Haucnschild (1988)(in which G PSG (Gazdar, et. al. 1985) is adapted for implementation purposes to allow feasible rule specification and sequencing.</p><p>'The purpose of this paper Is to suggest that for future work in operational bi-directional formalisms, approaches combining a high degree of lexicalism with some form of GPSG-inspired ID/LP partitioning of information appear especially promising. Some formalisms with these characteristics are Ihe head-driven grammars HPSG (Pollard and Sa.g -19S7). and Slot Grammar (McCord 19$9a). The latter is currently used in the machine translation,,;system, LMT-2 (McCord 1989b), but for parsing only. Aspects of Slot Grammar will be used to illustrate the discussion, which is in four parts. Section 2 discusses the relationship, ôf a strong lexical component to bi-directionality. Section 3 dis­cusses the difficulties of obtaining realistic bi-directional grammars without ah ID/LP separation. Section 4 dis­cusses, ways in which head driven grammars, in partic­ular .Slot Grammar, avoid these difficulties. Finally, section 5 discusses some proposed extension's of Slot Grammar to illustrate, a possible organization of infor­mation for a head-driven bi-directional grammar.</p></section><section number="2." title="Lexicalism and Bi-Directionality"><p>Probably the majority of contemporary grammars place considerable information in .the; lexicon. .This is espe­cially important in a bi-directional, context because it allows direction-free statements of: , •</p><p>» Semantic representations of concepts and their asso­ciated modifiers ,</p><footnote label="8">, Alternative ways in which those semantic represent­ations can be realized in terms of, alternative expression of dependents on a syntactic level. This includes identification of pro-forma elements such as ' required , prepositions ("wait POR John"), and ■ enlire'pro-forma complements, such as'"a hand" in "give a hand"/and fixed 'position information for non-compositional and frozen corripounds.</footnote><p>» Unification-oriented mappings between the'semantic and syntactic representation's. .</p><p>• Lexical transformations originating in LFG (Bresnan 1982) for .changes in lexical form (passivization) and category (e.g., normalization), as well as alternative realizations of some concepts, ' for example, those allowed' via "raising" and "cleft.ing".      • '</p><p>Lexicons incorporating various combinations of these features are used in most, of the bi-directional systems mentioned in Section 1. Also, Lancel et al. (1988) claim that significant bi-difectionality is obtained in the SAGE system solely through the use of such lexicons, with, different syntactic components used 'in the two processing directions. . .</p></section><section number="3." title="Inverting Non-ID/IP Grammars"><p>Obtaining realistic bi-directional formulations in gram­mars not having an ID/LP partitioning of information is problematical, because extending, their ordering pro­visions to deal not only with syntactic correctness but also with semantic and textual factors exacerbates an already difficult situation with regard to ordering in such grammars.</p><p>To justify this statement, we look first at current trends in nonTD/LP grammars, and then at necessary exten­sions.</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><page local="2" global="295"/></section><section number="3" title=".1 Trends in Non-ID/LP Grammars"><p>In some contemporary versions of paradigms whose basic rules were originally intended to subsume both "ID" and "LP" information, information is reorganized so the information expressed by the basic rules is quite limited, and additions are needed to express the remainder. The fundamental cause of the modifications is the need to effectively accommodate the relatively free orderings in clause constituents of many languages. Thus, for example, in augmented phrase structure gram­mars (APSGs), which include definite clause grammars, if is inconvenient to specify each legal dependent ordering by a separate phrase structure rule. Instead, as discussed by Jensen (1987), it is more convenient to focus on binary rules, combining a node containing a head with one of its modifiers, e.g.,</p><p>VPG -&gt; VP1 MP;      VPO -&gt; VP1 PP; etc.</p><p>Using these binary forms, the phrase structure portion of the rules indicate not much more than the side of a head on which a modifier may occur. The "augmentations" have a number of responsibilities. They must, indicate ordering constraints among siblings in terms of features recording subtree "states" (i.e., to the extent that such slates are not implied by the category names). Also, explicit facilities arc needed for structure building to avoid separate nodes for each rule applied.<footnote anchor="1"/> Finally, if the rules are used in combination with a lexical orien­tation, since modifiers are indicated in phrase structure rules by general category (e.g., NP), augmentations must locale and specify the relationship between the modifier category and the specific modifier expressed type (e.g., an expected complement).</p><p>The result of this (necessary) movement of function away from the basic rules of the paradigm is a tendency toward somewhat, laborious, redundant specification. To illustrate the kind of redundancy involved, we con­struct an A PSG-style binary rule for attachment, of indi­rect objects.</p><p>The example assumes a lexicon identifying potential modifiers of a head by frames, which, by unification, map between syntactic and semantic representations of those modifiers. To allow for ordering provisions, modi­fier frames have associated labels, such as "indobj". We also assume that semantic representations of dependents include valency numbers for complements. To avoid the development, of two examples, we also ensure that the rule is bi-directionally applicable.</p><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">VP0 -&gt; VP1 MP</doubt><p>choosemodifier (VP0,VP1,NP, indobj, M, Ml) eunify (VPO.VPl, (hasobj.modifiers))</p><doubt alpha="63.6" length="22" tooSmall="False" monospace="0.0">unify(VPl.hasobj, "-")</doubt><p>uiïion(M,Ml,N) unify(VPl.modifiers, Ml);</p><doubt alpha="58.6" length="29" tooSmall="False" monospace="0.0">u11ify(VPO.mod i f i e rs, N)</doubt><p>This rule can be understood bi-directionally, if we assume that both the interpreter and "choosemodifier" are direction-sensitive. In parsing the interpreter finds a constituent unifying with (cat = vp) adjacent to one uni­fying with (cat = np) and instantiates an almost empty constituent VPO (cat = vp). "Chooscmodifier" then checks the lexicon to see if the head of VP! expects a modifier with label "indobj" whose syntactic subframe unifies with the constituent NP, and whose valency number is not yet found as a modifier in VP1. If so, it returns the result of the full unification as M, and the current value of VPLmodificrs as ML "Eunify" destructively unifies two structures except for the listed attributes. This serves in parsing to project head features upward. In parsing the next "unify" func­tion ensures that a direct object has not yet been included in VP1. The remainder of the rule, in parsing, creates the dependent list for VPO by expanding that of VP1 to include the indirect object.</p><p>Simitar rules could be constructed for less strictly ordered complements, and for adjuncts.</p><p>These operations have considerable inherent redundancy even though much function is abstracted out within "chooscmodifier". The "choosemodifier" operation occurs in all complement attachment rules. Feature projection and structure building occur in all rules, finally, the actual precedence rule aspects can be expressed more perspicuously than via feature state testing. Looking ahead slightly, one way of summa­rizing the situation is to say that when a grammar paradigm which originally combines "ID" and "LP" resorts to binary rules, especially in the presence of a lexical focus, the grammar becomes, to a large extent, a head-driven grammar, without the ability to lake full advantage of the factoring opportunities afforded.</p><subsection number="3.2" title="Extensions for Bi-Directionality"><p>So far we have covered somewhat old ground. Why are these modified approaches especially problematic in a bi-directional context? Because there one is faced with an unpleasant choice between probably untenable com­plexity and unnecessary generation.</p><p>To justify this claim, we return to the rule illustrated in section 3.1, first examining its assumed operation in a generative direction.</p><p>In generation the interpreter instantiates almost empty constituents VP1 and NP. "Choosemodifier" then attempts to find an expected modifier frame for the head of VPO with the given label whose semantic subframe (containing a valency number) unifies with one of the actual modifiers (VPO.modifiers) of VPO, and whose syn­tactic subframe unifies with NP, returns the result as M, and the remainder of the modifiers as Ml, etc.</p><p>Similar tendencies are observed in contemporary catcgorial grammars. For example, Yoo and Lee (1988) use "quo­tient" categories which specify unordered sets of possible arguments, together with separate LP rules. Bcs and Gardent (1989) also use sets within categories, together with order features to constrain adjacency.</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">2</doubt><page local="3" global="296"/><p>But such rules do not really satisfy the requirements of generation. They describe syntactically correct struc­tures but specify no ordering constraints and preferences relating to either semantic considerations (e.g., required orderings of adjective types in English, and conventional orderings of verb modifiers) or to textual considerations such as topic and focus. In parsing such provisions are needed to detect textual features, and in generation they are needed to use textual features to determine ordering. If these provisions were added, the "feature testing" aspects relating to ordering would become considerably more complicated, if expressible at all. This is because delecting and using textual considerations seems to involve taking into account the entire complex of modi­fiers for a head, which is extremely awkward in terms of binary phrase structure rules.</p><p>Ilajicova (1989) describes topic/focus determination conditions for both English and Czech; they involve both semantic role information and complex sibling relation­ships. If those conditions were expressed in the context of binary rules, it seems that a rule such as in the parse would have the responsibility of assigning x to "focus" if there has been a break to the left of x in the conventional ordering of dependent roles (for Czech), and indeterminate otherwise (until further dependents are found). In generation the rule might be licensed at a stage in generation where x is either (a) part of the topic, and VPO contains only topic dependents, or (b) part of the focus and ranks highest of the dependents in VPO in the systemic order. (Topic/focus identification criteria for English are also considered by Ilajicova, and are more complicated).</p><doubt alpha="50.0" length="12" tooSmall="False" monospace="0.0">VPD -&gt; VP1 x</doubt><p>So adding textual provisions to phrase structure rules would pose a considerable challenge. Simply put, attaching dependents to heads one at a time is a conven­ient approach in parsing, but detaching them one at a time is not a convenient approach for generation.</p><p>On the other hand, if textual provisions are omitted from the grammar, then generation would produce <i>all </i>syntactically legitimate sentences. One would then use additional rule sets to select among all the generated utterances based on semantic and textually based prefer­ences.<footnote anchor="2"/> (And rules are also need to detect textual fea­tures during analysis.)</p></subsection></section><section number="4." title="Head Driven Grammars and Slot Grammar"><p>Mead driven grammars which combine a lexical focus with a strict ID/LP partitioning avoid the problems described above. We use Slot, Grammar as an example.</p><p>The lexicon formulation of Slot Grammar is interesting in that it identifies dependents, both complements and adjuncts, by "slotnames", a device originating in earlier work by McCord (1980). The (alternative) structures which can be used to realize those slots arc factored out into separate "filler rules". These rules contain condi­tions on both prospective fillers and associated heads. They can thus be used to constrain/adjust features of the constituents under consideration, e.g., to instantiate agreement. In other words, they can be used to express many ID constraints.</p><p>'The basic linear precedence conditions of Slot Grammar are expressed by two types of rules. "Head/Slot" rules indicate the sides of the head on which a particular "slot" may appear. These rules are conditional in terms of unifiers for both head and slot filler. "Slot/slot" rules indicate, again conditionally, precedence rules among slots on the same side of a head.</p><p>Organizing information in this way allows the elimi­nation of the explicit specification of many aspects of the rule shown in section 3.1 :</p><p>1. Association of "categories" with complements and adjuncts is eliminated - ordering is stated in terms of slots rather than the more general syntactic cate­gories.</p><p>2. "Choosemodifier" becomes the basic, built-in control operation of the parser, and need not be expressed explicitly</p><p>3. Structure building operations are, to a large extent, implicit. Only variations in feature projection, etc need be expressed explicitly.</p><p>The remainder of the information in the rule is expressed by two short rules, one which indicates that indirect objects fall on the right, sides of heads, and the other that they precede direct objects.</p><p>The revised organization of information also provides the basis for dealing with semantic and textually condi­tioned ordering requirements without either undue com­plexity or exhaustive generation. 'This is because the inherent modularity allows the use of different control schemes for parsing and generation. In parsing the control scheme can be "attach one dependent at a time", using immediate dominance rules and basic linear pre­cedence constraints together. In generation the control scheme can be altered to first generate sets of depen­dents, using just immediate dominance rules, and then ordering them using both basic precedence constraints and preference-oriented ones.<page local="4" global="297"/></p><footnote label="2">There have been efforts to combine textual considerations with non-ID/LP grammars. For example, Uszkoreit (1988) uses exhaustive enumeration of alternative modifier orderings, including complements and adjuncts, with selection among alternatives made by a focus feature. However, in parsing, the suggestion must somehow "collapse" to a set-oriented approach, using the enumerated alternatives as a kind of LP rule. Also, as implied by the results of Ilajicova (1989), and explicitly argued by Hauenschild (1988), these provisions are not sufficient.</footnote><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">3</doubt></section><section number="5." title="Current Direction"><p>Recapitulating, bi-directional grammar efforts combining lexicalism with an ID/LP separation seem most prom­ising because</p><p>1. A lexical focus in itself provides a great deal of bi­directional facility.</p><p>2. In current grammars based on non-ID/LP paradigms, linear precedence constraints governing syntactic correctness are expressed by constraints on features of one node of a binary rule. Extending this approach to deal with preferential ordering is at best extremely complex, and possibly infeasible, but the alternative seems to be exhaustive generation followed by filtering.</p><p>3. In contrast, the modularity provided by an ID/LP separation allows rules to be applied in different combinations in parsing and generation.</p><p>In the work underlying this paper, a multi-lingual machine translation project, a bi-directional grammar formalism is being developed inspired by Slot Grammar, but with modifications including:</p><p>1. adding a fully reversible morphological component in the lexicon</p><p>2. expanding the lexical provisions to include explicit bi-directional mappings between syntactic and more abstract representations 3. revising the notation to facilitate reversibility.</p><p>4. using a slotnarne type-lattice to simplify the expression of generalizations.</p><p>5. adding preferential precedence rules dealing with semantic and textual considerations. The preferen­tial ordering rules are used in the analysis phase to detect textual features, and are applied after a post-parse disambiguation analysis (based on a heuristic search algorithm described in (Newman 1988)). In generation, however, the preferential ordering rules are applied together with those expressing absolute ordering constraints.</p><p>A preliminary description of these provisions has been documented (Newman, to appear). The preferential precedence rules are of two kinds: one kind relates to the association of dependents with "zones" of a constit­uent (e.g., pre-subject, pre-finite,...), and the other kind deals with their ordering within zones. Zones are used because some aspects of dependent ordering arc most conveniently described in those terms, as discussed by Quirk et al (1972), Uszkorcit (1988) and others.<footnote anchor="3"/> Zone association rules express the preferences of certain types of modifiers for certain zones, and also variations in these preferences due to textual considerations. These preferences must be balanced, by heuristics, against the needs of other modifiers and the constraints imposed by the zones themselves. Optimal ways of stating and using these preferences represents a major focus of our current work.</p><p><b>6. References.</b></p><doubt alpha="60.7" length="112" tooSmall="False" monospace="0.0">1. Bes, G.G., Gardent, C. "French Order Without Order",Proc. 4th Conf. of European Chapter of ACL(1989), 249-255</doubt><p>2. Buseman S., Ilauenschild C. "A Constructive View of GPSG or How to Make It Work", <i>Proc COLINC, 88, </i>77-82</p><doubt alpha="65.7" length="137" tooSmall="False" monospace="0.0">3. Caraceni, R., O. Stock, "Reversing a Lexically Based Parser for Generation,"Applied Artificial Intelligence,vol. 2, // 2 (1988) 149-74</doubt><p>4. Dymetman M., Isabelle, P. "Reversible Logic Grammars for Machine Translation", <i>Proc 2nd In!'I Conf on Theoretical and Methodological Issues in the Machine Translation of Natural Languages </i>(1988)</p><p>5. Gazdar, G., E. Klein, G. Pullum, I. Sag., <i>General­ized Phrase Structure Grammar, </i>Basil Blackwell (1985)</p><p>6. Ilajicova E. "A Dependency-Based Parser for Topic and Focus", <i>Proc. Intn'l Workshop on Parsing Technologies </i>(1989) 448-457</p><p>7. Ilauenschild C. "GPSG and German Word Order", in U.Reyle, C. Rohrer, eds.. <i>Natural Language Parsing and Linguistic Theories,Rciàd </i>(1988). 411-431</p><p>8. Jensen, K. "Binary Rules and Non-binary Trees", in A. Manastcr-Ramer (ed.), <i>Mathematics of Lan­guage, </i>John Benjamins (1987)</p><doubt alpha="63.6" length="88" tooSmall="False" monospace="0.0">9. Kasper, R. 'I'. "An Experimental Parser for Systemic Grammars",Proc COL1NG 88,309-312</doubt><doubt alpha="59.4" length="69" tooSmall="False" monospace="0.0">10. Kartunnen L., "Radical Lexicalism", CSLI Report CSLI-86-68 (1986)</doubt><doubt alpha="64.2" length="120" tooSmall="False" monospace="0.0">11. Lance!, J-M, Otani M., Simonin N., Danlos L. "SAGE: A Sentence Parsing and Generation System",Proc COLJNG 88,359-364</doubt><doubt alpha="59.5" length="79" tooSmall="False" monospace="0.0">12. McCord, M.C., "Slot Grammars",Computational Linguistics,vol 6, 31-43 (1980)</doubt><doubt alpha="60.5" length="86" tooSmall="False" monospace="0.0">13. McCord, M.C. "A New Version of Slot Grammar", IBM Research Report RC 14506 (1989a)</doubt><p>14. McCord, M.C. "A New Version of the Machine Translation System LMT", IBM Research Report RC 14710 (1989b), to appear in <i>Proc. International Scientific Symposium on Natural Language, and Logic, </i>Springer Lecture Notes in Computer Science</p><p>15. Newman, P. "Combinatorial Disambiguation", <i>Proc. ACL Conf. on Applied NLP </i>(1988)</p><p>I 6. Newman, P. "Symmetric Slot Grammar", to appear in <i>Proc 3rd Intn'l Conf on Theoretical and Methodological Issues in Machine Translation of Natural Languages </i>June 1990<page local="5" global="298"/></p><footnote label="3">It might be noted that to allow meaningful use of zones, the syntactic structures used in the design are very flat. Fronting is not viewed, as in most current approaches, as an example of long-distance dependency. Rather, to simplify the statement of zone-allocation and other ordering rules, dependents assigned to different zones are siblings and, as in Kartunnen (1986), auxiliaries are adjunct-like.</footnote><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">4</doubt><doubt alpha="66.3" length="83" tooSmall="False" monospace="0.0">17. Pollard, C. and I. Sag,Information-based Syntax and SemanticsVol. 1, CSU (1987)</doubt><p>18. Quirk, R., S. Grocnbaum, G. Leech, J. Svartnik, <i>A Grammar </i><i>of</i><i> Contemporary English </i>Longman (1972)</p><p>19. Uszkoreit, II. <i>Linear Precedence in Discontinuous Constituents: Complex Fronting in German, </i>CSLI Research Report CSLI-86-47 (1988).</p><doubt alpha="58.0" length="81" tooSmall="False" monospace="0.0">20. Yoo S., Lee, K. "Extended Categorial Grammar", CSLI Report CSLI-88-121 (1988)</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">5</doubt></section></body></article>