ACL-OCL / Base_JSON /prefixJ /json /J00 /J00-1003.json
Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "J00-1003",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T02:58:09.050191Z"
},
"title": "Practical Experiments with Regular Approximation of Context-Free Languages",
"authors": [
{
"first": "Mark-Jan",
"middle": [],
"last": "Nederhof",
"suffix": "",
"affiliation": {},
"email": "nederhof@dfki.de"
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "Several methods are discussed that construct a finite automaton given a context-free grammar, including both methods that lead to subsets and those that lead to supersets of the original context-free language. Some of these methods of regular approximation are new, and some others are presented here in a more refined form with respect to existing literature. Practical experiments with the different methods of regular approximation are performed for spoken-language input: hypotheses from a speech recognizer are filtered through a finite automaton.",
"pdf_parse": {
"paper_id": "J00-1003",
"_pdf_hash": "",
"abstract": [
{
"text": "Several methods are discussed that construct a finite automaton given a context-free grammar, including both methods that lead to subsets and those that lead to supersets of the original context-free language. Some of these methods of regular approximation are new, and some others are presented here in a more refined form with respect to existing literature. Practical experiments with the different methods of regular approximation are performed for spoken-language input: hypotheses from a speech recognizer are filtered through a finite automaton.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "Several methods of regular approximation of context-free languages have been proposed in the literature. For some, the regular language is a superset of the context-free language, and for others it is a subset. We have implemented a large number of methods, and where necessary, refined them with an analysis of the grammar. We also propose a number of new methods.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1."
},
{
"text": "The analysis of the grammar is based on a sufficient condition for context-free grammars to generate regular languages. For an arbitrary grammar, this analysis identifies sets of rules that need to be processed in a special way in order to obtain a regular language. The nature of this processing differs for the respective approximation methods. For other parts of the grammar, no special treatment is needed and the grammar rules are translated to the states and transitions of a finite automaton without affecting the language.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1."
},
{
"text": "Few of the published articles on regular approximation have discussed the application in practice. In particular, little attention has been given to the following two questions: First, what happens when a context-free grammar grows in size? What is then the increase of the sizes of the intermediate results and the obtained minimal deterministic automaton? Second, how \"precise\" are the approximations? That is, how much larger than the original context-free language is the language obtained by a superset approximation, and how much smaller is the language obtained by a subset approximation? (How we measure the \"sizes\" of languages in a practical setting will become clear in what follows.)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1."
},
{
"text": "Some considerations with regard to theoretical upper bounds on the sizes of the intermediate results and the finite automata have already been discussed in Nederhof (1997) . In this article we will try to answer the above two questions in a practical setring, using practical linguistic grammars and sentences taken from a spoken-language corpus.",
"cite_spans": [
{
"start": 156,
"end": 171,
"text": "Nederhof (1997)",
"ref_id": "BIBREF18"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1."
},
{
"text": "The structure of this paper is as follows: In Section 2 we recall some standard definitions from language theory. Section 3 investigates a sufficient condition for a context-free grammar to generate a regular language. We also present the construction of a finite automaton from such a grammar. In Section 4, we discuss several methods to approximate the language generated by a grammar if the sufficient condition mentioned above is not satisfied. These methods can be enhanced by a grammar transformation presented in Section 5. Section 6 compares the respective methods, which leads to conclusions in Section 7.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1."
},
{
"text": "Throughout this paper we use standard formal language notation (see, for example, Harrison [1978] ). In this section we review some basic definitions.",
"cite_spans": [
{
"start": 82,
"end": 97,
"text": "Harrison [1978]",
"ref_id": "BIBREF9"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "2."
},
{
"text": "A context-free grammar G is a 4-tuple (G,N,P,S) , where G and N are two finite disjoint sets of terminals and nonterminals, respectively, S E N is the start symbol, and P is a finite set of rules. Each rule has the form A ~ ~ with A E N and ~ E V*, where V denotes N U ~. The relation ~ on N x V* is extended to a relation on V* x V* as usual. The transitive and reflexive closure of 4 is denoted by 4*.",
"cite_spans": [
{
"start": 38,
"end": 47,
"text": "(G,N,P,S)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "2."
},
{
"text": "The language generated by G is given by the set {w E G* I S 4\" w}. By definition, such a set is a context-free language. By reduction of a grammar we mean the elimination from P of all rules A 4,7 such that S --+* c~Afl --* a\"/fl 7\" w does not hold for any~,flEV*andwEG*.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "2."
},
{
"text": "We generally use symbols A, B, C .... to range over N, symbols a, b, c,... to range over ~, symbols X, Y, Z to range over V, symbols a, fl,\"7 .... to range over V* and symbols v, w, x .... to range over G* We write \u00a2 to denote the empty string.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "2."
},
{
"text": "A rule of the form A --, B is called a unit rule. A (nondeterministic) finite automaton .T is a 5-tuple (K, G, A, s, F), where K is a finite set of states, of which s is the initial state and those in F c K are the final states, is the input alphabet, and the transition relation A is a finite subset of K x Z* x K. We define a configuration to be an element of K x G*. We define the binary relation t-between configurations as: (q, vw) F-(q', w) if and only if (q, v, q') E A. The transitive and reflexive closure of ~-is denoted by F-*.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "2."
},
{
"text": "Some input v is recognized if (s, v) t-* (q, c), for some q E F. The language accepted by .T is defined to be the set of all strings v that are recognized. By definition, a language accepted by a finite automaton is called a regular language.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "2."
},
{
"text": "We define a spine in a parse tree to be a path that runs from the root down to some leaf. Our main interest in spines lies in the sequences of grammar symbols at nodes bordering on spines.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Finite Automata in the Absence of Self-Embedding",
"sec_num": "3."
},
{
"text": "A simple example is the set of parse trees such as the one in Figure 1 , for a grammar of palindromes. It is intuitively clear that the language is not regular: the grammar symbols to the left of the spine from the root to E \"communicate\" with those to the right of the spine. More precisely, the prefix of the input up to the point where it meets the final node c of the spine determines the suffix after that point, in such a way that an unbounded quantity of symbols from the prefix need to be taken into account.",
"cite_spans": [],
"ref_spans": [
{
"start": 62,
"end": 70,
"text": "Figure 1",
"ref_id": null
}
],
"eq_spans": [],
"section": "Finite Automata in the Absence of Self-Embedding",
"sec_num": "3."
},
{
"text": "A formal explanation for why the grammar may not generate a regular language relies on the following definition (Chomsky 1959b) :",
"cite_spans": [
{
"start": 112,
"end": 127,
"text": "(Chomsky 1959b)",
"ref_id": "BIBREF5"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Finite Automata in the Absence of Self-Embedding",
"sec_num": "3."
},
{
"text": "S--',a S a S-->b S b S---~ ~ S a S a Y\\ b S b",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Finite Automata in the Absence of Self-Embedding",
"sec_num": "3."
},
{
"text": "Grammar of palindromes, and a parse tree.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 1",
"sec_num": null
},
{
"text": "A grammar is self-embedding if there is some A E N such that A --+* c~Afl, for some a\u00a2eandfl\u00a2e.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "If a grammar is not self-embedding, this means that when a section of a spine in a parse tree repeats itself, then either no grammar symbols occur to the left of that section of the spine, or no grammar symbols occur to the right. This prevents the \"unbounded communication\" between the two sides of the spine exemplified by the palindrome grammar. We now prove that grammars that are not self-embedding generate regular languages. For an arbitrary grammar, we define the set of reeursive nonterminals as:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "B N = {A E N I Ag]} m",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "We determine the partition N\" of N consisting of subsets N1, N2 .... , Nk, for some k > 0, of mutually recursive nonterminals:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "H = {N1,N2 .... ,Nk} NIUN2U...UNk=N Vi[Ni 7L O] Vi, j[i \u2022 j =~ Ni N Nj = 0]",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "and for all A, B E N:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "3i[A E Ni AB @ Nil - ~oQ, fll, O~2,fl2[a ---~* alBfll AB ---+* c\u00a22Afl2],",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "We now define the function recursive from N\" to the set {left, right, self, cyclic}. For l<iKk:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "recursive(Ni) --left, if ~LeftGenerating(Ni) = right, if LeftGenerating(Ni) --self, if LeftGenerating(Ni) = cyclic, if -,LeftGenerating(Ni) /x RightGenerating(Ni) /x ~RightGenerating(Ni) /x RightGenerating(Ni) /x ~RightGenerating( Ni )",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "where",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Definition",
"sec_num": null
},
{
"text": "When recursive(Ni) = left, Ni consists of only left-recursive nonterminals, which does not mean it cannot also contain right-recursive nonterminals, but in that case right recursion amounts to application of unit rules. When recursive(Ni) = cyclic, it is only such unit rules that take part in the recursion.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "That recursive(Ni) = self, for some i, is a sufficient and necessary condition for the grammar to be self-embedding. Therefore, we have to prove that if recursive(Ni) E {left, right, cyclic}, for all i, then the grammar generates a regular language. Our proof differs from an existing proof (Chomsky 1959a) in that it is fully constructive: Figure 2 presents an algorithm for creating a finite automaton that accepts the language generated by the grammar.",
"cite_spans": [
{
"start": 291,
"end": 306,
"text": "(Chomsky 1959a)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [
{
"start": 341,
"end": 347,
"text": "Figure",
"ref_id": null
}
],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "The process is initiated at the start symbol, and from there the process descends the grammar in all ways until terminals are encountered, and then transitions are created labeled with those terminals. Descending the grammar is straightforward in the case of rules of which the left-hand side is not a recursive nonterminal: the subautomata found recursively for members in the right-hand side will be connected. In the case of recursive nonterminals, the process depends on whether the nonterminals in the corresponding set from H are mutually left-recursive or right-recursive; if they are both, which means they are cyclic, then either subprocess can be applied; in the code in Figure 2 cyclic and right-recursive subsets Ni are treated uniformly.",
"cite_spans": [],
"ref_spans": [
{
"start": 681,
"end": 689,
"text": "Figure 2",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "We discuss the case in which the nonterminals are left-recursive. One new state is created for each nonterminal in the set. The transitions that are created for terminals and nonterminals not in Ni are connected in a way that is reminiscent of the construction of left-corner parsers (Rosenkrantz and Lewis 1970) , and specifically of one construction that focuses on sets of mutually recursive nonterminals (Nederhof 1994, Section 5.8 ).",
"cite_spans": [
{
"start": 284,
"end": 312,
"text": "(Rosenkrantz and Lewis 1970)",
"ref_id": "BIBREF25"
},
{
"start": 408,
"end": 435,
"text": "(Nederhof 1994, Section 5.8",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "An example is given in Figure 3 . Four states have been labeled according to the names they are given in procedure make~fa. There are two states that are labeled qB.",
"cite_spans": [],
"ref_spans": [
{
"start": 23,
"end": 31,
"text": "Figure 3",
"ref_id": null
}
],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "This can be explained by the fact that nonterminal B can be reached by descending the grammar from S in two essentially distinct ways. The code in Figure 2 differs from the actual implementation in that sometimes, for a nonterminal, a separate finite automaton is constructed, namely, for those nonterminals that occur as A in the code. A transition in such a subautomaton may be labeled by another nonterminal B, which then represents the subautomaton corresponding to B. The resulting representation is similar to extended context-free grammars (Purdom and Brown 1981) , with the exception that in our case recursion cannot occur, by virtue of the construction.",
"cite_spans": [
{
"start": 547,
"end": 570,
"text": "(Purdom and Brown 1981)",
"ref_id": "BIBREF23"
}
],
"ref_spans": [
{
"start": 147,
"end": 155,
"text": "Figure 2",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "The representation for the running example is indicated by Figure 4 , which shows two subautomata, labeled S and B. The one labeled S is the automaton on the top level, and contains two transitions labeled B, which refer to the other subautomaton. Note that this representation is more compact than that of Figure 3, since the transitions that are involved in representing the sublanguage of strings generated by nonterminal B are included only once.",
"cite_spans": [],
"ref_spans": [
{
"start": 59,
"end": 67,
"text": "Figure 4",
"ref_id": null
}
],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "The compact representation consisting of subautomata can be turned into a single finite automaton by substituting subautomata A for transitions labeled A in other automata. This comes down to regular substitution in the sense of Berstel (1979) . The advantage of this way of obtaining a finite automaton over a direct construction of a nondeterministic automaton is that subautomata may be determinized and minimized before they are substituted into larger subautomata. Since in many cases determinized and minimized automata are much smaller, this process avoids much of the combina-let K = O, A = O, s = fresh_state, f = fresh_state, F = {f}; make_fa ( s, S, f) .",
"cite_spans": [
{
"start": 229,
"end": 243,
"text": "Berstel (1979)",
"ref_id": "BIBREF2"
},
{
"start": 653,
"end": 663,
"text": "( s, S, f)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "procedure makeffa(qo, a, ql):",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "if a= e then let A = A U {(q0,e, ql)} elseif a = a, some a E ,U then let A = A U {(q0, a, ql)} elseif a = Xfl, some X E V, fl C V* such that IflI > 0 then let q = fresh_state; makeffa(qo, X, q); makeffa ( q, t, ql ) else torial explosion that takes place upon naive construction of a single nondeterministic finite automaton. 1 Assume we have a list of subautomata A1 ..... Am that is ordered from lower-level to higher-level automata; i.e., if an automaton Ap occurs as the label of a transition of automaton Aq, then p < q; Am must be the start symbol S. This order is a natural result of the way that subautomata are constructed during our depth-first traversal of the grammar, which is actually postorder in the sense that a subautomaton is output after all subautomata occurring at its transitions have been output.",
"cite_spans": [
{
"start": 203,
"end": 215,
"text": "( q, t, ql )",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "(C --+ DX1 ... X,~) C P such that C,D ~ Ni A X1,...,Xm ~ Ni do make ffa( qD , X I \" \" X,~ , qc ) end; let A = A U {(qA,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "Our implementation constructs a minimal deterministic automaton by repeating the following for p = 1,...,m: . . Make a copy of Ap. Determinize and minimize the copy. If it has fewer transitions labeled by nonterminals than the original, then replace Ap by its copy.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "Replace each transition in Ap of the form (q, Ar, q') by (a copy of) automaton Ar in a straightforward way. This means that new e-transitions connect q to the start state of Ar and the final states of Ar to qt.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "LeftGenerating(Ni) = 3(A --* aBfl) E P[A E Ni A B E Ni /X ~ 7~ e] RightGenerating(Ni) = 3(A --* aBfl) E P[A E Ni /x B E Ni /~ fl \u2022 \u00a2]",
"sec_num": null
},
{
"text": "Again determinize and minimize Ap and store it for later reference.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "3.",
"sec_num": null
},
{
"text": "The automaton obtained for Am after step 3 is the desired result.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "3.",
"sec_num": null
},
{
"text": "This section describes a number of methods for approximating a context-free grammar by means of a finite automaton. Some published methods did not mention selfembedding explicitly as the source of nonregularity for the language, and suggested that approximations should be applied globally for the complete grammar. Where this is the case, we adapt the method so that it is more selective and deals with self-embedding locally. The approximations are integrated into the construction of the finite automaton from the grammar, which was described in the previous section. A separate incarnation of the approximation process is activated upon finding a nonterminal A such that A E Ni and recursive(Ni) = self, for some i. This incarnation then only pertains to the set of rules of the form B --* c~, where B E Ni. In other words, nonterminals not in Ni are treated by this incarnation of the approximation process as if they were terminals.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Methods of Regular Approximation",
"sec_num": "4."
},
{
"text": "The following approximation was proposed in Nederhof (1997) . The presentation here, however, differs substantially from the earlier publication, which treated the approximation process entirely on the level of context-free grammars: a self-embedding grammar was transformed in such a way that it was no longer self-embedding. A finite automaton was then obtained from the grammar by the algorithm discussed above.",
"cite_spans": [
{
"start": 44,
"end": 59,
"text": "Nederhof (1997)",
"ref_id": "BIBREF18"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation Based on RTNs",
"sec_num": "4.1"
},
{
"text": "The presentation here is based on recursive transition networks (RTNs) (Woods 1970) . We can see a context-free grammar as an RTN as follows: We introduce two states qA and q~ for each nonterminal A, and m + 1 states q0 ..... qm for each rule A --* X1 .. \u2022 Xm. The states for a rule A ~ X 1 . . . X m are connected with each other and to the states for the left-hand side A by one transition (qA, c, q0), a transition (qi-1, Xi, qi) for each i such that 1 < i < m, and one transition (qm, e,q~A). (Actually, some epsilon transitions are avoided in our implementation, but we will not be concerned with such optimizations here.)",
"cite_spans": [
{
"start": 71,
"end": 83,
"text": "(Woods 1970)",
"ref_id": "BIBREF28"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation Based on RTNs",
"sec_num": "4.1"
},
{
"text": "In this way, we obtain a finite automaton with initial state qA and final state q~ for each nonterminal A and its defining rules A --* X1 \u2022 \u2022 \u2022 Xm. This automaton can be seen as one component of the RTN. The complete RTN is obtained by the collection of all such finite automata for different nonterminals.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation Based on RTNs",
"sec_num": "4.1"
},
{
"text": "An approximation now results if we join all the components in one big automaton, and if we approximate the usual mechanism of recursion by replacing each transition (q, A, q') by two transitions (q, c, qA) and (q~, e, q'). The construction is illustrated in Figure 5 .",
"cite_spans": [],
"ref_spans": [
{
"start": 258,
"end": 266,
"text": "Figure 5",
"ref_id": null
}
],
"eq_spans": [],
"section": "Superset Approximation Based on RTNs",
"sec_num": "4.1"
},
{
"text": "In terms of the original grammar, this approximation can be informally explained as follows: Suppose we have three rules B --* c~Afl, B I ~ c~IAfl ~, and A ~ % Top-down, left-to-right parsing would proceed, for example, by recognizing a in the first rule; it would then descend into rule A ~ % and recognize \"y; it would then return to the first rule and subsequently process ft. In the approximation, however, the finite automaton \"forgets\" which rule it came from when it starts to recognize % so that it may subsequently recognize fl' in the second rule.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation Based on RTNs",
"sec_num": "4.1"
},
{
"text": "(b) a B b (a) d A e qB Y'~ ;i =i~ ' B A---~ a B b >t~ q A---~c A \"'\"~\"~ f B---~dA e B--~ f (c) a b ~ ~ t /",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation Based on RTNs",
"sec_num": "4.1"
},
{
"text": "Application of the RTN method for the grammar in (a). The RTN is given in (b), and (c) presents the approximating finite automaton. We assume A is the start symbol and therefore qA becomes the initial state and q~ becomes the final state in the approximating automaton.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "For the sake of presentational convenience, the above describes a construction working on the complete grammar. However, our implementation applies the construction separately for each nonterminal in a set Ni such that recursive(Ni) = self, which leads to a separate subautomaton of the compact representation (Section 3).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "See Nederhof (1998) for a variant of this approximation that constructs finite transducers rather than finite automata.",
"cite_spans": [
{
"start": 4,
"end": 19,
"text": "Nederhof (1998)",
"ref_id": "BIBREF19"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "We have further implemented a parameterized version of the RTN approximation. A state of the nondeterministic automaton is now also associated to a list H of length IHI strictly smaller than a number d, which is the parameter to the method. This list represents a history of rule positions that were encountered in the computation leading to the present state.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "More precisely, we define an item to be an object of the form [A ~ a \u2022 fl],",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "where A ~ aft is a rule from the grammar. These are the same objects as the \"dotted\" productions of Earley (1970) . The dot indicates a position in the right-hand side. The unparameterized RTN method had one state qI for each item/, and two states qA and q~ for each nonterminal A. The parameterized RTN method has one state qrH for each item I and each list of items H that represents a valid history for reaching I, and two states qaH and q~H for each nonterminal A and each list of items H that represents a valid history for reaching A. Such a valid history is defined to be a list H with 0 < [HI < d that represents a series of positions in rules that could have been invoked before reaching I or A, respectively. More precisely, if we set H =/1 ... In, then each Im (1 < m < n) should be of the form [Am ~ olin \u2022 Bmflm] and for 1 < m < n we should have Am --Bm+l. Furthermore, for a state qiH with I = [A --* a \u2022 fl] we demand A = B1 if n > 0. For a state qAH we demand A --B1 if n > 0. (Strictly speaking, states qAH and qrH, with [HI < d -1 and I = [A --+ a \u2022 fl], will only be needed if AIH ] is the start symbol in the case IH[ > 0, or if A is the start symbol in the case H = c.)",
"cite_spans": [
{
"start": 100,
"end": 113,
"text": "Earley (1970)",
"ref_id": "BIBREF7"
},
{
"start": 806,
"end": 825,
"text": "[Am ~ olin \u2022 Bmflm]",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "The transitions of the automaton that pertain to terminals in right-hand sides of rules are very similar to those in the case of the unparameterized method: For a state qIH with I of the form [A ~ a \u2022 aft], we create a transition (q~H, a, qi,H), with",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "I' = [A ~ aa \u2022 fl].",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "Similarly, we create epsilon transitions that connect left-hand sides and right-hand sides of rules: For each state qAa there is a transition (qAH, e, qIH) for each item I = [A --* \u2022 a], for some a, and for each state of the form qI,u, with I' = [A ~ a \u2022], there is a transition (qFa, c, q~H).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "For transitions that pertain to nonterminals in the right-hand sides of rules, we need to manipulate the histories. For a state qIH with I of the form [A ~ a \u2022 Bfl], we create two epsilon transitions. One is (qIH, c, qBn,) , where H' is defined to be IH if [IH[ < d, and to be the first d -1 items of IH, otherwise. Informally, we extend the history by the item I representing the rule position that we have just come from, but the oldest information in the history is discarded if the history becomes too long. The second transition is If the start symbol is S, the initial state is qs and the final state is q~ (after the symbol S in the subscripts we find empty lists of items). Note that the parameterized method with d --1 concurs with the unparameterized method, since the lists of items then remain empty.",
"cite_spans": [
{
"start": 208,
"end": 222,
"text": "(qIH, c, qBn,)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "An example with parameter d --2 is given in Figure 6 . For the unparameterized method, each I = [A --* a \u2022 fl] corresponded to one state ( Figure 5 ). Since reaching A can have three different histories of length shorter than 2 (the empty history, since A is the start symbol; the history of coming from the rule position given by item [A -~ c \u2022 A]; and the history of coming from the rule position given by item [B ~ d \u2022 Ae]), in Figure 6 we now have three states of the form qI~ for each I --[A ~ a \u2022 fl], as well as three states of the form qA~r and q~H\"",
"cite_spans": [],
"ref_spans": [
{
"start": 44,
"end": 52,
"text": "Figure 6",
"ref_id": null
},
{
"start": 139,
"end": 147,
"text": "Figure 5",
"ref_id": null
},
{
"start": 431,
"end": 439,
"text": "Figure 6",
"ref_id": null
}
],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "The higher we choose d, the more precise the approximation is, since the histories allow the automaton to simulate part of the mechanism of recursion from the original grammar, and the maximum length of the histories corresponds to the number of levels of recursion that can be simulated accurately.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 5",
"sec_num": null
},
{
"text": "We rephrase the method of Grimley-Evans (1997) as follows: First, we construct the approximating finite automaton according to the unparameterized RTN method above. Then an additional mechanism is introduced that ensures for each rule A --~ X1 \u2022 .. Xm separately that the list of visits to the states qo,.. \u2022 \u2022 qm satisfies some reasonable criteria: a visit to qi, with 0 < i < m, should be followed by one to qi+l or q0. The latter option amounts to a nested incarnation of the rule. There is a complementary condition for what should precede a visit to qi, with 0 < i < m.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Refinement of RTN Superset Approximation",
"sec_num": "4.2"
},
{
"text": "Since only pairs of consecutive visits to states from the set {q0 ..... qm} are considered, finite-state techniques suffice to implement such conditions. This can be realized by attaching histories to the states as in the case of the parameterized RTN method above, but now each history is a set rather than a list, and can contain at most one item [A --* a \u2022 fl] for each rule A ---* aft. As reported by Grimley-Evans (1997) and con- ,,'\" \\-qA.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Refinement of RTN Superset Approximation",
"sec_num": "4.2"
},
{
"text": "d \" ,,, , Z e _ qB Q~___ H = [A --~ a.B b] -- 5.. \"'L qBH",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Refinement of RTN Superset Approximation",
"sec_num": "4.2"
},
{
"text": "Application of the parameterized RTN method with d = 2. We again assume A is the start symbol. States qm have not been labeled in order to avoid cluttering the picture.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Refinement of RTN Superset Approximation",
"sec_num": "4.2"
},
{
"text": "firmed by our own experiments, the nondeterministic finite automata resulting from this method may be quite large, even for small grammars. The explanation is that the number of such histories is exponential in the number of rules. We have refined the method with respect to the original publication by applying the construction separately for each nonterminal in a set Ni such that recursive(Ni) = self.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Refinement of RTN Superset Approximation",
"sec_num": "4.2"
},
{
"text": "Putting restrictions on spines is another way to obtain a regular language. Several methods can be defined. The first method we present investigates spines in a very detailed way. It eliminates from the language only those sentences for which a subderivation is required of the form B --~* aBfl, for some a ~ \u00a2 and fl ~ e. The motivation is that such sentences do not occur frequently in practice, since these subderivations make them difficult for people to comprehend (Resnik 1992) . Their exclusion will therefore not lead to much loss of coverage of typical sentences, especially for simple application domains.",
"cite_spans": [
{
"start": 470,
"end": 483,
"text": "(Resnik 1992)",
"ref_id": "BIBREF24"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation by Transforming the Grammar",
"sec_num": "4.3"
},
{
"text": "We express the method in terms of a grammar transformation in Figure 7 . The effect of this transformation is that a nonterminal A is tagged with a set of pairs (B, Q), where B is a nonterminal occurring higher in the spine; for any given B, at most one such pair (B, Q) can be contained in the set. The set Q may contain the element l to indicate that something to the left of the part of the spine from B to A We are given a grammar G = (E,N, P, S). The following is to be performed for each set Ni EAf such that recursive(Ni) = self.",
"cite_spans": [],
"ref_spans": [
{
"start": 62,
"end": 70,
"text": "Figure 7",
"ref_id": null
}
],
"eq_spans": [],
"section": "Subset Approximation by Transforming the Grammar",
"sec_num": "4.3"
},
{
"text": ".",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation by Transforming the Grammar",
"sec_num": "4.3"
},
{
"text": "For each A E Ni and each F E 2 (Nix2~l''}), add the following nonterminal to N.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation by Transforming the Grammar",
"sec_num": "4.3"
},
{
"text": "\u2022 A F .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation by Transforming the Grammar",
"sec_num": "4.3"
},
{
"text": "For each A E Ni, add the following rule to P. ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2.",
"sec_num": null
},
{
"text": "Remove from P the old rules of the form A --* c~, where A E Ni.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "4.",
"sec_num": null
},
{
"text": "Reduce the grammar.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "5.",
"sec_num": null
},
{
"text": "Subset approximation by transforming the grammar.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 7",
"sec_num": null
},
{
"text": "was generated. Similarly, r E Q indicates that something to the right was generated. If Q = {l, r}, then we have obtained a derivation B --** c~Afl, for some c~ ~ c and fl ~ ~, and further occurrences of B below A should be blocked in order to avoid a derivation with self-embedding. An example is given in Figure 8 . The original grammar is implicit in the depicted parse tree on the left, and contains at least the rules S --+ A a, A --, b B, B -* C, and C --* S. This grammar is self-embedding, since we have a subderivation S --~* bSa. We explain how FB is obtained from FA in the rule A ~ --* b B r'. We first construct F' = {(S, {r}), (A, 0)} from FA = {(S, (r})} by adding (A, 0), since no other pair of the form (A, Q) was already present. To the left of the occurrence of B in the original rule A --* b B we find a nonempty string b. This means that we have to add l to all second components of pairs in F', which gives us FB = {(S, (l, r}), (A, {l})}.",
"cite_spans": [],
"ref_spans": [
{
"start": 307,
"end": 315,
"text": "Figure 8",
"ref_id": "FIGREF4"
}
],
"eq_spans": [],
"section": "Figure 7",
"sec_num": null
},
{
"text": "In the transformed grammar, the lower occurrence of S in the tree is tagged with the set {(S, {I, r}), (A, {l}), (B, 0), (C, 0)}. The meaning is that higher up in the spine, we will find the nonterminals S, A, B, and C. The pair (A, (1}) indicates that since we saw A on the spine, something to the left has been generated, namely, b. The pair (B, 0) indicates that nothing either to the left or to the right has been generated since we saw B. The pair (S, {1, r}) indicates that both to the left and to the right something has been generated (namely, b on the left and a on the right). Since this indicates that an One could generalize this approximation in such a way that not all self-embedding is blocked, but only self-embedding occurring, say, twice in a row, in the sense of a subderivation of the form A --** alAfll --+* oqol2Afl2fll. We will not do so here, because already for the basic case above, the transformed grammar can be huge due to the high number of nonterminals of the form A F that may result; the number of such nonterminals is exponential in the size of Ni.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 7",
"sec_num": null
},
{
"text": "We therefore present, in Figure 9 , an alternative approximation that has a lower complexity. By parameter d, it restricts the number of rules along a spine that may generate something to the left and to the right. We do not, however, restrict pure left recursion and pure right recursion. Between two occurrences of an arbitrary rule, we allow left recursion followed by right recursion (which leads to tag r followed by tag rl), or right recursion followed by left recursion (which leads to tag l followed by tag lr).",
"cite_spans": [],
"ref_spans": [
{
"start": 25,
"end": 33,
"text": "Figure 9",
"ref_id": "FIGREF7"
}
],
"eq_spans": [],
"section": "Figure 7",
"sec_num": null
},
{
"text": "An example is given in Figure 10 . As before, the rules of the grammar are implicit in the depicted parse tree. At the top of the derivation we find S. In the transformed grammar, we first have to apply S --* S -r'\u00b0. The derivation starts with a rule S --* A a, which generates a string (a) to the right of a nonterminal (A). Before we can apply zero or more of such rules, we first have to apply a unit rule S T,\u00b0 --* S r,\u00b0 in the transformed grammar. For zero or more rules that subsequently generate something on the left, such as A ~ b B, we have to obtain a superscript containing rl, and in the example this is done by applying A r,\u00b0 ~ A rl,\u00b0. Now we are finished with pure left recursion and pure right recursion, and apply B rl,O ---+ B \u00b1,0. This allows us to apply one unconstrained rule, which appears in the transformed grammar as B \u00b1,\u00b0 ---* c S T'I d.",
"cite_spans": [],
"ref_spans": [
{
"start": 23,
"end": 32,
"text": "Figure 10",
"ref_id": "FIGREF9"
}
],
"eq_spans": [],
"section": "Figure 7",
"sec_num": null
},
{
"text": "We are given a grammar G = (G, N, P, S). The following is to be performed for each set Ni C .IV\" such that recursive(Ni) = self. The value d stands for the maximum number of unconstrained rules along a spine, possibly alternated with a series of left-recursive rules followed by a series of right-recursive rules, or vice versa.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 7",
"sec_num": null
},
{
"text": "For each A c Ni, each Q E { T, l, r, It, rl, 3_ }, and each f such that 0 < f < d, add the following nonterminals to N.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "1.",
"sec_num": null
},
{
"text": "\u2022 AQ,f.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "1.",
"sec_num": null
},
{
"text": "For each A E Ni, add the following rule to P. ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "2.",
"sec_num": null
},
{
"text": "Remove from P the old rules of the form A ~ c~, where A E Ni.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "7.",
"sec_num": null
},
{
"text": "Reduce the grammar. A simpler subset approximation by transforming the grammar.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "8.",
"sec_num": null
},
{
"text": "Now the counter f has been increased from 0 at the start of the subderivation to 1 at the end. Depending on the value d that we choose, we cannot build derivations by repeating subderivation S --+* b c S d a an unlimited number of times: at some point the counter will exceed d. Because of the demonstrated increase of the counter f, this transformation is guaranteed to remove self-embedding from the grammar. However, it is not as selective as the transformation we saw before, in the sense that it may also block subderivations that are not of the form A --** ~Afl. Consider for example the subderivation from Figure 10 , but replacing the lower occurrence of S by any other nonterminal C that is mutually recursive with S, A, and B. Such a subderivation S ---** b c C d a would also be blocked by choosing d = 0. In general, increasing d allows more of such derivations that are not of the form A ~\" o~Afl but also allows more derivations that are of that form.",
"cite_spans": [],
"ref_spans": [
{
"start": 613,
"end": 622,
"text": "Figure 10",
"ref_id": "FIGREF9"
}
],
"eq_spans": [],
"section": "8.",
"sec_num": null
},
{
"text": "The reason for considering this transformation rather than any other that eliminates self-embedding is purely pragmatic: of the many variants we have tried that yield nontrivial subset approximations, this transformation has the lowest complexity in terms of the sizes of intermediate structures and of the resulting finite automata.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "8.",
"sec_num": null
},
{
"text": "In the actual implementation, we have integrated the grammar transformation and the construction of the finite automaton, which avoids reanalysis of the grammar to determine the partition of mutually recursive nonterminals after transformation. This integration makes use, for example, of the fact that for fixed Ni and fixed f, the set of nonterminals of the form A,f, with A c Ni, is (potentially) mutually right-recursive. A set of such nonterminals can therefore be treated as the corresponding case from Figure 2 , assuming the value right.",
"cite_spans": [],
"ref_spans": [
{
"start": 509,
"end": 517,
"text": "Figure 2",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "8.",
"sec_num": null
},
{
"text": "The full formulation of the integrated grammar transformation and construction of the finite automaton is rather long and is therefore not given here. A very similar formulation, for another grammar transformation, is given in Nederhof (1998) .",
"cite_spans": [
{
"start": 227,
"end": 242,
"text": "Nederhof (1998)",
"ref_id": "BIBREF19"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "8.",
"sec_num": null
},
{
"text": "The distinction between context-free languages and regular languages can be seen in terms of the distinction between pushdown automata and finite automata. Pushdown automata maintain a stack that is potentially unbounded in height, which allows more complex languages to be recognized than in the case of finite automata. Regular approximation can be achieved by restricting the height of the stack, as we will see in Section 4.5, or by ignoring the distinction between several stacks when they become too high.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "More specifically, the method proposed by Pereira and Wright (1997) first constructs an LR automaton, which is a special case of a pushdown automaton. Then, stacks that may be constructed in the course of recognition of a string are computed one by one. However, stacks that contain two occurrences of a stack symbol are identified with the shorter stack that results by removing the part of the stack between the two occurrences, including one of the two occurrences. This process defines a congruence relation on stacks, with a finite number of congruence classes. This congruence relation directly defines a finite automaton: each class is translated to a unique state of the nondeterministic finite automaton, shift actions are translated to transitions labeled with terminals, and reduce actions are translated to epsilon transitions.",
"cite_spans": [
{
"start": 42,
"end": 67,
"text": "Pereira and Wright (1997)",
"ref_id": "BIBREF21"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "The method has a high complexity. First, construction of an LR automaton, of which the size is exponential in the size of the grammar, may be a prohibitively expensive task (Nederhof and Satta 1996) . This is, however, only a fraction of the effort needed to compute the congruence classes, of which the number is in turn exponential in the size of the LR automaton. If the resulting nondeterministic automaton is determinized, we obtain a third source of exponential behavior. The time and space complexity of the method are thereby bounded by a triple exponential function in the size of the grammar. This theoretical analysis seems to be in keeping with the high costs of applying this method in practice, as will be shown later in this article.",
"cite_spans": [
{
"start": 173,
"end": 198,
"text": "(Nederhof and Satta 1996)",
"ref_id": "BIBREF20"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "As proposed by Pereira and Wright (1997) , our implementation applies the approximation separately for each nonterminal occurring in a set Ni that reveals selfembedding.",
"cite_spans": [
{
"start": 15,
"end": 40,
"text": "Pereira and Wright (1997)",
"ref_id": "BIBREF21"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "A different superset approximation based on LR automata was proposed by Baker (1981) and rediscovered by Heckert (1994) . Each individual stack symbol is now translated to one state of the nondeterministic finite automaton. It can be argued theoretically that this approximation differs from the unparameterized RTN approximation from Section 4.1 only under certain conditions that are not likely to occur very often in practice. This consideration is confirmed by our experiments to be discussed later. Our implementation differs from the original algorithm in that the approximation is applied separately for each nonterminal in a set Ni that reveals self-embedding.",
"cite_spans": [
{
"start": 72,
"end": 84,
"text": "Baker (1981)",
"ref_id": "BIBREF0"
},
{
"start": 105,
"end": 119,
"text": "Heckert (1994)",
"ref_id": "BIBREF10"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "A generalization of this method was suggested by Bermudez and Schimpf (1990) . For a fixed number d > 0 we investigate sequences of d top-most elements of stacks that may arise in the LR automaton, and we translate these to states of the finite automaton. More precisely, we define another congruence relation on stacks, such that we have one congruence class for each sequence of d stack symbols and this class contains all stacks that have that sequence as d top-most elements; we have a separate class for each stack that contains fewer than d elements. As before, each congruence class is translated to one state of the nondeterministic finite automaton. Note that the case d = 1 is equivalent to the approximation in Baker (1981) .",
"cite_spans": [
{
"start": 49,
"end": 76,
"text": "Bermudez and Schimpf (1990)",
"ref_id": "BIBREF1"
},
{
"start": 722,
"end": 734,
"text": "Baker (1981)",
"ref_id": "BIBREF0"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "If we replace the LR automaton by a certain type of automaton that performs topdown recognition, then the method in Bermudez and Schimpf (1990) amounts to the parameterized RTN method from Section 4.1; note that the histories from Section 4.1 in fact function as stacks, the items being the stack symbols.",
"cite_spans": [
{
"start": 116,
"end": 143,
"text": "Bermudez and Schimpf (1990)",
"ref_id": "BIBREF1"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation through Pushdown Automata",
"sec_num": "4.4"
},
{
"text": "By restricting the height of the stack of a pushdown automaton, one obstructs recognition of a set of strings in the context-free language, and therefore a subset approximation results. This idea was proposed by Krauwer and des Tombe (1981) , Langendoen and Langsam (1987) , and Pulman (1986) , and was rediscovered by Black (1989) and recently by Johnson (1998) . Since the latest publication in this area is more explicit in its presentation, we will base our treatment on this, instead of going to the historical roots of the method.",
"cite_spans": [
{
"start": 212,
"end": 240,
"text": "Krauwer and des Tombe (1981)",
"ref_id": "BIBREF12"
},
{
"start": 243,
"end": 272,
"text": "Langendoen and Langsam (1987)",
"ref_id": "BIBREF13"
},
{
"start": 279,
"end": 292,
"text": "Pulman (1986)",
"ref_id": "BIBREF22"
},
{
"start": 319,
"end": 331,
"text": "Black (1989)",
"ref_id": "BIBREF3"
},
{
"start": 348,
"end": 362,
"text": "Johnson (1998)",
"ref_id": "BIBREF11"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation through Pushdown Automata",
"sec_num": "4.5"
},
{
"text": "One first constructs a modified left-corner recognizer from the grammar, in the form of a pushdown automaton. The stack height is bounded by a low number; Johnson (1998) claims a suitable number would be 5. The motivation for using the left-corner strategy is that the height of the stack maintained by a left-corner parser is already bounded by a constant in the absence of self-embedding. If the artificial bound imposed by the approximation method is chosen to be larger than or equal to this natural bound, then the approximation may be exact.",
"cite_spans": [
{
"start": 155,
"end": 169,
"text": "Johnson (1998)",
"ref_id": "BIBREF11"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation through Pushdown Automata",
"sec_num": "4.5"
},
{
"text": "Our own implementation is more refined than the published algorithms mentioned above, in that it defines a separate left-corner recognizer for each nonterminal A such that A E Ni and recursive(Ni) = self, some i. In the construction of one such recognizer, nonterminals that do not belong to Ni are treated as terminals, as in all other methods discussed here.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Subset Approximation through Pushdown Automata",
"sec_num": "4.5"
},
{
"text": "An approximation from Seyfarth and Bermudez (1995) can be explained as follows. Define the set of all terminals reachable from nonterminal A to be ~A = {a I 3c~, iliA --** o~afl]}. We now approximate the set of strings derivable from A by G~, which is the set of strings consisting of terminals from GA. Our implementation is made slightly more sophisticated by taking ~A to be {X ] 3B, c~,fl[B E Ni A B ~ oLXfl A X ~ Ni]}, for each A such that A E Ni and recursive(Ni) = self, for some i. That is, each X E ~A is a terminal, or a nonterminal not in the same set Ni as A, but immediately reachable from set Ni, through B E Ni.",
"cite_spans": [
{
"start": 22,
"end": 50,
"text": "Seyfarth and Bermudez (1995)",
"ref_id": "BIBREF26"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "This method can be generalized, inspired by Stolcke and Segal (1994) , who derive N-gram probabilities from stochastic context-free grammars. By ignoring the probabilities, each N = 1, 2, 3 .... gives rise to a superset approximation that can be described as follows: The set of strings derivable from a nonterminal A is approximated by the set of strings al ... an such that",
"cite_spans": [
{
"start": 44,
"end": 68,
"text": "Stolcke and Segal (1994)",
"ref_id": "BIBREF27"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "\u2022 for each substring v = ai+l ... ai+N (0 < i < n --N) we have A --+* wvy, for some w and y,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "\u2022 for each prefix v = al ... ai (0 < i < n) such that i < N we have A -** vy, for some y, and",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "\u2022 for each suffix v = ai+l ... an (0 < i < n) such that n -i < N we have a ---~* wv, for some w.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "(Again, the algorithms that we actually implemented are more refined and take into account the sets Ni.)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "The approximation from Seyfarth and Bermudez (1995) can be seen as the case N = 1, which will henceforth be called the unigram method. We have also experimented with the cases N = 2 and N = 3, which will be called the bigram and trigram methods.",
"cite_spans": [
{
"start": 23,
"end": 51,
"text": "Seyfarth and Bermudez (1995)",
"ref_id": "BIBREF26"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Superset Approximation by N-grams",
"sec_num": "4.6"
},
{
"text": "The methods of approximation described above take as input the parts of the grammar that pertain to self-embedding. It is only for those parts that the language is affected. This leads us to a way to increase the precision: before applying any of the above methods of regular approximation, we first transform the grammar.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "This grammar transformation copies grammar rules containing recursive nonterminals and, in the copies, it replaces these nonterminals by new nonrecursive nonterminals. The new rules take over part of the roles of the old rules, but since the new rules do not contain recursion and therefore do not pertain to self-embedding, they remain unaffected by the approximation process.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "Consider for example the palindrome grammar from Figure 1 . The RTN method will yield a rather crude approximation, namely, the language {a, b}*. We transform this grammar in order to keep the approximation process away from the first three levels of recursion. We achieve this by introducing three new nonterminals S[1], S[2] and S[3], and by adding modified copies of the original grammar rules, so that we obtain: The new grammar generates the same language as before, but the approximation process leaves unaffected the nonterminals S[1], S[2], and S[3] and the rules defining them, since these nonterminals are not recursive. These nonterminals amount to the upper three levels of the parse trees, and therefore the effect of the approximation on the language is limited to lower levels. If we apply the RTN method then we obtain the language that consists of (grammatical) palindromes of the form ww R, where w E {\u00a2, a, b} U {a, b} 2 U {a, b} 3, plus (possibly ungrammatical) strings of the form wvw R, where w E {a, b} 3 and v E {a, b}*. (w R indicates the mirror image of w.)",
"cite_spans": [],
"ref_spans": [
{
"start": 49,
"end": 57,
"text": "Figure 1",
"ref_id": null
}
],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "S[1] S[2] S[3] S",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "The grammar transformation in its full generality is given by the following, which is to be applied for fixed integer j > 0, which is a parameter of the transformation, and for each Ni such that recursive(Ni) = self.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "For each nonterminal A E Ni we introduce j new nonterminals All] ..... A~]. For each A --, X1...Xm in P such that A E Ni, and h such that 1 ~ h < j, we add A[h] --* X'I... X\" to P, where for 1 < k < m:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "X~k = Xk[h + 1] if X k E Ni /X h < j = Xk otherwise",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "Further, we replace all rules A --* X1 ... Xm such that A ~ Ni by A --* X~ ... X~m, where for 1 < k < m:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "X~ --Xk[1] ifXkENi = Xk otherwise",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "If the start symbol S was in Ni, we let S[1] be the new start symbol.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "A second transformation, which shares some characteristics with the one above, was presented in Nederhof (1997) . One of the earliest papers suggesting such transformations as a way to increase the precision of approximation is due to ~ulik and Cohen (1973), who only discuss examples, however; no general algorithms were defined. ",
"cite_spans": [
{
"start": 96,
"end": 111,
"text": "Nederhof (1997)",
"ref_id": "BIBREF18"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Increasing the Precision",
"sec_num": "5."
},
{
"text": "The test material. The left-hand curve refers to the construction of the grammar from 332 sentences, the right-hand curve refers to the corpus of 1,000 sentences used as input to the finite automata.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Figure 11",
"sec_num": null
},
{
"text": "In this section we investigate empirically how the respective approximation methods behave on grammars of different sizes and how much the approximated languages differ from the original context-free languages. This last question is difficult to answer precisely. Both an original context-free language and an approximating regular language generally consist of an infinite number of strings, and the number of strings that are introduced in a superset approximation or that are excluded in a subset approximation may also be infinite. This makes it difficult to attach numbers to the \"quality\" of approximations.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "We have opted for a pragmatic approach, which does not require investigation of the entire infinite languages of the grammar and the finite automata, but looks at a certain finite set of strings taken from a corpus, as discussed below. For this finite set of strings, we measure the percentage that overlaps with the investigated languages.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "For the experiments, we took context-free grammars for German, generated automatically from an HPSG and a spoken-language corpus of 332 sentences. This corpus consists of sentences possessing grammatical phenomena of interest, manually selected from a larger corpus of actual dialogues. An HPSG parser was applied on these sentences, and a form of context-free backbone was selected from the first derivation that was found. (To take the first derivation is as good as any other strategy, given that we have at present no mechanisms for relative ranking of derivations.) The label occurring at a node together with the sequence of labels at the daughter nodes was then taken to be a context-free rule. The collection of such rules for the complete corpus forms a context-free grammar. Due to the incremental nature of this construction of the grammar, we can consider the subgrammars obtained after processing the first p sentences, where p = 1, 2, 3 ..... 332. See Figure 11 (left) for the relation between p and the number of rules of the grammar. The construction is such that rules have at most two members in the right-hand side.",
"cite_spans": [],
"ref_spans": [
{
"start": 966,
"end": 975,
"text": "Figure 11",
"ref_id": null
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "As input, we considered a set of 1,000 sentences, obtained independently from the 332 sentences mentioned above. These 1,000 sentences were found by having a speech recognizer provide a single hypothesis for each utterance, where utterances come from actual dialogues. Figure 11 (right) shows how many sentences of different lengths the corpus contains, up to length 30. Above length 25, this number quickly declines, but still a fair quantity of longer strings can be found, e.g., 11 strings of a length between 51 and 60 words. In most cases however such long strings are in fact composed of a number of shorter sentences.",
"cite_spans": [],
"ref_spans": [
{
"start": 269,
"end": 278,
"text": "Figure 11",
"ref_id": null
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "Each of the 1,000 sentences were input in their entirety to the automata, although in practical spoken-language systems, often one is not interested in the grammaticality of complete utterances, but tries to find substrings that form certain phrases bearing information relevant to the understanding of the utterance. We will not be concerned here with the exact way such recognition of substrings could be realized by means of finite automata, since this is outside the scope of this paper.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "For the respective methods of approximation, we measured the size of the compact representation of the nondeterministic automaton, the number of states and the number of transitions of the minimal deterministic automaton, and the percentage of sentences that were recognized, in comparison to the percentage of grammatical sentences. For the compact representation, we counted the number of lines, which is roughly the sum of the numbers of transitions from all subautomata, not considering about three additional lines per subautomaton for overhead.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "We investigated the size of the compact representation because it is reasonably implementation independent, barring optimizations of the approximation algorithms themselves that affect the sizes of the subautomata. For some methods, we show that there is a sharp increase in the size of the compact representation for a small increase in the size of the grammar, which gives us a strong indication of how difficult it would be to apply the method to much larger grammars. Note that the size of the compact representation is a (very) rough indication of how much effort is involved in determinization, minimization, and substitution of the subautomata into each other. For determinization and minimization of automata, we have applied programs from the FSM library described in Mohri, Pereira, and Riley (1998) . This library is considered to be competitive with respect to other tools for processing of finite-state machines. When these programs cannot determinize or minimize in reasonable time and space some subautomata constructed by a particular method of approximation, then this can be regarded as an indication of the impracticality of the method.",
"cite_spans": [
{
"start": 777,
"end": 809,
"text": "Mohri, Pereira, and Riley (1998)",
"ref_id": "BIBREF16"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "We were not able to compute the compact representation for all the methods and all the grammars. The refined RTN approximation from Section 4.2 proved to be quite problematic. We were not able to compute the compact representation for any of the automatically obtained grammars in our collection that were self-embedding. We therefore eliminated individual rules by hand, starting from the smallest selfembedding grammar in our collection, eventually finding grammars small enough to be handled by this method. The results are given in Table 1 . Note that the size of the compact representation increases significantly for each additional grammar rule. The sizes of the finite automata, after determinization and minimization, remain relatively small.",
"cite_spans": [],
"ref_spans": [
{
"start": 536,
"end": 543,
"text": "Table 1",
"ref_id": "TABREF3"
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "Also problematic was the first approximation from Section 4.4, which was based on LR parsing following Pereira and Wright (1997) . Even for the grammar of 50 rules, we were not able to determinize and minimize one of the subautomata according to step 1 of Section 3: we stopped the process after it had reached a size of over 600 megabytes. Results, as far as we could obtain them, are given in Table 2 . Note the sharp increases in the size of the compact representation, resulting from small increases, from 44 to 47 and from 47 to 50, in the number of rules, and note an accompanying sharp increase in the size of the finite automaton. For this method, we see no possibility of accomplishing the complete approximation process, including determinization and minimization, for grammars in our collection that are substantially larger than 50 rules.",
"cite_spans": [
{
"start": 103,
"end": 128,
"text": "Pereira and Wright (1997)",
"ref_id": "BIBREF21"
}
],
"ref_spans": [
{
"start": 395,
"end": 402,
"text": "Table 2",
"ref_id": "TABREF5"
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "Since no grammars of interest could be handled by them, the above two methods will be left out of further consideration. Size of the compact representation and number of states and transitions, for the refined RTN approximation (Grimley-Evans 1997 Size of the compact representation and number of states and transitions, for the superset approximation based on LR automata following Pereira and Wright (1997) . Below, we refer to the unparameterized and parameterized approximations based on RTNs (Section 4.1) as RTN and RTNd, respectively, for d = 2,3; to the subset approximation from Figure 9 as Subd, for d = 1, 2, 3; and to the second and third methods from Section 4.4, which were based on LR parsing following Baker (1981) and Bermudez and Schimpf (1990) , as LR and LRd, respectively, for d = 2, 3. We refer to the subset approximation based on left-corner parsing from Section 4.5 as LCd, for the maximal stack height of d = 2, 3, 4; and to the methods discussed in Section 4.6 as Unigram, Bigram, and Trigram.",
"cite_spans": [
{
"start": 228,
"end": 247,
"text": "(Grimley-Evans 1997",
"ref_id": "BIBREF8"
},
{
"start": 383,
"end": 408,
"text": "Pereira and Wright (1997)",
"ref_id": "BIBREF21"
},
{
"start": 718,
"end": 730,
"text": "Baker (1981)",
"ref_id": "BIBREF0"
},
{
"start": 735,
"end": 762,
"text": "Bermudez and Schimpf (1990)",
"ref_id": "BIBREF1"
}
],
"ref_spans": [
{
"start": 588,
"end": 596,
"text": "Figure 9",
"ref_id": "FIGREF7"
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "We first discuss the compact representation of the nondeterministic automata. In Figure 12 we use two different scales to be able to represent the large variety of values. For the method Subd, the compact representation is of purely theoretical interest for grammars larger than 156 rules in the case of Sub1, for those larger than 62 rules in the case of Sub2, and for those larger than 35 rules in the case of Sub3, since the minimal deterministic automata could thereafter no longer be computed with a reasonable bound on resources; we stopped the processes after they had consumed over 400 megabytes. For LC3, LC4, RTN3, LR2, and LR3, this was also the case for grammars larger than 139, 62, 156, 217, and 156 rules, respectively. The sizes of the compact representation seem to grow moderately for LR and Bigram, in the upper panel, yet the sizes are much larger than those for RTN and Unigram, which are indicated in the lower panel.",
"cite_spans": [],
"ref_spans": [
{
"start": 81,
"end": 90,
"text": "Figure 12",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "The numbers of states for the respective methods are given in Figure 13 , again using two very different scales. As in the case of the grammars, the terminals of our finite automata are parts of speech rather than words. This means that in general there will be nondeterminism during application of an automaton on an input sentence due to lexical ambiguity. This nondeterminism can be handled efficiently using tabular ( Figure 12) are much larger. It should therefore be concluded that the \"sophistication\" of LR parsing is here merely an avoidable source of inefficiency.",
"cite_spans": [],
"ref_spans": [
{
"start": 62,
"end": 71,
"text": "Figure 13",
"ref_id": null
},
{
"start": 422,
"end": 432,
"text": "Figure 12)",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "The numbers of transitions for the respective methods are given in Figure 14 . Again, note the different scales used in the two panels. The numbers of transitions roughly correspond to the storage requirements for the automata. It can be seen that, again, Trigram, LR, RTN, Bigram, and Unigram perform well.",
"cite_spans": [],
"ref_spans": [
{
"start": 67,
"end": 76,
"text": "Figure 14",
"ref_id": null
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "The precision of the respective approximations is measured in terms of the percentage of sentences in the corpus that are recognized by the automata, in comparison to the percentage of sentences that are generated by the grammar, as presented by Figure 15 . The lower panel represents an enlargement of a section from the upper panel. Methods that could only be applied for the smaller grammars are only presented in the lower panel; LC4 and Sub2 have been omitted entirely.",
"cite_spans": [],
"ref_spans": [
{
"start": 246,
"end": 255,
"text": "Figure 15",
"ref_id": null
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "The curve labeled G represents the percentage of sentences generated by the grammar. Note that since all approximation methods compute either supersets or subsets, a particular automaton cannot both recognize some ungrammatical sentences and reject some grammatical sentences.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "Unigram and Bigram recognize very high percentages of ungrammatical sentences. Much better results were obtained for RTN. The curve for LR would not be distinguishable from that for RTN in the figure, and is therefore omitted. (For only two of the investigated grammars was there any difference, the largest difference occurring for grammar size 217, where 34.1 versus 34.5 percent of sentences were recognized in the cases of LR and RTN, respectively.) Trigram remains very close to RTN (and LR); for some grammars a lower percentage is recognized, for others a higher percentage is recognized. LR2 seems to improve slightly over RTN and Trigram, but data is available only for small grammars, due to the difficulty of applying the method to larger grammars. A more substantial improvement is found for RTN2. Even smaller percentages are recognized by LR3 and RTN3, but again, data is available only for small grammars.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "The subset approximations LC3 and Sub1 remain very close to G, but here again only data for small grammars is available, since these two methods could not be applied on larger grammars. Although application of LC2 on larger grammars required relatively few resources, the approximation is very crude: only a small percentage of the grammatical sentences are recognized.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "We also performed experiments with the grammar transformation from Section 5, in combination with the RTN method. We found that for increasing j, the intermediate automata soon became too large to be determinized and minimized, with a bound on the memory consumption of 400 megabytes. The sizes of the automata that we were able to compute are given in Figure 16 . RTN+j, for j = 1, 2, 3,4, 5, represents the (unparameterized) RTN method in combination with the grammar transformation with parameter j. This is not to be confused with the parameterized RTNd method. Figure 17 indicates the number of sentences in the corpus that are recognized by an automaton divided by the number of sentences in the corpus that are generated by the grammar. For comparison, the figure also includes curves for RTNd, where d = 2, 3 (cf. Figure 15) . We see that j = 1, 2 has little effect. For j = 3,4, 5, however, the approximating language becomes substantially smaller than that in the case of RTN, but at the expense of large automata. In particular, if we compare the sizes of the automata for RTN+j in Figure 16 with those for RTNd in Figures 13 and 14 , then Figure 17 suggests the large sizes of the automata for RTN+j are not compensated adequately by a reduction of the percentage of sentences that are recognized. RTNd seems therefore preferable to RTN+j. ",
"cite_spans": [],
"ref_spans": [
{
"start": 353,
"end": 362,
"text": "Figure 16",
"ref_id": null
},
{
"start": 566,
"end": 575,
"text": "Figure 17",
"ref_id": null
},
{
"start": 822,
"end": 832,
"text": "Figure 15)",
"ref_id": null
},
{
"start": 1093,
"end": 1102,
"text": "Figure 16",
"ref_id": null
},
{
"start": 1126,
"end": 1143,
"text": "Figures 13 and 14",
"ref_id": null
},
{
"start": 1151,
"end": 1160,
"text": "Figure 17",
"ref_id": null
}
],
"eq_spans": [],
"section": "Empirical Results",
"sec_num": "6."
},
{
"text": "If we apply the finite automata with the intention of filtering out incorrect sentences, for example from the output from a speech recognizer, then it is allowed that a deterministic automata are considered to be of high quality, it seems unlikely that alternative implementations could succeed on much larger grammars, especially considering the sharp increases in the sizes of the automata for small increases in the size of the grammar. Only LC2 could be applied with relatively few resources, but this is a very crude approximation, which leads to rejection of many more sentences than just those requiring self-embedding. Similarly, some of the superset approximations are not applicable to large grammars because of the high costs of obtaining the minimal deterministic automata. Some others provide rather large languages, and therefore do not allow very effective illtering of ungrammatical input. One method, however, seems to be excellently suited for large grammars, namely, the RTN method, considering both the unparameterized version and the parameterized version with d = 2. In both cases, the size of the automaton grows moderately in the grammar size. For the unparameterized version, the compact representation also grows moderately. Furthermore, the percentage of recognized sentences remains close to the percentage of grammatical sentences. It seems therefore that, under the conditions of our experiments, this method is the most suitable regular approximation that is presently available.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusions",
"sec_num": "7."
},
{
"text": "The representation inMohri and Pereira (1998) is even more compact than ours for grammars that are not self-embedding. However, in this paper we use our representation as an intermediate result in approximating an unrestricted context-free grammar, with the final objective of obtaining a single minimal deterministic automaton. For this purpose, Mohri and Pereira's representation offers little advantage.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
}
],
"back_matter": [
{
"text": "This paper could not have been written without the wonderful help of Hans-Ulrich Krieger, who created the series of grammars that are used in the experiments. I also owe to him many thanks for countless discussions and for allowing me to pursue this work. I am very grateful to the anonymous referees for their inspiring suggestions.This work was funded by the German Federal Ministry of Education, Science, Research and Technology (BMBF) in the framework of the VERBMOBIL Project under Grant 01 IV 701 V0.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Acknowledgments",
"sec_num": null
},
{
"text": "Note that the numbers of states for LR and RTN differ very little. In fact, for some of the smallest and for some of the largest grammars in our collection, the resulting automata were identical. Note, however, that the intermediate results for LR Number of states and number of transitions of the determinized and minimized automata.1.61.51.4 cessing. Also allowed is that \"pathological\" grammatical sentences are rejected that seldom occur in practice; an example are sentences requiring multiple levels of selfembedding.Of the methods we considered that may lead to rejection of grammatical sentences, i.e., the subset approximations, none seems of much practical value. The most serious problem is the complexity of the construction of automata from the compact representation for large grammars. Since the tools we used for obtaining the minimal",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "annex",
"sec_num": null
}
],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Extending lookahead for LR parsers",
"authors": [
{
"first": "Theodore",
"middle": [
"P"
],
"last": "Baker",
"suffix": ""
}
],
"year": 1981,
"venue": "Journal of Computer and System Sciences",
"volume": "22",
"issue": "",
"pages": "243--259",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Baker, Theodore P. 1981. Extending lookahead for LR parsers. Journal of Computer and System Sciences, 22:243-259.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "Practical arbitrary lookahead LR parsing",
"authors": [
{
"first": "Manuel",
"middle": [
"E"
],
"last": "Bermudez",
"suffix": ""
},
{
"first": "Karl",
"middle": [
"M"
],
"last": "Schimpf",
"suffix": ""
}
],
"year": 1990,
"venue": "Journal of Computer and System Sciences",
"volume": "41",
"issue": "",
"pages": "230--250",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Bermudez, Manuel E. and Karl M. Schimpf. 1990. Practical arbitrary lookahead LR parsing. Journal of Computer and System Sciences, 41:230-250.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Transductions and Context-Free Languages",
"authors": [
{
"first": "Jean",
"middle": [],
"last": "Berstel",
"suffix": ""
}
],
"year": 1979,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Berstel, Jean. 1979. Transductions and Context-Free Languages. B. G. Teubner, Stuttgart.",
"links": null
},
"BIBREF3": {
"ref_id": "b3",
"title": "Finite state machines from feature grammars",
"authors": [
{
"first": "Alan",
"middle": [
"W"
],
"last": "Black",
"suffix": ""
}
],
"year": 1989,
"venue": "International Workshop on Parsing Technologies",
"volume": "",
"issue": "",
"pages": "277--285",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Black, Alan W. 1989. Finite state machines from feature grammars. In International Workshop on Parsing Technologies, pages 277-285, Pittsburgh, PA.",
"links": null
},
"BIBREF4": {
"ref_id": "b4",
"title": "A note on phrase structure grammars",
"authors": [
{
"first": "Noam",
"middle": [],
"last": "Chomsky",
"suffix": ""
}
],
"year": 1959,
"venue": "Information and Control",
"volume": "2",
"issue": "",
"pages": "393--395",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Chomsky, Noam. 1959a. A note on phrase structure grammars. Information and Control, 2:393-395.",
"links": null
},
"BIBREF5": {
"ref_id": "b5",
"title": "On certain formal properties of grammars",
"authors": [
{
"first": "Noam",
"middle": [],
"last": "Chomsky",
"suffix": ""
}
],
"year": 1959,
"venue": "Information and Control",
"volume": "2",
"issue": "",
"pages": "137--167",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Chomsky, Noam. 1959b. On certain formal properties of grammars. Information and Control, 2:137-167.",
"links": null
},
"BIBREF6": {
"ref_id": "b6",
"title": "LR-regular grammars--An extension of LR(k) grammars",
"authors": [
{
"first": "Karel",
"middle": [
"Ii"
],
"last": "Culik",
"suffix": ""
},
{
"first": "Rina",
"middle": [],
"last": "Cohen",
"suffix": ""
}
],
"year": 1973,
"venue": "Journal of Computer and System Sciences",
"volume": "7",
"issue": "",
"pages": "66--96",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Culik, Karel II and Rina Cohen. 1973. LR-regular grammars--An extension of LR(k) grammars. Journal of Computer and System Sciences, 7:66-96.",
"links": null
},
"BIBREF7": {
"ref_id": "b7",
"title": "An efficient context-free parsing algorithm",
"authors": [
{
"first": "Jay",
"middle": [],
"last": "Earley",
"suffix": ""
}
],
"year": 1970,
"venue": "Communications of the ACM",
"volume": "13",
"issue": "2",
"pages": "94--102",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Earley, Jay. 1970. An efficient context-free parsing algorithm. Communications of the ACM, 13(2):94-102, February.",
"links": null
},
"BIBREF8": {
"ref_id": "b8",
"title": "Approximating context-free grammars with a finite-state calculus",
"authors": [
{
"first": "Edmund",
"middle": [],
"last": "Grimley-Evans",
"suffix": ""
}
],
"year": 1997,
"venue": "Proceedings of the 35th Annual Meeting of the Association for Computational Linguistics an 8th Conference of the European Chapter of the Association for Computational Linguistics",
"volume": "",
"issue": "",
"pages": "452--459",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Grimley-Evans, Edmund. 1997. Approximating context-free grammars with a finite-state calculus. In Proceedings of the 35th Annual Meeting of the Association for Computational Linguistics an 8th Conference of the European Chapter of the Association for Computational Linguistics, pages 452-459, Madrid, Spain.",
"links": null
},
"BIBREF9": {
"ref_id": "b9",
"title": "Introduction to Formal Language Theory",
"authors": [
{
"first": "Michael",
"middle": [
"A"
],
"last": "Harrison",
"suffix": ""
}
],
"year": 1978,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Harrison, Michael A. 1978. Introduction to Formal Language Theory. Addison-Wesley.",
"links": null
},
"BIBREF10": {
"ref_id": "b10",
"title": "Behandlung von Syntaxfehlern fiir LR-Sprachen ohne Korrekturversuche",
"authors": [
{
"first": "Erik",
"middle": [],
"last": "Heckert",
"suffix": ""
}
],
"year": 1994,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Heckert, Erik. 1994. Behandlung von Syntaxfehlern fiir LR-Sprachen ohne Korrekturversuche. Ph.D. thesis, Ruhr-Universit/it Bochum.",
"links": null
},
"BIBREF11": {
"ref_id": "b11",
"title": "Finite-state approximation of constraint-based grammars using left-comer grammar transforms",
"authors": [
{
"first": "Mark",
"middle": [],
"last": "Johnson",
"suffix": ""
}
],
"year": 1998,
"venue": "COLING-ACL \"98: 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics",
"volume": "1",
"issue": "",
"pages": "619--623",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Johnson, Mark. 1998. Finite-state approximation of constraint-based grammars using left-comer grammar transforms. In COLING-ACL \"98: 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics, volume 1, pages 619-623, Montreal, Quebec, Canada.",
"links": null
},
"BIBREF12": {
"ref_id": "b12",
"title": "Transducers and grammars as theories of language",
"authors": [
{
"first": "Steven",
"middle": [],
"last": "Krauwer",
"suffix": ""
},
{
"first": "Louis",
"middle": [],
"last": "Des Tombe",
"suffix": ""
}
],
"year": 1981,
"venue": "Theoretical Linguistics",
"volume": "8",
"issue": "",
"pages": "173--202",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Krauwer, Steven and Louis des Tombe. 1981. Transducers and grammars as theories of language. Theoretical Linguistics, 8:173-202.",
"links": null
},
"BIBREF13": {
"ref_id": "b13",
"title": "On the design of finite transducers for parsing phrase-structure languages",
"authors": [
{
"first": "D",
"middle": [],
"last": "Langendoen",
"suffix": ""
},
{
"first": "Yedidyah",
"middle": [],
"last": "Terence",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "Langsam",
"suffix": ""
}
],
"year": 1987,
"venue": "Mathematics of Language. John Benjamins",
"volume": "",
"issue": "",
"pages": "191--235",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Langendoen, D. Terence and Yedidyah Langsam. 1987. On the design of finite transducers for parsing phrase-structure languages. In Alexis Manaster-Ramer, editor, Mathematics of Language. John Benjamins, Amsterdam, pages 191-235.",
"links": null
},
"BIBREF15": {
"ref_id": "b15",
"title": "Dynamic compilation of weighted context-free grammars",
"authors": [
{
"first": "",
"middle": [],
"last": "Pereira",
"suffix": ""
}
],
"year": 1998,
"venue": "COLING-ACL \"98: 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics",
"volume": "2",
"issue": "",
"pages": "891--897",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Pereira. 1998. Dynamic compilation of weighted context-free grammars. In COLING-ACL \"98: 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics, volume 2, pages 891-897, Montreal, Quebec, Canada.",
"links": null
},
"BIBREF16": {
"ref_id": "b16",
"title": "A rational design for a weighted finite-state transducer library",
"authors": [
{
"first": "",
"middle": [],
"last": "Mohri",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "Mehryar",
"suffix": ""
},
{
"first": "C",
"middle": [
"N"
],
"last": "Femando",
"suffix": ""
},
{
"first": "Michael",
"middle": [],
"last": "Pereira",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "Riley",
"suffix": ""
}
],
"year": 1998,
"venue": "Automata Implementation. Lecture Notes in Computer Science, Number 1436",
"volume": "",
"issue": "",
"pages": "144--158",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Mohri, Mehryar, Femando C. N. Pereira, and Michael Riley. 1998. A rational design for a weighted finite-state transducer library. In Derick Wood and Sheng Yu, editors, Automata Implementation. Lecture Notes in Computer Science, Number 1436. Springer Verlag, pages 144-158.",
"links": null
},
"BIBREF17": {
"ref_id": "b17",
"title": "Linguistic Parsing and Program Transformations",
"authors": [
{
"first": "Mark",
"middle": [
"-"
],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1994,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, Mark-Jan. 1994. Linguistic Parsing and Program Transformations. Ph.D. thesis, University of Nijmegen.",
"links": null
},
"BIBREF18": {
"ref_id": "b18",
"title": "Regular approximations of CFLs: A grammatical view",
"authors": [
{
"first": "Mark",
"middle": [
"-"
],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1997,
"venue": "Proceedings of the International Workshop on Parsing Technologies",
"volume": "",
"issue": "",
"pages": "159--170",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, Mark-Jan. 1997. Regular approximations of CFLs: A grammatical view. In Proceedings of the International Workshop on Parsing Technologies, pages 159-170, Massachusetts Institute of Technology.",
"links": null
},
"BIBREF19": {
"ref_id": "b19",
"title": "Context-free parsing through regular approximation",
"authors": [
{
"first": "Mark-Jan",
"middle": [],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1998,
"venue": "Proceedings of the International Workshop on Finite State Methods in Natural Language Processing",
"volume": "",
"issue": "",
"pages": "13--24",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, Mark-Jan. 1998. Context-free parsing through regular approximation. In Proceedings of the International Workshop on Finite State Methods in Natural Language Processing, pages 13-24, Ankara, Turkey.",
"links": null
},
"BIBREF20": {
"ref_id": "b20",
"title": "Efficient tabular LR parsing",
"authors": [
{
"first": "Mark-Jan",
"middle": [],
"last": "Nederhof",
"suffix": ""
},
{
"first": "Giorgio",
"middle": [],
"last": "Satta",
"suffix": ""
}
],
"year": 1996,
"venue": "Proceedings of the 34th Annual Meeting",
"volume": "",
"issue": "",
"pages": "239--246",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Nederhof, Mark-Jan and Giorgio Satta. 1996. Efficient tabular LR parsing. In Proceedings of the 34th Annual Meeting, pages 239-246, Santa Cruz, CA. Association for Computational Linguistics.",
"links": null
},
"BIBREF21": {
"ref_id": "b21",
"title": "Finite-state approximation of phrase-structure grammars",
"authors": [
{
"first": "Fernando",
"middle": [
"C N"
],
"last": "Pereira",
"suffix": ""
},
{
"first": "Rebecca",
"middle": [
"N"
],
"last": "Wright",
"suffix": ""
}
],
"year": 1997,
"venue": "Finite-State Language Processing",
"volume": "",
"issue": "",
"pages": "149--173",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Pereira, Fernando C. N. and Rebecca N. Wright. 1997. Finite-state approximation of phrase-structure grammars. In Emmanuel Roche and Yves Schabes, editors, Finite-State Language Processing. MIT Press, pages 149-173.",
"links": null
},
"BIBREF22": {
"ref_id": "b22",
"title": "Grammars, parsers, and memory limitations",
"authors": [
{
"first": "S",
"middle": [
"G"
],
"last": "Pulman",
"suffix": ""
}
],
"year": 1986,
"venue": "Language and Cognitive Processes",
"volume": "1",
"issue": "3",
"pages": "197--225",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Pulman, S. G. 1986. Grammars, parsers, and memory limitations. Language and Cognitive Processes, 1(3):197-225.",
"links": null
},
"BIBREF23": {
"ref_id": "b23",
"title": "Parsing extended LR(k) grammars",
"authors": [
{
"first": "Paul",
"middle": [],
"last": "Purdom",
"suffix": ""
},
{
"first": "Jr",
"middle": [],
"last": "Walton",
"suffix": ""
},
{
"first": "Cynthia",
"middle": [
"A"
],
"last": "Brown",
"suffix": ""
}
],
"year": 1981,
"venue": "Acta Informatica",
"volume": "15",
"issue": "",
"pages": "115--127",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Purdom, Paul Walton, Jr. and Cynthia A. Brown. 1981. Parsing extended LR(k) grammars. Acta Informatica, 15:115-127.",
"links": null
},
"BIBREF24": {
"ref_id": "b24",
"title": "Left-corner parsing and psychological plausibility",
"authors": [
{
"first": "Philip",
"middle": [],
"last": "Resnik",
"suffix": ""
}
],
"year": 1992,
"venue": "COLING '92: Papers presented to the Fifteenth [sic] International Conference on Computational Linguistics",
"volume": "",
"issue": "",
"pages": "191--197",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Resnik, Philip. 1992. Left-corner parsing and psychological plausibility. In COLING '92: Papers presented to the Fifteenth [sic] International Conference on Computational Linguistics, pages 191-197, Nantes, France.",
"links": null
},
"BIBREF25": {
"ref_id": "b25",
"title": "Deterministic left comer parsing",
"authors": [
{
"first": "D",
"middle": [
"J"
],
"last": "Rosenkrantz",
"suffix": ""
},
{
"first": "P",
"middle": [
"M"
],
"last": "Lewis",
"suffix": ""
},
{
"first": "I",
"middle": [
"I"
],
"last": "",
"suffix": ""
}
],
"year": 1970,
"venue": "IEEE Conference Record of the 11th Annual Symposium on Switching and Automata Theory",
"volume": "",
"issue": "",
"pages": "139--152",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Rosenkrantz, D. J. and P. M. Lewis, II. 1970. Deterministic left comer parsing. In IEEE Conference Record of the 11th Annual Symposium on Switching and Automata Theory, pages 139-152.",
"links": null
},
"BIBREF26": {
"ref_id": "b26",
"title": "Suffix languages in LR parsing",
"authors": [
{
"first": "Benjamin",
"middle": [
"R"
],
"last": "Seyfarth",
"suffix": ""
},
{
"first": "Manuel",
"middle": [
"E"
],
"last": "Bermudez",
"suffix": ""
}
],
"year": 1995,
"venue": "International Journal of Computer Mathematics",
"volume": "55",
"issue": "",
"pages": "135--153",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Seyfarth, Benjamin R. and Manuel E. Bermudez. 1995. Suffix languages in LR parsing. International Journal of Computer Mathematics, 55:135-153.",
"links": null
},
"BIBREF27": {
"ref_id": "b27",
"title": "Precise N-gram probabilities from stochastic context-free grammars",
"authors": [
{
"first": "Andreas",
"middle": [],
"last": "Stolcke",
"suffix": ""
},
{
"first": "Jonathan",
"middle": [],
"last": "Segal",
"suffix": ""
}
],
"year": 1994,
"venue": "Proceedings of the 32nd Annual Meeting",
"volume": "",
"issue": "",
"pages": "74--79",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Stolcke, Andreas and Jonathan Segal. 1994. Precise N-gram probabilities from stochastic context-free grammars. In Proceedings of the 32nd Annual Meeting, pages 74-79, Las Cruces, NM. Association for Computational Linguistics.",
"links": null
},
"BIBREF28": {
"ref_id": "b28",
"title": "Transition network grammars for natural language analysis",
"authors": [
{
"first": "W",
"middle": [
"A"
],
"last": "Woods",
"suffix": ""
}
],
"year": 1970,
"venue": "Communications of the ACM",
"volume": "13",
"issue": "10",
"pages": "591--606",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Woods, W. A. 1970. Transition network grammars for natural language analysis. Communications of the ACM, 13(10):591-606.",
"links": null
}
},
"ref_entries": {
"FIGREF0": {
"text": "Transformation from a grammar G = (E, N,P, S) that is not self-embedding into an equivalent finite automaton 3 v = (K, E, A, s, F). ........................",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF1": {
"text": "(q'BH,, ~, q~'H), with I' = [A --* aB \u2022 fl].",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF2": {
"text": "Figure 6",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF3": {
"text": "A --* o~0A1o~1A2... C~m-lAmCrm) E P such that A, A1 .... ,Am E Ni and no symbols from c~0 .... , am are members of Ni, and each F such that (A, (l, r}) ~ F, add the following rule to P. ... A m O~m, where, for 1 G j _< m, --Fj= {(B, QUC~U~F) I (B,Q) E F'}; F' = FU {(A, 0)} if -~3Q[(A,Q) E F], and F' = F otherwise; --\u2022 = 0 if c~0AlC~l...Aj-I~j-1 = c, and ~ = {l} otherwise; --QJr = 0 if o/.jaj+lOLj+l...AmOL m = \u00a3, and QJr = {r} otherwise.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF4": {
"text": "parse tree m a self-embedding grammar (a), and the corresponding parse tree in the transformed grammar (b), for the transformation fromFigure 7. For the moment we ignore step 5 of Figure 7, i.e., reduction of the transformed grammar.offending subderivation S --** c~Sfl has been found, further completion of the parse tree is blocked: the transformed grammar will not have any rules with left-hand sideS {(S'{I'r})'(A'{I})'(B'O)'(C'O)}.In fact, after the grammar is reduced, any parse tree that is constructed can no longer even contain a node labeled by S {(s'U'r})'(a'{O)'(B'\u00b0)'(c'\u00b0)}, or any nodes with labels of the form A r such that (A, {l,r}) c F.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF5": {
"text": "each A E Ni and f such that 0 G f G d, add the following rules to P. \u2022 AT,f ___+ Al,f. \u2022 ATd: __+ Ar,f. \u2022 Aid ---+ Alr,f. \u2022 Ar,f ---, A~l,/. \u2022 Atr,f __+ A\u00b1,d. \u2022 Arl,f ___+ A\u00b1,f.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF6": {
"text": "Ba) ~ P such that A, B c Ni and no symbols from ~ are members of Ni, eachf such that 0 <f G d, and each Q E {r, lr}, add the following rule to P. A --+ c~B) E P such that A, B E Ni and no symbols from c~ are members of Ni, eachf such that 0 Gf < d, and each Q c {l, rl}, add the following rule to P. \u2022 Aqd ~ c~BQ,f. 6. For each (A -~ o~0AloqA2... O~m-lAmC~m) C P such that A, A1 ..... Am E Ni and no symbols from s0 ..... C~m are members of Ni, and each f such that 0 < f G d, add the following rule to P, provided m = 0 vf < d.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF7": {
"text": "Figure 9",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF8": {
"text": "If we choose d = 0, then already the derivation at S in a self-embedding grammar (a), and the corresponding parse tree in the transformed grammar (b), for the simple subset approximation fromFigure 9.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF9": {
"text": "b) is no longer possible, since no nonterminal in the transformed grammar would contain 1 in its superscript.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF11": {
"text": "of the determinized and minimized automata.",
"type_str": "figure",
"uris": null,
"num": null
},
"FIGREF12": {
"text": "600",
"type_str": "figure",
"uris": null,
"num": null
},
"TABREF3": {
"text": "",
"type_str": "table",
"num": null,
"html": null,
"content": "<table/>"
},
"TABREF5": {
"text": "",
"type_str": "table",
"num": null,
"html": null,
"content": "<table/>"
}
}
}
}