A MACHINE-ORGANIZED METHOD AND A DEVICE FOR TRANSLATING A WORD-ORGANIZED SOURCE TEXT INTO A WORD-ORGANIZED TARGET TEXT

Abstract: For translating a word-organized source text into a word-organized target text through mapping of source words on target words, both a translation model and a language model are used. In particular, alignment probabilities are ascertained between various source word and target word pairs, whilst preemptively assuming that alignment between such word pairs is monotonous through at least substantial substrings of a particular sentence. This is done by evaluating incrementally statistical translation performance of various target word strings, deciding on an optimum target word string, and outputting the latter.

Description: A machine-organized method and a device for translating a word-organized source text into a word-organized target text. BACKGROUND OF THE INVENTION The invention relates to a method as recited in the preamble of Claim 1. Various earlier translation methods have been designed. A relatively simple procedure is to use a translation code book, wherein each source item, such as a word or a phrase, maps on a single destination item. Such method is only useful for simple situations. A higher level method has been disclosed in [Berger & Brown + 94] A.L. Berger, P.F. Brown, J. Cocke, S.A. Delia Pietra, V.J. Delia Pietra, J.R. Gillett, J.D. Lafferty, R.L. Mercer, H. Printz, L. Ures: "The Candide System for Machine Translation" , ARPA Human Language Technology Workshop, Plainsboro, NJ, Morgan Kaufmann Publishers, San Mateo, CA, pages 152-157, March 1994. [Brown & Pietra + 93] P.F. Brown, S.A. Delia Pietra, V.J. Delia Pietra, R.L. Mercer: "Mathematics of Statistical Machine Translation: Parameter Estimation", Computational Linguistics, Vol. 19.2, pages 263-311, June 1993. It appears that the models governing the various word sequences could be improved upon, which also should allow raising the efficiency of the search procedures. In addition, there is a need for more simple procedures that will still cater to a high percentage of texts of intermediate complexity. Now, the present inventors have recognized the potential of dynamic programming and the technology of Hidden Markov Modelling that both have been used for speech recognition, as well as recognized various aspects that speech recognition and text translation in have in common. SUMMARY TO THE INVENTION In consequence, amongst other things, it is an object of the present invention to use technology that has been applied to speech recognition, and now apply it in a wider context to text translation. Now therefore, according to one of its aspects the invention is characterized by the steps as recited in the characterizing part of Claim 1. It has been found that this new field of application of dynamic programming necessitates only a relatively low level of operational complexity, while the results have been found excellent. By itself, the use of dynamic programming in speech recognition technology has been disclosed in a series of earlier patents and patent applications assigned to the present assignee, such as US Patent 5,228,110, US Serial No. 08/425,304 (PHD 91136), US Serial No. 08/312,495 (PHD 91137), US Serial No. 08/563,853 (PHD 91138), US Serial No. 08/203,105 (PHD 93034) and US Serial No. 08/587, 190 (PHN 15167). The invention also relates to a device arranged for implementing the method as recited supra. Further advantageous aspects of the invention are recited in dependent Claims. BRIEF DESCRIPTION OF THE DRAWING These and further aspects and advantages of the invention will be discussed more in detail hereinafter with reference to the disclosure of preferred embodiments, and in particular with reference to the appended Figures and Tables, that show: Figure 1, a translation architecture based on Bayesian decision theory; Figures 2-2c, various examples of word alignments for Spanish-English sentence pairs; Figure 3, illustration of alignments for the monotonous Hidden Markov model; Figures 4a-4c examples of word alignments for English-German Main Clauses pairs; Figures 5a-5b examples of word alignments for English-German Subordinate and Interrogative Clause pairs; Table 1 , a DP based search algorithm for the monotonous translation model; Table 2, the effect of the transformation on the vocabulary size in two languages; Table 3, word error rates and sentence error rates for various transformation steps; Table 4, language model perplexity and error rates for various language models. DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS The invention wants to translate a text, in particular a sentence that is written in a source language, into a sentence written in a target language. By way of non- limitative example, the disclosure infra, considers indogermanic languages such as French, Spanish and English. Inasmuch as these languages have a certain similarity in character, word-to-word translation has proven to be quite useful, but it is assumed that the procedures described herein will also have merit between languages of more distant character. Now, a source sentence is f[ =fl 2,... J7, that may be translated into a target sentence e l =el,e2,...el. Among all possible target strings, the procedure followed h rein will choose the one with the highest probability, which is given by Bayesian decision rules according to: e(=argmax(e!){Pr(e( | f^)}=argmax(e(){Pr(e() * Prirf \ e()}. Herein, Prie^ is the language model of the target language, whereas {Pr(e l | /[)} is the string translation model which has as principal parts the transition probability and the lexicon probability. Various additional measures are as follows: - the introducing of structures into the probabilistic dependencies for modelling the string translation probability model Prif[ \ e ) ; - an algorithm to execute the above argmax operation in an efficient manner; - and the use of transformation steps for both source and target languages to improve the translation process; in particular these transformation steps may vary appreciably with the language pair considered. Figure 1 shows a general translation architecture based on Bayesian decision theory. The procedure may be executed on standard hardware with sufficient facilities in terms of storage space for data and program, processing power, and I/O; for brevity such standard hardware has not been further disclosed herein. First at 20, the translation receives a source language text that is provided with interpunctions, so that the successive sentences are clearly delimited. In other situations, this interpunction may be absent, such as in the case of provisionally recognized speech. Next in block 22, the text is converted into the source string f[ , for letting the structure of the source text become more similar to that of the eventual target text. Through the lexicon model 30 and the language model 32, the transition probability Pιi [ \ β γ ) is generated. Furthermore, language model 34 is used to present the string translation model Piiβ γ ) . In block 24, a global search is executed, that maximizes {Pr(e l -Prif \ e^} over e l . The result is sent to transformation block 26 that generates the sequence of target words. Often, the latter transformation would need some reordering of the target words, in a manner that is similar but inverse to the one used in block 22. Finally, the target language text is outputted on line 28. A key issue in modelling the string translation probability Prif[ \ e ) is the defining of the correspondence between word pairs in the source and target sentences. A straightforward constraint is to assign one source word to exactly one target word. The procedure uses a monotonous HMM alignment and associated Dynamic Programming. Figure 2 shows various examples of word alignments for Spanish-to-English translation. In Figure 2a, the monotonicity of the source text versus the target text is good. The discrepancy is caused by the joining or splitting among words in either one of the two languages. In Figures 2b, 2c, the monotonicity is less strict, through inversions between two words, and through inversions between sentence parts that each have a series of words, but on their own retain forward or reverse monotonicity. Further, the difference in position indices is usually less than 3 in these short sentences. Similarly, Figures 4a-4c, 5a, 5b show examples of word alignments for English-German Clause pairs of the cases Main, Subordinate, and Interrogative Clause cases. Here, the meaning of the sentence may be invariant under various types of inversions. Figure 3 illustrates various alignments used in the monotonous Hidden Markov Model. In analogy with speech recognition, we must identify the states along the vertical axis with the positions i of the target words ei, and the time with the positions j of the source words fj. Training of the alignment model and lexicon model uses the maximum likelihood criterion in the so-called "maximum approximation", that covers only the most likely alignment. The invention preemptively assumes motonicity between source and target languages, that is, as the source position advances by one, the target position may remain the same, for example, because two source words map on a single target word, or the target position jumps by one, in case of one-to-one translation in a word pair, or the target position jumps by two positions, in that a source word translates into two target words. Possible remedial measures for more complex situations as in Figures 2, 4, 5, will be discussed hereinafter. Optimum alignment is found by dynamic programming according to the recursion: Q(ij)=p(fi j ei)maxi'[p(i | i').Q(i'j-l)], wherein Q(i,j) is a partial probability, similar to that used for time alignment for speech recognition. Further, p is a specific probability distribution that follows from the actual expression. Thus, the training procedure is a series of iterations that each have two substeps: - a position alignment that finds the most likely alignment as based on the model parameters; - estimating maximum likelihood of the model parameters along the alignment path for all sentence pairs; for model-free distributions the estimates are relative frequencies. The baseline search method uses the monotonicity assumption, which leads to the overall search criterion: m Tiaaxx JI p flj \ a j - l)'P[a r a, x i e a) , )-P<fj \ e a) Herein, for a particular source position i, a first aspect of the search outcome should be ai, that is the position of the target word in Figure 3. In the formula, this is exclusively dependent on the preceding position. A second aspect of the search outcome should be e a , j that is the identity of the target word that should occupy the target position, finding the unknown mapping (a. . ««,). which defines a path through a network with a uniform trellis structure. Using this formulation of the search task, we use dynamic programming (DP) to find the best path through the lattice. To this purpose, we introduce the auxiliary quantity Q(i,j,e): the probability of the best partial path which ends in the grid point (i,j,e). Since we have only first-order dependencies in our model, it follows that the auxiliary quantity must satisfy the following DP recursion equation: Q(iJ,e) = p(f j \e) . max{p( - - δ) . p δ (e \e') . Q(i - δ, j - 1 ,« • )}• To explicitly construct the unknown word sequence e 1 , it is convenient to use so-called backpointers which for each grid point (i,j,e) store the best predecessor grid point. The resulting complexity of the search algorithm is: T x max • J T • F -c- 2 where I max is the estimated maximum length of the target sentence, J is the length of the given input sentence, and E is the vocabulary size for the target language. As in speech recognition, so-called beam search may be used to evaluate the direct programming hypotheses by limiting to the locally most promising hypotheses Q(i,j,e), as follows. We compute the best hypotheses at position j: and consider at position j for future extension only those hypotheses Q(i,j,e) whose scores are close to the local maximum Q max (j); measured by a pruning threshold t with 0 < t < 1 Q(i,j,e) > t . Q max (j). To achieve the full speed-up by this beam search, it is implemented with care. Using this beam search concept, we can also tackle more complex search tasks like using trigram language models or special constraints for language modelling. The resulting complexity i: ΔI . J . ΔE . E with ΔI: average number of active positions i per j-position ΔE: average number of active words e per (ij)-pair. Accelerated Dynamic Programming Recombination finds the best partial path to each gridpoint (i,j,e): the arcs in the translation lattice leading to (i,j,e) are processed in a specific order so that the computation can be stopped when it is sure that no better partial path to (i,j,e) exists. By carrying out these computations at each gridpoint, it is guaranteed to find the best path through the lattice. Although the complexity of the algorithm is not guaranteed to be reduced in the worst case, significant computational savings are obtained in the average case. The details are as follows. For each successor word e, we store the best M predecessor words e[ ... e M in a list of candidates ranked by p $ e\ e ) , e.g. M = 5. We expect the best score Q(i,j,e) for the gridpoint (i,j,e) to result from the M predecessor words and perform the optimization over this restricted set beforehand. The best score that results from the M predecessor words is denoted by Q(i,j,e,). To guarantee the optimality of the score £(i,j,e), we sort the arcs leading to gridpoint (i,j,e) according to the scores of the predecessor gridpoints (i - δ, j - l,e') . For each gridpoint (i,j,e) we define an upper bound ub δ (i,j,e) of the cost of an arc leading to that gridpoint. When processing the arcs in the specified order, the computation for the gridpoint (ij,e) can be terminated whenever: b δ (i ,e) < Q(.iJ,e) Q(i - δ, j - l ,β') The difference with beam search is that there is no loss of optimality, but the speed-up in CPU time is smaller than for beam search. The latter accelerated expansion method is advantageous in combination with the beam search considered earlier. Whereas in beam search all possible successor words e have to be considered when extending an hypothesis (i,j,e'), we limit this extension to the most promising candidates e as follows. The basic idea is to apply some preprocessing steps to the language model probabilities p δ (e | e') and lexicon probabilities p(f | e). These preprocessing steps can be done offline and the results are stored in tables. For each source word f, we determine the set E(f) of target words e, which are close (in the sense of the beam threshold t) to the best target word: For each predecessor word e', we determine the set E(e') of successor words e, which are close to the best successor word in the sense of the beam threshold t. We distinguish the cases δ = 1 and δ = 2. In practice, the extension of a hypothesis (i,j,e') in beam search can be limited to the words e in the sets E(fj) and E δ (e'). The resulting complexity of this method in combination with beam search is then: ΔI . J. ΔE . ~E with • ΔI: average number of active positions i • ΔE: average number of active words e • ~E: average number of words in E(f) and E δ (e'). There are several refinements of this method: • We can use different pruning thresholds t in beam search and in the definition of the sets E(f) and E δ (e')- • In anticipating pruning, additional speed up can be obtained by using sorted sets, i.e. lists that are sorted according to the probabilities (p(f j | e) or p 5 (e | e'), and by using an anticipated conservative estimate ~Q maχ G) of the exact value of Q max (j) which is only known after all hypotheses (i,j - l,e') have been expanded. This estimate is continuously updated during the evaluation of new hypotheses. When the extension of the hypothesis (i,j - l,e') is done in the order of the lists, the evaluation can be stopped as soon as the first word e is encountered with a score Q(i,j,e) < t . ~Q max (j) In practice, the monotony assumption is often not satisfied, as shown in Figures 2b, 2c, 4a, 4b, 4c, 5a, 5b. This problem is relevant when the language pair considered has significant differences in the word order. For example, the position of the verb in German and English can be dramatically different. To counteract this problem, a parsing algorithm example may be applied to the input sentence. As a result of this parsing, we know the subject, the verb and the other syntactic parts of the sentence. Using this information, we may reorder the input sentence such that its word order matches better the word order in the target language. In more general situations, there will always be sentence pair, with word alignment that do not satisfy the monotonicity constraint. Even then, however, for most of the words the monotonicity constraint is satisfied locally. Therefore, the following extensions are provided. Firstly, a more systematic preprocessing is undertaken to local and global word reorderings to try to produce the same word order before and after the translation proper. Secondly, a multi-level approach is undertaken that allows a small number, such as 4 "large" forward and backward transitions. Within each level separately, the monotonous alignment model is still put into use. Only when moving from one level to the next, we need to handle the problem of different word sequence orders. The parsing algorithms referred to above are never perfect. Therefore, we may consider an approach where the word reordering is taken care of in the translation process itself, i.e. the search procedure. Figures 4a, 4b, 4c and 5a, 5b show examples for German-English alignments. In Figure 4 the same German main declarative clause is shown in different word orders. Figure 5 shows the effect of subordination and question forming (interrogative clause) on the word order. In both Figures, we see that the most affected part is always the word of the verb group, i.e. the words I, can, not, offer In the English sentences, we have always the same word order: I can not offer apart from the question sentence where we have an exchange of the words I and can. To integrate this word reordering into our search, we first define the syntactic parts: • S: subject pronoun, i.e. I, he, ... • M: modal verb, e.g. can, does, has, ... • N: negation, e.g. not, or no negation at all • V: infinite verb, e.g. help, come, ... • C: subordinating conjunction, e.g. since, while, if, ... • W: interrogative pronoun or adverb, e.g. where, when, what, ... With these syntactic parts, we may define sentence patterns for the various sentence types: • main clause: SM * NV$, *MS * N * V$ • subordinate clause: CS * N * VM, • interrogative clause: WMS * N * M? • other clauses: ... where the symbol '$' stands for the punctuation mark the symbols ',?' represent the question mark and the comma, and the symbol '*' denotes an arbitrary word string including the empty string, and is made from any word apart from the above defined syntactic parts. With these sentence patterns, the dynamic programming beam search may be modified as follows: • For the verb group, we use a position unigram language model rather than the usual bigram model: p(e I y), y = S,M,N,V. The reason is that since the word order for the words of the verb group is different for German and English, it is hard to apply the bigram language model. • The DP beam search is extended in such a way that a) we distinguish various segments in the target sentence, e.g. segment before the verb group (bigram language model), e.g. the verb group (position unigram language model), e.g. segment after the verb group (bigram language model), b) the search hypotheses are distinguished with respect to both the segments and the word positions of the verb group. • The DP recombination equations must be modified suitably. • In general, due to these modifications, the size of the total search space may grow by a factor of 100 or more. But using the beam search concept, we may expect a much smaller increase for the actual search effort, just like in large-vocabulary speech recognition. So far we have assumed written input, i.e. perfect input with no errors. When trying to apply the same translation concept to spoken input, we are faced with the additional complication that the spoken words can never be recognized with 100% security. Yet, we may undertake to integrate the probabilities of the speech recognition process into the translation process. To this purpose, we consider various methods of increasing complexity for taking into account both the acoustic probabilities p(x= | fj) and the language model probabilities p(f | f ); wherein f relates to the source text words. • The ambiguity caused by the acoustic probabilities can be integrated into the translation search directly by computing the new quantities: which replace the lexicon probabilities p(f j | e) in the dynamic programming equation. This computation can be done offline, so it does not affect the search complexity. However, it could be done on line, because the new quantities are less focused than the original lexicon probabilities and thus may result in more search hypotheses. In the above, the denominator p(X j | f j ) may be put before the sum; as a constant factor for all hypotheses in position j, it does not affect the DP decisions and may thus be ignored. • Taking also the language model p(f | f ) into account is more difficult because there is a dependence on both preceding and succeeding words. Therefore we may simplify to refer only to the single best recognized sentence f : — f 1 ...f j ...f J . Then the joint effect of the acoustic probabilities p(X: | fj) and the language model probabilities p(f | f ) can be taken into account by defining the quantities: The approximation can be improved by making use of the so-called forward-backward probabilities of the word graph so that not only the single best, but all 'good' word sequences with high enough probability scores can be taken into account. Note again that, in the above definition, the denominator product p( Xj I 9 . p(f j I f ) . p(f j + 1 I 9 does not affect the DP decisions and can be ignored. • To simplify the discussion, we have so far assumed that the word boundaries are correct. This assumption can be weakened by including the optimization over the word boundaries as they are given by a word lattice or word graph. A simple approximation would be to use n-best lists computed from the word graphs and do a separate translation for each of the n best sentence candidates. In this context, Table 1 shows a DP based search algorithm for the monotonous translation model, more or less formulated in pseudo-code. On line 42, the source string of words is received. On line 44 the translation process is initialized, which is generally done for each new sentence. On line 46 a loop structure is started. On lines 50, 52, further nested loops are entered. Line 52 carries the body of the procedure in question. Line 56 finds the best end hypothesis and line 58 recovers the optimum target word sequence. As an additional measure, text transformation (block 22 in Figure 1) makes the two languages resemble each other as closely as possible regarding sentence length and word order. Further preprocessing steps, in particular for a hotel room reservation system, are all or part of the following: - Reduce the dictionary size by replacing various specific word categories, such as surnames, male and female given names, various number categories, such as room numbers, dates, times-of-day, names of months and days of week by category markers; - Punctuation marks are treated like regular words; - Single words replace certain politeness frases, and may be shifted to any end of the sentence; - Personal pronouns may form part of an inflected verb; this phenomenon is counteracted by splitting the verb into a verb part and a pronoun part; - Words are reordered such as particular noun-adjective combinations, and phrases that have particular positions of other pronouns. Table 2 gives a clear indication of the dictionary size reduction. Table 3 lists word error rates and sentence error rates for various transformation steps; the greatest improvement is attained by combining all transformations. The most important transformations are categorization and word joining. Deletion errors (DEL) are often caused by the omitting of word groups like "for me please" and "could you". The eventual outcome of the machine translation shows, that the semantic meaning of the source text is often preserved even if there are a few errors with respect to the exact translation. Table 4 shows language model perplexity and error rates for three language models, in particular a zerogram, a unigram, and a bigram language model. The improvement is clear. Appendix 1 DP based search algorithm for the monotone translation model. 42 44 46 48 50 52 54 56 58 Table 1 Effect of the transformation steps on the vocabulary sizes in both languages Table 2 Appendix 2 Table 3 Language model perplexity (PP), word error rates (INS/DEL, WER) sentence error rates (SER) for different language models. Table 4

Claims: CLAIMS: 1. A machine-organized method for translating a received word-organized source text into a word-organized target text through mapping of source words on target words, whilst using a translation model, a language model, and an alignment model, said method being characterized by ascertaining alignment probabilities between various source word & target word pairs, whilst preemptively assuming that alignment between such word pairs is monotonous through at least substantial substrings of a particular sentence, through evaluating incrementally statistical translation performance of various target word strings, deciding on an optimum target word string, and outputting the latter. 2. A method as claimed in Claim 1, wherein said evaluating is based on a Hidden Markov Model (HMM). 3. A method as claimed in Claims 1 or 2, whilst using Bayesian Decision Theory. 4. A method as claimed in Claims 1, 2 or 3, whilst using a dynamic programming beam search. 5. A method as claimed in any of Claims 1 to 4, whilst using accelerated dynamic programming recombination. 6. A method as claimed in any of Claims 1 to 5, whilst using a preprocessing step for reordering the word sequence of the source sentence. 7. A method as claimed in any of Claims 1 to 6, whilst integrating word reordering immediately into the dynamic programming search. 8. A method as claimed in any of Claims 1 to 7, furthermore integrating with speech recognition steps whilst in particular integrating speech recognition probabilities into a word hysteresis graph, and/or into the n-best word sequences. 9. A method as claimed in any of Claims 1 to 8, furthermore comprises a preprocessing step for executing at least one of the following reductive measures: - replacing selective word categories, such as numbers, personal or calendar names by category markers, - treating punctuation marks like regular words, - replacing certain politeness phrases by single words, and possibly shifting to an end of the sentence, - counteracting the phenomenon that personal pronouns may form part of an inflected verb, by splitting the verb into a verb part and a pronoun part; - reordering words such as particular noun-adjective combinations, and phrases that have particular positions of other pronouns. 10. A device arranged for implementing the method as claimed in any of Claims 1 to 9.

Inventors: NEY HERMANN, TILLMANN CHRISTOPH, VOGEL STEPHAN, NEY, HERMANN, TILLMANN, CHRISTOPH, VOGEL, STEPHAN
Applicants: KONINKL PHILIPS ELECTRONICS NV, PHILIPS NORDEN AB, PHILIPS PATENTVERWALTUNG, KONINKLIJKE PHILIPS ELECTRONICS N.V., PHILIPS PATENTVERWALTUNG GMBH
Application year: 1998
Main classification: G10L5
IPC codes: G06F17, G10L15