{ "paper_id": "C86-1016", "header": { "generated_with": "S2ORC 1.0.0", "date_generated": "2023-01-19T13:14:53.111921Z" }, "title": "for Unification-Based Grammars", "authors": [ { "first": "Lauri", "middle": [], "last": "Karttunen", "suffix": "", "affiliation": {}, "email": "" }, { "first": "K", "middle": [], "last": "Wittenburg", "suffix": "", "affiliation": {}, "email": "" } ], "year": "", "venue": null, "identifiers": {}, "abstract": "", "pdf_parse": { "paper_id": "C86-1016", "_pdf_hash": "", "abstract": [], "body_text": [ { "text": ", and functional unification grammar (Kay) . At the other end of the range covered by D-PATR are unification-based categorial grammars (Klein, Steedman, Uszkoreit, Wittenburg) in which all the syntactic information is incorporated in the lexicon and the remaining few combinatorial rules that build phrases are function application and composition.", "cite_spans": [ { "start": 37, "end": 42, "text": "(Kay)", "ref_id": null }, { "start": 135, "end": 175, "text": "(Klein, Steedman, Uszkoreit, Wittenburg)", "ref_id": null } ], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "Definite-clause grammars (Pereira and Warren) can also be encoded in the PATR formalism.", "cite_spans": [ { "start": 25, "end": 45, "text": "(Pereira and Warren)", "ref_id": null } ], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "What these approaches have in common is that syntactic rules and lexieal entries can be written down as sets of attribute-value pairs. Moreover, because a value at the end of one path of attributes can be shared by another path, the structures that are generated by such grammars can be thought of as directed graphs Cdags\"). Unification is the key operation for building these structures.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "Because unification is associative and commutative, statements in a unification-based grammar formalism are order-independent and bidirectional with respect to parsing and generation. For a comprehensive introduction to unification-based approaches to grammar, see Shieber 1986 (forthcoming) .", "cite_spans": [ { "start": 265, "end": 291, "text": "Shieber 1986 (forthcoming)", "ref_id": null } ], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "The idea that led to the present version of D-PATR was to produce a simple compact system for experimenting with unification-based grammars that would run on machines smaller than the Symbolics 3600 for which the original t'ATI~ implementation at SRI had been created. ", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "((0 fset)(2 fset)) ((1 fset) (2 fset subject)) ((2 fset form) finite))", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "The first specit~cation is an analogue of an I.F'~; T = annotation; the S node inherits its feature set from the VP. ", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null }, { "text": "In the above rule, the cat feature is interpreted by With these definitions, the verb entry for kiss in the stem lexicon compiles to the graph shown below.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "barl evel --one instantiating B as B' in the rule A -, B C may also have an effect on the feature sets of A and C. This is why we label the resulting edge A'{13'): C'. Using the feature set C' to find the rules that could instantiate it is no more difficult than using the original C, but it is iess efficient because the result cannot be saved and reused when another instance of C must be built later.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "cat--V invertible--false lex~ sense ~--.-~ /pred~kiss trans--~arg1~ arg2\"~~a NP syncat--L ~ /first--<~ \\-rest--< k trans \\t il---r st\\II", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "l.) PATR solves this problem by carrying the original rule along with its partially instantiated form on active edges. The matching task for the prediction step of Earley's algorithm is performed using the constituent from the original rule rather than its current instance.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "A similar problem arises when an inactive edge is entered on the chart. When the parser has instantiated C as c:\" and entered it on the chart, it has to find all the incoming active edges at the starting vertex of C\" that could be extended with the newly found constituent. If('\"", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "were :m atomic symbol, this task would be simple because it would involve only simple equality checks: because C\" is a feature set, we would have to use unification, which is a more time-consuming operation. I) PATR avoids the problem entirely by keeping track, as part of the prediction step, of what edges C\" could be used to extend.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "When an active edge is entered on the chart, one piece of information in the edge label is a pointer to the edges that could be extended with it. Initially, the list contains only the edge that generated the new edge; other edges may be added later. This information is passed along on whenever an existing edge is extended to a new one. At the point at which C\" is added to the chart, no checks are necessary because the new edge already has a pointer to every incoming edge at the starting vertex that can now perhaps be extended.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "Let us now consider a situation, in which the chart contains two adjacent edges A'(B'):C' and C\".", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" }, { "text": "In the course of trying to extend the the active edge with C\" to build A\", the parser has to unify it with the C\" and Xerox I'AIIC. For a more comprehensive discussion of I) PATI{ and its features, see Karttunen (forthcoming) .", "cite_spans": [ { "start": 202, "end": 225, "text": "Karttunen (forthcoming)", "ref_id": null } ], "ref_spans": [], "eq_spans": [], "section": "Specifications", "sec_num": "2.2" } ], "back_matter": [], "bib_entries": { "BIBREF0": { "ref_id": "b0", "title": "I,exical-functional grammar: A Formal System for Grammatical Representation", "authors": [ { "first": "R", "middle": [], "last": "Kaplan", "suffix": "" }, { "first": "J", "middle": [], "last": "Bresnan", "suffix": "" } ], "year": 1983, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Kaplan, R. and J. Bresnan, \"I,exical-functional grammar: A Formal System for Grammatical Representation,\" The Mental Representation of Grammatical Relations, J. Bresnan, ed., MIT Press, Cambdridge, Massachusetts, 1983.", "links": null }, "BIBREF1": { "ref_id": "b1", "title": "Structure Sharing with Binary Trees", "authors": [ { "first": "L", "middle": [], "last": "Karttunen", "suffix": "" }, { "first": "M", "middle": [], "last": "Kay", "suffix": "" } ], "year": 1985, "venue": "Proceedings of the 23rd Annual Meeting of the ACL", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Karttunen, L. and M. Kay, \"Structure Sharing with Binary Trees,\" Proceedings of the 23rd Annual Meeting of the ACL, Association for Computational Linguistics, 1985.", "links": null }, "BIBREF2": { "ref_id": "b2", "title": "A Development Environment for Unification-Based Grammars, CSLI Report, Center for the Study of Language and Information", "authors": [ { "first": "L", "middle": [], "last": "Karttunen", "suffix": "" }, { "first": "", "middle": [], "last": "D-Patr", "suffix": "" } ], "year": null, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Karttunen, L. D-PATR: A Development Environment for Unification-Based Grammars, CSLI Report, Center for the Study of Language and Information, Stanford, California (forthcoming in 1986).", "links": null }, "BIBREF3": { "ref_id": "b3", "title": "Parsing in Functional Unification Grammar", "authors": [ { "first": "M", "middle": [], "last": "Kay", "suffix": "" } ], "year": 1985, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Kay, M., \"Parsing in Functional Unification Grammar,\" Natural Language Parsing, D. Dowty, L. Karttunen, and A. Zwieky, eds., Cambridge University Press, Cambridge, England, 1985.", "links": null }, "BIBREF4": { "ref_id": "b4", "title": "LFG Manual", "authors": [ { "first": "C", "middle": [], "last": "Kiparsky", "suffix": "" } ], "year": 1985, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Kiparsky, C. \"LFG Manual,\" manuscript, Xerox Palo Alto Research Center, Palo Alto, California (1985).", "links": null }, "BIBREF5": { "ref_id": "b5", "title": "A Structure-Sharing Representation for Unification-Based Grammar Formalisms", "authors": [ { "first": "F", "middle": [ "C N" ], "last": "Pereira", "suffix": "" } ], "year": 1985, "venue": "Proceedings of the 23rd Annual Meeting of the ACL", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Pereira, F. C. N., \"A Structure-Sharing Representation for Unification-Based Grammar Formalisms,\" Proceedings of the 23rd Annual Meeting of the ACL, Association for Computational Linguistics, 1985.", "links": null }, "BIBREF6": { "ref_id": "b6", "title": "Definite-Clause Grammars for Language Analysis--a Survey of the Formalism and a Comparison with Augmented Transition Networks", "authors": [ { "first": "F", "middle": [ "C N" ], "last": "Pereira", "suffix": "" }, { "first": "D", "middle": [ "H D" ], "last": "Warren", "suffix": "" } ], "year": 1980, "venue": "Artificial Intelligence", "volume": "13", "issue": "", "pages": "231--278", "other_ids": {}, "num": null, "urls": [], "raw_text": "Pereira, F. C. N. and D. H. D. Warren, \"Definite-Clause Grammars for Language Analysis--a Survey of the Formalism and a Comparison with Augmented Transition Networks,\" Artificial Intelligence, 13:231-278, 1980.", "links": null }, "BIBREF7": { "ref_id": "b7", "title": "Generalized Phrase Structure Grammars. Head Grammars, and Natural Languages", "authors": [ { "first": "C", "middle": [], "last": "Pollard", "suffix": "" } ], "year": 1984, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Pollard, C., Generalized Phrase Structure Grammars. Head Grammars, and Natural Languages, Ph.D. dissertation, Stanford University, Stanford, California (1984).", "links": null }, "BIBREF8": { "ref_id": "b8", "title": "Lecture notes on head-driven phrase-structure grammar", "authors": [ { "first": "C", "middle": [], "last": "Pollard", "suffix": "" } ], "year": 1985, "venue": "Center for the Study of Language and information", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Pollard, C., Lecture notes on head-driven phrase-structure grammar, Center for the Study of Language and information, unpublished (February 1985).", "links": null }, "BIBREF9": { "ref_id": "b9", "title": "The Formalism and Implementation of PATR lI", "authors": [ { "first": "S", "middle": [ "M" ], "last": "Shieber", "suffix": "" }, { "first": "H", "middle": [], "last": "Uszkoreit", "suffix": "" }, { "first": "F", "middle": [ "C N" ], "last": "Pereira", "suffix": "" }, { "first": "J", "middle": [ "J" ], "last": "Robinson", "suffix": "" }, { "first": "M", "middle": [], "last": "Tyson", "suffix": "" } ], "year": 1983, "venue": "Sill Final Report 1894, SRI International", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Shieber, S. M., H. Uszkoreit, F. C. N. Pereira, J. J. Robinson, and M. Tyson, \"The Formalism and Implementation of PATR lI,\" Research on Interactive Acquisition and Use of Knowledge, B. Grosz and M. Stickel, eds., Sill Final Report 1894, SRI International, Menlo Park, California, 1983.", "links": null }, "BIBREF10": { "ref_id": "b10", "title": "Notes from the Unification Underground: A Compilation of Papers on Unification-Based Grammar Formalisms", "authors": [ { "first": "S", "middle": [ "M" ], "last": "Shieber", "suffix": "" }, { "first": "L", "middle": [], "last": "Karttunen", "suffix": "" }, { "first": "F", "middle": [ "C N" ], "last": "Pereira", "suffix": "" } ], "year": 1984, "venue": "Artificial Intelligence Center, SRI International", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Shieber, S. M., L. Karttunen, and F. C. N. Pereira, Notes from the Unification Underground: A Compilation of Papers on Unification-Based Grammar Formalisms. Technical Report 327, Artificial Intelligence Center, SRI International, Menlo Park, California (June 1984).", "links": null }, "BIBREF11": { "ref_id": "b11", "title": "An Introductton to Untficatton-Based Approaches to Grammar", "authors": [ { "first": "S", "middle": [ "M" ], "last": "Shieber", "suffix": "" } ], "year": 1986, "venue": "CSLI Lecture Notes Series", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "Shieber, S. M., An Introductton to Untficatton-Based Approaches to Grammar, CSLI Lecture Notes Series, (University of Chicago Press, Chicago Illinois, forthcoming in 1986).", "links": null } }, "ref_entries": { "FIGREF0": { "num": null, "type_str": "figure", "text": "The first version of I)-PATR, initially called }lUG, was written at the Scandinavian Summer Workshop for Computational Linguistics in Helsinki, Finland, at the end of August 1985. Although the actual notation for writing rules in D-PATR in some respects differs from the notation in the original PATI\u00a2 system, essentially both systems implement the samegrammar formalism. To emphasize this point, the two implementations are now called Z-PATR (Zeta-LiSP PATR) and D PATR (Interlisp-D PATR). A number of innovations that came in with l) PATR (HUG) have since migrated to Z-PATR. A case in point is the method for minimizing copying in unification that is discussed in the section on parsing and unification. Other implementation differences remain--for example, in the parsing algorithm and in the treatment of gaps--but grammars written for D-PATR are convertible into Z-PATR format, and vice versa.", "uris": null }, "FIGREF1": { "num": null, "type_str": "figure", "text": "In addition, N[' is VP's subject and vp's feature set contains the feature [form: finite]. I) I'ATI{ compiles this rule to the following graph. (From now on, we shall omit the two non-constituent attributes, arity and labels, shows, the feature set of the S-node is the same as VP'S feature set. The NP constituent has been unified with the subject in the feature set of the S and the vp.", "uris": null }, "FIGREF2": { "num": null, "type_str": "figure", "text": "Let us assume that the parser is in the process of trying to build an instance of the rule A ~ I~ C and that it has successfully instantiated B as B'. At this point, it will enter a partial instantiation of the rule on the chart. We designate this active edge as A'(B'): C'. Here the colon marks the line between daughter constituents that have been found and daughters that still need to be instantiated. When an active edge is added to the chart, the parser needs to find all the rules that match the first uninstantiated constituent to the right of the colon. Inthe case at hand, it needs to match C' against the left-hand sides of all rules to determine what rules it should now try to instantiate. For example, if there is a rule C ~ D in the grammar and C is compatible with C', a looping C: I) or C': I)' edge should be added to the chart. In the case of an ordinary phrase-structure grammar, this matching task is simple because constituents are represented by atomic category labels. Furthermore, A = A', B = B', and C = C'. For D PATR, the situation is more 78 complicated. First of all, the constituents are feature sets; second, the constituents in a partially [nstantiated rule are generally not equal to the corresponding constituents in an uninstantiated rule. Because of the links", "uris": null }, "FIGREF3": { "num": null, "type_str": "figure", "text": "constituent of the active edge. The nature of chart parsing is :inch Chat, whether or not this unificat, ion succeeds, it must not alter the contents of the two operand edges. Both A'IB'):C' and C\" must remain on l, he chart because they may be needed later on for some other unification.Because unificaLion is a destructive operation, some of the earlier implementations of unification-based chart parsing, e.g. Z-PATR, never apply it directly, instead, the feature sets are first copied and unilication is then applied to the copies.In this way, the operands are leftuntouched, us the parsing algorithm requires, but t.he method is computationally inefficient because it involves a great deal of copying. 1) PATI{ solves the problem in a novel way. In [)-PATR, unification is implemented so that the original state of the input structures can be restored after the operation has been completed. Whenever a destructive change is about to be nmde in the value of an attribute, the eell and its contents are saved in an array. After unification, all the effects of the operation can be undone by restoring the saved values. I) PATI{ takes advantage of this option in the following way. When the. parser tries to extend A'(B'): C' to A\" by unifying C' with C\", the operation is applied directly to the two feature sets without them being copied in advance. If the unification fails, its effects are simply cancelled by restoring the original feature sets from the save array. If the operation succeeds, the resulting structure is copied and then the original feature sets are then restored. The copied result remains of course unaffected by the cancellation. The following sketch summarizes the difference between I) PATI{ and earlier versions of Z.PATR with respect to copying and unification. Here X and v stand for the original feature sets, z for the result, and the copied structures are identified with primes. As the illustration shows, the new me~,hod entails making only one copy, not two, when the operation succeeds. In the event of failure, 1) I'ATR simply restores the original structures without copying anything; the old method always copies both input structures. In the case of Z-PATR, the new method has shortened parsing times by a factor of three. It is expected that this technique can be further improved by hnplcmenting some fmm of structure sharing [Karttunen :~nd Kay 1985; Pereira 1.9851 to minimize the need for copying. for example, Ronald Kaplan's IA,'(~ Grammar Writer's Workbench [Kiparsky 84]--I)-PATR [S not an implementation of a particular linguistic theory. It is designed to be an efficient generic tool for expJoring a ,'ange of grammar formalisms in which unit~cation plays a central role. Because of its fl'iendly interface and display facilities, I)-PA'rR can also be used for educational purposes, in partieular, to demonstrate chart parsing and unification. I)-PATR is not a commercial product. It is made available to users outside SRI who might wish to develop unification-based grammars. I)-I'ATR is currently being used for grammar development at s['d International. ('5LI.", "uris": null }, "TABREF0": { "type_str": "table", "num": null, "html": null, "content": "
1 Introduction
I)-PATR isadevelopment environment for
unification-based grammars on Xerox li00 series work
stations.
", "text": "It is based on the PATR formalism developed at SRI International. This formalism is suitable for encoding a wide variety of grammars. At one end of this range are simple phrase-structure grammars with no feature augmentations. The PATR formalism can also be used to encode grammars that are based on a number of current linguistic theories, such as lexical-functional grammar" }, "TABREF1": { "type_str": "table", "num": null, "html": null, "content": "
specification is a two-item list of the form
( { attributeI path ] [ path [ value } ).
, ~rammar writer.
Here attribute is an atom, path is a list, and value is
2 Grammar Formalismeither an atomic symbol, a list of specifications, or an
2.1 Rulesabbreviation tbr such a list.The last case is
distinguished from the first by prefixing the value symbol
A rule in I]-PATR is a list of atomic eot~stituent labelswith (,~) when it has an abbreviatory role. Ignoring the
that may be followed by speczfications. Specifications are(\u00a2L>cases, this gives four different kinds of specifications:
constraints upon one or more constituents of the rule. in(attribute vahte), (path value), (attribute path), and (path
the simplest case, there are no specifications and thepath). The same feature set can often be specified in
labels correspond to symbols in an ordinary phraseseveral different ways; in choosing one, we generally try
structure rule. For example, the ruleto minimize the number of parentheses.
S + NP VP
in I) PATR notation is written asBelow is a simple example of a phrase structure rule
(S NP VP)augmented with specifications.
Before a rule is used by the parser, I)-PATI{ compiles it
to a feature set. A feature set can be displayed in di[ferent
ways--for example, as a matri\u00d7 or as a directed graph. [n
this paper, we usually represent feature sets as graphs
but the matrix notation will also be used occasionally. [n
these graphs, the constituents of the rule are represented
by labeled arcs, called attributes. The nodes in the graph
are values. A value can be atomic or complex; a complex
wfiue is another set of attribute-value pairs.By
convention, the symbol on the left-hand side of a phrase
structure rule is represented by the numeric attribute 0.
Constituents on the right-hand side of the rule are
numbered left-to-right, starting with 1. The above rule
D PATR represents as the following feature set, shown
here first as a graph and then as the equivalent matrix.
O----cat--S i ..... cat--NP 2 .... cat--VP0 1 2[cat S]-[cat < [cat VF;]ID-PATR consists of four basic parts: \u2022 A unification package
arity--2ar i t,y 2I t\u2022 Interpreter for rules and lexical items
\u2022 Input output routines for directed graphs
labels II--NPlabelsNP\u2022 An Earley style chart parser.
--2--VPVThese packages are written in simple Interlisp-D for
transportability to other dialects of LISP. They do not
depend on the features of any particular machine. The
", "text": "It provides good facilities for writing and editing grammars as well as many debugging tools for the" }, "TABREF2": { "type_str": "table", "num": null, "html": null, "content": "
(xYz
((0 cat) S)
((I cat) NP)
((2 cat) VP)
[t is also legal to leave cat entirely unspecified. This
option is useful for expressing rules of function
application and composition in lexically-based categorial grammars. 2.3 Words and Stems In its present form, D-PATR does not have a morphological analyzer to relate inflected or derived forms of words to entries in a morpheme lexicon. All lexcmes must be entered individually, in anticipation of having a better (kisses (g kiss PresTense Sg3) (N kiss PI)). When convention to set up a hierarchical feature system in which initial default assignments can be overridden by later specifications. 2.4 Templates Definitions for templates have the same format as the entries in the word and stem lexicons except that there are no multiple subentries; templates are assumed to be unambiguous. A template definition is simply a List consisting of a template name and a number of specifications. For example, the template names that appear in the entries for kiss might be expanded as follows: (Note that a specification may be either a two-item list of the form discussed in section 2.2 or a name of another template,) (V OneBar) (OneBar (barlevel one)) (VMain Predicate (invertible false)) (Predicate ((trans pred) (sense))) (TakesNP ((syncat first cat) NP) ((syncat rest first cat) NP) ((syncat rest rest)(syncat tail))) (Dyadic ((trans argl) (syncat first trans)) ((trans arg2) (syncat rest first trans)))
", "text": "The default dummy symbols are x, Y, and z. instead of (S NP VP), one could just as well write solution available in the future, D-PATR presently splits the lexicon into two parts: words and stems. The format of the two lexicons is the same, but entries in the word lexicon may contain a reference to an entry in the stem lexicon. For example, the entries for am, are. ts, was, were, etc. in the word lexicon can refer to the entry for be in the stem lexicon. Consequently, what is common to all forms of the auxiliary can be stated in a single place.A [exical entry is a list consisting of a form and a list of subentrtes. Each subentry in turn is a list headed by a morphological category and any number of specifications. A specification can be a two-item list of the type discussed in the previous section or a template. A template is an abbreviation fora listofspecifications. For example, the entry for kisses in the word lexicon might look as follows: IIere N and V are used as names of morphological categories; kiss refers to an entry in the stem lexicon; PresTense, St3 and PI are templates. The fact that kiss is a stem and St3 a template is not marked; it is rather determined by where their definitions are found. The entry for kiss in the stem lexicon could be, for example, the definitions for kisses and kiss are 76 interpreted, the templates and other specifications that occur in their subentries are processed sequentially from left to right. Each item is compiled to a directed graph and superimposed on the graph previously compiled. This overwriting operation differs fl'om standard unification in that it never fails; if two specifications give conflicting values to some path, the later specification overrules the earlier one. The lexicon writer can take advantage of this" }, "TABREF3": { "type_str": "table", "num": null, "html": null, "content": "
catl/c(~t\\
le_~[ /-t,_.x~
syntactic arguments. 2.5 l,exieal Rules The expansion of morpheme definitions by means of templates is a straightforward matter: an initial graph acquires additional features and, perhaps, new values for features it already has. I)-['A'I'I{ also allows a more radical transformation by means of lexical titles. A lexical rule is a special kind of template with two attributes: m and out. [n applying a lexical rule to a graph, the latter is J]rst mentioned explicitly only in rules that introduce fillers, such as the relative-clause rule, and in the lexical entries of relative and interrogative pronouns. Other rules are automatically augmented by I)-PAI'R in the appropriate manner when they are compiled to feature sets used by the parser. By deactivating this facility, the grammar writer can also take care of fillers and gaps in a manner of his own choosing. 3 Parsing and Unification D PATR uses an active chart parser that proceeds in a top-down, breadth-first manner. Because the constituents in a rule are feature sets rather than atomic symbols, the task is a bit more complicated than in standard implementations of Earley's algorithm. We unified with the value of in. i n -the object slot in its syntactic frame, even though ....... ~ntics--relatior,-fl-,',d,dion\\ \\ SOMEBODY--arR! 7 sem(lnticsl-out / The effect of the rule is to make a transitive verb lose semantically it remains a two-place predicate. The semantic effect of the rule is to unify arg2 with the subject's semantics and to assign to argl the value SOMEI}OI)Y. This is similar to the analysis of passives in some LI,'G grammars. 2.6 Fillers and Gaps Constructh)ns such as the fb[lowing contain constituents that, semantically and syntactically, fill a vacant slot--a gap--somewhere in the adjacent structure. That paper [ don't intend to read --. Good aw)cados are hard to find --. The neighbor whose car you asked to borrow --called. Is this the company the ht.stogr'am of whose productmrt she wants to display --? From a parser's point of view, there are two main problems to be solved. For the parse to succeed, the filler needs to be available when the incomplete structure is encountered. There must also be a way to etlsure Chat a consider two cases here.
designated filler will be consumed by a gap somewhere. A
third problem is that, in relative clauses, the filler must
contain a relative pronoun.
Many solutions to these problems have been proposed
and could be implemented in D PATR. As a convenience,
D PAI'It also makes available to the grammar writer a
built-in defaultmechanismfor distributingthe
information about fillers, gaps, and relative pronouns in
an appropriate way.The original idea, conceived by
Fernando Pereira, was implemented for gaps in z PATR
by Stuart Shieber. The scheme in I)-t)A'I'R is an
improvement in that it also handles sentences with
nested filler-gap dependencies.
", "text": "If the operation succeeds, the value of out is passed on as the result. Because the values under out cart be linked selectively to the corresponding values under in, the usual result of applying a [exical rule is a metamorphosis of the input graph. As an example. let us consider the graph corresponding to a possible lexieal rule for Passive in Engiish. To make it easier to see the effect of the rule, the graph is turned aroud so that the out values are opposite to the corresponding Ln values;the indeterminates in the middle are unified with their counterparts in the word to which the rule is applied.The default mechanism uses four special features: gapln, gapOut, relIn and relOut. These features need to be" } } } }