Background of the Invention
The invention relates to a method of determining language model values which are used to derive word sequences from a speech signal. From the speech signal there are derived test signals which are compared with sequences of reference signals which correspond to words of a predetermined vocabulary. The comparison yields scores which are incremented by a language model value at word transitions. The scores incremented by the language model values are summed and, no later than at the end of the speech signal, the word sequences determined on the basis of the most attractive scores are output.
The language model values serve to take into account the probability of occurrence of word sequences with a predetermined number of given, successive words in a normal case. In the case of a number of N successive words, the set of language model values is referred to as an N-gram model. The bigram or trigram models, with N=2 and N=3, respectively, are often used; however, models with N>3 are also feasible, be it that their implementation requires a greater expenditure. The reliability of the determination of word sequences, i.e. the reliability that the word sequence determined indeed corresponds to the actually spoken word sequence in the speech signal, is enhanced by the use of language models; suitable results are obtained already by means of a trigram model in normal circumstances.
Prior to the determination of word sequences from an unknown speech signal, the language model values are derived from a predetermined training speech signal during a training phase. To this end, it is counted how often the various word sequences occur, from the count there being determined a probability value for such word sequences, which probability value essentially indicates the language model value. Because a training speech signal may not be excessively long for practical reasons, notably in the case of a large vocabulary it may occur that some word sequences are not present in the training speech signal. However, in order to ensure that such word sequences are not given the probability zero, so that they are excluded from the recognition, non-zero language model values must be assigned also to such word sequences. To this end, use is made of so-called backing-off strategies which derive the probability of the non-occurring word sequences from the actually occurring word sequences. Various interpolation methods are known for such backing-off strategies.
Normally speaking, the probability values of individual word sequences are chosen so that the sum of the probability values of all feasible word sequences has the value 1. For actually occurring complete word sequences an estimated value is assumed which is smaller than the relative frequency, i.e. the number of times that a given complete word sequence has occurred to the number of times that the word sequence minus the last word has occurred. Thus, a value is subtracted from the number of times that the word sequence has occurred, N; this may be referred to as discounting. In conformity with a coarser distribution, i.e. a word sequence reduced by the first word, the probability mass thus acquired is distributed between the word sequences which have not occurred. The type of discounting is defined by the relevant interpolation method.
Generally speaking, the interpolation methods can be represented by the following diagram: ##EQU1## Therein, h is a word sequence of words, w.sub.1 . . . w.sub.M-1, h is a word sequence of words w.sub.2 . . . w.sub.M-1, reduced by the first word, and p(w.sub.M .vertline.h) is the conditional probability that after the word sequence h the word w.sub.M follows, .alpha.(w.sub.M .vertline.h) is the estimate, determined by the discounting in conformity with the interpolation method used, for the word sequence occurring, .beta.(w.sub.M .vertline.h) is the coarser distribution for the word sequence reduced by the first word, and .gamma.(h) is a function from the condition that all estimated values p in the sum should produce the value 1. Furthermore, N(h,w.sub.M) is the number of times that the word sequence comprising the words w.sub.1 . . . w.sub.M has occurred in the training speech signal.
Normally it is assumed that .beta.(w.sub.M .vertline.h)=p(w.sub.M .vertline.h), so derived from the count of the word sequence reduced by the first word. However, for the complete word sequence which has not occurred in the training speech signal this may lead, at least in some cases, to a language model value which may substantially deviate from the actual probability in natural speech.
Summary of the Invention
It is an object of the invention to provide a method of determining language model values while utilizing interpolation methods in which the language model values for word sequences which have not occurred in the training phase are adapted better to their actual probability of occurrence in natural speech.
In order to achieve this object, in interpolation methods in which the language model values for non-occurring word sequences are determined from the frequency of occurrence of reduced word sequences, for the determination of the frequency of a given word sequence reduced by the first word each individual complete word sequence in which said reduced word sequence is contained and which has occurred at least once in the text speech signal is taken into account no more than once, regardless of the actual frequency of occurrence.
It is thus avoided that a complete word sequence which has not occurred in the training speech signal and in which particularly frequently occurring reduced word sequences are present by chance is given a high probability and a corresponding language model value.
Description of the Preferred Embodiments
A simple method of taking complete word sequences into account only once has reduced word sequences taken into account for the language model values for non-occurring word sequences only if they stem from complete word sequences which have occurred exactly once in the training speech signal. Thus, it is automatically avoided that individual, frequently occurring reduced word sequences lead to the assumption of a high probability also for the associated complete word sequences.
Another version of the method in accordance with the invention is that the reduced word sequences from each different complete word sequence occurring in the training speech signal are taken into account exactly once. It is thus also avoided that frequent, reduced word sequences result in an inappropriate probability for complete word sequences.
The former method can be expressed as follows: ##EQU2## Therein, h' denotes word sequences w.sub.3 . . . w.sub.M-1 reduced by the first two words and the last word, d denotes the discounting value and N.sub.1 (x,h,w.sub.M) is the number of different, complete word sequences with M words which occur exactly once and which correspond, except for the first word, to the word sequence for which the probability or the language model value is to be determined. In the event that no such word sequence has occurred in the training speech signal, .beta.(w.sub.M .vertline.h) is determined in the same way from word sequences reduced by a further word. The discounting value d may be a constant value or may also be dependent on the relevant word sequence.
In the other case the approach is substantially the same, be it that the counter does not count the reduced word sequences having occurred only once, but all relevant word sequences which have occurred; however, for each word sequence occurring only one value 1 is added, regardless of how often the relevant word sequence has actually occurred.
A language model, i.e. the language model values, is thus formed for the individual word sequences where the language model values at least approximate the actual probabilities of the word sequences in natural speech.