Abstract:
A statistical language model for inflected languages, having very large vocabularies, is generated by splitting words into stems, prefixes and endings, and deriving trigrams for the stems, ending and prefixes. The statistical dependence of endings and prefixes from each stem is also obtained, and the resulting language model is a weighted sum of these scores.

Description:
FIELD OF THE INVENTION 
     The invention relates to speech recognition systems for inflected languages. 
     BACKGROUND OF THE INVENTION 
     Many languages, including Slavonic and Japanese languages, are characterized by the use of inflection. Thus, the size of vocabularies in these languages is very large, in some cases on the order of several million words. These extremely large vocabularies make it difficult to use standard statistical methods, such as trigram models, to derive a language model (&#34;LM&#34;) that is useful in speech recognition systems. 
     To use as an example the Czech language, one basic word form (or &#34;lemma&#34;, or &#34;dictionary entry&#34;) can generate several hundred word forms. For example, Czech has seven different cases for nouns, in both singular and plural, expressed by various endings, for a total of fourteen mostly distinct forms. Moreover, Czech adjectives have gender, gradation and negation, which are expressed by some combination of prefixes, suffixes and endings (336 forms, about 60 distinct for the most common adjective type). Verbs are even more difficult, having some 300 distinct forms. A vocabulary of 40,000 base forms (i.e., corresponding to 40,000 dictionary entries in a usual dictionary) represents about 2.5 million word forms. 
     The excessive size of such a vocabulary is too large to access using a real-time decoder, and to train the language model (&#34;LM&#34;) well enough, we would need a very large corpus of data. 
     The n-gram modelling of words (particularly, for n=3) has been successful for many years in speech recognition systems for vocabularies having up to 64,000 words, with a training corpus of a few hundred million words. For languages with much larger vocabularies (several hundred thousand words) or when only small training corpora are available (a few million words), word-based language models are inadequate. 
     Previous models, for use in the French and Italian languages, were described in H. Cerf-Danon, and M. Elbeze, &#34;Three different probabilistic Language Models: Comparisons and Combination,&#34; Proceedings of ICASSP-91, vol. 1, pp. 297-300, and G. Maltese, and F. Mancini, &#34;An Automatic Technique to include grammatical and morphological information in a trigram-based language model&#34; ICASSP-92, pp. I-157-161. These previous models relied on grouping words into classes based on their part-of-speech (&#34;POS&#34;) information, and building a trigram model for sequences of classes, followed by a model that predicts the word given the predicted class. In addition, a lemma model was evaluated in Cerf-Danon. The lemma is the root spelling for a word (e.g., the root spelling of the word &#34;reading&#34; is &#34;read&#34;). In general, given the lemma and the POS, then typically only one word spelling is probable (e.g., given lemma=&#34;read&#34; and POS=verb-in-gerund-form, the word &#34;reading&#34; is probable), but there are a few exceptions. The previous models use two trigram models: one to predict the POS of the next word, and a second to predict the lemma. Then a third model predicts the word given the predicted lemma and POS. The lemma model has been made to depend on the lemmas of the previous two words as opposed to the previous two words themselves. 
     These models, however, even when combined with a word trigram model by linear interpolation, are not useful for inflected languages with large vocabularies like Czech or Russian. Given the lemma and POS there can be many different endings. For example, for a lemma=`KRASN` and POS=adjective there can be the following endings: &#34;AIA&#34;, &#34;OJ&#34;, &#34;YMI&#34;, &#34;OE&#34;, &#34;UJU&#34;, &#34;OGO&#34;, &#34;YJE&#34;, &#34;OMU&#34;, etc. The lemma+POS model, however, does not provide any statistical clue about these varieties of endings, which all belong to the same POS class. This makes it difficult to distinguish such Russian words as &#34;KRASNAJA&#34; (meaning &#34;red&#34;, as in &#34;red star&#34;) and &#34;KRASNOE&#34; (meaning &#34;red&#34;, as in &#34;red sun&#34;), which have very similar acoustic pronunciations. Furthermore, the endings &#34;AJA&#34; and &#34;OE&#34; have different statistics inside the same POS class (adjectives) and different statistical dependencies on previous endings (e.g., &#34;AJA&#34; cannot precede the ending &#34;E&#34;, e.g., &#34;KRASNAJA ZVEZDA&#34; (&#34;red star&#34;) but &#34;KRASNOJE SOLNZE&#34; (&#34;red sun&#34;)). These models, when combined with a word trigram model by linear interpolation, lead to an insignificant improvement over the usual word trigram model. 
     The invention described herein is superior to the above-described techniques since it allows the building of language models that fully incorporate the morphological features (prefixes and endings). 
     SUMMARY OF THE INVENTION 
     In accordance with the present invention, a language model is constructed by splitting words into stems, prefixes and endings. The following statistical n-grams can be derived: for stems only; for endings only; and for stems and endings after separation. The statistical dependence of endings and prefixes from stems is also obtained. The resulting LM is a weighted sum of these statistical scores. 
     To compress the size of the vocabulary to a manageable size (for example, 40,000) and to be able to train LMs reasonably well on a training corpus of manageable size (on the order of 100 million words) we propose the following preferred method: 
     1. Identify all the possible endings in a particular language. This can be done with a vocabulary for the language in question. 
     2. Extract the endings from all dictionary words in the language. 
     One way to do this is to use a vocabulary having all forms information, i.e., a dictionary in which endings and stems are already identified. Another way is to compare all prefixes in the language with the words in the dictionary, and to remove the longest match from each word. The same procedure can be used to extract endings from the end of the word. This may not lead to an optimum breakdown, but it is very simple and does not require any special information. 
     3. Take a sufficiently large text and using the algorithm from step 2 above, generate a text composed from stems and endings. Consider stems and endings as separate dictionary entries. (stems and endings are separated by spaces.) 
     4. Construct the vocabulary from the text generated in step 3. This vocabulary will have a substantially smaller number of dictionary entries than the dictionary from which the vocabulary was generated. 
     5. For each stem, construct a set of probabilities for the endings. (Note the technique described herein can be extended to utilize prefix data as well, in which case a separate set of probabilities for prefixes will also be constructed.) The set of probabilities for prefixes (if used) will have a size based on the number of prefixes, and the set of probabilities for endings will have a size based on the number of endings. Then use the text from step 2 and generate probabilities of endings (and prefixes, if applicable) for each vocabulary entry. The size of sets of probabilities should be small compared to the total number of dictionary entries. 
     6. Generate a LM for any combination stems and endings which would give the highest recognition score. 
     In the present invention, the &#34;next word&#34; in a trigram is actually the stem or ending that follows the present &#34;word&#34; (which itself is a stem or ending). We propose to calculate the probability of a word as a weighted sum of output probabilities of several LMs. The first LM is built on stems. The next LM may be implemented as a single look-up to the probability sets for each stem. Other LMS are based on a combination of stems and endings and will capture the information of context and other linguistic qualities contained in endings for the particular language in question. 
     The vocabulary consists of stems and endings, and it is convenient to label the stems and endings differently. One example notation is: 
     
         STEM&lt; and 
    
     
         &gt;END 
    
     where STEM can be any stem in the vocabulary, and the symbol &#34;&lt;&#34; denotes it as a stem, and END is any ending in the vocabulary, and the symbol &#34;&gt;&#34; denotes it as a word ending. 
     In past decoding procedures there was no constraint for choosing a next word given the current decoded word, other than probability criteria (the most probable word was chosen). Using the table of allowed endings, the following novel decoding procedure can be employed in accordance with the invention: 
     Given decoded stem S, the decoder produces a list of endings E1, E2, E3, . . . , which can be used as the next &#34;word&#34;. These candidates should be endings only if the previous stem cannot be a separate word. These endings are chosen only from allowed precomputed strings of endings (from the language model for endings). This is equivalent to setting probabilities Prob (END|STEM)=0 if the END is not allowed given the stem. 
     For example, stems will always be followed by the symbol &#34;&lt;&#34; and endings preceded by the symbol &#34;&gt;&#34;. For example, the Russian stem and ending combination JIET&lt; &gt;Π/T gives rise to the word JIETΠ/T. 
     There can also be an &#34;empty&#34; ending &#34;&gt;&#34;, which can be used for stems that themselves are words. 
     The table of stems and allowed endings contains lists of all endings that can follow a given stem. If a stem can itself be a complete word, it has in a list of allowed endings an empty end &#34;&gt;&#34;. 
     Since current language models are trained with smoothing and actually do not have zero probabilities, care should be taken to allow zero probabilities for bigrams and trigrams in the dictionary with stem and ending entries. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a general block diagram of an example of an apparatus for training of LM. 
     FIG. 2 is a general block diagram of an example of an apparatus for decoding with use of LM. 
     FIGS. 3a and 3b are block diagrams of examples of an apparatus for splitting words in word components (stems, prefixes, endings). 
     FIGS. 4 and 4a are block diagrams of alternative embodiments of a system for generating LM statistics are generated. 
     FIG. 5 is a block diagram of an example how acoustic models of word components (stems, endings) are built in accordance with the invention. 
     FIG. 6 describes how scores are attached to Fast Match components in accordance with the invention. 
     FIG. 7 describes how stems and endings are connected to words. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 1 is a general block diagram of an example of a system for training of a LM. The system comprises textual data in a machine readable form 10, which can be a large corpus of text, and a vocabulary 11, such as a dictionary. The vocabulary 11 is used to create sub-vocabularies of components 12 that comprise stems (12a), endings (12b) and prefixes (12c). These vocabulary components are produced by a splitter 14 that splits words from the vocabulary into either: a) stems and endings; or b) prefixes, stems and endings. Splitter 14 is described in more detail in FIG. 3. A split table 15 maps each word from the vocabulary 11 into a string either (stem-ending) or (prefix-stem-ending) (if prefixes are used) into which this word is split, in accordance with splitting rules 14a. 
     The textual data 10 and the vocabulary components 12 are used to generate language model statistics 13, that comprise various sets of statistics: 13a comprises stem statistics (trigrams, bigrams, unigrams of a stream of stems that are produced from a stream of words by cutting prefixes and endings); 13b comprises stem/ending and/or prefix/stem/ending n-grams; 13c comprises strings of endings; and 13d comprises prefix/ending. 
     These statistics are produced by the statistics module 16, which will be described in detail with respect to FIG. 4. 
     Referring to FIG. 2, the vocabulary 11, LM statistics 13 and vocabulary components 12 will now be described in greater detail. 
     An acoustic string 21 (i.e., a string of feature vectors representing acoustical speech information) enters an acoustic module 22, which attaches to each vocabulary component (prefix, stem or ending) its acoustic model as described in detail with respect to FIG. 6. These acoustic models are sorted in accordance with their scores and a list of most probable components is selected in the Fast Match module 23, as described in L. Bahl et al., &#34;A fast admissible method for identifying a short list of candidate words&#34;, Comp. Speech and Language, 1992, vol. 6, pp. 215-24. 
     After the Fast Match lists of components are computed, the selection of smaller sets of more likely candidates is performed by the Detailed Match module 24 as described in L. Bahl et al., &#34;A Maximum Likelihood Approach to Continuous Speech Recognition&#34;, IEEE Trans. on Pattern Anal. and Machine Intel., vol. PAMI-5, No. 2, March 1983, pp. 179-90. 
     LM statistics 13 are used in stack decoder 25 to choose the most probable path of word components, as described in detail with respect to FIG. 7. 
     The final decoded text 26 is obtained by connecting word components into words from the vocabulary 11. 
     FIGS. 3a and 3b show two examples of how words can be split into stems and endings. In FIG. 3a, words are split into stems and endings in accordance with dictionary information 31. For example, for each word in the dictionary (see, e.g., C. Wolkonsky, et al., Handbook of Russian Roots, Columbia University Press 1961, pp. x-xxiii, 2 and 3) there exists a table of prefixes, roots, suffixes and ends that correspond with this word (e.g., a Russian word &#34;PODSTANOVKA&#34; has a prefix POD, a root STAN, a suffix OVK and an end A). Stems can be obtained by concatenating prefixes and roots 32 (e.g., PODSTAN) and endings by concatenating suffixes and ends (e.g., OVKA). 
     Another method of splitting is described in FIG. 3b. In this approach we need only to have a vocabulary 33 and a list of endings 34. Each word is matched against endings 35 and the longest possible ending from the list is cut from the word giving rise to a word split in the stem and the ending. For example, 36 the word PODTSTANOVKA is matched with a list of endings--A, KA, OVKA, NOVKA. The longest ending in this list is NOVKA and the split becomes PODSTA NOVKA. 
     The method of FIG. 3a is preferred to the method FIG. 3b since the former produces a smaller number of different stems and preserves the linguistic structure of words that can be exploited in statistical estimates of linguistic structures. 
     Referring to FIG. 4, the training of LM statistics will now be described. 
     The textual data (corpus 401) gives rise to a stream of words 402 that enters classifier 403. Classifier 403 interacts with the vocabulary components 12 of FIG. 1 to generate the following streams of components: 
     A stream of stems plus endings (404). Each word in the stream is marked with a ` --  ` placed after a stem and before an ending in each word (e.g., KRASIVAQ VAZA NA STOLE is replaced by KRAS --  IVAQ VAZ --  A NA --  STOL --  E). 
     A stream of stems (405). Each word in a stream is replaced by a stem corresponding to this word (e.g., KRAS --  IVAQ VAZ --  A NA --  STOL --  E is replaced by KRAS VAZ NA STOL, where  --   marks an end of a stem in a word). 
     A stream of endings (406). Each word in a stream is replaced by an end corresponding to this word (e.g., KRAS --  IVAQ VAZ --  A NA STOL --  E is replaced by,  --  IVAQ  --  A  --    --  E where  --   marks an end of a stem in a word). 
     A stream of stems and endings (407). Each word is split into a stem and an ending and these word components are in a stream output 407 (e.g., KRASIVAQ VAZA NA STOLE is replaced by KRAS IVAQ VAZ A NA STOL E). 
     These streams are processed by counting modules that estimate the following statistics: 
     (408) module--counts distribution of endings after each stem. It generates N distributions of endings where N is the number of different stems from a stream 404. 
     (409) module uses the output of 405 and generates n-gram statistics of stems (for example, the stream string KRAS VAZ NA STOL has bigrams (KRAS-VAZ), (VAZ-NA), (NA-STOL) that add a count 1 to corresponding number of counts N(KRAS-VAZ), N(VAZ-NA), N(NA-STOL) of bigrams). 
     (410) module uses the output of 406 and generates n-gram statistics of endings. 
     (411) module uses the output of 407 and generates n-gram statistics of word components that consist of stems and endings in a natural order (as they occur in the stream 407). 
     These count estimates generated by blocks 408-411 produce corresponding Language Models (412-415) LM 1 , LM 2 , LM 3 , LM 4  (n-gram based). 
     FIG. 4a is an alternative embodiment of the invention. Line 404a and downstream components 408a and 412a, and line 406a and downstream components 411a and 414a have been added to allow for the analysis of prefixes. These new components operate in the manner described above with resect to FIG. 4. 
     Also included in the embodiment of FIG. 4a is a counter 417a for counting the words processed and 418a is a language model on the word level, which computes unigrams, bigrams, trigrams and 4-grams given the words being processed. 
     The scores from language models LM 1  (i=1, . . . , 4) produce the final LM with weighted scores: ##EQU1## 
     These n-weighted scores are chosen after decoding trials (FIG. 2) on a sample of the data to minimize decoding error rate. 
     These α 1  can be defined as follows. First we fix some values of α 3 , α 4 , . . . , α n  and vary α 1  =α, α 2  =1-α-α 3  -α 4  - . . . α n  to find α 1 ,α 2  for which we have a sufficiently small number of errors using the score (*) on some test data. Then we fix α 1 ,α 2 ,α 5 ,α 6 , . . . and α n  and vary α 3 ,α 4  to find α 3 ,α 4  that gives rise to the lowest error rate using (*) and the test data. This process can be continued until all α 1 ,α 2 , . . . , α n  (weighted scores) are found that provide a minimum error rate for the given test data. This post decoder evaluation of weighted sums is what we call decoding trials. There are other similar methods that can be used. 
     FIG. 5 describes acoustic modelling of stems and endings that is induced by spelling rules for words. 
     Each word 502 from a vocabulary 501 is split by means of splitter 503 into `stem ending` pair 504 (e.g., HOROWEGO&lt; &gt;HOROW EGO); this pair 504 is analyzed by linguistic module 505 to classify its characteristics (part of speech of the original word, morphological characteristics, e.g., plural, whether it is an ending, suffix or end, and context characteristics for each letter in the &#34;stem ending&#34; pair (e.g., before &#34;hard&#34; or &#34;soft&#34; phoneme)). These characteristics are used by a letter to phoneme mapper 506 that maps each letter to a phoneme (or empty sign). In this way a spelling phonetic sequence (baseform) is built for a stem ending pair exactly as for a whole word. If there is only one exception, that resulting phonetic sequence is split at the same place where letters in a word are separated when the word is split into the &#34;stem ending&#34; pair. Consider the following example in FIG. 5 for a Russian word. HOROWEGO has the following phonetic representation H A R O SH E V A. This representation uses the following characteristics: stress, position and the fact that EGO is an ending. This information is used for the `stem ending` pair in the same way the above phonetic map induced the phonetic representation for the `stem ending` pair: 
     
         HOROW EGO→H A R O SH E V A, 
    
     where the phonetic string is split at the same place where the word is split in the stem ending pair. This gives the phonetic representation for the stem 
     
         H O R O W→H A R O SH 
    
     
         E G O→E V A. 
    
     With this rule the same stem can have different phonetic representations in different words. 
     In FIG. 6, block 61 shows samples of baseforms attached to stems (ex), (exam), (hom), (hous) and endings (e), (s). Block 62 shows a sample Fast Match tree formed from these baseforms. A circled letter in this figure denotes a node at which the full path (from the root) gives rise to an ending or stem. For example, E --   represents the end (e) and H --  O --  M --   represents a path for the stem (hom). Note that paths corresponding to endings can be at the beginning of paths for stems, just as E --   is at the beginning of a stem E --  X --  A --  M -- . 
     Block 63 shows a fenemic string (that represents mathematical acoustic feature vectors). Block 64 shows a sample of a baseform that is matched against the feature acoustic vector 63. Block 65 gives plots of scores for each phoneme in the baseform 64 against the labeling string 63. The total likelihood score is computed in the standard way. 
     In FIG. 7, block 71 shows strings of stems and endings (S1, S2, S3, . . . ). These stems are connected consequently (via 73) and matched with the Vocabulary 72 to see which concatenations of stems produce existing words in the vocabulary. This produces allowable sequences of words in block 74. 
     In block 75, likelihood scores are computed for all different strings in block 74. The likelihood score involves a component Prob (end/stem), i.e., probability of the end following the stem. If the stem is not concatenated in the string, the end is assumed to be empty. 
     The invention can be implemented either as hardware or software running on a general purpose computer. See U.S. Pat. No. 4,831,550, incorporated herein by reference. 
     While the invention has been described in particular with respect to preferred embodiments thereof, modifications to the disclosed embodiments can be effected without departing from the spirit and scope of the invention.