An Earley-Type Recognizer for Dependency Grammar

An Earley-Type Recognizer for Dependency Grammar

An Earley-type recognizer for dependency grammar Vincenzo Lombardo and Leonardo Lesmo Dipartimento di lnformatica and Centro di Scicnza Cognitiva Universith di Torino c.so Svizzcra 185, 10149 Torino, Italy e-mail: {vincenzo, lesmo}@di.unito.it Abstract cooked The paper is a first attempt to fill a gap in the SUBJ dependency literature, by providing a mathematical result on the complexity of recognition with a dependency grammar. The chef tish paper describes an improved Earley-type T~r/ recognizer with a complexity O(IGl2n3). The ,, improvement is due to a precompilation of the the a dependency rules into parse tables, that determine the conditions of applicability of two primary (a) actions, predict and scan, used in recognition. S 1 Introduction /NP\ /V k Dependency and constituency frameworks define D N V NP different syntactic structures. Dependency grammars describe the structure of a sentence in terms of binary D N head-modifier (also called dependency) relations on I I I" I the dlef cooked a fish the words of the sentence. A dependency relation is an asymmetric relation between a word callexl head (governor, parent), and a word called modifier Figure 1. A dependency tree (a) and a p.s. (dependent, daughter). A word in the sentence can tree (b) for the sentence "The chef cooked a play the role of the head in several dependency fish". The leftward or rightward orientation relations, i.e. it can have several modifiers; but each of the arrows in the dependency tree word can play the role of the modifier exactly once. represents the order constraints: the One special word does not play the role of the modifiers that precede the head stand on its modifier in any relation, and it is named the root. The left, the modifiers that follow the head stand set of the dependency relations that can be defined on on its right. a sentence form a tree, called the dependency tree (fig. la). subject, object, xcomplement .... label the dependency Although born in the same years, dependency relations when the head is a verb. Grainmatical syntax (Tesniere 1959) and constituency, or phrase relations gained much popularity within the structure, syntax (Chomsky 1956) (see fig.lb), have unification formalisms in early 1980%. FUG (Kay had different impacts. The mainstream of formalisms 1979) and LFG (Kaplan, Bresnan 1982) exhibit consists ahnost exclusively of constituency mechanisms for producing a relational (or functional) approaches, but some of the original insights of the structure of the sentence, based on the merging of dependency tradition have found a role in the feature representations. constituency formalisms: in particular, the concept of All the recent constituency formalisms head of a phrase and the use of grammatical relations. acknowledge the importance of the lexicon, and The identification of the head within a phrase has reduce the amount of information brought by the been a major point of all the recent frameworks in phrasal categories. The "lexicalization" of context- linguistics: the X-bar theory (Jackendoff 1977), free grmnmars (Schabes, Waters 1993) points out defines phrases as projections of (pre)terminal many similarities between the two paradigms symbols, i.e. word categories; in GPSG (Gazdar et al, (Rainbow, Joshi 1992). Dependency syntax is an 1985) and HPSG (Pollard, Sag 1987), each phrase extremely lexicalized framework, because the phrase structure rule identifies a head and a related structure component is totally absent. Like the other subcategorization within its right-hand side; in HG lexicalized frameworks, the dependency approach (Pollard 1984) the head is involved in the so-called does not produce spurious grammars, and this facility head-wrapping operations, which allow the is of a practical interest, especially in writing realistic formalism to go beyond the context-free power (Joshi grammars. For instance, there are no heavily et al. 1991). ambiguous, infinitely ambiguous or cyclic Grmmnatical relations are the primitive entities of dependency grammars (such as S ~ SS; S ~ a; S --* relational grammar (Perhnutter 1983) (classified as a ~; see (Tomita 1985), pp. 72-73). dependency-based theory in (Mercuk 1988)): 723 Dependency syntax is attractive because of the T is a set of dependency rules of the form X(Y1 Y2 immediate mapping of dependency structures on the ... Yi-1 # Yi+l ... Ym), where XGC, Y1GC, predicate-argmnents structure (accessible by the .... Ym@C, and # is a special symbol that does not semantic interpreter), and because of the treatment of belong to C. (see fig. 2). free-word order constructs (Sgall et al. 1986) The modifier symbols Yj can take the form Yj*: as (Mel'cuk 1988) (Hudson 1990). A number of parsers usual, this means that an indefinite number of Yj's have been developed for some dependency (zero or more) may appear in an application of the frameworks (Fraser 1989) (Covington 1990) (Kwon, rule 1 . In the sample grammar below, this extension Yoon 1991) (Sleator, Temperley 1993) (Hahn et al. allows for several prepositional modifiers under a 1994) (Lai, Huang 1995): however, no result of single verbal or nominal head without introducing algorithmic efficiency has been published as far as intermediate symbols; the predicate-arguments we know. The theoretical worst-case analysis of structure is immediately represented by a one-level O(n 3) descends from the (weak) equivalence between (flat) dependency structure. projective dependency grammars (a restricted of Let x=al a2...ap ~W* be a sentence. A dependency dependency grammars) and context-free grammars tree of x is a tree such that: (Gaifman 1965), and not from an actual parsing 1) the nodes are the symbols ai~W (l<i<p); algorithm, This paper is a first attempt to fill a gap in the 2) a node ak,j has left daughters ak,1 ..... ak,j-1 literature between the linguistic merits of the occurring in this order and right daughters ak,j+l, dependency approach (widely debated) and the .... ak,q in this order if and only if there exist the mathematical properties of such formalisms (quite roles Ak,l: ak,1 ..... Akj: akj ..... Ak,q: ak,q in L and negleted). We describe an improved Earley-type the rule Ak,j(Ak,1 ... Akj-I # Akj+l ... Ak,q) in T. recognizer for a projective dependency formalism. As We say that ak,1 ..... akj-1, ak,j+l ..... ak,q directly a starting point we have adopted a restricted depend on ak,j, or equivalently that ak,j directly dependency formalism with context-free power, that, governs ak, 1 ..... ak,j.1, akj+l ...... ak, q. akj and ak,h for the sake of clearness, is described in the notation (h = 1 ..... j-l, j+l ..... q) are said to be in a introduced by Gaifman (1965). The dependency dependency relation, where ak,j is the head and grammar is translated into a set of parse tables that ak,h is the modifier, if there exists a sequence of determine the conditions of applicability of the nodes ai, ai+l ..... aj-l, aj such that ak directly primary parser operations. Then the recognition algorithm consults the parse tables to build the sets of depends on ak-1 for each k such that i+l~k-~j, then items as in Earley's algorithm for context-free we say that ai depends' on aj; grammars. 3) it satisfies the condition ofprojectivity with respect to the order in x, that is, if ai depends directly on aj 2 A dependency formalism and ak intervenes between them (i<k<j or j<k<i), then either ak depends on a i or ak depends on aj In this section we introduce a dependency formalism. (see fig. 3); We express the dependency relations in terms of rules 4) the root is a unique symbol as such that As: as E L that are very similar to their constituency counterpart, and As~S. i.e. context-free grammars. The formalism has been The condition of projectivity limits the expressive adapted from (Gaiflnan 1965). Less constrained power of the formalism to be equivalent to the dependency formalisms exist in the literature context-free power. Intuitively, this principle states (Mel'cuk 1988) (Fraser, Hudson 1992), but no aj aj mathematical studies on their expressive power exist. A dependency grammar is a quintuple <S, C, W, L, T>, where ai W is a finite set of symbols (vocabulary of words of a ai natural language), C is a set of syntactic categories (preterminals, in Aiki constituency terms), i' ak | i | | S is a non-empty set of root categories (C _ S), i i L is a set of category assignment rules of the form X: i i x, where XCC, x@W, and Figure 3. The condition of projectivity. X 1 The use of the Kleene star is a notational change with respect to Gaifman: however, it is not uncommon to allow the symbols on the right hand side of a rule to be YI Y2 ... Yi-1 Yi+l ... Ym regular expressions in order to augment the perspicuity Figure 2 - A dependency rule: X is the of the syntactic representation, but not the expressive governor, and Y1 ..... Ym are the dependent power of the grammar (a similar extension appears in the of X in the given order (X is in # position). context-free part of the LFG formalism (Kaplan, Bresnan 1982)). 724 that a dependent is never separated from its governor i[ Y is starred by anything other than another dependent, together s' := s' U star(.Y[~) e,l~s':=s' u {.F}; with its subtree, or by a dependent of its own. endfor each dotted string; As an example, consider the grammar V := V U is'}; GI= <iV}, E := E U {<s, s', Y>} iV,N, P, A, D}, each category {I, saw, a, tall, old, man, in, the, park, with, telescope}, until all states in V are marked; {N: I, V: saw, D: a, A: tall, A: old, N: man, P: in, D: the, graph := <V,E>.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us