| { |
| "paper_id": "J92-4005", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T02:44:40.604864Z" |
| }, |
| "title": "Squibs and Discussions Restriction and Termination in Parsing Feature-Theoretic Grammars with", |
| "authors": [ |
| { |
| "first": "S", |
| "middle": [ |
| "P" |
| ], |
| "last": "Harrison", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "University of Western Australia", |
| "location": { |
| "settlement": "Perth", |
| "region": "Western", |
| "country": "Australia" |
| } |
| }, |
| "email": "" |
| }, |
| { |
| "first": "T", |
| "middle": [ |
| "M" |
| ], |
| "last": "Ellison", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "University of Western Australia", |
| "location": { |
| "settlement": "Perth", |
| "region": "Western", |
| "country": "Australia" |
| } |
| }, |
| "email": "" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "Shieber (1987) describes a technique for limiting the number of active edges introduced into a chart by top-down prediction in chart parsers for PATR grammars, without affecting the correctness or completeness of the parser. That technique, termed restriction, is extendable to other parsing algorithms. It can be employed to increase parsing efficiency and to induce termination for some classes of grammars that would not otherwise terminate. Here, we describe one class of grammars for which restriction, as described by Shieber, induces non-termination. We do not suggest that the concept of restriction is fatally flawed, however. On the contrary, relatively minor modifications to the implementation of restriction can make it a more flexible tool for fine-tuning PATR grammars.", |
| "pdf_parse": { |
| "paper_id": "J92-4005", |
| "_pdf_hash": "", |
| "abstract": [ |
| { |
| "text": "Shieber (1987) describes a technique for limiting the number of active edges introduced into a chart by top-down prediction in chart parsers for PATR grammars, without affecting the correctness or completeness of the parser. That technique, termed restriction, is extendable to other parsing algorithms. It can be employed to increase parsing efficiency and to induce termination for some classes of grammars that would not otherwise terminate. Here, we describe one class of grammars for which restriction, as described by Shieber, induces non-termination. We do not suggest that the concept of restriction is fatally flawed, however. On the contrary, relatively minor modifications to the implementation of restriction can make it a more flexible tool for fine-tuning PATR grammars.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Abstract", |
| "sec_num": null |
| } |
| ], |
| "body_text": [ |
| { |
| "text": "observes that the potentially infinite category domain of feature-theoretic grammar formalisms like PATR-II makes implementing efficient parsers for such formalisms difficult. He concludes that the two earliest approaches to the problem are at best ill-advised. Parsing with a context-free backbone effectively ignores information in fact available to guide the parse and violates the spirit of feature-theoretic grammar. Tailoring the parsing algorithm or the grammar itself to the exigencies of feature-theoretic formalisms puts the burden of coping with the problem in the wrong place, on the end user of a grammar development system.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Background", |
| "sec_num": null |
| }, |
| { |
| "text": "The most obvious alternative to parsing with a context-free backbone is using graph unification, rather than atomic symbol identity, to drive the parsing process. Shieber notes that not only is that approach costly (in using information that in fact can never affect the outcome of a parse) but, for some grammars, induces non-termination. The class of grammars Shieber describes might be termed top-down path building grammars, because they are grammars in which the length of a path through the graph increases as one descends the parse tree.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Background", |
| "sec_num": null |
| }, |
| { |
| "text": "The particular grammar Shieber uses is one that counts the number of terminal symbols in the string being parsed: (G1) Rule \"set end marker' S --* T:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Background", |
| "sec_num": null |
| }, |
| { |
| "text": "= (V) (U) = a.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Background", |
| "sec_num": null |
| }, |
| { |
| "text": "(Tof) = (Tiff).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Background", |
| "sec_num": null |
| }, |
| { |
| "text": "A -+ a.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "G1 generates trees like the following:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "S I i i a a a", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "In the course of a derivation, G1 builds a path (Tnf +) from the root of the graph T, corresponding to each node Tn in the tree. The 'count' is reflected in the length of the path (T,f+ I. As one descends the tree, the length of the path that is the value of the attribute f increases by 1 for each successive node Tn+l:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "Hence the term top-down path building, characterizing grammars like G1. Recall that, !n a chart parsing regime, for each active edge Em of the form:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "(i, j, X ---* e~.Yfl)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "and each rule Ri of the form: y ---, -y the top-down rule adds an active edge En of the form:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "(j , j, Y ~ .'V )", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "If, associated with Era, there is a graph Gin, and with Ri a graph Gi, then associated with En will be a graph Gn = Gi UGm(Y), where Gm(Y) is the subgraph of Gm at Y. As Shieber points out, a parser employing this top-down rule will not terminate when interpreting grammar G1. On initialization (with Rule 'set end marker'), the parser generates an active edge seeking a constituent of category T. The top-down rule then uses that edge and the Rule 'recursive clause' to generate a new active edge seeking a constituent of category T. That active edge then generates a new (and, crucially, a distinct) active edge not subsumed by any existing edge, \"and so forth, ad infinitum.\"", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "In other words, each top-down recursion anticipates a different terminal string that is one symbol longer than that predicted on the previous recursion; because the graphs associated with those anticipated strings are distinct, the normal chart parsing checks fail to prevent looping. ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "G = Gi U (Gm(X)!~), where Gm(X)!~)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "is a graph G' resulting from filtering out of Gm all those paths not explicitly sanctioned by ~. The filter \u2022 is termed a restrictor, and is represented as a set of paths P. The graph G' (= G!@) is derived from G by filtering out all those paths that are not members of p.1 Given a restrictor that passes through only the (cat) path, the termination problem for grammar G1 vanishes. Since the active edges generated by the top-down rule pass on only their category information, each time the rule 'recursive clause' is called recursively, the edge it generates is the same (underspecified) edge generated on the first call to that rule, and already on the chart.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "The following observations regarding the restrictors Shieber describes might be made at this point:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "1. The graph for the active edge generated by the top-down rule with a parser using restriction is no less specific (has no less information) than the graph stipulated by the rule used; i.e., it is information from the extant active edge that is suppressed.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "T-+ A.", |
| "sec_num": null |
| }, |
| { |
| "text": "The restrictor provides a positive restriction, i.e., it stipulates which paths are included in the restricted graph, not which paths are suppressed.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "2.", |
| "sec_num": null |
| }, |
| { |
| "text": "The following grammar might be considered almost the inverse of the grammar G1 described by Shieber (1987) . It parses strings of length 1, and generates one node T in 1 Shieber's definition of restriction is as follows:", |
| "cite_spans": [ |
| { |
| "start": 92, |
| "end": 106, |
| "text": "Shieber (1987)", |
| "ref_id": "BIBREF3" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "A Problem: Bottom-up Path Building", |
| "sec_num": null |
| }, |
| { |
| "text": "\"Given a relation F between paths and labels, and a dag D, we define D!F to be the most specific dag D ~ (D D D ~) such that for every path p either Dr(p) is undefined, or D~(p) is atomic, or for every l C dom(D~(p))~ p@l. That is, every path in the restricted dag is either undefined, atomic, or specifically allowed by the restrictor.\"", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "A Problem: Bottom-up Path Building", |
| "sec_num": null |
| }, |
| { |
| "text": "That definition might seem to suggest that paths that are instantiated (atom valued) are not filtered out by the restrictor. His examples demonstrate that that is not the correct interpretation of his definition. Rather, it would seem that atomic paths (i.e. 'leaves'), and not atomic-valued paths, fall through the filter.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "A Problem: Bottom-up Path Building", |
| "sec_num": null |
| }, |
| { |
| "text": "Volume 18, Number 4 the parse tree for each arc labeled g in the graph corresponding to the item recognized: G2 generates exactly two trees:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computational Linguistics", |
| "sec_num": null |
| }, |
| { |
| "text": "Tree2a.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computational Linguistics", |
| "sec_num": null |
| }, |
| { |
| "text": "S a T 2 Tree2b. $ /N b T 1", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computational Linguistics", |
| "sec_num": null |
| }, |
| { |
| "text": "each of which is associated with a distinct graph:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computational Linguistics", |
| "sec_num": null |
| }, |
| { |
| "text": "Dag2a. Dag2b.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computational Linguistics", |
| "sec_num": null |
| }, |
| { |
| "text": "A To J e For this grammar, the length of the path (Tng +) in each subgraph Tn increases as one ascends the tree. Hence the term bottom-up path building is used to characterize grammars of this sort. Using the same restrictor (i.e. (cat)) employed for G1, a parser interpreting G2 will not terminate on any grammatical input. As in G1, only one active edge generated from the Rule 'recursive clause' is put on E1", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "x0 ", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "I 1,1,X---,., X: g: e", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "The fundamental rule then applies to E1 and E2 to yield the passive edge: Ea", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "x0:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "[cat:T] X1 : g:[~e 1, 1,Xo --* Xl. ~", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "and then applies to E1 and E3 to yield: E4", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "1, 1,X0 ~ XI., Xo :", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "g: ]", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "[ cat : T 1 X1 : g:~] ~g : e] and so forth, ad infinitum. Ultimately, the fundamental rule will generate a passive edge with a graph G such that G(g) = {Gi: T'(g)}, for the passive edge:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "(0, 1, S --', A.T, Gi)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "where {Gi : T'(g)} is the subgraph corresponding to the constituent T. At that point, the parser, in effect, will have parsed the input string. Nonetheless, it will continue to add new passive edges, each with a graph whose/g+/path is one arc longer than that of the passive edge from which it is generated.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "Bottom-up path building grammars are not without interesting linguistic applications. Consider, for example, the following PATR implementation of the append oper- Given the rules 'base case' and 'recursive clause,' one need only introduce a 'dummy' constituent Append (whose only function is to collect the list-valued attributes list1 and list2 in a single list), and appropriate constraints on some list-valued attribute, in order to simulate the HPSG append in PATR. Unfortunately, because these two rules are an instance of the bottom-up path building problem, no derivation employing these rules will terminate. 2", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "\u00b0I'J'", |
| "sec_num": null |
| }, |
| { |
| "text": "The source of the bottom-up path building problem is the active edge E1 above, whose ~g+} path is of indeterminate length. Because the parser does not know how long that path should be, it keeps adding to it ad infinitum. Observe, however, that the parser had the required information (obtained from the (g) attribute of constituent A), but was induced by the restrictor to throw that information away.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Solutions", |
| "sec_num": null |
| }, |
| { |
| "text": "There are at least three solutions to the problem posed by bottom-up path building grammars under restriction: 1. Impose a finite limit on the path (g+}.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Solutions", |
| "sec_num": null |
| }, |
| { |
| "text": "2. Convert the grammar to top-down path building.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Solutions", |
| "sec_num": null |
| }, |
| { |
| "text": "We consider each of these proposals in turn in the following paragraphs.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "Solution 1 involves picking an arbitrary upper limit on the length of (g+}, and adding a corresponding path to the restrictor. The parser would then terminate for any input whose (g+} path length is less than or equal to that of the stipulated path. For example, a parser interpreting G2 above would terminate with the restrictor {(cat}(g g g)}. But that is a \"Band-Aid\" solution at best. Solution 2 might involve a grammar like G4, a top-down path building grammar weakly equivalent to G2. G4 does not, however, have the termination problem of G2: As noted above, G3 provides a 'dummy' constituent Append that one might want ultimately to prune, since its only function is to assemble the appended list. By contrast, G5 assembles the appended list in successive Append nodes dominating the constituents Left and Right. One might want to argue that the latter solution is less felicitous than the former because the Append nodes dominate lexical material. In any event, as Shieber stresses, the grammar writer should not be constrained to choose between weakly equivalent grammars by the demands of the grammar development system. Let us now consider solution 3, modifying the nature and implementation of restriction. We choose to term the sort of restriction Shieber describes positive restriction.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "(", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "In positive restriction, the restrictor tells the parser how much of the information for which paths to retain (in the graph corresponding to the active edge used by the topdown rule). If a path is not explicitly mentioned in the restrictor, no information about that path is retained. An empty restrictor in effect tells the parser to throw away all the information in the restricted graph.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "(An anonymous reviewer for Computational Linguistics points out that grammars G2 and G3, in contrast to Shieber's G1, are not offiine parsable [in the sense of Bresnan and Kaplan 1982:263ff and Johnson 1988:95ff] , and suggests that this failure of offiine parsability is a necessary condition for membership in the class of grammars that are nonterminating under positive restriction. The constituent structures generated by a grammar are offiine parsable iff:", |
| "cite_spans": [ |
| { |
| "start": 172, |
| "end": 193, |
| "text": "Kaplan 1982:263ff and", |
| "ref_id": null |
| }, |
| { |
| "start": 194, |
| "end": 212, |
| "text": "Johnson 1988:95ff]", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "i. they contain no nonbranching dominance chains in which the same category [label] appears twice, and", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "ii. all terminal nodes dominate lexical material G2 and G3 fail both these conditions, since neither the T node chain of G2 nor the Append node chain of G3 either branch or dominate lexical material. We make two observations in this regard. First, while it may indeed be the case that failure of offiine parsability is a necessary condition for non-termination under positive restriction, it is certainly not a sufficient one, since G4 and G5 both fail condition i. above, and are thus not offiine parsable, but do terminate under positive restriction. Second, though G2 through G5 fail the letter of an offiine parsability constraint, they do not fail its spirit. Offiine parsability has been proposed as a constraint on grammars guaranteeing the decidability of the recognition problem for feature-theoretic grammars of the sort considered here. For grammars that satisfy offiine parsability, it will be the case that the number of nodes of any parse tree assigned to some string will be a computable function of the length of the string being parsed. This is not the case for G2 through G5. What is the case, however, is that the number of nodes in a parse tree generated by those grammars is a computable function of the graphs associated with the lexical material covered by the tree. This is because each of these grammars makes crucial reference either to a list-valued or path-valued attribute of lexical items, where the length of the list or path is finite and stipulated in the lexicon. The number of identical nodes in any nonbranching dominance chain generated by these grammars is a function of the length of a [bounded] list or path.)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "Positive restriction can be contrasted with what might be termed negative restriction. Under negative restriction, the restrictor tells the parser what information to throw away. For stipulated paths, the effects of positive and negative restriction are the same: a restrictor (ggg) tells the parser to (positively) retain all information up to and including an atomic value for the path (ggg), or to (negatively) throw away all information about any nonatomic extension of (ggg). The difference is in the interpretation of paths not explicitly mentioned; under positive restriction these are thrown away; under negative restriction they are retained.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "In formal terms, a restrictor, for Shieber, is a relation between paths and the single edges that are permitted to extend those paths: If \u2022 is a restrictor, p a path and 1 some edge label, then the restrictor permits the path pl iff p~l. But Shieber does not use the full power of this formalism. He considers only what we term positive restrictors.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "Mathematically, if P is some finite set of paths, one can define a positive restrictor q~+ to be the relation defined by: p@+l iff 3 q E P, p~q where p < q means that p is a (perhaps improper) prefix to the path q. By contrast, the negative restriction regime proposed here allows paths not explicitly disallowed:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "p~pliff(3rEP~ r<p)=~qEP, pGq", |
| "eq_num": "(1)" |
| } |
| ], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "In other words, whereas the positive restrictor admits those paths obeying the condition \"is a prefix of a member of the restrictor set,\" the negative restrictor only applies", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Change the nature and implementation of restriction.", |
| "sec_num": "3." |
| }, |
| { |
| "text": "The append operation is necessary whenever a grammar demands that two list-valued attributes be combined; for example, when the SUBCAT of a constituent is defined as the union of the values of SUBCAT for its daughters, or when the list-valued SKELETON of a syllable is defined as the SKELETON of the onset followed by the SKELETON of the rhyme. One would, of course, prefer to have PATR extended to accommodate append, rather than have to simulate the append operation in pure PATR, but that is not the issue here. The point we are making is simply that one could simulate append in pure PATR, were it not for the restriction regime of the PATR standard defined inShieber (1989).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "", |
| "sec_num": null |
| } |
| ], |
| "back_matter": [ |
| { |
| "text": "Volume 18, Number 4 Note that the length of the path g+ increases as one descends the tree.) Similarly, grammar G5 provides a top-down path building solution to the append operation: Consider the case of two descendants, Left and Right, of a node Top, where the value of (Left list) is (a, b), the value of (Right list) is (c, d), and the value of (Top list) is append ((L list), (R list)). G3 assigns to that construction the parse tree:(Left Right Aplend o Append 1", |
| "cite_spans": [ |
| { |
| "start": 7, |
| "end": 10, |
| "text": "18,", |
| "ref_id": null |
| }, |
| { |
| "start": 11, |
| "end": 19, |
| "text": "Number 4", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computational Linguistics", |
| "sec_num": null |
| }, |
| { |
| "text": "Computational Linguistics Volume 18, Number 4 this condition to paths extending members of the restrictor set. Paths not extending members of the restrictor set are themselves not subject to restriction. It is an easy matter to show that any positive restrictor p can be defined in terms of a negative restrictor. If the null path is included in the restrictor set, then the antecedent of the implication in the definition of ~-(1 above) is always true (except if p = //), and the consequent 3q E P U {/ /}, P ~ q is equivalent to 3q E P, p <_ q (except when P = / /)-If p is the null path, then the antecedent is always true and so / /~p-u{0} l is equivalent to //~+l. For other p, //~u{0}l = //~+l. So, ~{0} = ~+\" Thus, an implementation using negative restriction can simulate any positive restrictor and, therefore, can necessarily solve all problems solvable by positive restriction, as well as those problems, described earlier, where positive restriction fails.Note that we have limited ourselves, as Shieber has, to finite restrictor sets. This limitation is not necessary. A more general proposal allows restrictor sets consisting of all paths expressable by some regular expression. Restrictors can then be implemented as finite state automata. An implementation of this sort would not impose a large computational burden and would allow much greater flexibility in the choice of restrictor relations.We have demonstrated that any restriction definable by a positive restrictor can also be defined by a negative restrictor. It follows that any parser requiring positive restriction to guarantee termination will also terminate for the same set of grammars using negative restriction. But we have also demonstrated that the reverse does not hold. Therefore, it would seem that negative restriction is superior to positive restriction in the implementation of parsers for feature-theoretic grammars.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "ApJend 2", |
| "sec_num": null |
| } |
| ], |
| "bib_entries": { |
| "BIBREF0": { |
| "ref_id": "b0", |
| "title": "Attribute-value logic and the theory of grammar", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "Johnson", |
| "suffix": "" |
| } |
| ], |
| "year": 1988, |
| "venue": "CSLI Lecture Notes", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Johnson, M. (1988). \"Attribute-value logic and the theory of grammar.\" CSLI Lecture Notes, 16.", |
| "links": null |
| }, |
| "BIBREF1": { |
| "ref_id": "b1", |
| "title": "Lexical-functional grammar, a formal system for grammatical representation", |
| "authors": [ |
| { |
| "first": "R", |
| "middle": [], |
| "last": "Kaplan", |
| "suffix": "" |
| }, |
| { |
| "first": "J", |
| "middle": [], |
| "last": "Bresnan", |
| "suffix": "" |
| } |
| ], |
| "year": 1982, |
| "venue": "The Mental Representation of Grammatical Relations", |
| "volume": "", |
| "issue": "", |
| "pages": "173--281", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Kaplan, R., and Bresnan, J. (1982). \"Lexical-functional grammar, a formal system for grammatical representation.\" In The Mental Representation of Grammatical Relations, edited by J. Bresnan, 173-281. MIT Press.", |
| "links": null |
| }, |
| "BIBREF2": { |
| "ref_id": "b2", |
| "title": "Information-based syntax and semantics", |
| "authors": [ |
| { |
| "first": "C", |
| "middle": [], |
| "last": "Pollard", |
| "suffix": "" |
| }, |
| { |
| "first": "I", |
| "middle": [ |
| "A" |
| ], |
| "last": "Sag", |
| "suffix": "" |
| } |
| ], |
| "year": 1987, |
| "venue": "CSLI Lecture Notes", |
| "volume": "", |
| "issue": "1", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Pollard, C., and Sag, I. A. (1987). \"Information-based syntax and semantics.\" CSLI Lecture Notes, 13(1).", |
| "links": null |
| }, |
| "BIBREF3": { |
| "ref_id": "b3", |
| "title": "Using restriction to extend parsing algorithms for complex-feature-based formalisms", |
| "authors": [ |
| { |
| "first": "S", |
| "middle": [ |
| "M" |
| ], |
| "last": "Shieber", |
| "suffix": "" |
| } |
| ], |
| "year": 1987, |
| "venue": "Proceedings, 23rd Annual Meeting of the ACL", |
| "volume": "", |
| "issue": "", |
| "pages": "154--52", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Shieber, S. M. (1987). \"Using restriction to extend parsing algorithms for complex-feature-based formalisms.\" Proceedings, 23rd Annual Meeting of the ACL. 154-52.", |
| "links": null |
| } |
| }, |
| "ref_entries": { |
| "FIGREF1": { |
| "num": null, |
| "type_str": "figure", |
| "text": "ation on lists employed in HPSG (Pollard and Sag 1987; Section 2Append list1/ = ( Left list/ (Append list2/ = (Right list / (Top list/ = {Append list/.", |
| "uris": null |
| }, |
| "TABREF0": { |
| "num": null, |
| "text": "Gi is the graph associated with Ri and Gm (X) is that portion of the graph (associated with Era) corresponding to the left hand side of Ri. Rather,", |
| "html": null, |
| "type_str": "table", |
| "content": "<table><tr><td>Shieber's solution to the problem posed by grammar G1 is to introduce a notion</td></tr><tr><td>he terms restriction. Under restriction, the graph associated with an edge generated by</td></tr><tr><td>the top-down rule (applied to an active edge Em and a grammar rule Ri) is not a graph</td></tr><tr><td>G = Gi U Gm (X), where</td></tr></table>" |
| } |
| } |
| } |
| } |