<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1"/><title>COMBINATION OF N-GRAMS AND STOCHASTIC CONTEXT-FREE GRAMMARS FOR LANGUAGE MODELING</title><author surname="Benedi" givenname="Jose-Miguel"><org  name="Universidad Politecnica de Valencia" country="Spain" city="Valencia"/></author><author surname="Sanchez" givenname="Joan-Andreu"><org  name="Universidad Politecnica de Valencia" country="Spain" city="Valencia"/></author></firstpageheader><frontmatter><p>COMBINATION OF N-GRAMS AND STOCHASTIC CONTEXT-FREE GRAMMARS FOR LANGUAGE MODELING*</p><p>José-Miguel Benedî and Joan-Andreu Sanchez</p><p>Departamento de Sistemas Informâtieos y Computaciôn Universidad Politécnica de Valencia Camino de Vera s/n, 46022 Valencia (Spain) e-mail: {jbenedi,jandreu}@dsic.upv.es</p></frontmatter><abstract>This paper describes a hybrid proposal to combine n-grams and Stochastic Context-Free Grammars (SCFGs) for language modeling. A classical n-gram model is used to capture the local relations between words, while a stochas­tic grammatical model is considered to repre­sent the long-term relations between syntactical structures. In order to define this grammatical model, which will be used on large-vocabulary complex tasks, a category-based SCFG and a probabilistic model of word distribution in the categories have been proposed. Methods for learning these stochastic models for complex tasks are described, and algorithms for com­puting the word transition probabilities are also presented. Finally, experiments using the Penn Treebank corpus improved by 30% the test set perplexity with regard to the classical n-gram models. </abstract></header><body><section number="1" title="Introduction"><p>Language modeling is an important aspect to consider in large-vocabulary speech recognition systems (Bahl et al., 1983; Jelinek, 1998). The n-gram models are the most widely-used for a wide range of domains (Bahl et al., 1983). The n-grams are simple and robust models and ad­equately capture the local restrictions between words. Moreover, it is well-known how to es­timate the parameters of the model and how to integrate them in a speech recognition sys­tem. However, the n-gram models cannot ad­equately characterize the long-term constraints of the sentences of the tasks.</p><p>On the other hand, Stochastic Context-Free Grammars (SCFGs) allow us a better model-</p><p>* This work has been partially supported by the Spanish CICYT under contract (TIC98/0423-C06).</p><p>ing of long-term relations and work well on limited-domain tasks of low perplexity. How­ever, SCFGs work poorly for large-vocabulary, general-purpose tasks because learning SCFGs and the computation of word transition proba­bilities present serious problems for complex real tasks.</p><p>In the literature, a number of works have pro­posed ways to generalize the n-gram models (Je­linek, 1998; Siu and Ostendorf, 2000) or com­bining with other structural models (Bellegarda, 1998; Gilet and Ward, 1998; Chelba and Jelinek, 1998) .</p><p>In this paper, we present a combined lan­guage model defined ctS et linear combination of n-grams, which are used to capture the local re­lations between words, and a stochastic gram­matical model which is used to represent the global relation between syntactic structures. In order to capture these long-term relations and to solve the main problems derived from the large-vocabulary complex tasks, we propose here to define: a category-based SCFG and a probabilis­tic model of word distribution in the categories. Taking into account this proposal, we also de­scribe here how to solve the learning of these stochastic models and their integration prob­lems.</p><p>With regard to the learning problem, several algorithms that learn SCFGs by means of es­timation algorithms have been proposed (Lari and Young, 1990; Pereira and Schabes, 1992; Sanchez and Benedf, 1998), and promising re­sults have been achieved with category-based SCFGs on real tasks (Sanchez and Benedf, 1999) .</p><p>In relation to the integration problem, we present two algorithms that compute the word transition probability: the first algorithm is based on the Left-to-Right Inside algorithm (LRI) (Jelinek and Lafferty, 1991), and the sec­ond is based on an application of a Viterbi scheme to the LRI algorithm (the VLRI algo­rithm) (Sanchez and Benedf, 1997).<page local="2"/></p><p>Finally, in order to evaluate the behavior of this proposal, experiments with a part of the Wall Street Journal processed in the Penn Tree-bank project were carried out and significant im­provements with regard to the classical n-gram models were achieved.</p></section><section number="2" title="The language model"><p>An important problem related to language mod­eling is the evaluation of <i>Pr</i><i>(wk | w\.. .Wk-i). </i>In order to compute this probability, we pro­pose a hybrid language model defined as a sim­ple linear combination of n-gram models and a stochastic grammatical model <i>Gs:</i></p><doubt alpha="46.7" length="45" tooSmall="False" monospace="0.0">Pr(M?fc|M?i . ..Wk-l)=    aPl(Wk\Wk-n-■-Wk-l)</doubt><doubt alpha="44.8" length="29" tooSmall="False" monospace="0.0">+(l-a)PT(wk\wi...wk_i,Gs),(1)</doubt><p>where 0 &lt; <i>a &lt; </i>1 is a weight factor which de­pends on the task.</p><p>The expression <i>PT(wk\wk-n ■ </i><b><i>■ ■ Wk-i) </i></b><b><i>'1S</i></b><b><i> </i></b>the word probability of occurrence of <i>Wk </i>given by the n-gram model. The parameters of this model can be easily estimated, and the ex­pression <i>PT(wk\wk-n ■ </i><b><i>■ ■ Wk-i) </i></b>can be efficiently computed (Bahl et al., 1983; Jelinek, 1998).</p><p>In order to define the stochastic gram­matical model <i>Gs </i>of the expression <i>Pr(wk\wi.</i><b><i>.. Wk-i, </i></b><i>Gs) </i>for large-vocabulary complex tasks, we propose a combination of two different stochastic models: a category-based SCFG <i>(Gc), </i>that allows us to represent the long-term relations between these syntacti­cal structures and a probabilistic model of word distribution into categories <i>(Cw).</i></p><p>This proposal introduces two important as­pects, which are the estimation of the parame­ters of the stochastic models, <i>Gc </i>and <i>Cw, </i>and the computation of the following expression:</p><p><i>Pi{wk\wi.. .wk-i,Gc,Cw) </i><i>_    Pt(wi </i><i>.. .wk .. .\GC,CW)        . .</i></p><doubt alpha="40.0" length="25" tooSmall="False" monospace="0.0">Px{w\...Wk-i■ ■ ■ \GC,CW)</doubt></section><section number="3" title="Training of the models"><p>The parameters of the described model are es­timated from a training sample, that is, from a set of sentences. Each word of the sentence has a part-of-speech tag (POStag) associated to it. These POStags are considered as word categories and are the terminal symbols of the SCFG. From this training sample, the parame­ters of <i>Gc </i>and <i>Cw </i>can be estimated as follows.</p><p>First, the parameters of <i>Cw, </i>represented by Pr<b>(M?|c), </b>are computed as:</p><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">Pt(w\c)</doubt><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">N(w,c)</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">Ew'N«c)</doubt><p>where <b>N</b>(<b>m?,c</b>) is the number of times that the word <i>w </i>has been labeled with the POStag c. It is important to note that a word <i>w </i>can belong to different categories. In addition, it may happen that a word in a test set does not appear in the training set, and therefore some smoothing technique has to be carried out.</p><p>With regard to the estimation of the category-based SCFGs, one of the most widely-known methods is the Inside-Outside (10) algo­rithm (Lari and Young, 1990). The application of this algorithm presents important problems which are accentuated in real tasks: the time complexity per iteration and the large number of iterations that are necessary to converge. An alternative to the 10 algorithm is an algorithm based on the Viterbi score (VS algorithm) (Ney, 1992). The convergence of the VS algorithm is faster than the 10 algorithm. However, the SCFGs obtained are, in general, not as well learned (Sanchez et al., 1996).</p><p>Another possibility for estimating SCFGs, which is somewhere between the 10 and VS al­gorithms, has recently been proposed. This ap­proach considers only a certain subset of deriva­tions in the estimation process. In order to select this subset of derivations, two alterna­tives have been considered: from structural in­formation content in a bracketed corpus (Pereira and Schabes, 1992; Amaya et al., 1999), and from statistical information content in the <i>le­best </i>derivations (Sanchez and Benedf, 1998). In the first alternative, the IOb and VSb algo­rithms which learn SCFGs from partially brack­eted corpora were defined (Pereira and Schabes, 1992; Amaya et al., 1999). In the second alter­native, the fcVS algorithm for the estimation of the probability distributions of a SCFG from the fc-best derivations was proposed (Sanchez and Benedf, 1998).</p><page local="3"/><p>All of these algorithms have a time complexity <i>0(n<footnote anchor="3"/>\P\), </i>where <i>n </i>is the length of the input string, and <i>\P\ </i>is the size of the SCFG.</p><p>These algorithms have been tested in real tasks for estimating category-based SCFGs (Sanchez and Benedf, 1999) and the results obtained justify their application in complex real tasks.</p></section><section number="4" title="Integration of the model"><p>From expression (2), it can bee seen that in or­der to integrate the model, it is necessary to efficiently compute the expression:</p><doubt alpha="52.6" length="19" tooSmall="False" monospace="0.0">Pr(wi...wk...\GC,CU</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><p>In order to describe how this computation can be made, we first introduce some notation.</p><p>A <i>Context-Free Grammar </i>G is a four-tuple <i>(N,</i><i> </i>S, <i>P, </i><i>S),</i><i> </i>where <i>N</i><i> </i>is the finite set of nonter­minals, S is the finite set of terminals <i>(N</i><i> </i>D S = 0), <i>S </i>G <i>N </i>is the axiom or initial symbol and <i>P </i>is the finite set of productions or rules of the form <i>A</i><i> </i><i>-&gt;</i><i> </i><i>a,</i><i> </i>where <i>A</i><i> </i>G <i>N</i><i> </i>and <i>a</i><i> </i>€E <i>(N</i><i> </i>U £)+ (only grammars with non empty rules are con­sidered). For simplicity (but without loss of gen­erality) only context-free grammars in <i>Chomsky Normal Form </i>are considered, that is, grammars with rules of the form <i>A BC </i><i>or </i><i>A </i><i>^ v </i>where <i>A,B,C </i><i>&lt;E</i><i> </i><i>N</i><i> </i>and »eE.</p><p>A <i>Stochastic Context-Free Grammar Gs </i>is a pair (G,p), where G is a context-free gram­mar and <i>p </i>: <i>P </i><b>—</b>»]0,1] is a probability func­tion of rule application such that VA €E <i>N:</i></p><p>Eae(jvus)+P(^ -&gt; a) = 1.</p><p>Now, we present two algorithms in order to compute the word transition probability. The first algorithm is based on the LRI algorithm, and the second is based on an application of a Viterbi scheme to the LRI algorithm (the VLRI algorithm).</p><p>Probability of generating an initial substring</p><p>The computation of (4) is based on an algo­rithm which is a modification of the LRI algo­rithm (Jelinek and Lafferty, 1991). This new algorithm is based on the definition of <i>Pt(A &lt;&lt;</i> <i>i,j))</i><i> </i><i>=</i><i> </i><i>Pt(A w{</i><i>.</i><i>.. Wj ... </i>|GC, <i>Cw)</i><i> </i>as the probability that <i>A </i>generates the initial substring <i>Wi...</i><i> Wj ... </i>given <i>Gc </i>and <i>Cw. </i>This can be com­puted with the following dynamic programming</p><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">scheme:</doubt><doubt alpha="38.7" length="31" tooSmall="False" monospace="0.0">Pt(A«i,i)=^2(p(A-» c) Pr(«?j|c)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">c</doubt><doubt alpha="37.5" length="24" tooSmall="False" monospace="0.0">+Q(AD)p(D-&gt; c) Pr(^|c)),</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">D</doubt><p><i>Pr</i><i>(A</i><i>«iJ)=</i><i> </i><i>Y^A^BC)</i><i> </i><i>B,C£N</i><i> </i><i>l=i</i><i> </i><i>Pt{B &lt; </i><i>i</i><i>,l </i>&gt;)Pr(G <i>«1</i><i> + 1, </i><i>j)</i><i> </i><i>.</i></p><p>In this way, <i>Pt</i><i>(</i><i>w</i><i>\ ... wk ■ ■ ■ </i>|GC, <i>Cw)</i><i> </i><i>=</i><i> </i>Pr(5« l,fcj.</p><p>In this expression, <i>Q(A</i><i> </i>=&gt; <i>D)</i><i> </i>is the proba­bility that <i>D </i>is the leftmost nonterminal in all sentential forms which are derived from <i>A. </i>The value <i>Q(A</i><i> </i>=&gt; <i>BC)</i><i> </i>is the probability that <i>BC </i>is the initial substring of all sentential forms de­rived from A. <i>Pt(B </i><i>&lt; i,l </i><i>&gt;)</i><i> </i>is the probability that the substring <i>W{</i><i> ...wi </i>is generated from <i>B </i>given <i>Gc </i>and <i>Cw. </i>Its computation will be de­fined later.</p><p>It should be noted that the combination of the models <i>Gc </i>and <i>Cw </i>is carried out in the value <i>Pr</i><i>(A</i><i> </i><i>« </i><i>i,i).</i><i> </i>This is the main difference with respect the LRI algorithm.</p><p>Probability of the best derivation generating an initial substring</p><p>An algorithm which is similar to the previous one can be defined based on the Viterbi scheme. In this way, it is possible to obtain the best pars­ing of an initial substring. This new algorithm is also related to the VLRI algorithm (Sanchez and Benedf, 1997) and is based on the definition of <i>P~i</i><i>(A</i><i> </i><i>«</i><i> </i><i>i,j))</i><i> </i><i>=</i><i> </i><i>P~i</i><i>(A</i><i> </i>4&gt; <i>Wi...Wj </i><i>...\GC,CW) </i>as the probability of the most probable parsing which generates <i>W{...Wj ... </i>from <i>A </i>given <i>Gc</i>and <i>Cw. </i>This can be computed as follows:</p><doubt alpha="50.0" length="30" tooSmall="False" monospace="0.0">Pt(A«i,i)= max(p(Ac)Pr(«?j|c),</doubt><doubt alpha="41.4" length="29" tooSmall="False" monospace="0.0">max(Q(A ^&gt;D)p(D-&gt; c) Pr^c))),</doubt><doubt alpha="54.8" length="42" tooSmall="False" monospace="0.0">Pr(A«i,j)=max   max(Q(A=&gt;BC)B,CeNl=i...j-l</doubt><p><i>P~i</i><i>(B</i><i> </i><i>&lt;</i><i> </i><i>i</i><i>,l </i><i>&gt;)fr</i><i>(C</i><i> </i>« <i>I</i><i> </i><i>+</i><i> </i>1, j)) .</p><p>Therefore Pr(«?i ... <i>wk ... </i>|GC, <i>Cw) </i><i>= Pr(S « </i>l,fc).</p><p>In this expression, <i>Q(A</i><i> </i>=&gt; <i>D)</i><i> </i>is the prob­ability that <i>D </i>is the leftmost nonterminal in the most probable sentential form which is de­rived from <i>A.</i><page local="4"/><i> </i>The value <i>Q(A</i><i> </i>=&gt; <i>BC) </i>is the probability that <i>BC </i>is the initial substring of most the probable sentential form derived from A. <i>Pt(B </i><i>&lt;</i><i> </i><i>i,l</i><i> </i>&gt;) is the probability of the most probable parse which generates <i>W{...wi </i>from <i>B.</i></p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">c</doubt><p>Probability of generating a string</p><p>The value <i>Pi</i><i>(A</i><i> </i>&lt; <i>i,j</i><i> </i><i>&gt;) = </i><i>Pr</i><i>(A</i><i> </i>4&gt; <i>W{...</i><i> Wj</i><i>\Gc, Cw) </i>is defined as the probability that the substring <i>W{...</i><i> Wj </i>is generated from <i>A </i>given <i>Gc </i>and <i>Cw. </i>To calculate this proba­bility a modification of the well-known <i>Inside </i>algorithm (Lari and Young, 1990) is proposed. This computation is carried out by using the following dynamic programming scheme:</p><doubt alpha="44.2" length="43" tooSmall="False" monospace="0.0">Pr(A&lt;i,i&gt;)= y^p(A -&gt; c)Pr(wi\c),Pr(A&lt;i,j&gt;)=</doubt><doubt alpha="54.8" length="31" tooSmall="False" monospace="0.0">b,cenl=iPr(B &lt;i,l&gt;)Pr(C&lt;l+l,j&gt;)</doubt><p>In this way, <i>Pt(w</i><i>\</i><i> </i><i>...</i><i> </i><i>w</i><i>n\Gc, </i><i>Cw)</i><i> = Pr</i><i>(S</i><i> </i><i>&lt;</i><i> </i>l,n &gt;).</p><p>As we have commented above, the combina­tion of the two parts of the grammatical model is carried out in the value <i>Pt(A </i><i>&lt;i,i</i><i> </i><i>&gt;).</i></p><p>Probability of the best derivation generating a string</p><p>The probability of the best derivation that generates a string, <i>Pt(w</i><i>\ ... w</i><i>n\Gc, </i><i>Cw),</i><i> </i>can be evaluated using a Viterbi-like scheme (Ney, 1992). As in the previous case, the computation of this probability is based on the definition of <i>Pt(A </i><i>&lt;</i><i> </i><i>i,j</i><i> </i><i>&gt;)</i><i> </i><i>=</i><i> </i><i>Pt(A </i>=4&gt; <i>wi</i><i>... Wj</i><i>\Gc, </i><i>Cw)</i><i> </i>as the probability of the best derivation that gen­erates the substring <i>Wi</i><i>... Wj </i>from <i>A </i>given <i>Gc</i>and <i>Cw. </i>Similarly:</p><doubt alpha="53.1" length="32" tooSmall="False" monospace="0.0">Pr(A&lt; i,i&gt;)=maxp(A—s*C)Pr(wi\c),</doubt><doubt alpha="48.9" length="47" tooSmall="False" monospace="0.0">Pr(A&lt;i,j&gt;)   =    max   maxp(ABC)B,CeNl=i...j-l</doubt><p><i>P~i(B &lt; </i><i>i,l</i><i> &gt;)P~i(C &lt; I </i>+ 1, j &gt;) .</p><p>Therefore, Pr<b>(«?i... </b><i>w</i><i>n\Gc, </i><i>Cw)</i><i> </i><i>=</i><i> </i><i>Pt(S &lt; </i>l,n &gt;).</p><p>Finally, the time complexity of these algo­rithms is the same as the algorithms they are related to, therefore the time complexity is 0(fc<footnote anchor="3"/>|P|), where <i>k </i>is the length of the input string and <i>\P\ </i>is the size of the SCFG.</p></section><section number="5" title="Experiments with the Penn Treebank Corpus"><p>The corpus used in the experiments was the part of the Wall Street Journal which had been pro­cessed in the Penn Treebank project<footnote anchor="1"/> (Marcus et al., 1993). This corpus consists of English texts collected from the Wall Street Journal from edi­tions of the late eighties. It contains approx­imately one million words. This corpus was automatically labelled, analyzed and manually checked as described in (Marcus et al., 1993). There are two kinds of labelling: a POStag la­belling and a syntactic labelling. The size of the vocabulary is greater than 25,000 different words, the POStag vocabulary is composed of 45 labels<footnote anchor="2"/> and the syntactic vocabulary is com­posed of 14 labels.</p><p>The corpus was divided into sentences accord­ing to the bracketing. In this way, we obtained a corpus whose main characteristics are shown in Table 1.</p><table caption="Table 1: Characteristics of the Penn Treebank corpus once it was divided into sentences."></table><p>We took advantage of the category-based SCFGs estimated in a previous work (Sanchez and Benedf, 1998). These SCFGs were esti­mated with sentences which had less than 15 words. Therefore, in this work, we assumed such restriction. The vocabulary size of the new cor­pus was 6,333 different words. For the exper­iments, the corpus was divided into a training corpus (directories 00 to 19) and a test corpus (directories 20 to 24). The characteristics of these sets can be seen in Table 2. The part of the corpus labeled with POStags was used to esti­mate the parameters of the grammatical model, while the non-labeled part was used to estimate the parameters of the n-gram model.<page local="5"/> We now describe the estimation process in detail.</p><footnote label="1">Release 2 of this data set can be ob­tained from the Linguistic Data Consor­tium with Catalogue number LDC94T4B ( http://www.ldc.upenn.edu/ldc/noframe.html )</footnote><footnote label="2">There are 48 labels defined in (Marcus et al., 1993), however, three of them do not appear in the corpus.</footnote><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>No. of</p></td><td class="cell"><p>Av.</p></td><td class="cell"><p>Std.</p></td><td class="cell"><p>Min.</p></td><td class="cell"><p>Max.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>senten.</p></td><td class="cell"><p>length</p></td><td class="cell"><p>deviation</p></td><td class="cell"><p>length</p></td><td class="cell"><p>length</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>49,207</p></td><td class="cell"><p>23.61</p></td><td class="cell"><p>11.13</p></td><td class="cell"><p>1</p></td><td class="cell"><p>249</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Table 2: Characteristics of the data sets defined for the experiments when the sentences with more than 15 POStags were removed.</p><p>The parameters of a 3-gram model were es­timated with the software tool described in (Rosenfeld, 1995) <footnote anchor="3"/>. We used the linear interpo­lation smooth technique supported by this tool. The out-of-vocabulary words were grouped in the same class and were used in the computa­tion of the perplexity. The test set perplexity with this model was 180.4.</p><p>The values of expression (3) were computed from the tagged and non-tagged part of the training corpus. In order to avoid null val­ues, the unseen events were labeled with a spe­cial symbol <i>w'</i><i> </i>which did not appear in the vocabulary, in such a way that <i>Pt(w'\c) ^ </i>0, Vc G <i>C,</i><i> </i>where <i>C</i><i> </i>was the set of categories. That is, all the categories could generate the un­seen event. This probability took a very small value (several orders of magnitude less than minwev;cec Pr(tu|c), where <i>V </i>was the vocabu­lary of the training corpus), and different values of this probability did not change the results.</p><p>The parameters of an initial ergodic SCFG were estimated with each one of the estimation methods mentioned in Section 3. This SCFG had 3,374 rules, composed from 45 terminal symbols (the number of POStags) and 14 non­terminal symbols (the number of syntactic la­bels). The probabilities were randomly gener­ated and three different seeds were tested, but only one of them is reported given that the re­sults were very similar. The training corpus was the labeled part of the described corpus. The perplexity of the labeled part of the test set for different estimation algorithms can be seen in Table 3.</p><footnote label="3">Release 2.04 is available at http://svr- www.eng.cam.ac.uk/~  prcl4/toolkit.html.</footnote><p>Table 3: Perplexity of the labeled part of the test set with the SCFG estimated with the methods mentioned in Section 3.</p><p>Once we had estimated the parameters of the defined model, we applied expression (1) by us­ing the LRI algorithm and the VLRI algorithm in expression (4). The test set perplexity that was obtained in function of <i>a </i>for different esti­mation algorithms (VS, fcVS, IOb and VSb) can be seen in Fig. 1.</p><p>In the best case, the proposed language model obtained more than a 30% improvement over results obtained by the 3-gram language model (see Table 4). This result was obtained when the SCFG estimated with the IOb algorithm was used. The SCFGs estimated with other al­gorithms also obtained important improvements compared to the 3-gram. In addition, it can be observed that both the LRI algorithm and the VLRI algorithm obtained good results.</p><p>Table 4: Best test perplexity for different SCFG estimation algorithms, and the percentage of im­provement with respect to the 3-gram model.</p><p>An important aspect to note is that the weight of the grammatical part was approxi­mately 50%, which means that this part pro­vided important information to the language model.</p></section><section number="6" title="Conclusions"><p>A new language model has been introduced. This new language model is defined ctS et lin­ear combination of an n-gram which repre­sents relations between words, and a stochastic<page local="6"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>VS</p></td><td class="cell"><p>fcVS</p></td><td class="cell"><p>IOb</p></td><td class="cell"><p>VSb</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>21.56</p></td><td class="cell"><p>20.65</p></td><td class="cell"><p>13.14</p></td><td class="cell"><p>21.84</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Data</p><p>set</p></td><td class="cell"><p>No. of senten.</p></td><td class="cell"><p>Av.</p><p>length</p></td><td class="cell"><p>Std.</p><p>deviation</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Training</p></td><td class="cell"><p>9,933</p></td><td class="cell"><p>10.67</p></td><td class="cell"><p>3.46</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Test</p></td><td class="cell"><p>2,295</p></td><td class="cell"><p>10.51</p></td><td class="cell"><p>3.55</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>VS</p></td><td class="cell"><p>fcVS</p></td><td class="cell"><p>IOb</p></td><td class="cell"><p>VSb</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>LRI</p></td><td class="cell"><p>133.6</p></td><td class="cell"><p>130.3</p></td><td class="cell"><p>124.6</p></td><td class="cell"><p>136.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>% improv.</p></td><td class="cell"><p>25.9%</p></td><td class="cell"><p>27.8%</p></td><td class="cell"><p>30.9%</p></td><td class="cell"><p>24.5%</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>VLRI</p></td><td class="cell"><p>143.4</p></td><td class="cell"><p>137.2</p></td><td class="cell"><p>132.4</p></td><td class="cell"><p>149.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>% improv.</p></td><td class="cell"><p>20.5%</p></td><td class="cell"><p>23.0%</p></td><td class="cell"><p>26.6%</p></td><td class="cell"><p>17.0%</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="0.0" length="51" tooSmall="False" monospace="0.0">0       0.10.2     0.30.4     0.50.60.7     0.80.90</doubt><p>Figure 1: Test set perplexity obtained with the proposed language models in function of gamma. Different curves correspond to SCFGs estimated with different algorithms. The up­per graphic corresponds to the results obtained when the LRI algorithm was used in the lan­guage models, and the lower graphic corre­sponds to the results obtained with the VLRI algorithm.</p><p>grammatical model which is used to represent the global relation between syntactic structures. The stochastic grammatical model is composed of a category-based SCFG and a probabilistic model of word distribution in the categories. Several algorithms have been described to esti­mate the parameters of the model from a the sample. In addition, efficient algorithms for solving the problem of the interpretation with this model have been presented.</p><p>The proposed model has been tested on the part of Wall Street Journal processed in the Penn Treebank project, and the results obtained improved by more than 30% the test set perplexity over results obtained by a simple 3-gram model.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>\ \\ \ 3-gram</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>\ \\\ \ \\\</p><p>\ \''-.\</p></td><td class="cell"><p>\</p></td><td class="cell"><p></p></td><td class="cell"><p><i>//</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>\</p><p>_i_i_</p></td><td class="cell"><p>\&gt;--C;.......— vsb_____________</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>\ \ \ \</p><p>'i. V \</p></td><td class="cell"><p>3-gram</p></td><td class="cell"><p><i>-</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>\ \  \ x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><i>//I</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>\ \.</p></td><td class="cell"><p>VStT</p></td><td class="cell"><p>.......■</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>*vs~-<i>""Z</i></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>■        i i</b></p></td><td class="cell"><p></p></td><td class="cell"><p><i>-</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>F. Amaya, J.M. Benedf, and J.A. Sanchez. 1999. Learning of stochastic context-free grammars from bracketed corpora by means of reestimation algorithms. In M.I. Torres and A. Sanfeliu, editors, <i>Proc. VIII Spanish Symposium on Pattern Recognition and Im­age Analysis, </i>pages 119-126, Bilbao, Espana, May. AERFAI.</p><p>L.R. Bahl, F. Jelinek, and R.L. Mercer. 1983. A maximum likelihood approach to continu­ous speech recognition. <i>IEEE Trans. Pattern Analysis and Machine Intelligence, </i>PAMI-5(2):179-190.</p><p>J.R. Bellegarda. 1998. A multispan language modeling framework for large vocabulary speech recognition. <i>IEEE Trans. Speech and Audio Processing, </i>6(5):456-476.</p><p>C. Chelba and F. Jelinek. 1998. Exploiting syn­tactic structure for language modeling. In <i>Proc. COLING, </i>Montreal, Canada. Univer­sity of Montreal.</p><p>J. Gilet and WT. Ward. 1998. A language model combining trigrams and stochastic context-free grammars. In <i>In 5th International Con­ference on Spoken Language Processing, </i>pages 2319-2322, Sidney, Australia.</p><p>F. Jelinek and J.D. Lafferty. 1991. Computa­tion of the probability of initial substring gen­eration by stochastic context-free grammars. <i>Computational Linguistics, </i>17(3):315 323.</p><p>F. Jelinek. 1998. <i>Statistical Methods for Speech Recognition. </i>MIT Press.</p><p>K. Lari and S.J. Young. 1990. The estimation of stochastic context-free grammars using the inside-outside algorithm. <i>Computer, Speech and Language, </i>4:35-56.</p><p>M.P. Marcus, B. Santorini, and M.A. Marcinkiewicz. 1993. Building a large anno­tated corpus of english: the penn treebank. <i>Computational Linguistics, </i>19(2):313—330.</p><p>H. Ney. 1992. Stochastic grammars and pattern recognition. In P. Laface and R. De Mori, ed­itors, <i>Speech Recognition and Understanding. Recent Advances, </i>pages 319-344. Springer-Verlag.</p><p>F. Pereira and Y. Schabes. 1992. Inside-outside reestimation from partially bracketed corpora.<page local="7"/> In <i>Proceedings of the 30th An­nual Meeting of the Association for Computa­tional Linguistics, </i>pages 128-135. University of Delaware. R. Rosenfeld. 1995. The emu statistical lan­guage modeling toolkit and its use in the 1994 arpa csr evaluation. In <i>ARPA Spoken Lan­guage Technology Workshop, </i>Austin, Texas, USA.</p><p>M. Siu and M. Ostendorf. 2000. Variable n-grams and extensions for conversational speech language modeling. <i>IEEE Trans, on Speech and Audio Processing, </i>8(l):63-75.</p><p>J.A. Sanchez and J.M. Benedf. 1997. Computa­tion of the probability of the best derivation of an initial substring from a stochastic context-free grammar. In A. Sanfeliu, J.J. Villanueva, and J. Vitrià, editors, <i>Proc. VII Spanish Sym­posium, on Pattern Recognition and Image Analysis, </i>pages 181-186, Barcelona, Espana, April. AERFAI.</p><p>J.A. Sanchez and J.M. Benedf. 1998. Esti­mation of the probability distributions of stochastic context-free grammars from the <i>le­</i><i>best </i>derivations. In <i>In 5th International Con­ference on Spoken Language Processing, </i>pages 2495-2498, Sidney, Australia.</p><p>J.A. Sanchez and J.M. Benedf. 1999. Learn­ing of stochastic context-free grammars by means of estimation algorithms. In <i>Proc. EIJ-ROSPEECH'99, </i>volume 4, pages 1799-1802, Budapest, Hungary.</p><p>J.A. Sanchez, J.M. Benedf, and F. Casacu-berta. 1996. Comparison between the inside-outside algorithm and the viterbi algorithm for stochastic context-free grammars. In P. Ferner, P. Wang, and A. Rosenfeld, edi­tors, <i>Advances in Structural and Syntactical Pattern Recognition, </i>pages 50-59. Springer-Verlag.</p></references></body></article>