File Information

File: 05-lr/acl_arc_1_sum/cleansed_text/xml_by_section/metho/84/p84-1074_metho.xml

Size: 11,637 bytes

Last Modified: 2025-10-06 14:11:44

<?xml version="1.0" standalone="yes"?>
<Paper uid="P84-1074">
  <Title>LFG ~ystsm in Prolog</Title>
  <Section position="2" start_page="358" end_page="360" type="metho">
    <SectionTitle>
ZZZ Z;~L~L:TATIO:~ OF L,.'G P~--~rTZVE~
</SectionTitle>
    <Paragraph position="0"> As indicated in section iI, two distinct ~chenata ~re enploycd in the constructions of f-~trucbures. In the current lupleuentatlon, f-3tructures are ~enerated durln~&amp;quot; the ~arslr~ process by executin~ the functional equations and ~et inclusions associated with each syntactic node. After ~e .,~urslr~ is done, the f-structures ~.~ checked whether their value assicr~ents are consistent ~ith the value conutralnts on them.</Paragraph>
    <Paragraph position="1"> The Completeness condition on ~r~atlc~l!~y is also checked after the parsln~. ~e L~'~J primitives are realized by the Prolo~ procra~s and embedded into the DCG rules. The Equational schema is executed durln~ the parsln~ process by the execution of DCG rules. The functional equation can be seen as the extension of ~e unification Of Prolog by introduclr~ equality on f-structures.</Paragraph>
    <Paragraph position="2"> A. Representations of Data Types The prlnltlve data types constructi.~ f-structures are symbols, semantic predicates, subsidiary f-structures, and sets of sy=bols, semantic predicates, or f-structures. In current implementation, these data types are represented as follows:</Paragraph>
    <Paragraph position="4"> where the &amp;quot;Id&amp;quot; is an identifier variable (ID-varlable). Each syntactic node has unique ID-variable which is used to Identify its f-structure. The &amp;quot;Obt&amp;quot; is a ordered blrmry tree each leaf contains the pair of an attribute and its value.</Paragraph>
    <Paragraph position="5"> q) set ==&gt; {elementl, element2, ..., element;!} A f-structure can be seen as a partially defined data structure, because its value is partially Emnarated by the Equational schema during the paralng process. An ordered binary tree, obt for short, is suitable for representln~ partially defined data. An obt is a binary tree whose labels are ordered. A binary tree &amp;quot;Obt&amp;quot; is represented by an term of the following foru.</Paragraph>
    <Paragraph position="7"> The &amp;quot;v(Attr,Value)&amp;quot; is a leaf node of the tree. The &amp;quot;Attr&amp;quot; is an attribute name and used as the label of the leaf node, and the &amp;quot;Value&amp;quot; is its value. The &amp;quot;Less&amp;quot; and &amp;quot;Greater&amp;quot; are also binary trees. The &amp;quot;Obt&amp;quot; is ordered when the &amp;quot;Less&amp;quot; (&amp;quot;Greater&amp;quot;) is also ordered and each label of its leaf nodes is less (greater) than the label of &amp;quot;ObtW,i.e. &amp;quot;Attr&amp;quot;. If none of the leaf of a tree is defined, it is represented by a logical variable, l~en its label is defined later, the logical variable is In~antlated. The insertion of a label and its value into an obt is done by only oneunlflcatlon, without rewrltln~ the tree.</Paragraph>
    <Paragraph position="8"> This is the merit in uslnE an ordered blna~j tree.</Paragraph>
    <Paragraph position="9"> For m Y-mple, the f-structure for the noun phrase &amp;quot;a glrl&amp;quot;, the value of the &amp;quot;subJ&amp;quot; in Fi~.1 (b), can be ~-a~leally represented in Fig. 3.</Paragraph>
    <Paragraph position="10"> The &amp;quot;Vi&amp;quot;'s in Fig. 3 are the variables representing the unlnstantlated subtrees.</Paragraph>
    <Paragraph position="11"> B. Functional !~otatlon</Paragraph>
    <Paragraph position="13"> the ~raphical representalon of an obt The functional notations are represented by !D-variables instead of l~ta variables ~ and $, i.e. ~Mta variables must be replaced by the object level variable. For example, the designator (7 subj) associated with the category 3, is described as \[subJ, IdS\], where Ida is the ZD-variable for S. ~e meta variables for bounded dominance are represented by the terms controllee(Cat) and controller(Cat), where the &amp;quot;Cat&amp;quot; is the name of the syntactic category of the controller or ccntrollee.</Paragraph>
    <Paragraph position="14"> C. Predicates for LFG Primitives The predicates for each LFG primitives are as follows : (d,dl,d2 are designators, s is a set, and &amp;quot; is a negation symbol)</Paragraph>
    <Paragraph position="16"> The &amp;quot;Old&amp;quot; and &amp;quot;New, are global value assIcnnenta. ~%ey are used to propagate the chan~es of ~iobal value assignments made by the execution of each predicate. The &amp;quot;OldC&amp;quot; and &amp;quot;~;ewC&amp;quot; are constraint lists and used to gather all the constraints in the analysis.</Paragraph>
    <Paragraph position="17"> Desides these predicates, the additional predicates are provided for checking a constraints durln~ the parsing process. They are used to k~ll the parsing process zeneratlng inconsistent result as soon as the inconsistency is found.</Paragraph>
    <Paragraph position="18"> ~e predicate &amp;quot;equate&amp;quot; gets the temporary values of the desi~nators dl and d2, consulting the global value assignments. Then &amp;quot;equate&amp;quot; performs the unification of their values. The unification is similar to set-theoretlc union except that it is only defined for sets of nondistlnct attributes. Fig. 4 shows the example trace output of the &amp;quot;equate&amp;quot; in the course of analyzing the sentence &amp;quot;a girl hands the baby a ~oy&amp;quot;.</Paragraph>
    <Paragraph position="19"> in order to keep grammar rules highly understandable, it would be better to hide unnecessary data, such as c!obal value assicr~ents or constraint lists. The macro notations similar to the original notation of LFG are provided to users for that purpose. The macro expander translates the macro notations into Prolog programs corresponding to the LFG primitives.</Paragraph>
    <Paragraph position="20"> The value of the designator Det is spec the The value of the designator ~! is hum sg per 3 pred aeu(glrl) Result of unification is spec the hum sg per 3 pred sem(glrl) Fig. 4 Tracing results of equate.</Paragraph>
    <Paragraph position="21"> This macro expansion results in considerable improvement of the wrltability and the understandability of the grammar.</Paragraph>
    <Paragraph position="22"> The syntax of macro notations are :  These macro notations for LFG primitives are placed at the third arsument of the each predicate in DCG rules correspondln~ to syntactic categories as shown in Fig. 5 (a), which corresponds to the grammar rule I. in Fig. 2.</Paragraph>
    <Paragraph position="23"> s(s(Np, Vp),Id_$,\[\]) --&gt; np(Np, I~_Np,\[eq(\[subJ,Id..S\],Id..:Ip\]),  vp(Vp, Id_Vp,\[eq(I~_S, Id..Vp)\]).</Paragraph>
    <Paragraph position="24"> (a) The DCG rule with macro for LF~ s( s( Np, Vp), I~_$, Old, :;ew, 01dO, I~ewC) --&gt; np( Np, IdJ1p, Old, Oldl, OldC, OldC1 ), {equate( \[subj, Id_S\], Id_~Ip, Oldl, 01d2) }, vp( Vp, Id__Vp, Old2,01d3, OldC1, ~ewC), {equate(Id_S, Id_Vp, Old3 ,New) }.</Paragraph>
    <Paragraph position="25"> (b) The result of macro expansion  Fig. 5 Example DCG rule for LFG analysis The variables &amp;quot;~d_S&amp;quot;, ,IdjIp,, and &amp;quot;Id_Vp&amp;quot; are the ID-variables for each syntactic category. For example, the ~rs=mar rule in Fi~. 5 (a) is translated into the one shown in Fig. 5 (b). ~cro descriptions are translated Into the corresponding predicate in the case of a ~r~ar rule. In the case of a le:cical entry, macro descriptions are translated into the corresponding predicate, which is executed further more and the f-structure of the lexical entry is generated. D. Issues on the Implementation Though f-structures are constructed durin~ the parsing process, the execution of the Equational schema is independent of the parsing  strate~'. This is necessary to keep the crayuaar rules highly declarative. There are some advantages of using Prolog in implementin~ LFG. First, the Uniqueness condition on a f-structure is fulfilled by the ori~inal unification of Prolog. Second, an ordered binary tree is a good data structure for representing a f-structure. The use of an ordered binary tree reduces the processin~ time by 30 percents compared with the case using a llst for representing a f-structure. And third, the use of ID-varlable also effective, because the sharing of a f-structure can be done oaly by one unification of the corresponding !D-variables.</Paragraph>
    <Paragraph position="26"> Though the computational complexity of the ~quational schema is very expensive, the LF~ provides expressive and natural account for lin~ulstic evidence. In order to overcome the inefficiency, the introduction of parallel or concurrent execution mechanism seems to be a promising approach. The computation model of LFG is similar to the constraint model of computation \[Steele 80\].</Paragraph>
    <Paragraph position="27"> ~qe Prolos implementation of LF~ by Reyle and Fray \[Reyle, Frey 83\] aimed at more direct translation of functional equations into DCG. Although their implementation is more efficient, it does not treat the Constraining schema, set inclusions, the compound functional equation such as (&amp;quot; vco:~p subj), and the bounded dominance. And their zr~ar rules seem to be too complex by direct encoding of f-structures into them. In order to provide an formal system havlr~ powerful description capabilities for representing syntactic knowled~es, the more LFG primitives are realized than their implementation and the ~rammar rules are more understandable and can be more easily modified in my implementation.</Paragraph>
    <Paragraph position="28">  * the glrl persuaded the baby to So&amp;quot;</Paragraph>
  </Section>
  <Section position="3" start_page="360" end_page="360" type="metho">
    <SectionTitle>
VII. AC~I~!LEDGE~NTS
</SectionTitle>
    <Paragraph position="0"> The author is thankful to Dr. K. Furuka~a, the chief of the second research laboratory of ICOT Research Center, and the me, bars of the natural language processing ~roup in ICOT Research Center, both for their discussion. The author is grateful to Dr. E. Fuchl, Director of the ICOT Research Center, for providing the opportunity to conduct this research.</Paragraph>
    <Paragraph position="1"> !'~. ~i'-&amp;quot; RESULT OF A~' EXPER~NT Fig. 6 shows the result of analyzing the sentence &amp;quot;the ~irl persuaded the baby to go&amp;quot;. LFG system is written in Dec-10 Prolog \[Pereira,et.al. 73\] and executed on Dec 2060.</Paragraph>
    <Paragraph position="2"> As shorn in Fi~. 6, the functional control \[::aplan, Eresnan 82\] is realized in the f-structure of vp. ~e value of the &amp;quot;subj&amp;quot; attribute of the &amp;quot;vcoup&amp;quot; is functionally controlled by the &amp;quot;obJ&amp;quot; of i;he f-structure of the &amp;quot;s&amp;quot; node. The time used for syntactic analysis includes the time consumed by parsinj process and the time consumed ~j ~quational schema.</Paragraph>
  </Section>
  <Section position="4" start_page="360" end_page="360" type="metho">
    <SectionTitle>
V. CO:ICLUSTON
</SectionTitle>
    <Paragraph position="0"> The Prolog implementation of LFG is described. It is the first step of the formal nysteu for represent!nz syntactic kno~;ledzes. As &amp;quot;- result, it beco.&amp;es quite obvious that Prolos is suitable for i:iD!e:~entln.- LFG.</Paragraph>
    <Paragraph position="1"> Further research on the for::al syster~ will be carried by analyzing the wider variety of actual utt-rznce~ to e':tract the more pri:~i tlves ~-eces~.r.&amp;quot; for the analyses, and to ~ive the ;:ccesaary sc:-e:~aca for tho~e pri_~itives.</Paragraph>
  </Section>
class="xml-element"></Paper>
Download Original XML