|
{ |
|
"paper_id": "E91-1044", |
|
"header": { |
|
"generated_with": "S2ORC 1.0.0", |
|
"date_generated": "2023-01-19T10:38:10.803738Z" |
|
}, |
|
"title": "AN ALGORITHM FOR GENERATING NON-REDUNDANT QUANTIFIER SCOPINGS", |
|
"authors": [ |
|
{ |
|
"first": "Espen", |
|
"middle": [ |
|
"J" |
|
], |
|
"last": "Vestre", |
|
"suffix": "", |
|
"affiliation": { |
|
"laboratory": "", |
|
"institution": "University of Oslo", |
|
"location": { |
|
"addrLine": "Blindern", |
|
"postBox": "P.O. Box 1053", |
|
"postCode": "N-0316", |
|
"settlement": "OSLO 3", |
|
"country": "Norway" |
|
} |
|
}, |
|
"email": "espen@math.uio.no" |
|
} |
|
], |
|
"year": "", |
|
"venue": null, |
|
"identifiers": {}, |
|
"abstract": "This paper describes an algorithm for generating quantifier scopings. The algorithm is designed to generate only logically non-redundant scopings and to partially order the scopings with a given :default scoping first. Removing logical redundancy is not only interesting per se, but also drastically reduces the processing time. The input and output formats are described through a few access and construction functions. Thus, the algorithm is interesting for a modular linguistic theory, which is flexible with respect to syntactic and semantic framework.", |
|
"pdf_parse": { |
|
"paper_id": "E91-1044", |
|
"_pdf_hash": "", |
|
"abstract": [ |
|
{ |
|
"text": "This paper describes an algorithm for generating quantifier scopings. The algorithm is designed to generate only logically non-redundant scopings and to partially order the scopings with a given :default scoping first. Removing logical redundancy is not only interesting per se, but also drastically reduces the processing time. The input and output formats are described through a few access and construction functions. Thus, the algorithm is interesting for a modular linguistic theory, which is flexible with respect to syntactic and semantic framework.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Abstract", |
|
"sec_num": null |
|
} |
|
], |
|
"body_text": [ |
|
{ |
|
"text": "Natural language sentences like the notorious (1) Every man loves a woman, are usually regarded to be scope ambiguous. There have been two ways to attack this problem: To generate the most probable scoping and ignore the rest, or to generate all theoretically possible scopings.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "INTRODUCTION", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Choosing the first alternative is actually not a bad solution, since any sample piece of tex t usually contains few possibilities for (real) scope ambiguity, and since reasonable heuristics in most cases pick out the intended reading. However, there are cases which seem to be genuinely ambiguous, or where the selection of the intended reading requires extensive world knowledge.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "INTRODUCTION", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "If the second alternative is chosen, there are basically two possible approaches: To integrate the generation of scopings into the grammar (like e.g. in Johnson and Kay (90) or Halvorsen and? Kaplan (88)), or to devise a procedure that generates the scopings from the parse output (like in Hobbs and Shieber (87) ). In both cases, only structurally impossible scopings are ruled out, like the reading of (2) Every representative of a company saw most samples in which \"most samples\" is outscoped by \"every representative\" but outscopes \"a company\" (Hobbs and Shieber (87) ).", |
|
"cite_spans": [ |
|
{ |
|
"start": 290, |
|
"end": 312, |
|
"text": "Hobbs and Shieber (87)", |
|
"ref_id": null |
|
}, |
|
{ |
|
"start": 548, |
|
"end": 571, |
|
"text": "(Hobbs and Shieber (87)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "INTRODUCTION", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Logically equivalent readings are not ruled out on either of these proposals. Hobbs and Shieber argue that \"When we move beyond the two firstorder quantifiers to deal with the so-called generalized quantifiers, such as \"most\", these logical redundancies become quite rare\".", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "INTRODUCTION", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Theoretically, they become rare. But it may very well be that sentences with several occurrences of non-first-order generalized quantifiers are not very commonly used. On the other hand, sentences with several occurrences of existential or universal quantifiers may be quite common. What kinds of expressions that really resemble first-order quantifiers is of course a controversial question. But working natural language systems, with inference mechanisms that are based on f'trst-order logic, often have to simplify the interpretation process by interpreting broad classes of expressions as plain universal or existential quantifiers. Thus, the gain of generating only non-equivalent scopings may be quite significant in practical systems.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "INTRODUCTION", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "is also not treated on approaches like that of Hobbs & Shieber (87) or Johnson & Kay (90). Hobbs & Shieber (87) are quite aware of this, and give some suggestions on how to build ordering heuristics into the algorithm. On the approach of Johnson & Kay (90), scopings are generated with a DCG grammar augmented with procedure calls for \"shuffling\" and applying the quantifiers 1. The program will return new scopings by backtracking. Because of the recursive inside-out nature of the algorithm, it seems difficult to preserve generation-by-backtracking if one wants to order the scopings.", |
|
"cite_spans": [ |
|
{ |
|
"start": 47, |
|
"end": 67, |
|
"text": "Hobbs & Shieber (87)", |
|
"ref_id": null |
|
}, |
|
{ |
|
"start": 91, |
|
"end": 111, |
|
"text": "Hobbs & Shieber (87)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Ordering of the scopings according to preference", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "IThe quantifier shuffling method is essentially the same as in Pereira & Shieber (87) , but correctly avoids the \"structurally impossible\" seopings mentioned above.", |
|
"cite_spans": [ |
|
{ |
|
"start": 63, |
|
"end": 85, |
|
"text": "Pereira & Shieber (87)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Ordering of the scopings according to preference", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Scope islands: In English, only existential quantitiers may be extracted out of relative clauses. Notice the difference between (3a) An owner of every company attended the meeting.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Ordering of the scopings according to preference", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "(3b) A man who owns every company attended the meeting.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Ordering of the scopings according to preference", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "A scoping algorithm must take this into account, since it will be very difficult to filter out such readings at a later stage. In the algorithm of Johnson & Kay (90), adding such a mechanism seems to be quite easy, since the shuffling and application of quantifiers are handled in the: grammar rules. In the algorithm of Hobbs & Shieber (87) , it is a bit more difficult, since the language of the input forms does not distinguish between relative clauses and other kinds of NP modifiers.", |
|
"cite_spans": [ |
|
{ |
|
"start": 321, |
|
"end": 341, |
|
"text": "Hobbs & Shieber (87)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Ordering of the scopings according to preference", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "In general, any working scoping algorithm should meet as many linguistic constraints on scope generation as possible.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Ordering of the scopings according to preference", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The main concern of Johnson & Kay (90) is to build a grammar that is independent of semantic formalism. This is done by a DCG grammar using \"curly bracket notation\" to include calls to formalism-dependent constructor functions.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Modularity:", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "It is tempting to take this approach one step further, and let the generation Of scopings be: independent on both the syntactic and semantic theory chosen.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Modularity:", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The algorithm I propose provides solutions to the four problems mentioned above simultaneously. It is an extension and generalisation of the algorithm presented in Vestre (87) 2.", |
|
"cite_spans": [ |
|
{ |
|
"start": 164, |
|
"end": 175, |
|
"text": "Vestre (87)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "In the following I will make the (commonly made) assumption that quantified formulas are 4part objects. I will occasionally use a simple language of generalized quantifiers, where the formula format is", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "DET(x,~(x .... ),\u00a5(x .... ))", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "for determiners DET and formulas ~, ~. DET will be referred to as the determiner of the quantifier, x is its variable, ~ its restriction, and V is its scope. The term quantifier will usually refer to the determiner with variable and restriction. 2This paper is in Norwegian, I'm afraid. An English overview of the work is included in Fenstad, Langholm and Vestre (89) , but the details of the seoping algorithm are not described there.", |
|
"cite_spans": [ |
|
{ |
|
"start": 334, |
|
"end": 342, |
|
"text": "Fenstad,", |
|
"ref_id": null |
|
}, |
|
{ |
|
"start": 343, |
|
"end": 367, |
|
"text": "Langholm and Vestre (89)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Treating quantifiers in this way, it is easy to rule \u2022 out the \"structurally impossible\" scopings mentioned above because the formulas corresponding to the \"impossible scopings\" will contain free variables. For instance, in sentence (2), the variable of \"a company\" (say, y) will also occur in the restrictor of \"every representative\". So in order to avoid an unbound occurrence of that variable, \"a company\" must either have wider scope than \"every representative\" or be bound inside its restrictor.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The algorithm presupposes that a few access functions are included for the type of input structure s used. Further, a:few constructor functions must be included to define the format of the logical forms generated.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The role of the main access function, getquants, is to pick out the parts of the input structure that are quantifiers, and to return them as a list, where the list order gives the default quantification order. There are almost no limits to what kinds of input structures that may be used, but the quantifiers that are returned by the access functions must contain their restri0tors as a substructure. Of course, using input structures that already contain such lists of quantifiers as substructures will make the implementation of get.-.quants almost trivial.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "In the following, I will give some rather informal descriptions of the main functions involved. The algorithm has been implemented in Common Lisp.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "A MODULAR APPROACH", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The usual way to generate scopings is to do it inside-out: Quantifiers of a subformula are either applied to the subformula or lifted to be applied at a higher level.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "On the approach presented here, generation is done outside-ini i.e. by first choosing the outermost quantifier of the formula to be generated. The motivation behind this unorthodox move is rather pragmatic: It makes it possible, as we shall see below, to implement nonredundancy and sorting in an easy and understandable way. It is also easy to treat examples like the following, presented by Hobbs & Shieher (87):(4) Every man:i know a child of has arrived", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "where \"a child of...\" cannot be scoped outside of \"Every man\", since it (presumably) contains a variable that \"Every man\" binds. Building formulas outside-in, it is trivial to check that a formula only contains variables that are already bound.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "3The input structure will typically be output from a parser.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "There may be other good reasons for choosing an outside-in approach; e.g. if anaphora resolution is going to be integrated into the algorithm, or if scope generation is to be done incrementally: Usually, the first NP of a sentence contains the quantifier th~tt by default has the widest scope, so an outside-in algorithm is just the right match for an incremental parser.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The outside-in generation works in this way:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "1. Select one of the quantifiers returned by get-quants.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "2. Generate all possible restrictions of this quantifier by recursively scoping the restrictions.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "3. Recursively generate all possible scopes of the quantifier by applying the scoping function to the input structure with the selected quantifier (and thereby the quantifiers in its restriction) removed.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Note that get-quants is called anew for each subscoping, but it will only find quantifiers which have not yet been :applied.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "4. Finally, construct a set of formulas: by combining the quantifier with all the possible restrictions and scopes.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "AN OUTSIDE-IN ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "I will not formulate a precise definition of the algorithm in some formal programming language, but I will in the following give a half-formal clef'tuition of the main functions of the algorithm as it works in its basic version, i.e. with neither removal of logical re'dundancy nor ordering of scopings integrated into the algorithm:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "THE BASIC ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The main function is scopings which takes an in. put form of (almos0 any format and returns a set of scoped formulas: where the role of combine-restrictions is to combine scopings when there are several restrictions to a quantifier, e.g. both a relative clause and a prepositional phrase. Roughly, combine-restrictions works by using the application-deFined function build-conjunction to conjoin one element from each of the sets in its argument set.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "THE BASIC ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "scopings(form) = [ build-main(form) },", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "THE BASIC ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "This is the whole algorithm in its most basic vet, sion 4, provided of course, that the functions build. main, build-quant, build-conjunction, get-quant& get-vat and get-restrictions are defined. These may be defined to fit almost any kind of input and output structure s", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "THE BASIC ALGORITHM", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "We now turn to the enhancements which are the main concern of this paper. We first look at the most important, the removal of logically redundant scopings. To give a precise formulation of the kind of logical redundancy that we want to avoid, we first need some definitions:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "REMOVING LOGICAL REDUNDANCY", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "A determiner DET is scope-commutative if (for all suitable formulas) the following is equivalent:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "(", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "1) DET(x, Rt(x), nET(y, R2(y), S(x, y))) (2) DET(y, R2(y), DET(x, Rt(x), S(x, y)))", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "A determiner DET is restrictor-commutaave if (for all suitable formulas) the followhag is equivalent: It is easily seen that both existential and universal determiners are scope-commutative, and that existential, but not universal, determiners are restrictor-commutative. In natural language, this means that e.g. A representative of a company arrived is not ambiguous, in contrast to Every representative of every company arrived. Typical generalized quantifiers like most are neither restrictorcommutative nor scope-commutative~.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "(1) DET(x, Rl(x) & DET(y, R2(y), S2(x, y)), St(x)) (2) DET(y, R2(y), DET(x, Rl(x) & S2(x, y), St(x)))", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Since quantifiers are selected outsideAn, it is now easy to equip the algorithm with a mechanism to remove redundant scopings:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "If the surrounding quantifier had a scopecommutative determiner, quantifiers with the same determiner and which precede the surrounding quantifier in the default ordering are not selected.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "For example, this means that in Every man loves every woman, \"every man\" has to be selected before \"every woman\". The algorithm will also try \"every woman\" as the first quantifier, but will then discard that alternative because \"every man\" cannot be selected in the next step -it precedes \"every woman\" in the default ordering. For more complex sentences, this discarding may give a significant time saving, which will be discussed below.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The algorithm also takes care of the restrictorcommutativity of existential determiners by using the same technique of comparing with the surrounding quantifier when restrictions on quantifiers are recursively scoped.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Definition", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Generating outside-in, one has a \"global\" view of the generation process, which may be an advantage when trying to integrate ordering of scoping according to preference into the algorithm. As an example, the implemented algorithm provides a very simple kind of preference ordering: A scoping is considered \"better\" than another scoping ff the number of quantifiers occurring in a non-default position is lower.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "PARTIALLY ORDERING THE SCOPINGS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "It is supposed that the input comes with a default ordering, and that the application-specific function get-quants takes care of this. This default order may reflect several heuristics for scope generation; e.g. that the of-complements of NPs usually take scope over the whole NP (and thus should be lifted by default).", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "PARTIALLY ORDERING THE SCOPINGS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The trick is now to assign a \"penalty\" number to every sub-scoping. Every time several quantifiers can be chosen at a given step, the penalty is increased by 1 if aquantifier different from the default one is chosen. And every time a quantifier is cont structed, its penalty is set to the sum of the penalties of the restrictor and scope subformulas. Thus, the penalty counts the number of quantifier displace, ments (compared to the default scoping). The main function of the Common Lisp implementation thus looks like thisT:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "PARTIALLY ORDERING THE SCOPINGS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "(defun scoplngs (form) Here prefer is a function which increases the penalty of each Of the scopings in its second list, and calls merge-scopings on the two lists. Merge-scopings merges thetwo lists with the penalty as ordering criterion. This function is used whenever needed by the algorithm, such that one never needs to reorder the scoping list. From the last function-call above, one can also see how the coding of penalties is done: Atomic formulas are marked with a zero in their car. This number is later removed, the penalty is always stored only in the car of the whole scoped formula.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "PARTIALLY ORDERING THE SCOPINGS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Whether it ,is a general constraint on English may be questionable, but at least for practical purposes it seems reasonable to assume that no other quantifiers than the existential quantifier may be extracted out of a relative clause.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The algorithm makes it easy to implement such a constraint. Since the quantifiers that can be used at a given step are given by the application-defined function get-quants, it is easy for any implementation of get.quants to filter out all non-existential quantifiers when looking for quantifiers inside a relative clause. Here some of the burden is put on the grammar:. The parts of the input structures that correspond to relative clauses must be marked to be distinguishable from e.g. PP complements'.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "61\"o prove non-scope-commutativity of most, construct an actual example where Most men love most women holds, but Most women are loved by most men does not hold (with the default seopings)I 7For clarity, the mechanism for removing logical redundancy is left out hero. SOne could also put all the burden on the grammar, if one wanted the structures to contain the quantifier list as a THE NUMBER OF SCOPINGS Hobbs and Shieber (87) point out that just by avoiding those scopings that are structurally impossible, the number of scopings generated is significantly lower than n!. For the following sentence, the reduction is from 81 = 40320 to \"only\" 2988:", |
|
"cite_spans": [ |
|
{ |
|
"start": 407, |
|
"end": 429, |
|
"text": "Hobbs and Shieber (87)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "(5) A representative of a department of a company gave a friend of a director of a company a sample of a product.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Of course, the sentence has only one \"real\" scoping! Since the algorithm presented here avoids logical non-redundancy by looking at the default order already when a quantifier is selected for the generation of a subformula, the gain for sentences like (5) is Iremendous 9.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The above suggests that complexity for scoping algorithms is a function of both the number of quantifiers in the input, and of the structure of the input. The highest number of scopings is obtained when the input contains n quantifiers, none of which are contained in a restriction to one of the others. An example of this is Most women give most men a flower. In such cases, no quantifier permutations can be sorted out on structural grounds, so the number of scopings is n!.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "For more complex sentences, the picture is fairly complex. The easiest task is to look at the case where the lowest number of scopings are obtained (disregarding logical redundancy), when all quantifiers are nested inside each other, e.g. It is easy to see that if N is the function that counts the number of scopings in such a sentence, then n N(n) = EN (n -k)N (k -I ) kfl Here N(n -k)N (k -1 ) is the number of subscopings generated if quantifier number k is selected as the outermost, the factors are the number of substructure. This seems difficult to do with a pure unification grammar, however. 9Fx)r this particular sentence, the single seeping is generated in less than 1/200 of the time required to generate the 2988 scopings of the same sentence with 'most' substituted for 'a'. scopings of the restriction and scope of that quantifier, respectively. Of course, N(0) = 1.", |
|
"cite_spans": [ |
|
{ |
|
"start": 355, |
|
"end": 370, |
|
"text": "(n -k)N (k -I )", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "It can be shown that t0 (2n) t N(n) -nt(n + 1 ) ! Further, estimating by Stirlings formula for n/we get the following (rough) estimate: 4 n", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "SCOPE OF RELATIVE CLAUSE QUANTIFIERS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The important observation here, is that that the number of scopings of the completely nested sentences no longer is of faculty order, but of\"only\" exponential order. This gives us a mathematical conf'm~nation of the suspicion that the number of scop, ings of such sentences is significantly lower than the number of permutations of quantifiers. For sen~ tences which contain two argument NPs and the rest of the quantifiers nested inside each of these, the number of scopings is also N(n). For sentences with three argument NPs, it is somewhat higher, but still of exponential order.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Jr(n) (,;+ l", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "What is the optimal way to generate (an explicit representation of) the n! scopings of the worst case? The absolute lower bound of the time complexity: will necessarily be at least as bad as the lower bound on space complexity. And the absolute lower bound on space complexity is given by the size of an optimally structure-sharing direct representation of the n! scopings. Such a representation will only con~ tain one instance of each possible subscoping, but it has to contain all subscopings as substructures. This makes a total of n + n.(n-1)+...+n! subscopings. Factoring out n!, we get n!(1 + 1/1! + 1/2! +...+l/(n-1)!). Readers trained in elementary cab culus, will recognize the latter sum as the Taylor polynomial of degree n-1 around 0 of the exponential function, applied to argument 1, i.e. the sum con. verges to the number e. This means that the total number of subscopings -and hence the lower bound on space complexity -is of order n!.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "COMPUTATIONAL COMPLEXITY", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Without any structure-sharing, the number of subscopings generated will of course be n.n!. This is exactly what happens here: The algorithm pre, sented is O(n2.n!) in time and space (provided that no redundancy occurs). This estimate presupposes that get-quants is of order n in both time and space, even when less than n quantifiers are left (presumably this figure will be better for some ira-10See e.g. Jacobsen (51), p. 19. plementations of get-quants). By comparison, the Hobbs & Shieber algorithm is O(n!), by using optimal structure sharing.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "COMPUTATIONAL COMPLEXITY", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Does this mean that the outside-in approach should be rejected? Note that we above only considered the non-nested case. In the nested case, the algorithm presented here gains somewhat, while the Hobbs&Shieber algorithm loses somewhat. In both cases, scoping of restrictions has to be redone for every new application of the quantifier they restrict This means that in the general case, the Hobbs & Shieber algorithm no longer provides optimal structure sharing, while the algorithm presented here provides a modest structure sharing. Now, both algorithms can of course be equipped with a hash table (or even a plain array) for storing sets of subscopings (by the qnantifiers left to be bound). This has been successfully tried out with the algorithm presented here. It brings the complexity down to the optimal: O(n!) in the worst :case, and similarly to O(4nn \"3/2) in the completely nested ease. So, there is, at least in theory, nothing to be lost in efficiency by using an outside-in algorithm.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "COMPUTATIONAL COMPLEXITY", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "What about the promised reduction of complexity due to redundancy checking? We consider the case where a sentence contains n un-nested existential quantifiers. Then the complexity is given by the number of times the algorithm tries to generate a subscoping, multiplied by the complexity of getquants. When quantifier number k is selected as the outermost, n-k quantifiers are left applicable in the resulting recursive call to the algorithm. Let S be the function that counts the number of subscopings considered. We have: n S(n) = 1 + ES(n\" k) = 2\"-1 k=l Thus, in the single-scoping case the algorithm is O(n-2\") for input with un-nested qnantifiers (and even lower for nested quantifiers).", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "THE SINGLE-SCOPING CASE", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "Although the savings will be somewhat less spectacular for sentences wiih more than 1 scoping, this nevertheless shows that removing logical redundancy not only is of its own right, but also gives a significant reduction of the complexity of the algorithm.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "THE SINGLE-SCOPING CASE", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "The algorithm presented here is related to the work of Johnson & Kay (90) by its modular nature.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "MODULAR THEORIES OF LINGUISTICS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "As mentioned, the intcrfacel with the syntax (parse output) is through a small set of access functions (set-quants, get-restrictions, get-var, and quanttype) and the interface with the semantics (the output of the algorithm) is through a small set of con. structor functions (build-conjuction, build-main and build-quant). The implementation thus is a conve, nient \"software glue\" which allows a high degree of freedom in the choice of both syntactic and semantic framework.", |
|
"cite_spans": [ |
|
{ |
|
"start": 103, |
|
"end": 157, |
|
"text": "(set-quants, get-restrictions, get-var, and quanttype)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "MODULAR THEORIES OF LINGUISTICS", |
|
"sec_num": null |
|
}, |
|
{ |
|
"text": "This approach is not as \"nice\" as that of Johnson & Kay (90) or Halvorsen & Kaplan (88) , and may on such :grounds be rejected as a theory of the syntactic/semantic interface. But the question is whether it is possible to state any relationship be. tween syntax and semantics which satisfies my four initial requirements (non-redundancy, ordering, special treatment of sub-clauses and modularity), and which still is \"beautiful\" or \"simple\" according to some standard:,", |
|
"cite_spans": [ |
|
{ |
|
"start": 42, |
|
"end": 60, |
|
"text": "Johnson & Kay (90)", |
|
"ref_id": null |
|
}, |
|
{ |
|
"start": 64, |
|
"end": 87, |
|
"text": "Halvorsen & Kaplan (88)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "MODULAR THEORIES OF LINGUISTICS", |
|
"sec_num": null |
|
} |
|
], |
|
"back_matter": [], |
|
"bib_entries": { |
|
"BIBREF0": { |
|
"ref_id": "b0", |
|
"title": "Representations and Interpretations", |
|
"authors": [ |
|
{ |
|
"first": "J", |
|
"middle": [ |
|
"E" |
|
], |
|
"last": "Fenstad", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "T", |
|
"middle": [], |
|
"last": "Langholm", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "E", |
|
"middle": [], |
|
"last": "Vestre", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1989, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Fenstad, J.E.i Langholm, T. and Vestre, E. (1989): Representations and Interpretations.", |
|
"links": null |
|
}, |
|
"BIBREF2": { |
|
"ref_id": "b2", |
|
"title": "Projections and Semantic Description in Lexical-Functional Grammar", |
|
"authors": [], |
|
"year": 1988, |
|
"venue": "Proceedings of FGCS'88", |
|
"volume": "3", |
|
"issue": "", |
|
"pages": "1116--1122", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Projections and Semantic Description in Lexical- Functional Grammar, Proceedings of FGCS'88, Tokyo, Japan. Tokyo: Institute for New Generation Systems; 1988; Volume 3:1116-1122.", |
|
"links": null |
|
}, |
|
"BIBREF3": { |
|
"ref_id": "b3", |
|
"title": "An Algorithm for Generating Quantifier Scope", |
|
"authors": [ |
|
{ |
|
"first": "J", |
|
"middle": [ |
|
"R" |
|
], |
|
"last": "Hobbs", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "S", |
|
"middle": [ |
|
"M" |
|
], |
|
"last": "Shiebex", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1987, |
|
"venue": "Computational Linguistics", |
|
"volume": "13", |
|
"issue": "2", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Hobbs, J.R. and Shiebex, S.M. (1987): An Algorithm for Generating Quantifier Scope. Computational Linguistics, Volume 13, Numbers 1- 2, January-June 1987.", |
|
"links": null |
|
}, |
|
"BIBREF4": { |
|
"ref_id": "b4", |
|
"title": "Semantic Abstraction and Anaphora. Proceedings of COLING 90", |
|
"authors": [ |
|
{ |
|
"first": "N", |
|
"middle": [], |
|
"last": "Jacobson", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1951, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Jacobson, N, (1951): Lectures in Abstract Algebra. D. van Nostrand Comp. Ltd., New York. Johnson, M.:and Kay, M. (1990): Semantic Abstraction and Anaphora. Proceedings of COLING 90.", |
|
"links": null |
|
}, |
|
"BIBREF6": { |
|
"ref_id": "b6", |
|
"title": "Prolog and Nat~al-language Analysis", |
|
"authors": [], |
|
"year": null, |
|
"venue": "CSLI Lecture Notes", |
|
"volume": "", |
|
"issue": "10", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Prolog and Nat~al-language Analysis. CSLI Lecture Notes No. 10, CSLI, Stanford.", |
|
"links": null |
|
}, |
|
"BIBREF7": { |
|
"ref_id": "b7", |
|
"title": "Representasjon av direkte sp\u00a2rsradl", |
|
"authors": [ |
|
{ |
|
"first": "E", |
|
"middle": [], |
|
"last": "Vestre", |
|
"suffix": "" |
|
} |
|
], |
|
"year": null, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Vestre, E. (i987): Representasjon av direkte sp\u00a2rsradl, Can& Scient. thesis (unpublished, in nor- wegian)", |
|
"links": null |
|
} |
|
}, |
|
"ref_entries": { |
|
"FIGREF0": { |
|
"uris": null, |
|
"text": "that the occurrence of a quantifier in the list returned by get-quants(form) must share with the occurrence of the same quantifier in form.", |
|
"type_str": "figure", |
|
"num": null |
|
}, |
|
"FIGREF2": { |
|
"uris": null, |
|
"text": "Most representatives of most departments of most companies of most cities sighed.", |
|
"type_str": "figure", |
|
"num": null |
|
}, |
|
"TABREF0": { |
|
"content": "<table><tr><td>[ build-quant(q,r,s) I q ~ get-quants(form), r ~ scope-restrictions(q), s \u00a2 scopings(form(get-var(q)lq)) } otherwise where form(get-var(q)/q) scope-restrictions( quant ) = combine-restrictions({ scopings(r) : r ~ get-restrictions(q)})</td></tr></table>", |
|
"text": "if form is quantifier free means form with getvat(q) substituted for q. The purpose of this substitution is to mark the quantifier as \"already bound\" by replacing it with the variable it binds. The variable is then used by build-main in the main formula.The function scope-restrictions is defined by", |
|
"type_str": "table", |
|
"html": null, |
|
"num": null |
|
} |
|
} |
|
} |
|
} |