| { |
| "paper_id": "E91-1031", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T10:38:14.761870Z" |
| }, |
| "title": "Prediction in Chart Parsing Algorithms for Categorial Unification Grammar", |
| "authors": [ |
| { |
| "first": "Gosse", |
| "middle": [], |
| "last": "Bouma", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "University of Groningen", |
| "location": { |
| "postBox": "P.O. box 716", |
| "postCode": "NL-9700 AS", |
| "settlement": "Groningen", |
| "country": "The Netherlands" |
| } |
| }, |
| "email": "gosse@let.rug.nl" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "Natural language systems based on Categorial Unification Grammar (CUG) have mainly employed bottomup parsing algorithms for processing. Conventional prediction techniques to improve the efficiency of the \u2022 parsing process, appear to fall short when parsing CUG. Nevertheless, prediction seems necessary when parsing grammars with highly ambiguous lexicons or with noncanonical categorial rules. In this paper we present a lexicalist prediction technique for CUG and show thai this may lead to considerable gains in efficiency for both bottom-up and top-down parsing.", |
| "pdf_parse": { |
| "paper_id": "E91-1031", |
| "_pdf_hash": "", |
| "abstract": [ |
| { |
| "text": "Natural language systems based on Categorial Unification Grammar (CUG) have mainly employed bottomup parsing algorithms for processing. Conventional prediction techniques to improve the efficiency of the \u2022 parsing process, appear to fall short when parsing CUG. Nevertheless, prediction seems necessary when parsing grammars with highly ambiguous lexicons or with noncanonical categorial rules. In this paper we present a lexicalist prediction technique for CUG and show thai this may lead to considerable gains in efficiency for both bottom-up and top-down parsing.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Abstract", |
| "sec_num": null |
| } |
| ], |
| "body_text": [ |
| { |
| "text": "CATEGORIAL UNIFICATION GRAMMAR.. Unificationbased versions of Categorial Grammar, known as CUG or UCG, have attracted considerable attention recently (see, for instance, Uszkoreit, 1986 , Karttunen, 1986 , Bouma, 1988 , Bouma et al., 1988 , and Calder et al., 1988 . The categories of Categorial Grammar (CG) can be encoded easily as feature-structures, in which the attribute < cat > dominates either an atomic value (in case of an atomic category) or a structure with attributes < val >, < dir > and < arg > (in case of a complex category). Morphosyntactic information can be added by introducing additional labels. An example of such a category represented as attribute-value matrix is presented below. X0 --* X1 X2 X0:< 1> X1 :<2>", |
| "cite_spans": [ |
| { |
| "start": 170, |
| "end": 185, |
| "text": "Uszkoreit, 1986", |
| "ref_id": "BIBREF11" |
| }, |
| { |
| "start": 186, |
| "end": 203, |
| "text": ", Karttunen, 1986", |
| "ref_id": null |
| }, |
| { |
| "start": 204, |
| "end": 217, |
| "text": ", Bouma, 1988", |
| "ref_id": null |
| }, |
| { |
| "start": 218, |
| "end": 238, |
| "text": ", Bouma et al., 1988", |
| "ref_id": null |
| }, |
| { |
| "start": 239, |
| "end": 264, |
| "text": ", and Calder et al., 1988", |
| "ref_id": "BIBREF4" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Preliminaries", |
| "sec_num": "1" |
| }, |
| { |
| "text": "dir : left arg :< 2 > CUG is a lexicalist theory: language specific information about word order, subcategorization, agreement, case-assignment, etc., is stored primarily in the lexicon. Whereas in classical CG functor-argument structure is the only means available for describing linguistic phenomena, in CUG additional features may be used to account for phenomena such as agreement and case-marking (see Bouma 1988) . Also, whereas in classical CG all rules are in principle universal (i.e. not language-specific), in CUG there is a tendency to supplement generic categorial rules with language or construction specific rules For instance, a rule N P ~ N [+plu] may be added to account for the occurence of bare plural NPs, and specific rules may be added to account for unbounded dependency constructions (Bouma 1987) . Finally, instead of fully instantiated categorystructures, one may choose to work with polymorphic categories (Karttunen 1989 , Zeevat et al. 1987 . Consequently, CUG not only shows resemblances with traditional categorial grammar, but also with Head-driven Phrase Structure Grammar (Pollard &: Sag, 1987) , another lexicalist and unification-based framework.", |
| "cite_spans": [ |
| { |
| "start": 407, |
| "end": 418, |
| "text": "Bouma 1988)", |
| "ref_id": null |
| }, |
| { |
| "start": 650, |
| "end": 664, |
| "text": "N P ~ N [+plu]", |
| "ref_id": null |
| }, |
| { |
| "start": 809, |
| "end": 821, |
| "text": "(Bouma 1987)", |
| "ref_id": null |
| }, |
| { |
| "start": 934, |
| "end": 949, |
| "text": "(Karttunen 1989", |
| "ref_id": "BIBREF6" |
| }, |
| { |
| "start": 950, |
| "end": 970, |
| "text": ", Zeevat et al. 1987", |
| "ref_id": "BIBREF12" |
| }, |
| { |
| "start": 1107, |
| "end": 1129, |
| "text": "(Pollard &: Sag, 1987)", |
| "ref_id": "BIBREF9" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Preliminaries", |
| "sec_num": "1" |
| }, |
| { |
| "text": "CHART PARSING OF UNIFICATION GRAMMAR (UG). Parsing methods for context-free grammar can be extended to unification-based grammar formalisms (see Shieber, 1985 or Haas, 1989 , and therefore they can in principle be used to parse CUG. A chart-parser scans a sentence from left to right, while entering items, representing (partial) derivations, in a chart. Assume that items are represented as Prolog terms of the form item (Begin, End, LH S, Parsed, ToParse) , where LHS is a feature-structure and Parsed and ToParse contain lists of feature-structures. An item (O, 1, [S] , [NP] , [V, NP] ) represents a partial derivation ranging from position 0 to 1 of a constituent with feature-structure S, of which a daughter NP has been found and of which daughters V and NP are still to be parsed. A word with lexical entry Word : Cat at position Begin, leads to addition of an item item (Begin, Begin + 1, Cat, [Word] , [ ]). Next, completion and prediction steps are called until no further items can be added to the chart.", |
| "cite_spans": [ |
| { |
| "start": 145, |
| "end": 158, |
| "text": "Shieber, 1985", |
| "ref_id": "BIBREF10" |
| }, |
| { |
| "start": 159, |
| "end": 172, |
| "text": "or Haas, 1989", |
| "ref_id": "BIBREF5" |
| }, |
| { |
| "start": 422, |
| "end": 457, |
| "text": "(Begin, End, LH S, Parsed, ToParse)", |
| "ref_id": null |
| }, |
| { |
| "start": 561, |
| "end": 571, |
| "text": "(O, 1, [S]", |
| "ref_id": null |
| }, |
| { |
| "start": 574, |
| "end": 578, |
| "text": "[NP]", |
| "ref_id": null |
| }, |
| { |
| "start": 581, |
| "end": 588, |
| "text": "[V, NP]", |
| "ref_id": null |
| }, |
| { |
| "start": 879, |
| "end": 886, |
| "text": "(Begin,", |
| "ref_id": null |
| }, |
| { |
| "start": 887, |
| "end": 897, |
| "text": "Begin + 1,", |
| "ref_id": null |
| }, |
| { |
| "start": 898, |
| "end": 902, |
| "text": "Cat,", |
| "ref_id": null |
| }, |
| { |
| "start": 903, |
| "end": 909, |
| "text": "[Word]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Preliminaries", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Completion step: I For each item (B, \". E, LHS, Parsed, [NeztlToParse] ) and item (E, End, Next, Parsed, []) , add an item (B, End, LHS, Parsed+Next, ToParse) .", |
| "cite_spans": [ |
| { |
| "start": 33, |
| "end": 70, |
| "text": "(B, \". E, LHS, Parsed, [NeztlToParse]", |
| "ref_id": null |
| }, |
| { |
| "start": 82, |
| "end": 108, |
| "text": "(E, End, Next, Parsed, [])", |
| "ref_id": null |
| }, |
| { |
| "start": 123, |
| "end": 158, |
| "text": "(B, End, LHS, Parsed+Next, ToParse)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Preliminaries", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Bottom-up Prediction step: For each item (B, E, Next, Parsed, [1) , and each rule (LHS--~ [Next I RHS]), add item (B, E, LHS, [Next] , RHS).", |
| "cite_spans": [ |
| { |
| "start": 41, |
| "end": 44, |
| "text": "(B,", |
| "ref_id": null |
| }, |
| { |
| "start": 45, |
| "end": 47, |
| "text": "E,", |
| "ref_id": null |
| }, |
| { |
| "start": 48, |
| "end": 53, |
| "text": "Next,", |
| "ref_id": null |
| }, |
| { |
| "start": 54, |
| "end": 61, |
| "text": "Parsed,", |
| "ref_id": null |
| }, |
| { |
| "start": 62, |
| "end": 65, |
| "text": "[1)", |
| "ref_id": null |
| }, |
| { |
| "start": 114, |
| "end": 132, |
| "text": "(B, E, LHS, [Next]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Preliminaries", |
| "sec_num": "1" |
| }, |
| { |
| "text": "The prediction step causes the algorithm to work bottom-up.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Preliminaries", |
| "sec_num": "1" |
| }, |
| { |
| "text": "In a bottom-up chart parser, applicable rules are predicted bottom-up, and thus, lexical information is used to constrain the addition of active items (i.e. items representing partial derivations). At first sight, this method appears to be ideal for CUG, as in CUG the lexical items contain syntactic information which is language and grammar specific, whereas the rules are generic in nature. Note, however, that although 1 In these and following definitions, we assume, unless other-'wise indicated, that feature-structures denoted by identical prolog variables are unified by means of feature-unificatiom bottom-up parsing is certainly attractive for CUG, there are also a number of potential inefficiencies:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "In many cases useless items will be predicted. Consider, for instance, a grammar with a lexicon containing only the categories NP/N, N, and NP\\S, and with application as the only combinatory rules. When encountering a determiner, prediction of an item (i,i, X, [np/n] If the lexicon is highly ambiguous, many useless (partial) derivations may take place. Consider, for instance, the syntax of NPs in German, where determiners and adjectives are ambiguous with respect to case, declension pattern, gender and number (see Zwicky, 1986 , for an analysis in terms of GPSG). The sentence die junge Frau schldfl has only one derivation, but a bottom-up parser has to consider 11 possible analyses for the word junge, 6 for the phrase junge Frau, 4 for die and 2 for die junge Frau. This example shows that even irk a pure categorial system, there may be situations where top-down prediction has its merits.", |
| "cite_spans": [ |
| { |
| "start": 252, |
| "end": 267, |
| "text": "(i,i, X, [np/n]", |
| "ref_id": null |
| }, |
| { |
| "start": 520, |
| "end": 532, |
| "text": "Zwicky, 1986", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "If the grammar contains language or construction specific rules, bottom-up prediction may be less efficient. Relevant examples are the rule for form. ing bare plurals mentioned irk tile previous section and rules which implement a categorial version of gap-threading (see Pereira & Shieber, 1986 : ll4 if). The rule shemata below allow for the derivation of sentences with a preposed element and for the extraction of arguments:", |
| "cite_spans": [ |
| { |
| "start": 272, |
| "end": 301, |
| "text": "Pereira & Shieber, 1986 : ll4", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Gap-elimination: S --* X S[gap : X] Gap-introduction: X[gap : Y] ~ X/Y X[gap : Y] ---* Y\\X", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Oap-introduction will be used every time a funcfor category is encountered. Again, some form of top-down prediction could improve this situation.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "In the following sections, we will consider top-down parsing, as an alternative for the bottom-up approach, and we will consider the possibility of improving the predictive capabilities of a bottom-up parser.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "~The example may suggest that prediction should be eliminated Ml together. This option is feasible only if the rule set is restricted to application.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The Problem", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Top-down chart parsing differs from the algorithm described above only in the prediction-step, which predicts applicable rules top-down. Contrary to bottomup parsing, however, the adaptation of a top-down algorithm for UG requires some special care. For UGs which lack a so-called context-free back-bone, such as CUG, the top-down prediction step can only be guaranteed to terminate if we make use of restriction, as defined in Shieber (1985) .", |
| "cite_spans": [ |
| { |
| "start": 428, |
| "end": 442, |
| "text": "Shieber (1985)", |
| "ref_id": "BIBREF10" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Top-down prediction with a restrictor R (where R is a (finite) set of paths through a feature-structure) amounts to the following:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Restriction The restriction of a feature-structure F relative to a restrictor R is the most specific feature-structure F ~ E_ F, such that every path in F j has either an atomic value or is an element of R.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Predictor", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Step For each item (_ , End, LHS, Parsed, [Next I ToParse] ) such that Rjve~, is the restriction of Next relative to R, and each rule", |
| "cite_spans": [ |
| { |
| "start": 19, |
| "end": 58, |
| "text": "(_ , End, LHS, Parsed, [Next I ToParse]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "RNe~:t ~ RHS, add item(i,i, Rge~:t, [], RHS).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Restriction can be used to develop a top-down chart parser for CUG in which the (top-down) prediction step terminates. The result is unsatisfactory, however, for the following two reasons. First, as a consequence of the generic and language independent nature of categorial rules, the role of top-down prediction as a constraint on possible derivation steps is lost completely. Second, many useless items will be predicted due to the fact that the LHS of both rightward and leftward application always match with RJvext in the:prediction step (note that a bottom-up parser has a similar inefficiency for leftward application only). Therefore, the overhead which is introduced by top-down prediction does not pay-off. We conclude that, eventhough the introduction of restriction make it possible to parse CUG top-down, in practice, such a method has no advantages over a bottom-up approach.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Top-down Parsing", |
| "sec_num": "3" |
| }, |
| { |
| "text": "Instead of customizing existing top-down parsing algorithms for CUG, we can also try to take the opposite track. That is, we will try to represent a CUG in such a way that non-trivial forms of top-down prediction are possible.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "Top-down prediction, as described in the previous section, relies wholly on the syntactic information encoded in the syntactic rules. For CUG, this is an akward situation, as most syntactic information which could be relevant for top-down prediction is located in the lexicon. tn order to make this information accessible to the parser, we precompile the grammatical rules into a set of instantiated rules. The instantiated rules are more restrictive than the generic categorial rules, as they take lexical information into account.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "The following algorithm computes a set of instantiated syntactic rules, given a set of generic rules and a lexicon.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "Compilation For every category C, where C is either a lexical category or the LHS of an instantiated rule, and every (generic) rule GR, if C is utlifiable with the head-daughter of GR, add GR' (the result of the unification) to the set of instantiated rules, a", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "We assume that there is some way of distinguishing head-daughters from non-head daughters (for instance, by means of a feature). The head daughter should be the daughter which has the most ialluellce on the instantiation of the rule. For the application rules, for instance, the functor is the most natural choice, as the functor both determines the instantiation of the resultant category and of the argument category.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "The compilation step is correct and complete for arbitrary UGs, that is, a string is derivable using the instantiated rules if and only if it is derivable using the generic rules. Note, however, that the compilation procedure does not necessarily terminate. Consider for instance a categorial gramrnar with category raising (X/(Y\\X) ---, Y). In such a gramrnar, arbitrarily complex instantiations of this rule can be compiled. To avoid the creation of an infinite set of rules, we may again employ restriction:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "Compilation with restriction Let R be a restrictor.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "For every category C, where C is either a lexical category or the LHS of art instantiated rule, and every (generic) rule GR, if the restriction of C relative to R is unifiable with the head-daughter of GR, add GR ~ (the result of the unification) to the set of instantiated rules.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "The compilation step is guaranteed to terminate a.s long as R is finite (cf. Shieber, 1985) . The compilation procedure is not specific to a certain grammar formalism or rule set, and thus can be used to compile arbitrary UGs. Such a compilation step will give rise to a substantially more instantiated rule set in all cases 3Note that for classical CG, an algorithm of this kind can be used to compute the phrase-structure eqtfivalent of the input granunax.", |
| "cite_spans": [ |
| { |
| "start": 77, |
| "end": 91, |
| "text": "Shieber, 1985)", |
| "ref_id": "BIBREF10" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "where schematic grammar rules are used in combination with highly structured lexical items.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "For the compiled grammar, a standard top-down algorithm (such as the one in section 3) can be used. Prediction for CUG is now significant, as only rules which have a functor category that is actually derivable by the grammar will be predicted. So, starting from a category S, we will not predict leftmost categories such as S/NP, (S/NP)/NP, if no such categories can be derived from the lexical categories. Also, a leftmost argument category A will only be predicted if the grammar contains a matching functor category A~S. Finally, since we are working with the instantiated rules, morphosyntactic information can effectively be predicted top-down.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "Restriction is not only useful to guarantee termination of the compilation procedure. The precompilation procedure can in principle lead to an instantiated grammar that is considerably larger than the input grammar. For instance, given a grammar which distinguishes between plural and singular and between first, second and third person NPs, six versions of the rule S --~ NP NP\\S might be derivable. Such a multiplication is unnecessary, however, as it does not provide any information which is useful for the top-down prediction step. Choosing a restrictor which filters out all distinctions that are irrelevant to top-down prediction, can prevent an explosion of the rule set.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Lexicalist Prediction", |
| "sec_num": "4" |
| }, |
| { |
| "text": "The compilation procedure described in section 4 was developed to improve the performance of top-down parsing-algorithms for lexicalist grammars of the CUGvariety. In this section, we argue that replacing a generic CUG with its instantiated.equivalent also has advantages for bottom-up parsing. There are two reasons to believe that this is so: first, predictions based on leftward application will be less frequent and second, to an instantiated grammar non-trivial forms of top-down prediction can be added. In section 2 we pointed out that a bottom-up parser will predict many useless instances of leftward application. This is due to the fact that the leftmost daughter of leftward application is completely general and thus, given an item (B, E, Cat, Parsed, I] ), an item (B,E, X, [Cat] , [Cat\\X] ) will always be predicted. The compilation procedure presented in the previous section replaces leftward application with instantiated versions of this rule, in which the leftmost argument of the rule is instantiated. Although the instantiated rule set of a grammar is bound to be larger than the original rule set, which is a potential disadvantage, the chart will grow less fast if we use theinstantiated grammar. It is therefore worthwhile to investigate the performance of a bottom-up parser which uses a compiled grammar as opposed to a bottom-up parser working with a generic rule set.", |
| "cite_spans": [ |
| { |
| "start": 744, |
| "end": 766, |
| "text": "(B, E, Cat, Parsed, I]", |
| "ref_id": null |
| }, |
| { |
| "start": 778, |
| "end": 792, |
| "text": "(B,E, X, [Cat]", |
| "ref_id": null |
| }, |
| { |
| "start": 795, |
| "end": 802, |
| "text": "[Cat\\X]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "There is a Second reason for considering instantiated grammars. It is possible in bottom-up parsing to speed up the parsing process by adding topdown prediction. Top-down prediction is implemented with the help of a table containing items of the form left_corner (Ancestor, LeftCorner) , which lists the left-corner relation for the grammar at hand. The left-corner relation is defined as follows:", |
| "cite_spans": [ |
| { |
| "start": 263, |
| "end": 285, |
| "text": "(Ancestor, LeftCorner)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "Left-corner Category C1 is a left-corner of an ancestor category A if there is a rule A ---* C1 .... C,. The relation is,transitive: if A is a left-corner of B and B a left-corner of C, A is a left-corner of C.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "Top-down filtering is now achieved by modifying the prediction step as follows :", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "Bottom-up Prediction with Top-down Filtering:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "For each item (B, E, Cat, Parsed, []) , and each rule (Xo \"-* [Cat [ RHS] ), such that there is an item (_, B, _, _, [NeztlToParse] ) with Xo a leftcorner of Next, add item (B, E, Xo, [Cat] , RHS) 4.", |
| "cite_spans": [ |
| { |
| "start": 14, |
| "end": 37, |
| "text": "(B, E, Cat, Parsed, [])", |
| "ref_id": null |
| }, |
| { |
| "start": 54, |
| "end": 73, |
| "text": "(Xo \"-* [Cat [ RHS]", |
| "ref_id": null |
| }, |
| { |
| "start": 104, |
| "end": 131, |
| "text": "(_, B, _, _, [NeztlToParse]", |
| "ref_id": null |
| }, |
| { |
| "start": 173, |
| "end": 189, |
| "text": "(B, E, Xo, [Cat]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "For CUG it makes little sense to compute a leftcorner relation according to this definition, since any category X is a left-corner of any category Y (according to leftward application), and thus the left-corner relation can never have any predictive power.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "For an instantiated grammar, the situation is more promising. For instance, given the fact that only nomirmtive NPs occur as left-corner of S, and that every determiner which is the left-corner of NP, has a case feature which is compatible (unifiable) with that NP, it can be concluded that only nominative determiners can be left-corners of S.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "Computing the left-corner relation mechanichally for a UG will not always lead to the most economic-a| representation of the left-corner table. For exampie, in German the left-corner of an NP with case and number features X will be a determiner with identi: cal features. If we compute this, using a sufficiently 4The bottom-up parsing algorithm extended with left-corner prediction is closely related to the BUP-parser of Matsumoto et al. (1983) . The BUP-parser is based on definite clause grammar and thus, may backtrack. Minimal use is made of a chart (in which successful and failed parse attempts are stored). Our algorithm assigns a more important role to the chart and thus avoids backtracking.", |
| "cite_spans": [ |
| { |
| "start": 423, |
| "end": 446, |
| "text": "Matsumoto et al. (1983)", |
| "ref_id": "BIBREF7" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "instantiated grammar, we get 8 versions (i.e. 4 cases times 2 possible values for number) of this relation. Similar observations can be made for adjectives that are left-corners of N (where things are even worse, as we would like to take declension classes into account as well). This multiplication may lead to a needlessly large left-corner table, which, if used in the prediction step, may in fact lead to sharp decreases in parsing performanee (see also Haas, 1989 , who encountered similar problems). Note that checking a left-corner table containing feature-structures is in general expensive, as unification, rather than identity-tests, have to be carried out.", |
| "cite_spans": [ |
| { |
| "start": 458, |
| "end": 468, |
| "text": "Haas, 1989", |
| "ref_id": "BIBREF5" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "To avoid tMs problem we have found it necessary to construct the left-corner table by hand, using linguistic meta.knowledge about what is relevant, given a particular left-corner relation, to top-down prediction to compress the table to an absolute minimum. It turns out to be the case that only in this way the effect of top-down filtering will pay-off against the increased overhead of having to check the left-corner table.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Bottom-Up Parsing with Prediction", |
| "sec_num": "5" |
| }, |
| { |
| "text": "The performance of the parsing algorithms discussed in the preceding sections (a bottom-up parser for UG (BU), a top-down parser for UG (of Shieber, 1985) (TD), a top-down parser operating on an instantiated grammar (TD/1), and a bottom-up parser with topdown filtering operating on an instantiated grammar (BU/LC)) were tested on two experimental CUGs, one implementing the morphosyntactic features of German N Ps, and one implementing the syntax of WH-questions in Dutch by means of a gap-threading mechanism. Some illustrative results are listed in Tables 1 and 2 cat,val, arg, or dir}. This restrictor effectively filters out all morphosyntactic information, in as far as it is not repeated in the categorial rules. The resulting precompiled grammar is much smaller than in the case where no restriction was used or where morphosyntactic information was not completely filtered out. A categorial lexicon for German, for instance, containing only determiners, adjectives, nouns, and transitive and intransitive verbs, will give rise to more than 60 instantiated rules if precompiled without restriction, whereas only four rules are computed if R is used (i.e. only two more than in the uncompiled (categorial) grammar). The improvement in efficiency of TD/I over TD is due to the fact that no useless instances of leftward application are predicted and to the fact that no restriction is needed during parsing with an instantiated grammar. Thus, prediction based on already processed material can be maximal. As soon as we have parsed a category N P/N [+sg, +wk, +dat, +fern] , for instance, topdown prediction will add only those items that have N[+sg, +wk, +dat, +fern] as LHS.", |
| "cite_spans": [ |
| { |
| "start": 140, |
| "end": 154, |
| "text": "Shieber, 1985)", |
| "ref_id": "BIBREF10" |
| }, |
| { |
| "start": 1555, |
| "end": 1578, |
| "text": "[+sg, +wk, +dat, +fern]", |
| "ref_id": null |
| }, |
| { |
| "start": 1650, |
| "end": 1674, |
| "text": "N[+sg, +wk, +dat, +fern]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 552, |
| "end": 566, |
| "text": "Tables 1 and 2", |
| "ref_id": null |
| } |
| ], |
| "eq_spans": [], |
| "section": "Some Results", |
| "sec_num": "6" |
| }, |
| { |
| "text": "BU is almost, as efficient as TD/I, eventhough it works with a generic grammar, and thus produces (significantly) more chart-items. Once we replace the generic grammar by an instantiated grammar, and add left-corner relationships (BU/LC), the predictive capacities of the parser are maximal, and a sharp decrease in the number of chart items and parse times occurs. Gap-threading For the grammar with gap-threading (table 2) , we used a restrictor R = {< 1 \u00b0 > II = eat,val, arg,dir, gap, in or out}. The TD parser encounters serious difficulties in this case, whereas TD/I performs significantly better, but still is rather inefficient. There is a distinct difference between BU and BU/LC if we look at the number of chart items, although the difference is less marked than in the case of German. In terms of parse times the two algorithms are almost equivalent. Comparing our results with those of Shieber (1985) and Haas (1989) , we see that in all cases top-down filtering may reduce the size of the chart significantly. Whereas Haas (1989) found that top-down filtering never helps to actually decrease parse times in a bottom-up parser, we have found at least one example (German) where top-down filtering is useful.", |
| "cite_spans": [ |
| { |
| "start": 466, |
| "end": 491, |
| "text": "eat,val, arg,dir, gap, in", |
| "ref_id": null |
| }, |
| { |
| "start": 900, |
| "end": 914, |
| "text": "Shieber (1985)", |
| "ref_id": "BIBREF10" |
| }, |
| { |
| "start": 919, |
| "end": 930, |
| "text": "Haas (1989)", |
| "ref_id": "BIBREF5" |
| }, |
| { |
| "start": 1033, |
| "end": 1044, |
| "text": "Haas (1989)", |
| "ref_id": "BIBREF5" |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 415, |
| "end": 424, |
| "text": "(table 2)", |
| "ref_id": null |
| } |
| ], |
| "eq_spans": [], |
| "section": "Some Results", |
| "sec_num": "6" |
| }, |
| { |
| "text": "There is a trend in modern linguistics to replace grammars that are completely language specific by grammars which combine universal rules and principles with language specific parameter settings, lexicons, etc. This trend can be observed in such diverse frameworks as Lexical Functional Grammar, Government-Binding Theory, Head-driven Phrase Structure Grammar and Categorial Grammar. In parsing with such formalisms, especially those formalisms that are unification-based, we find that traditional parsing-techniques, eventhough they may be applicable to UG, are no longer satisfactory. In particular, prediction techniques which may be efficient for phrase structure grammar do not always carry over easily to UG. The present paper shows that if a grammar uses only schematic combinatory principles instead of phrase-structure rules, prediction is only possible if we replace the generic rules by grammar-specific instances of these rules.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Conclusions", |
| "sec_num": "7" |
| } |
| ], |
| "back_matter": [], |
| "bib_entries": { |
| "BIBREF0": { |
| "ref_id": "b0", |
| "title": "A Unification-based Analysis of Unbounded Dependencies in Categorial Grammar", |
| "authors": [ |
| { |
| "first": "G", |
| "middle": [], |
| "last": "Bourns", |
| "suffix": "" |
| } |
| ], |
| "year": 1987, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Bourns, G. 1987. A Unification-based Analysis of Un- bounded Dependencies in Categorial Grammar, in J.", |
| "links": null |
| }, |
| "BIBREF1": { |
| "ref_id": "b1", |
| "title": "Proceedings of the sixth Amsterdam Colloquium", |
| "authors": [], |
| "year": null, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "1--19", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Groenendijk, M. Stokhof, & F. Veltman (eds.) Proceed- ings of the sixth Amsterdam Colloquium, University of Amsterdam, Amsterdam, 1-19.", |
| "links": null |
| }, |
| "BIBREF3": { |
| "ref_id": "b3", |
| "title": "A Flexible Graph-Unification Formalism and its Application to Natural Language Processing", |
| "authors": [ |
| { |
| "first": "G", |
| "middle": [], |
| "last": "Bourns", |
| "suffix": "" |
| }, |
| { |
| "first": "E", |
| "middle": [], |
| "last": "Ksnig", |
| "suffix": "" |
| }, |
| { |
| "first": "&", |
| "middle": [ |
| "H" |
| ], |
| "last": "Uszkoreit", |
| "suffix": "" |
| } |
| ], |
| "year": 1988, |
| "venue": "IBM Journal of Research and Development", |
| "volume": "32", |
| "issue": "", |
| "pages": "170--184", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Bourns, G., E. KSnig, & H. Uszkoreit, 1988. A Flexi- ble Graph-Unification Formalism and its Application to Natural Language Processing, IBM Journal of Research and Development, 32, 170-184.", |
| "links": null |
| }, |
| "BIBREF4": { |
| "ref_id": "b4", |
| "title": "Unification Categoriai Grammar: a concise, extendable grammar for natural language processing", |
| "authors": [ |
| { |
| "first": "J", |
| "middle": [], |
| "last": "Calder", |
| "suffix": "" |
| }, |
| { |
| "first": "E", |
| "middle": [], |
| "last": "Klein", |
| "suffix": "" |
| }, |
| { |
| "first": "&", |
| "middle": [ |
| "H" |
| ], |
| "last": "Zeevat", |
| "suffix": "" |
| } |
| ], |
| "year": 1988, |
| "venue": "Proceedings of Coling", |
| "volume": "", |
| "issue": "", |
| "pages": "83--86", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Calder, J., E. Klein, & H. Zeevat 1988. Unification Categoriai Grammar: a concise, extendable grammar for natural language processing. Proceedings of Coling 1988, Hungarian Academy of Sciences, Budapest, 83- 86.", |
| "links": null |
| }, |
| "BIBREF5": { |
| "ref_id": "b5", |
| "title": "A Parsing Algorithm for Unification Grammar", |
| "authors": [ |
| { |
| "first": "A", |
| "middle": [], |
| "last": "Haas", |
| "suffix": "" |
| } |
| ], |
| "year": 1989, |
| "venue": "Computational Linguistics", |
| "volume": "15", |
| "issue": "4", |
| "pages": "219--232", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Haas, A. 1989. A Parsing Algorithm for Unification Grammar. Computational Linguistics 15-4, 219-232.", |
| "links": null |
| }, |
| "BIBREF6": { |
| "ref_id": "b6", |
| "title": "Radical Lexicalism", |
| "authors": [ |
| { |
| "first": "L", |
| "middle": [], |
| "last": "Karttunen", |
| "suffix": "" |
| } |
| ], |
| "year": 1989, |
| "venue": "Alternative Conceptions of Phrase Structure", |
| "volume": "", |
| "issue": "", |
| "pages": "43--66", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Karttunen, L. 1989. Radical Lexicalism. In M. Baltin & A. Kroch (eds.), Alternative Conceptions of Phrase Structure, Chicago University Press, Chicago, 43-66.", |
| "links": null |
| }, |
| "BIBREF7": { |
| "ref_id": "b7", |
| "title": "BUP : A Bottom-Up Parser embedded in Prolog", |
| "authors": [ |
| { |
| "first": "Y", |
| "middle": [], |
| "last": "Matsumoto", |
| "suffix": "" |
| }, |
| { |
| "first": "H", |
| "middle": [], |
| "last": "Tanaka", |
| "suffix": "" |
| }, |
| { |
| "first": "H", |
| "middle": [], |
| "last": "Hirakawa", |
| "suffix": "" |
| }, |
| { |
| "first": "I", |
| "middle": [ |
| "I" |
| ], |
| "last": "Miyoshi", |
| "suffix": "" |
| }, |
| { |
| "first": "&", |
| "middle": [ |
| "H" |
| ], |
| "last": "Yasukawa", |
| "suffix": "" |
| } |
| ], |
| "year": 1983, |
| "venue": "New Generation Computing", |
| "volume": "1", |
| "issue": "", |
| "pages": "145--158", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Matsumoto, Y., H. Tanaka, H. Hirakawa, II. Miyoshi, & H. Yasukawa, 1983, BUP : A Bottom-Up Parser em- bedded in Prolog. New Generation Computing, vol 1, 145-158.", |
| "links": null |
| }, |
| "BIBREF8": { |
| "ref_id": "b8", |
| "title": "Proiog and Natural Language Analysis", |
| "authors": [ |
| { |
| "first": "F", |
| "middle": [], |
| "last": "Pereira", |
| "suffix": "" |
| }, |
| { |
| "first": "&", |
| "middle": [ |
| "S" |
| ], |
| "last": "Shieber", |
| "suffix": "" |
| } |
| ], |
| "year": 1986, |
| "venue": "CSLI Lecture Notes", |
| "volume": "10", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Pereira, F., & S. Shieber (1986). Proiog and Natural Language Analysis. CSLI Lecture Notes 10, University of Chicago Press, Chicago.", |
| "links": null |
| }, |
| "BIBREF9": { |
| "ref_id": "b9", |
| "title": "Fundamentals, CSLI Lecture Notes 13", |
| "authors": [ |
| { |
| "first": "C", |
| "middle": [ |
| "\u2022 I" |
| ], |
| "last": "Pollard", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Sag", |
| "suffix": "" |
| } |
| ], |
| "year": 1987, |
| "venue": "", |
| "volume": "1", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Pollard, C. \u2022 I. Sag, 1987, Information-Based Syntax and Semantics, vol 1 : Fundamentals, CSLI Lecture Notes 13, University of Chicago Press, Chicago.", |
| "links": null |
| }, |
| "BIBREF10": { |
| "ref_id": "b10", |
| "title": "Using Restriction to Extend Parsing Algorithms for Complex-Feature-Based Algorithms", |
| "authors": [ |
| { |
| "first": "S", |
| "middle": [], |
| "last": "Shieber", |
| "suffix": "" |
| } |
| ], |
| "year": 1985, |
| "venue": "Proceedings of the g2nd Annual Meeting of the Association for Computational Linguistics", |
| "volume": "", |
| "issue": "", |
| "pages": "145--152", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Shieber, S. 1985. Using Restriction to Extend Pars- ing Algorithms for Complex-Feature-Based Algorithms. Proceedings of the g2nd Annual Meeting of the As- sociation for Computational Linguistics, University of Chicago, Chicago, 145-152.", |
| "links": null |
| }, |
| "BIBREF11": { |
| "ref_id": "b11", |
| "title": "Categorial Unification Grammars", |
| "authors": [ |
| { |
| "first": "H", |
| "middle": [], |
| "last": "Uszkoreit", |
| "suffix": "" |
| } |
| ], |
| "year": 1986, |
| "venue": "Proceedings of COLING 1985. Institut fiir angewandte Kommunikations-und Sprachforschung", |
| "volume": "", |
| "issue": "", |
| "pages": "187--194", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Uszkoreit, H. 1986. Categorial Unification Grammars. Proceedings of COLING 1985. Institut fiir angewandte Kommunikations-und Sprachforschung, Bonn, 187-194.", |
| "links": null |
| }, |
| "BIBREF12": { |
| "ref_id": "b12", |
| "title": "Categorial Grammar, Unification grammar, and Parsing", |
| "authors": [ |
| { |
| "first": "H", |
| "middle": [], |
| "last": "Zeevat", |
| "suffix": "" |
| }, |
| { |
| "first": "E", |
| "middle": [], |
| "last": "Klein", |
| "suffix": "" |
| }, |
| { |
| "first": "&", |
| "middle": [ |
| "J" |
| ], |
| "last": "Calder", |
| "suffix": "" |
| } |
| ], |
| "year": 1987, |
| "venue": "Cognitive Science", |
| "volume": "1", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Zeevat, H., E. Klein, & J. Calder, 1987. An Introduc- tion to Unification Categorial Grammar. In N. Had- dock, E. Klein, & G. Morill (eds.), Categorial Grammar, Unification grammar, and Parsing, Edinburgh Working Papers in Cognitive Science, Vol. 1.", |
| "links": null |
| } |
| }, |
| "ref_entries": {} |
| } |
| } |