| { |
| "paper_id": "P94-1011", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T09:19:19.641514Z" |
| }, |
| "title": "PRECISE N-GRAM PROBABILITIES FROM STOCHASTIC CONTEXT-FREE GRAMMARS", |
| "authors": [ |
| { |
| "first": "Andreas", |
| "middle": [], |
| "last": "Stolcke", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "University of California", |
| "location": { |
| "addrLine": "1947 Center Street Berkeley", |
| "postCode": "94704", |
| "region": "CA" |
| } |
| }, |
| "email": "stolcke@edu" |
| }, |
| { |
| "first": "Jonathan", |
| "middle": [], |
| "last": "Segal", |
| "suffix": "", |
| "affiliation": { |
| "laboratory": "", |
| "institution": "University of California", |
| "location": { |
| "addrLine": "1947 Center Street Berkeley", |
| "postCode": "94704", |
| "region": "CA" |
| } |
| }, |
| "email": "jsegal@icsi@edu" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "We present an algorithm for computing n-gram probabilities from stochastic context-free grammars, a procedure that can alleviate some of the standard problems associated with n-grams (estimation from sparse data, lack of linguistic structure, among others). The method operates via the computation of substring expectations, which in turn is accomplished by solving systems of linear equations derived from the grammar. The procedure is fully implemented and has proved viable and useful in practice.", |
| "pdf_parse": { |
| "paper_id": "P94-1011", |
| "_pdf_hash": "", |
| "abstract": [ |
| { |
| "text": "We present an algorithm for computing n-gram probabilities from stochastic context-free grammars, a procedure that can alleviate some of the standard problems associated with n-grams (estimation from sparse data, lack of linguistic structure, among others). The method operates via the computation of substring expectations, which in turn is accomplished by solving systems of linear equations derived from the grammar. The procedure is fully implemented and has proved viable and useful in practice.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Abstract", |
| "sec_num": null |
| } |
| ], |
| "body_text": [ |
| { |
| "text": "Probabilistic language modeling with n-gram grammars (particularly bigram and trigram) has proven extremely useful for such tasks as automated speech recognition, part-ofspeech tagging, and word-sense disambiguation, and lead to simple, efficient algorithms. Unfortunately, working with these grammars can be problematic for several reasons: they have large numbers of parameters, so reliable estimation requires a very large training corpus and/or sophisticated smoothing techniques (Church and Gale, 1991) ; it is very hard to directly model linguistic knowledge (and thus these grammars are practically incomprehensible to human inspection); and the models are not easily extensible, i.e., if a new word is added to the vocabulary, none of the information contained in an existing n-gram will tell anything about the n-grams containing the new item. Stochastic context-free grammars (SCFGs), on the other hand, are not as susceptible to these problems: they have many fewer parameters (so can be reasonably trained with smaller corpora); they capture linguistic generalizations, and are easily understood and written, by linguists; and they can be extended straightforwardly based on the underlying linguistic knowledge.", |
| "cite_spans": [ |
| { |
| "start": 484, |
| "end": 507, |
| "text": "(Church and Gale, 1991)", |
| "ref_id": "BIBREF4" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": null |
| }, |
| { |
| "text": "In this paper, we present a technique for computing an n-gram grammar from an existing SCFG--an attempt to get the best of both worlds. Besides developing the mathematics involved in the computation, we also discuss efficiency and implementation issues, and briefly report on our experience confirming its practical feasibility and utility.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": null |
| }, |
| { |
| "text": "The technique of compiling higher-level grammatical models into lower-level ones has precedents: Zue et al. (1991) report building a word-pair grammar from more elaborate language models to achieve good coverage, by random generation of sentences. In our own group, the current approach was predated by an alternative one that essentially relied on approximating bigram probabilities through Monte-Carlo sampling from SCFGs.", |
| "cite_spans": [ |
| { |
| "start": 97, |
| "end": 114, |
| "text": "Zue et al. (1991)", |
| "ref_id": "BIBREF21" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "INTRODUCTION", |
| "sec_num": null |
| }, |
| { |
| "text": "An n-gram grammar is a set of probabilities P (w, ~lWlW2...wn_a) , giving the probability that wn follows a word string Wl w2... wn-1, for each possible combination of the w's in the vocabulary of the language. So for a 5000 word vocabulary, a bigram grammar would have approximately 5000 x 5000 = 25,000,000 free parameters, and a trigram grammar would have ~ 125,000,000,000. This is what we mean when we say n-gram grammars have many parameters.", |
| "cite_spans": [ |
| { |
| "start": 46, |
| "end": 49, |
| "text": "(w,", |
| "ref_id": null |
| }, |
| { |
| "start": 50, |
| "end": 64, |
| "text": "~lWlW2...wn_a)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "PRELIMINARIES", |
| "sec_num": null |
| }, |
| { |
| "text": "A SCFG is a set of phrase-structure rules, annotated with probabilities of choosing a certain production given the lefthand side nonterminal. For example, if we have a simple CFG, we can augment it with the probabilities specified:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "PRELIMINARIES", |
| "sec_num": null |
| }, |
| { |
| "text": "S --+ NPVP [1.0] NP --+ N [0.4] N P -+ Det N [0.6] VP --+ V [0.8] V P --+ V UP [0.2] Det --~ the [0.4] Det --+ a [0.6] N ~ book [1.0] V --+ close [0.3] V ~ open [0.7]", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "PRELIMINARIES", |
| "sec_num": null |
| }, |
| { |
| "text": "The language this grammar generates contains 5 words. Including markers for sentence beginning and end, a bigram grammar would contain 6 x 6 probabilities, or 6 x 5 = 30 free parameters (since probabilities have to sum to one). A trigram grammar would come with (5 x 6 + 1) x 5 = 155 parameters. Yet, the above SCFG has only 10 probabilities, only 4 of which are free parameters. The divergence between these two types of models generally grows as the vocabulary size increases, although this depends on the productions in the SCFG.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "PRELIMINARIES", |
| "sec_num": null |
| }, |
| { |
| "text": "The reason for this discrepancy, of course, is that the structure of the SCFG itself is a discrete (hyper-)parameter with a lot of potential variation, but one that has been fixed beforehand. The point is that such a structure is comprehensible by humans, and can in many cases be constrained using prior knowledge, thereby reducing the estimation problem for the remaining probabilities. The problem of estimating SCFG parameters from data is solved with standard techniques, usually by way of likelihood maximization and a variant of the Baum-Welch (EM) algorithm (Baker, 1979) . A tutorial introduction to SCFGs and standard algorithms can be found in Jelinek et al. (1992) .", |
| "cite_spans": [ |
| { |
| "start": 566, |
| "end": 579, |
| "text": "(Baker, 1979)", |
| "ref_id": "BIBREF0" |
| }, |
| { |
| "start": 655, |
| "end": 676, |
| "text": "Jelinek et al. (1992)", |
| "ref_id": "BIBREF12" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "PRELIMINARIES", |
| "sec_num": null |
| }, |
| { |
| "text": "There are good arguments that SCFGs are in principle not adequate probabilistic models for natural languages, due to the conditional independence assumptions they embody (Magerman and Marcus, 1991; Jones and Eisner, 1992; Briscoe and Carroll, 1993) . Such shortcomings can be partly remedied by using SCFGs with very specific, semantically oriented categories and rules (Jurafsky et al., 1994) . If the goal is to use n-grams nevertheless, then their their computation from a more constrained SCFG is still useful since the results can be interpolated with raw n-gram estimates for smoothing. An experiment illustrating this approach is reported later in the paper.", |
| "cite_spans": [ |
| { |
| "start": 170, |
| "end": 197, |
| "text": "(Magerman and Marcus, 1991;", |
| "ref_id": "BIBREF15" |
| }, |
| { |
| "start": 198, |
| "end": 221, |
| "text": "Jones and Eisner, 1992;", |
| "ref_id": "BIBREF13" |
| }, |
| { |
| "start": 222, |
| "end": 248, |
| "text": "Briscoe and Carroll, 1993)", |
| "ref_id": "BIBREF2" |
| }, |
| { |
| "start": 370, |
| "end": 393, |
| "text": "(Jurafsky et al., 1994)", |
| "ref_id": "BIBREF14" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MOTIVATION", |
| "sec_num": null |
| }, |
| { |
| "text": "On the other hand, even if vastly more sophisticated language models give better results, r~-grams will most likely still be important in applications such as speech recognition. The standard speech decoding technique of framesynchronous dynamic programming (Ney, 1984) is based on a first-order Markov assumption, which is satisfied by bigrams models (as well as by Hidden Markov Models), but not by more complex models incorporating non-local or higherorder constraints (including SCFGs). A standard approach is therefore to use simple language models to generate a preliminary set of candidate hypotheses. These hypotheses, e.g., represented as word lattices or N-best lists (Schwartz and Chow, 1990) , are re-evaluated later using additional criteria that can afford to be more costly due to the more constrained outcomes. In this type of setting, the techniques developed in this paper can be used to compile probabilistic knowledge present in the more elaborate language models into n-gram estimates that improve the quality of the hypotheses generated by the decoder.", |
| "cite_spans": [ |
| { |
| "start": 258, |
| "end": 269, |
| "text": "(Ney, 1984)", |
| "ref_id": "BIBREF16" |
| }, |
| { |
| "start": 678, |
| "end": 703, |
| "text": "(Schwartz and Chow, 1990)", |
| "ref_id": "BIBREF19" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MOTIVATION", |
| "sec_num": null |
| }, |
| { |
| "text": "Finally, comparing directly estimated, reliable n-grams with those compiled from other language models is a potentially useful method for evaluating the models in question.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MOTIVATION", |
| "sec_num": null |
| }, |
| { |
| "text": "For the purpose of this paper, then, we assume that computing n-grams from SCFGs is of either practical or theoretical interest and concentrate on the computational aspects of the problem.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MOTIVATION", |
| "sec_num": null |
| }, |
| { |
| "text": "It should be noted that there are alternative, unrelated methods for addressing the problem of the large parameter space in n-gram models. For example, Brown et al. (1992) describe an approach based on grouping words into classes, thereby reducing the number of conditional probabilities in the model.", |
| "cite_spans": [ |
| { |
| "start": 165, |
| "end": 171, |
| "text": "(1992)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "MOTIVATION", |
| "sec_num": null |
| }, |
| { |
| "text": "A grammar is in Chomsky Normal Form (CNF) if every production is of the form A ~ B C or A ~ terminal. Any CFG or SCFG can be converted into one in CNF which generates exactly the same language, each of the sentences with exactly the same probability, and for which any parse in the original grammar would be reconstructible from a parse in the CNF grammar. In short, we can, without loss of generality, assume that the SCFGs we are dealing with are in CNF. In fact, our algorithm generalizes straightforwardly to the more general Canonical Two-Form (Graham et al., 1980) format, and in the case of bigrams (n =-2) it can even be modified to work directly for arbitrary SCFGs. Still, the CNF form is convenient, and to keep the exposition simple we assume all SCFGs to be in CNF.", |
| "cite_spans": [ |
| { |
| "start": 549, |
| "end": 570, |
| "text": "(Graham et al., 1980)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Normal form for SCFGs", |
| "sec_num": null |
| }, |
| { |
| "text": "The first key insight towards a solution is that the n-gram probabilities can be obtained from the associated expected frequencies for n-grams and (n -1)-grams:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Probabilities from expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "c(wl...wnlL) P(w,dwlw2...w,~-a) = c(wx ...wn-llL) (1)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Probabilities from expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "where c(wlL ) stands for the expected count of occurrences of the substring w in a sentence of L.1", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Probabilities from expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "Proof Write the expectation for n-grams recursively in terms of those of order n -1 and the conditional n-gram probabilities:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Probabilities from expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "C(Wl...Wr~[L) ~---C(Wl...W~_llL)P(w~lw lw2...wr~_l).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Probabilities from expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "So if we can compute c(wlG) for all substrings w of lengths n and n -1 for a SCFG G, we immediately have an n-gram grammar for the language generated by G.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Probabilities from expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "Our goal now is to compute the substring expectations for a given grammar. Formalisms such as SCFGs that have a recursive rule structure suggest a divide-and-conquer algorithrn that follows the recursive structure of the grammar, z", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "We generalize the problem by considering c(wIX), the expected number of (possibly overlapping) occurrences of 1The only counts appearing in this paper are expectations, so be will not be using special notation to make a distinction between observed and expected values.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "2A similar, even simpler approach applies to probabilistic finite state (i.e., Hidden Markov) models. of length I, w = wl, and if X happens to have a production X --~ Wl, then that production adds exactly P(X --~ wt) to the expectation c(w IX).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "If X has non-terminal productions, say, X ~ YZ then w might also be generated by recursive expansion of the right-hand side. Here, for each production, there are three subcases. (a) First, Y can by itself generate the complete w (see (Figure l(c) ). 3 Each of these cases will have an expectation for generating wl ... wn as a substring, and the total expectation c(w}X)", |
| "cite_spans": [], |
| "ref_spans": [ |
| { |
| "start": 234, |
| "end": 246, |
| "text": "(Figure l(c)", |
| "ref_id": null |
| } |
| ], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "will be the sum of these partial expectations. The total expectations for the first two cases (that of the substring being completely generated by Y or Z) are given recursively: c(wlY) and c(wlY ) respectively. The expectation for the third case is", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "n--1 E P(Y :~zR wl... wj)P(Z :~'L wj+,... W,), (2) j=l", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "where one has to sum over all possible split points j of the string w.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "3We use the notation X =~R c~ to denote that non-terminal X generates the string c~ as a suffix, and X :~z c~ to denote that X generates c~ as a prefix. Thus P(X :~t. ~) and P(X ::~n o~) are the probabilities associated with those events.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "To compute the total expectation c(wlX), then, we have to sum over all these choices: the production used (weighted by the rule probabilities), and for each nonterminal rule the three cases above. This gives", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "c(wlx) = P(x -~ w) + E P(X~YZ) X-+ Y Z ( c(w[Y) + ~(~lz) n--1 + P(Y :;R j=l \\ P(Z ::~L wj+,.., wn)) J", |
| "eq_num": "(3)" |
| } |
| ], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "In the important special case of bigrams, this summation simplifies quite a bit, since the terminal productions are ruled out and splitting into prefix and suffix allows but one possibility:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "c(wlw21X) = E P(X ~ YZ) X--~ Y Z C(WlW2IY) q-C(WlW2IZ) \\ +P(Y ---~t~ w,)P(Z :~L w2))", |
| "eq_num": "(4)" |
| } |
| ], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "For unigrams equation 3simplifies even more:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "C(WllX) = P(X --+ wl) + ~_, P(X-+YZ)(c(w'IY)+c(w1IZ)) X--+YZ (5)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "We now have a recursive specification of the quantities c(wlX ) we need to compute. Alas, the recursion does not necessarily bottom out, since the c(wlY) and c(wlZ) quantities on the right side of equation (3) may depend themselves on c(wlX). Fortunately, the recurrence is linear, so for each string w, we can find the solution by solving the linear system formed by all equations of type (3). Notice there are exactly as many equations as variables, equal to the number of nonterminals in the grammar. The solution of these systems is further discussed below.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing expectations", |
| "sec_num": null |
| }, |
| { |
| "text": "The only substantial problem left at this point is the computation of the constants in equation 3. These are derived from the rule probabilities P(X ~ w) and P(X --+ YZ), as well as the prefix/suffix generation probabilities P(Y =~R wl ... wj) and P(Z =~z wj+l ... w,~).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing prefix and suffix probabilities", |
| "sec_num": null |
| }, |
| { |
| "text": "The computation of prefix probabilities for SCFGs is generally useful for applications, and has been solved with the LRI algorithm (Jelinek and Lafferty, 1991) . Recently, Stolcke (1993) has shown how to perform this computation efficiently for sparsely parameterized SCFGs using a probabilistic version of Earley's parser (Earley, 1970) . Computing suffix probabilities is obviously a symmetrical task; for example, one could create a 'mirrored' SCFG (reversing the order of right-hand side symbols in all productions) and then run any prefix probability computation on that mirror grammar.", |
| "cite_spans": [ |
| { |
| "start": 131, |
| "end": 159, |
| "text": "(Jelinek and Lafferty, 1991)", |
| "ref_id": "BIBREF10" |
| }, |
| { |
| "start": 172, |
| "end": 186, |
| "text": "Stolcke (1993)", |
| "ref_id": "BIBREF20" |
| }, |
| { |
| "start": 323, |
| "end": 337, |
| "text": "(Earley, 1970)", |
| "ref_id": "BIBREF6" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing prefix and suffix probabilities", |
| "sec_num": null |
| }, |
| { |
| "text": "Note that in the case of bigrams, only a particularly simple form of prefix/suffix probabilities are required, namely, the 'left-corner' and 'right-corner' probabilities, P(X ~z wl) and P(Y ~ R w2), which can each be obtained from a single matrix inversion (Jelinek and Lafferty, 1991) .", |
| "cite_spans": [ |
| { |
| "start": 257, |
| "end": 285, |
| "text": "(Jelinek and Lafferty, 1991)", |
| "ref_id": "BIBREF10" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing prefix and suffix probabilities", |
| "sec_num": null |
| }, |
| { |
| "text": "It should be mentioned that there are some technical conditions that have to be met for a SCFG to be well-defined and consistent (Booth and Thompson, 1973) . These condition are also sufficient to guarantee that the linear equations given by (3) have positive probabilities as solutions. The details of this are discussed in the Appendix.", |
| "cite_spans": [ |
| { |
| "start": 129, |
| "end": 155, |
| "text": "(Booth and Thompson, 1973)", |
| "ref_id": "BIBREF1" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Computing prefix and suffix probabilities", |
| "sec_num": null |
| }, |
| { |
| "text": "Finally, it is interesting to compare the relative ease with which one can solve the substring expectation problem to the seemingly similar problem of finding substringprobabilities: the probability that X generates (one or more instances of) w. The latter problem is studied by Corazza et al. (1991) , and shown to lead to a non-linear system of equations. The crucial difference here is that expectations are additive with respect to the cases in Figure 1 , whereas the corresponding probabilities are not, since the three cases can occur simultaneously.", |
| "cite_spans": [ |
| { |
| "start": 279, |
| "end": 300, |
| "text": "Corazza et al. (1991)", |
| "ref_id": "BIBREF5" |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 449, |
| "end": 457, |
| "text": "Figure 1", |
| "ref_id": "FIGREF0" |
| } |
| ], |
| "eq_spans": [], |
| "section": "Computing prefix and suffix probabilities", |
| "sec_num": null |
| }, |
| { |
| "text": "Summarizing from the previous section, we can compute any n-gram probability by solving two linear systems of equations of the form (3), one with w being the n-gram itself and one for the (n -1)-gram prefix wl ... wn-1. The latter computation can be shared among all n-grams with the same prefix, so that essentially one system needs to be solved for each n-gram we are interested in. The good news here is that the work required is linear in the number of n-grams, and correspondingly limited if one needs probabilities for only a subset of the possible n-grams. For example, one could compute these probabilities on demand and cache the results. Let us examine these systems of equations one more time.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY AND COMPLEXITY ISSUES", |
| "sec_num": null |
| }, |
| { |
| "text": "Each can be written in matrix notation in the form where I is the identity matrix, A = (axu) is a coefficient matrix, b = (bx) is the right-hand side vector, and c represents the vector of unknowns, c(wlX ). All of these are indexed by nonterminals X, U. We get axu = Z P(X-+ YZ)(6(Y,U)+6(Z,U)) 7X--+ YZ bx = P(X ~ w)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY AND COMPLEXITY ISSUES", |
| "sec_num": null |
| }, |
| { |
| "text": "+ Z P(X--4 YZ) X--+ YZ n-1 ~ P(Y :~R wl ...wj) j=l P(Z ~L Wj+l,.. 'OJn) (8)", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY AND COMPLEXITY ISSUES", |
| "sec_num": null |
| }, |
| { |
| "text": "where 6(X, Y) = 1 ifX = Y, and 0 otherwise. The expression I -A arises from bringing the variables c(wlY ) and c(wlZ ) to the other side in equation 3in order to collect the coefficients.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY AND COMPLEXITY ISSUES", |
| "sec_num": null |
| }, |
| { |
| "text": "We can see that all dependencies on the particular bigram, w, are in the right-hand side vector b, while the coefficient matrix I -A depends only on the grammar. This, together with the standard method of LU decomposition (see, e.g., Press et al. (1988) ) enables us to solve for each bigram in time O(N2), rather than the standard O(N 3) for a full system (N being the number of nonterminals/variables). The LU decomposition itself is cubic, but is incurred only once. The full computation is therefore dominated by the quadratic effort of solving the system for each n-gram. Furthermore, the quadratic cost is a worst-case figure that would be incurred only if the grammar contained every possible rule; empirically we have found this computation to be linear in the number of nonterminals, for grammars that are sparse, i.e., where each nonterminal makes reference only to a bounded number of other nonterminals.", |
| "cite_spans": [ |
| { |
| "start": 234, |
| "end": 253, |
| "text": "Press et al. (1988)", |
| "ref_id": "BIBREF18" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EFFICIENCY AND COMPLEXITY ISSUES", |
| "sec_num": null |
| }, |
| { |
| "text": "Listed below are the steps of the complete computation. For concreteness we give the version specific to bigrams (n = 2).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": "1. Compute the prefix (left-corner) and suffix (rightcorner) probabilities for each (nonterminal,word) pair.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": "2. Compute the coefficient matrix and right-hand sides for the systems of linear equations, as per equations (4) and (5).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": "3. LU decompose the coefficient matrix.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": "4. Compute the unigram expectations for each word in the grammar, by solving the LU system for the unigram right-hand sides computed in step 2.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": "5. Compute the bigram expectations for each word pair by solving the LU system for the bigram right-hand sides computed in step 2.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": ". Compute each bigram probability P (w2 ]wl ), by dividing the bigram expectation c(wlw2[S) by the unigram expectation C(Wl IS).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "SUMMARY", |
| "sec_num": null |
| }, |
| { |
| "text": "The algorithm described here has been implemented, and is being used to generate bigrams for a speech recognizer that is part of the BeRP spoken-language system (Jurafsky et al., 1994 ). An early prototype of BeRP was used in an experiment to assess the benefit of using bigram probabilities obtained through SCFGs versus estimating them directly from the available training corpus. 4 The system's domain are inquiries about restaurants in the city of Berkeley. The training corpus used had only 2500 sentences, with an average length of about 4.8 words/sentence. Our experiments made use of a context-free grammar hand-written for the BeRP domain. With 1200 rules and a vocabulary of 1 I00 words, this grammar was able to parse 60% of the training corpus. Computing the bigram probabilities from this SCFG takes about 24 hours on a SPARCstation 2-class machine. 5", |
| "cite_spans": [ |
| { |
| "start": 161, |
| "end": 183, |
| "text": "(Jurafsky et al., 1994", |
| "ref_id": "BIBREF14" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EXPERIMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "In experiment 1, the recognizer used bigrams that were estimated directly from the training corpus, without any smoothing, resulting in a word error rate of 35.1%. In experiment 2, a different set of bigram probabilities was used, computed from the context-free grammar, whose probabilities had previously been estimated from the same training corpus, using standard EM techniques. This resulted in a word error rate of 35.3%. This may seem surprisingly good given the low coverage of the underlying CFGs, but notice that the conversion into bigrams is bound to result in a less constraining language model, effectively increasing coverage.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EXPERIMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "Finally, in experiment 3, the bigrams generated from the SCFG were augmented by those from the raw training data, in a proportion of 200,000 : 2500. We have not attempted to optimize this mixture proportion, e.g., by deleted interpolation (Jelinek and Mercer, 1980) . 6 With the bigram estimates thus obtained, the word error rate dropped to 33.5%. (All error rates were measured on a separate test corpus.)", |
| "cite_spans": [ |
| { |
| "start": 239, |
| "end": 265, |
| "text": "(Jelinek and Mercer, 1980)", |
| "ref_id": "BIBREF11" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EXPERIMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "The experiment therefore supports our earlier argument that more sophisticated language models, even if far from perfect, can improve n-gram estimates obtained directly from sample data.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EXPERIMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "4Corpus and grammar sizes, as well as the recognition performance figures reported here are not up-to-date with respect to the latest version of BeRP. For ACL-94 we expect to have revised results available that reflect the current performance of the system. 5Unlike the rest of BeRP, this computation is implemented in Lisp/CLOS and could be speeded up considerably if necessary.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EXPERIMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "6This proportion comes about because in the original system, predating the method described in this paper, bigrams had to be estimated from the SCFG by random sampling. Generating 200,000 sentence samples was found to give good converging estimates for the bigrams. The bigrams from the raw training sentences were then simply added to the randomly generated ones. We later verified that the bigrams estimated from the SCFG were indeed identical to the ones computed directly using the method described here.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "EXPERIMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "We. have described an algorithm to compute in closed form the distribution of n-grams for a probabilistic language given by a stochastic context-free grammar. Our method is based on computing substring expectations, which can be expressed as systems of linear equations derived from the grammar. The algorithm was used successfully and found to be practical in dealing with context-free grammars and bigram models for a medium-scale speech recognition task, where it helped to improve bigram estimates obtained from relatively small amounts of data.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "CONCLUSIONS", |
| "sec_num": null |
| }, |
| { |
| "text": "Deriving n-gram probabilities from more sophisticated language models appears to be a generally useful technique which can both improve upon direct estimation of n-grams, and allow available higher-level linguistic knowledge to be effectively integrated into the speech decoding task.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "CONCLUSIONS", |
| "sec_num": null |
| }, |
| { |
| "text": "Dan Jurafsky wrote the BeRP grammar, carried out the recognition experiments, and was generally indispensable. Steve Omohundro planted the seed for our n-gram algorithm during lunch at the California Dream Caf6 by suggesting substring expectations as an interesting computational linguistics problem. Thanks also to Jerry Feldman and Lokendra Shastri for improving the presentation with their comments.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "ACKNOWLEDGMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "This research has been supported by ICSI and ARPA contract #N0000 1493 C0249.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "ACKNOWLEDGMENTS", |
| "sec_num": null |
| }, |
| { |
| "text": "Blindly applying the n-gram algorithm (and many others) to a SCFG with arbitrary probabilities can lead to surprising results. Consider the following simple grammar c--1-2q 2p-1 Now, for p = 0.5 this becomes infinity, and for probabilities p < 0.5, the solution is negative! This is a rather striking manifestation of the failure of this grammar, for p < 0.5, to be consistent. A grammar is said to be inconsistent if the underlying stochastic derivation process has non-zero probability of not terminating (Booth and Thompson, 1973) . The expected length of the generated strings should therefore be infinite in this case. Fortunately, Booth and Thompson derive a criterion for checking the consistency of a SCFG: Find the first-order expectancy matrix E = (exy), where exy is the expected number of occurrences of nonterminal Y in a one-step expansion of nonterminal X, and make sure its powers E k converge to 0 as k ~ oe. If so, the grammar is consistent, otherwise it is not]", |
| "cite_spans": [ |
| { |
| "start": 507, |
| "end": 533, |
| "text": "(Booth and Thompson, 1973)", |
| "ref_id": "BIBREF1" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "APPENDIX: CONSISTENCY OF SCFGS", |
| "sec_num": null |
| }, |
| { |
| "text": "For the grammar in (9), E is the 1 x 1 matrix (2q). Thus we can confirm our earlier observation by noting that (2q) k converges to 0 iff q < 0.5, or p > 0.5. Now, it so happens that E is identical to the matrix A that occurs in the linear equations (6) for the n-gram computation. The actual coefficient matrix is I -A, and its inverse, if it exists, can be written as the geometric sum (I-A) -~ = I+A+A2+A 3 +... This series converges precisely if A k converges to 0. We have thus shown that the existence of a solution for the ngram problem is equivalent to the consistency of the grammar in question. Furthermore, the solution vector c = (I -A)-lb will always consist of non-negative numbers: it is the sum and product of the non-negative values given by equations (7) and (8).", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "APPENDIX: CONSISTENCY OF SCFGS", |
| "sec_num": null |
| } |
| ], |
| "back_matter": [], |
| "bib_entries": { |
| "BIBREF0": { |
| "ref_id": "b0", |
| "title": "Trainable grammars for speech recognition", |
| "authors": [ |
| { |
| "first": "James", |
| "middle": [ |
| "K" |
| ], |
| "last": "Baker", |
| "suffix": "" |
| } |
| ], |
| "year": 1979, |
| "venue": "Speech Communication Papers for the 97th Meeting of the", |
| "volume": "", |
| "issue": "", |
| "pages": "547--550", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "James K. Baker. 1979. Trainable grammars for speech recognition. In Jared J. Wolf and Dennis H. Klatt, editors, Speech Communication Papers for the 97th Meeting of the Acoustical Society of America, pages 547-550, MIT, Cambridge, Mass.", |
| "links": null |
| }, |
| "BIBREF1": { |
| "ref_id": "b1", |
| "title": "Applying probability measures to abstract languages", |
| "authors": [ |
| { |
| "first": "L", |
| "middle": [], |
| "last": "Taylor", |
| "suffix": "" |
| }, |
| { |
| "first": "Richard", |
| "middle": [ |
| "A" |
| ], |
| "last": "Booth", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Thompson", |
| "suffix": "" |
| } |
| ], |
| "year": 1973, |
| "venue": "IEEE Transactions on Computers, C", |
| "volume": "22", |
| "issue": "5", |
| "pages": "442--450", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Taylor L. Booth and Richard A. Thompson. 1973. Ap- plying probability measures to abstract languages. IEEE Transactions on Computers, C-22(5):442--450.", |
| "links": null |
| }, |
| "BIBREF2": { |
| "ref_id": "b2", |
| "title": "Generalized probabilistic LR parsing of natural language (corpora) with unification-based grammars", |
| "authors": [ |
| { |
| "first": "Ted", |
| "middle": [], |
| "last": "Briscoe", |
| "suffix": "" |
| }, |
| { |
| "first": "John", |
| "middle": [], |
| "last": "Carroll", |
| "suffix": "" |
| } |
| ], |
| "year": 1993, |
| "venue": "Computational Linguistics", |
| "volume": "19", |
| "issue": "1", |
| "pages": "25--59", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Ted Briscoe and John Carroll. 1993. Generalized prob- abilistic LR parsing of natural language (corpora) with unification-based grammars. Computational Linguistics, 19(1):25-59.", |
| "links": null |
| }, |
| "BIBREF3": { |
| "ref_id": "b3", |
| "title": "Class-based n-gram models of natural language", |
| "authors": [ |
| { |
| "first": "E", |
| "middle": [], |
| "last": "Peter", |
| "suffix": "" |
| }, |
| { |
| "first": "Vincent", |
| "middle": [ |
| "J Della" |
| ], |
| "last": "Brown", |
| "suffix": "" |
| }, |
| { |
| "first": "Peter", |
| "middle": [ |
| "V" |
| ], |
| "last": "Pietra", |
| "suffix": "" |
| }, |
| { |
| "first": "Jenifer", |
| "middle": [ |
| "C" |
| ], |
| "last": "Desouza", |
| "suffix": "" |
| }, |
| { |
| "first": "Robert", |
| "middle": [ |
| "L" |
| ], |
| "last": "Lai", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Mercer", |
| "suffix": "" |
| } |
| ], |
| "year": 1992, |
| "venue": "Computational Linguistics", |
| "volume": "18", |
| "issue": "4", |
| "pages": "467--479", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Peter E Brown, Vincent J. Della Pietra, Peter V. deSouza, Jenifer C. Lai, and Robert L. Mercer. 1992. Class-based n-gram models of natural language. Computational Lin- guistics, 18(4):467--479.", |
| "links": null |
| }, |
| "BIBREF4": { |
| "ref_id": "b4", |
| "title": "A comparison of the enhanced Good-Turing and deleted estimation methods for estimating probabilities of English bigrams", |
| "authors": [ |
| { |
| "first": "W", |
| "middle": [], |
| "last": "Kenneth", |
| "suffix": "" |
| }, |
| { |
| "first": "William", |
| "middle": [ |
| "A" |
| ], |
| "last": "Church", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Gale", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Computer Speech and Language", |
| "volume": "5", |
| "issue": "", |
| "pages": "19--54", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Kenneth W. Church and William A. Gale. 1991. A compar- ison of the enhanced Good-Turing and deleted estimation methods for estimating probabilities of English bigrams. Computer Speech and Language, 5:19-54.", |
| "links": null |
| }, |
| "BIBREF5": { |
| "ref_id": "b5", |
| "title": "Computation of probabilities for an island-driven parser", |
| "authors": [ |
| { |
| "first": "Anna", |
| "middle": [], |
| "last": "Corazza", |
| "suffix": "" |
| }, |
| { |
| "first": "Renato", |
| "middle": [ |
| "De" |
| ], |
| "last": "Mori", |
| "suffix": "" |
| }, |
| { |
| "first": "Roberto", |
| "middle": [], |
| "last": "Gretter", |
| "suffix": "" |
| }, |
| { |
| "first": "Giorgio", |
| "middle": [], |
| "last": "Satta", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "IEEE Transactions on Pattern Analysis and Machine Intelligence", |
| "volume": "13", |
| "issue": "9", |
| "pages": "936--950", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Anna Corazza, Renato De Mori, Roberto Gretter, and Gior- gio Satta. 1991. Computation of probabilities for an island-driven parser. IEEE Transactions on Pattern Anal- ysis and Machine Intelligence, 13(9):936-950.", |
| "links": null |
| }, |
| "BIBREF6": { |
| "ref_id": "b6", |
| "title": "An efficient context-free parsing algorithm", |
| "authors": [ |
| { |
| "first": "Jay", |
| "middle": [], |
| "last": "Earley", |
| "suffix": "" |
| } |
| ], |
| "year": 1970, |
| "venue": "Communications of the ACM", |
| "volume": "6", |
| "issue": "8", |
| "pages": "451--455", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Jay Earley. 1970. An efficient context-free parsing algo- rithm. Communications of the ACM, 6(8):451-455.", |
| "links": null |
| }, |
| "BIBREF8": { |
| "ref_id": "b8", |
| "title": "An improved context-freerecognizer", |
| "authors": [ |
| { |
| "first": "", |
| "middle": [], |
| "last": "Ruzzo", |
| "suffix": "" |
| } |
| ], |
| "year": 1980, |
| "venue": "ACM Transactions on Programming Languages and Systems", |
| "volume": "2", |
| "issue": "3", |
| "pages": "415--462", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Ruzzo. 1980. An improved context-freerecognizer. ACM Transactions on Programming Languages and Systems, 2(3):415-462.", |
| "links": null |
| }, |
| "BIBREF9": { |
| "ref_id": "b9", |
| "title": "7A further version of this criterion is to check the magnitude of the largest of E's eigenvalues (its spectral radius)", |
| "authors": [], |
| "year": null, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "7A further version of this criterion is to check the magnitude of the largest of E's eigenvalues (its spectral radius). If that value is > 1, the grammar is inconsistent; if < 1, it is consistent.", |
| "links": null |
| }, |
| "BIBREF10": { |
| "ref_id": "b10", |
| "title": "Computation of the probability of initial substring generation by stochastic context-free grammars", |
| "authors": [ |
| { |
| "first": "Frederick", |
| "middle": [], |
| "last": "Jelinek", |
| "suffix": "" |
| }, |
| { |
| "first": "John", |
| "middle": [ |
| "D" |
| ], |
| "last": "Lafferty", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Computational Linguistics", |
| "volume": "17", |
| "issue": "3", |
| "pages": "315--323", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Frederick Jelinek and John D. Lafferty. 1991. Computa- tion of the probability of initial substring generation by stochastic context-free grammars. Computational Lin- guistics, 17(3):315-323.", |
| "links": null |
| }, |
| "BIBREF11": { |
| "ref_id": "b11", |
| "title": "Interpolated estimation of Markov source parameters from sparse data", |
| "authors": [ |
| { |
| "first": "Frederick", |
| "middle": [], |
| "last": "Jelinek", |
| "suffix": "" |
| }, |
| { |
| "first": "Robert", |
| "middle": [ |
| "L" |
| ], |
| "last": "Mercer", |
| "suffix": "" |
| } |
| ], |
| "year": 1980, |
| "venue": "Proceedings Workshop on Pattern Recognition in Practice", |
| "volume": "", |
| "issue": "", |
| "pages": "381--397", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Frederick Jelinek and Robert L. Mercer. 1980. Interpo- lated estimation of Markov source parameters from sparse data. In Proceedings Workshop on Pattern Recognition in Practice, pages 381-397, Amsterdam.", |
| "links": null |
| }, |
| "BIBREF12": { |
| "ref_id": "b12", |
| "title": "Basic methods of probabilistic context free grammars", |
| "authors": [ |
| { |
| "first": "Frederick", |
| "middle": [], |
| "last": "Jelinek", |
| "suffix": "" |
| }, |
| { |
| "first": "John", |
| "middle": [ |
| "D" |
| ], |
| "last": "Lafferty", |
| "suffix": "" |
| }, |
| { |
| "first": "Robert", |
| "middle": [ |
| "L" |
| ], |
| "last": "Mercer", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "Speech Recognition and Understanding. Recent Advances, Trends, and Applications", |
| "volume": "75", |
| "issue": "", |
| "pages": "345--360", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Frederick Jelinek, John D. Lafferty, and Robert L. Mer- cer. 1992. Basic methods of probabilistic context free grammars. In Pietro Laface and Renato De Mori, editors, Speech Recognition and Understanding. Recent Advances, Trends, and Applications, volume F75 of NATO Advanced Sciences Institutes Series, pages 345-360. Springer Ver- lag, Berlin. Proceedings of the NATO Advanced Study Institute, Cetraro, Italy, July 1990.", |
| "links": null |
| }, |
| "BIBREF13": { |
| "ref_id": "b13", |
| "title": "A probabilistic parser applied to software testing documents", |
| "authors": [ |
| { |
| "first": "A", |
| "middle": [], |
| "last": "Mark", |
| "suffix": "" |
| }, |
| { |
| "first": "Jason", |
| "middle": [ |
| "M" |
| ], |
| "last": "Jones", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Eisner", |
| "suffix": "" |
| } |
| ], |
| "year": 1992, |
| "venue": "Proceedings of the 8th National Conference on Artificial Intelligence", |
| "volume": "", |
| "issue": "", |
| "pages": "332--328", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Mark A. Jones and Jason M. Eisner. 1992. A probabilistic parser applied to software testing documents. In Proceed- ings of the 8th National Conference on Artificial Intelli- gence, pages 332-328, San Jose, CA. AAAI Press.", |
| "links": null |
| }, |
| "BIBREF14": { |
| "ref_id": "b14", |
| "title": "Integrating grammatical, phonological, and dialect/accent information with a speech recognizer in the Berkeley Restaurant Project", |
| "authors": [ |
| { |
| "first": "Daniel", |
| "middle": [], |
| "last": "Jurafsky", |
| "suffix": "" |
| }, |
| { |
| "first": "Chuck", |
| "middle": [], |
| "last": "Wooters", |
| "suffix": "" |
| }, |
| { |
| "first": "Gary", |
| "middle": [], |
| "last": "Tajchman", |
| "suffix": "" |
| }, |
| { |
| "first": "Jonathan", |
| "middle": [], |
| "last": "Segal", |
| "suffix": "" |
| }, |
| { |
| "first": "Andreas", |
| "middle": [], |
| "last": "Stolcke", |
| "suffix": "" |
| }, |
| { |
| "first": "Nelson", |
| "middle": [], |
| "last": "Morgan", |
| "suffix": "" |
| } |
| ], |
| "year": 1994, |
| "venue": "AAAI Workshop on the Integration of Natural Language and Speech Processing", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Daniel Jurafsky, Chuck Wooters, Gary Tajchman, Jonathan Segal, Andreas Stolcke, and Nelson Morgan. 1994. In- tegrating grammatical, phonological, and dialect/accent information with a speech recognizer in the Berkeley Restaurant Project. In Paul McKevitt, editor, AAAI Work- shop on the Integration of Natural Language and Speech Processing, Seattle, WA. To appear.", |
| "links": null |
| }, |
| "BIBREF15": { |
| "ref_id": "b15", |
| "title": "Pearl: A probabilistic chart parser", |
| "authors": [ |
| { |
| "first": "M", |
| "middle": [], |
| "last": "David", |
| "suffix": "" |
| }, |
| { |
| "first": "Mitchell", |
| "middle": [ |
| "P" |
| ], |
| "last": "Magerman", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Marcus", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Proceedings of the 6th Conference of the European Chapter of the Association for Computational Linguistics", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "David M. Magerman and Mitchell P. Marcus. 1991. Pearl: A probabilistic chart parser. In Proceedings of the 6th Conference of the European Chapter of the Association for Computational Linguistics, Berlin, Germany.", |
| "links": null |
| }, |
| "BIBREF16": { |
| "ref_id": "b16", |
| "title": "The use of a one-stage dynamic programming algorithm for connected word recognition", |
| "authors": [ |
| { |
| "first": "Hermann", |
| "middle": [], |
| "last": "Ney", |
| "suffix": "" |
| } |
| ], |
| "year": 1984, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Hermann Ney. 1984. The use of a one-stage dynamic programming algorithm for connected word recognition.", |
| "links": null |
| }, |
| "BIBREF18": { |
| "ref_id": "b18", |
| "title": "Numerical Recipes in C: The Art of Scientific Computing", |
| "authors": [ |
| { |
| "first": "H", |
| "middle": [], |
| "last": "William", |
| "suffix": "" |
| }, |
| { |
| "first": "Brian", |
| "middle": [ |
| "P" |
| ], |
| "last": "Press", |
| "suffix": "" |
| }, |
| { |
| "first": "Saul", |
| "middle": [ |
| "A" |
| ], |
| "last": "Flannery", |
| "suffix": "" |
| }, |
| { |
| "first": "William", |
| "middle": [ |
| "T" |
| ], |
| "last": "Teukolsky", |
| "suffix": "" |
| }, |
| { |
| "first": "", |
| "middle": [], |
| "last": "Vetterling", |
| "suffix": "" |
| } |
| ], |
| "year": 1988, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "William H. Press, Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 1988. Numerical Recipes in C: The Art of Scientific Computing. Cambridge University Press, Cambridge.", |
| "links": null |
| }, |
| "BIBREF19": { |
| "ref_id": "b19", |
| "title": "The N-best algorithm: An efficient and exact procedure for finding the n most likely sentence hypotheses", |
| "authors": [ |
| { |
| "first": "Richard", |
| "middle": [], |
| "last": "Schwartz", |
| "suffix": "" |
| }, |
| { |
| "first": "Yen-Lu", |
| "middle": [], |
| "last": "Chow", |
| "suffix": "" |
| } |
| ], |
| "year": 1990, |
| "venue": "Proceedings IEEE Conference on Acoustics, Speech and Signal Processing", |
| "volume": "1", |
| "issue": "", |
| "pages": "81--84", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Richard Schwartz and Yen-Lu Chow. 1990. The N-best algorithm: An efficient and exact procedure for finding the n most likely sentence hypotheses. In Proceedings IEEE Conference on Acoustics, Speech and Signal Processing, volume 1, pages 81-84, Albuquerque, NM.", |
| "links": null |
| }, |
| "BIBREF20": { |
| "ref_id": "b20", |
| "title": "An efficient probabilistic contextfree parsing algorithm that computes prefix probabilities", |
| "authors": [ |
| { |
| "first": "Andreas", |
| "middle": [], |
| "last": "Stolcke", |
| "suffix": "" |
| } |
| ], |
| "year": 1993, |
| "venue": "International Computer Science Institute", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Andreas Stolcke. 1993. An efficient probabilistic context- free parsing algorithm that computes prefix probabilities. Technical Report TR-93-065, International Computer Sci- ence Institute, Berkeley, CA. To appear in Computational Linguistics.", |
| "links": null |
| }, |
| "BIBREF21": { |
| "ref_id": "b21", |
| "title": "Integration of speech recognition and natural language processing in the MIT Voyager system", |
| "authors": [ |
| { |
| "first": "Victor", |
| "middle": [], |
| "last": "Zue", |
| "suffix": "" |
| }, |
| { |
| "first": "James", |
| "middle": [], |
| "last": "Glass", |
| "suffix": "" |
| }, |
| { |
| "first": "David", |
| "middle": [], |
| "last": "Goodine", |
| "suffix": "" |
| }, |
| { |
| "first": "Hong", |
| "middle": [], |
| "last": "Leung", |
| "suffix": "" |
| }, |
| { |
| "first": "Michael", |
| "middle": [], |
| "last": "Phillips", |
| "suffix": "" |
| }, |
| { |
| "first": "Joseph", |
| "middle": [], |
| "last": "Polifroni", |
| "suffix": "" |
| }, |
| { |
| "first": "Stephanie", |
| "middle": [], |
| "last": "Seneft", |
| "suffix": "" |
| } |
| ], |
| "year": 1991, |
| "venue": "Proceedings IEEE Conference on Acoustics, Speech and Signal Processing", |
| "volume": "1", |
| "issue": "", |
| "pages": "713--716", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Victor Zue, James Glass, David Goodine, Hong Leung, Michael Phillips, Joseph Polifroni, and Stephanie Sen- eft. 1991. Integration of speech recognition and natu- ral language processing in the MIT Voyager system. In Proceedings IEEE Conference on Acoustics, Speech and Signal Processing, volume 1, pages 713-716, Toronto.", |
| "links": null |
| } |
| }, |
| "ref_entries": { |
| "FIGREF0": { |
| "num": null, |
| "text": "Three ways of generating a substring w from a nonterminal X.", |
| "uris": null, |
| "type_str": "figure" |
| }, |
| "FIGREF1": { |
| "num": null, |
| "text": "Figure l(a)). (b) Likewise, Z itself can generate w (Figure l(b)). (c) Finally, Y could generate wl ... wj as a suffix (Y ~R wl...wj) and Z, Wj+l...wn as a prefix (Z ~L wj+l ... w,O, thereby resulting in a single occurrence of w", |
| "uris": null, |
| "type_str": "figure" |
| }, |
| "FIGREF3": { |
| "num": null, |
| "text": "expected frequency of unigram x? Using the abbreviation c = c(X]S) and equation 5, we see that P(S --4 z) + P(S ~ SS)(c + c)", |
| "uris": null, |
| "type_str": "figure" |
| }, |
| "TABREF0": { |
| "content": "<table/>", |
| "type_str": "table", |
| "html": null, |
| "text": "113 .~-2131 ... W n in strings generated by an arbitrary nonterminal X. The special case c(wIS) = c(wlL) is the solution sought, where S is the start symbol for the grammar. Now consider all possible ways that nonterminal X can generate string w = wl ... wn as a substring, denoted by X ::~ ... wl \u2022 .. wn .... and the associated probabilities. For each production of X we have to distinguish two main cases, assuming the grammar is in CNF. If the string in question is", |
| "num": null |
| } |
| } |
| } |
| } |