Machine translation system

Abstract: A machine translation system is capable of automatical­ ly and correctly analysing a sentence having an inserted comment of a first language by means of a specific dictio­ nary (6). The dictionary includes a first dictionary (6c, 6e) in accordance with which the inserted comment is extracted and analysed and a second dictionary (6d) in accordance with which the other portion of the sentence than the insert­ ed comments is analysed. An analysis of the inserted com­ ment and an analysis of the other portion are combined to obtain an analysis of the overall sentence. The translated sentence in the second language is produced in accordance with the analysis of the sentences which is combined. Fur­ thermore, the translated inserted comment is displayed in a distinguishable manner. Namely, a symbol for showing the inserted comment is added to the translated inserted com­ ment. The translated sentence is displayed for including the inserted comment with the symbol.

Description: BACKGROUND OF THE INVENTION (1) Field of the Invention The present invention relates to a machine translation system for translating a first language into a second language, particularly to a machine translation system which is capable of correctly analysing an inserted comment in a sentence of the first language and displaying the inserted comment translated to the second language in a distinguishable manner. (2) Description of the Prior Art Much attentions have been paid to automatic machine translation systems of input original documents written in a first language into a second language by the use of a computer, of late. Basically in these machine translation systems, the input original sentences are analyzed in view of each morpheme and its morphological construction as well as syntax, and divided into predetermined units for processing of words, phrases, or idioms. Then, dictionary or dictionaries for translation are searched and each word is retrieved from the dictionary for every processing unit of the words and phrases thus divided, and when the corresponding words and phrases in the second language, i.e., translated words and phases are found in the dictionary, they are finally combined in accordance with predetermined translation rules and grammars, thereby obtaining their translated sentences. However, regarding to natural languages, since the analysing technique is not established enough, it is difficult to surely obtain a suitable translation of the natural languages. One form of the natural languages is an inserted comments. Namely, in the natural languages, the inserted comment such as a noun phrase, a verb phrase, an adverb phrase, a conditional clause, and a sentence etc. is used in the sentences very well, therefore, it is difficult to analyse the sentences having the inserted comment. In a known type of machine translation system, the inserted comment is analysed by enclosing the inserted comment with a mark for implying the insertion. However, the enclosing is carried out by an operator in the prior art system. Namely, the operators have to designate the inserted comment one by one in pre-edit process, therefore, the designating operation is a troublesome work for the operator. Then, the outputted translation of the inserted comment is displayed in a same configuration as that of the other portion of the sentence. Therefore, it is hard work for the operator to distinguish the translation of the inserted comment. A translating system is described in "Knowledge Representation and Machine translation", Sawai et alia, Fujitsu Scientific and Technical Journal, Vol. 18 (1982) No.1, which is capable of translating from Japanese into English. The Japanese language has very strict rules relating to inserted comments, therefore, the problem addressed by the present application is not addressed in this article. In this known method a Japanese sentence is broken down into phrases, words, and adjunct and each individual item translated. Subsequently, the whole sentence is translated using the individual translated parts and their equivalents. Adjunct analysis is carried out after phrases and words have been individually translated when the remaining character string is checked to extract adjuncts. When translating from English to Japanese, such a system can have difficulties with translating inserted comments. SUMMARY OF THE INVENTION It is an object of the present invention to provide improved machine translation system which is capable of automatically analysing sentences having inserted comments without the operator's designation work of the inserted comments which is capable of establishing an easy discrimination of a translation of an inserted comment. This object is solved as defined in claim 1. One feature of the present invention resides in a machine translation system for translating a first language into a second language, which comprises: (a) input portion (1) having function keys, edit keys, cursor keys for entry of the original written sentences in the first language and for performing various operations for translation, as well as having other alphanumeric keys; (b) a first memory (2) for storing original sentences written in the first languages so as to analyse the original sentences; (c) a second memory (3) for storing translated sentences in the second language as a translation corresponding to the input original sentences in the first language; (d) edit control portion (4) for controlling the edition operation of the entire system; (e) dictionary means (6) having a first dictionary in accordance with which the inserted comments are extracted and analysed and a second dictionary in accordance with which the other portion of the sentences than the inserted comments is analysed, the first dictionary including an inserted comment extracting rule in accordance with which the inserted comments are extracted and an inserted comment analysis grammar in accordance with which the inserted comments which are extracted are analysed; (f) translation portion (5) coupled to said edit control portion for excuting the translation processing in accordance with control signals from said edit control means such that the inserted comments are extracted in accordance with the inserted comment extracting rule, the inserted comments, which are extracted, are analysed in accordance with the inserted comment analysis grammar, the other portion is analysed, and an analysis of the inserted comment and an analysis of the other portion are combined to obtain an analysis of the overall sentences; (g) display (8) having display control portion (7), for producing translated sentences in the second language in accordance with the analysis of the sentences obtained by said translation portion (5) so as to display the inserted comments translated to the second language in a distinguishable manner. The display control portion is constructed to add a symbol for showing the inserted comment to each of the translated inserted comment and to display the translated sentences including the inserted comment with the symbol. These and other objects, features and advantages of the present invention will be more apparent from the following description of a preferred embodiment, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS Fig. 1 is a construction of an overall machine translation system according to one embodiment of the present invention, Fig. 2 is the arrangement of various keys provided on the input means of the system of Fig. 1, Fig. 3 is one example of the lay-out of the display zones in the display surface of the display means, Fig. 4 is a control flow chart of the edit control operation and processing performed by the edit control means, Fig. 5 shows a control flow chart of the translation processing performed by the translation means, Fig. 6 shows a control flow chart of the analyse processing of the sentences having the inserted comments, Fig. 7 shows the contents of the inserted comment extracting rule, Fig. 8 shows the contents of the inserted comment analysing grammar, Fig. 9 is an explanatory drawing of the analysis of inserted comment, Fig. 10 is an explanatory drawing of the analysis of the other portion in the sentences than the inserted comment, Fig. 11 is an explanatory drawing of the analysis of the overall sentences, and Fig. 12 shows an output display of the translation of the sentences including the inserted comment. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to Fig. 1, the machine translation system according to the present invention comprises an input portion 1 which may be a keyboard, an original memory portion 2 for storing sentences of the original written in a first language inputted by the keyboard, a translation memory portion 3 for storing the translated sentences in a second language corresponding to the input original in the first language, an edition control portion 4 for controlling the entire system, a translation portion 5 for performing translation processing, translation dictionary means 6 including the general purpose and nomenclature dictionaries, which contains various grammars as well as words, idioms, and expressions for use in the translation processing, a display control portion 7 for controlling the display of various sentences including the original and its translated sentences, a display 8, and a printer portion 9 for printing the original sentences and their translated sentences displayed on the display 8 and for outputting the translated sentences. In this machine translation system, if an English- Japanese translation should be performed, the first language is English and the second language is Japanese. Fig. 2 shows one example of the arrangement of keys of a key board of the input portion 1, according to the present invention. The key board comprises the following different keys in addition to the normal alphanumeric keys; a key 100 indicates a translation instruction key, keys 101 through 106 indicate edit keys, keys 110 through 117 indicate function keys, keys 130 through 134 indicate cursor keys, and other keys. Fig. 3 shows one example of lay-out of the display surface of the display portion 8, where the original sentences in the first language are to be displayed on the left side zone of the display while the translated sentences in the second language are to be displayed on the right side zone of the display corresponding to the original sentences, under the edit zone located in the upper portion of the display, on which information necessary for performing different editions is displayed. Fig. 4 shows a control flow chart of a interactive translation processing performed by the edit control portion 4. In the interactive translation processing, an operator can conveniently carry out the edition work of the translated sentences and the original sentences. In the control flow chart, the edit control portion 4 monitors if any input of information has been done by the key board of the input portion 1 or any translation completion signal from the translation portion 5 has been received in steps S₁ to S₅ and the result of the monitoring is YES, i.e., any key input has been provided, the corresponding operation is carried out. When the operator operates any function key, this condition is detected in step S₅ and the operation corresponding to the function keys is carried out in step s₁₁. When the operation operates any edit key, this condition is detected in step S₄ and the edit operation corresponding to the edit keys is carried out in step S₁₀. When the operator operates the cursor key 130 or any of other control keys the corresponding operation for moving the cursor and other processing are performed in step S₁₃ in accordance with the operation of keys. When the original sentences are input by the operator by the operation of character keys, this condition is detected in step S₃, the characters corresponding to the operation of particular keys are stored in an input buffer (not shown) within the edit control portion 4 successively in step S₇. These original sentences are displayed on the original display zone on the display portion 8 through the display control portion 7 in step S₈. When the operator operates the translation instruction key 100 when entry of one sentence for instance has been completed, this condition is detected in step S₂ and the original sentence stored in the input buffer is applied to the translation portion 5 by the edit control portion 4, so as to start the translation processing in step S₉. In this case, when it is necessary to perform any editions such as correction, insertion, deletion of word or words or phrase during the entry of the original, it can be carried out by the operation of the correction key 101, the insertion key 102, or the deletion key 103 after moving the cursor to a desired edit position by the operation of the cursor keys 130. More particularly, after start of the operation, if a first determination is carried out in step S₁ translation is completed. If the result of the determination is NO, the operation now moves to step S₂ where a decision is made if the translation instruction key 100 is operated. If the result of the decision in step S₂ is YES, the operation goes to step S₁₀ where translation is started. However, if the result of the decision in step S₂ is NO, the operation goes to step S₃ where another decision is made if the character keys, i.e., alphanumeris keys are operated. If the result of this decision is YES, the operation moves to step S₇ where the original is stored in the input buffer not shown. On the other hand, if the result of decision in step S₃ is NO, the operation now moves to step S₄ where another decision is made if any of the edit keys 101 to 106 is operated. If the result of the decision is YES, the operation now goes to step S₁₀ where the edition processing is carried out, corresponding to each key operated with respect to a particular word or phrase which is being indicated by the cursor. For instance, when the insertion key 102 is operated in this case, any desired character is inserted before the position of the cursor while when the deletion key 103 is operated, a character or a series of characters indicated by the cursor is deleted. In the same manner, when the movement key 104 is operated, characters indicated by the cursor are moved from one place to the other. When the cancel key 105 is operated, the effect of the operation of any of the keys 101, 102, 103 is cancelled. When a modification relation candidate key 105 is operated, modification candidates for the word or phrase indicated by the cursor are indicated. Returning to step S₄, if the result of the decision in step S₄ is NO, the operation now moves to step S₅ where another decision is made if any of the function keys 110 to 117 is operated. If the result of the decision is YES, the operation goes to step S₁₁ where various processings corresponding to any of the function keys operated are carried out. For instance, when the translation word display key 110 is operated, the translated candidate words are displayed on the display portion 8. When the dictionary display key 111 is operated, a partial content of either the general purpose dictionary and the nomenclature dictionary corresponding to the words or phrase of the original or translation results can be indicated on the display portion 8. When the dictionary registration key 112 is operated, new words or idioms can be registered. When the dictionary deletion key 113 is operated, certain words or idioms which have been registered by key 112 can be cancelled or deleted. When the partial translation key 114 is operated, a partial translation can be displayed on the display portion 8, for correction, for instance. The cursor keys consists of keys 130 for moving the cursor in the upward, downward, right and left directions, respectively, the unit change key 131 for changing the unit for moving the cursor, the display zone movement keys 132 for moving the cursor between the display zones, the enlargement key 133 for enlarging the size of the cursor into word unit, and the reduction key 134 for reducing the size of the cursor into a character unit. Now, returning to step S₁, if the result of the decision in step S₁ is YES, the operation moves to step S₆ where the edit control portion 4 supplies translated sentence candidates and auxiliary information obtained from the translation portion 5 to the display control portion 7, so as to display the best translated sentences among the candidates. The display control portion 7 indicates the translated sentence candidates in the translation display zone corresponding to the that of the original which is displayed cn the left side, as well as displaying them with high brightness when the auxiliary information exists, so that the operator can well identify the translated sentences. In the manner as described, the operator of the machine translation system according to the present invention can obtain the translated sentences dialoguing with the system while conveniently carrying out the edition processing of the translated sentences. Fig. 5 shows a control flow chart of the translation processing in the translation portion 5. After start of the operation, in the morpheme analysis section S₅₁, words each having inflection are transformed into each of their basic forms by use of a regular and irregular change dictionary 6a with respect to the input original. In the dictionary retrieving section S₅₂, each of words, phrase, and idioms is retrieved from the original sentences and Parts of Speech are picked up by the use of a word and idiom dictionary 6b. In the analysis control section S₅₃, each candidate of translation is applied to a syntax analysis section S₅₄. And, as described latter, inserted comments are extracted in accordance with an inserted comment extracting rule 6c and applied to the syntax analysis section S₅₄. In the syntax analysis section S₅₄, the syntax of each candidate of translation is analyzed by using a general analysis grammar 6d and the inserted comment of candidate is analysed by using an inserted comment analysis grammar 6e if the analysis is not successful, the operation returns to the analysis control section S₅₃. In the structure transformation section S₅₅, the structure of the first language, i.e., English language in this case, is transformed into the second language, i.e., Japanese language in this case, by using a transformational grammar 6f. If the transformation is not successful, the operation now returns to the syntax analysis section. In the syntax generation section S₅₆, the word order or word sequence of the second language, i.e., the Japanese language is determined from the structure of the Japanese language in accordance with a generative grammar 6g and the word order is arranged in accordance with the generative grammar. In the morpheme generation section S₅₇, the ending of each word is changed by using a morpheme generative grammar 6h, so as to complete each of the translated sentences. Each of the above sections produces each signal to the edit control portion 4 when starting the processing thereof. As described above, the dictionary means 6 includes a first dictionary in accordance with which the inserted comments are extracted and analysed, a second dictionary in accordance with which the other portion than the inserted comments is analysed, and a third dictionary in accordance with which the translation processing other than the analysis is carried out. The first dictionary includes the inserted comment extracting rule 6c and the inserted comment analysis grammar 6e. The second dictionary includes the general analysis grammar 6d. The third dictionary includes the regular and irregular change dictionary 6a, the word and idiom dictionary 6b, the transformational grammar 6f, the generative grammar 6g, and the morpheme generative grammar 6h. Description will now be made about an analyse progressing of an English sentence having an inserted comment in the above mentioned system. Referring to Fig. 6, the analyse processing is described when a following example of an English sentence is inputted to the system. "The system has this mode, i.e. the burst mode, in the operation." In step 61, a portion which is probably an inserted comment is extracted in accordance with the inserted comment extracting rule 6c. The inserted comment extracting rule 6c as shown in Fig. 7 is stored in the translation dictionary means 6. The rule includes prescribed patterns for defining the inserted comments and addresses for inserted comment analysis grammars 6e corresponding to the inserted comments, respectively. As shown in Fig. 8, the inserted comment analysis grammars 6e are stored so as to correspond to the inserted comments such as a noun phrase, a preposition phrase, a verb phrase, an adverb phrase, and etc. After the portion which is probably the inserted comments, namely, "i.e. the burst mode" in this example is extracted in accordance with a rule F shown in Fig. 7, the portion is analysed by a grammar A shown in Fig. 8 (step 62). If the analysis is accomplished as shown in Fig. 9, the portion is formaly judged as the inserted comment. In contrast, if the analysis is not accomplished, the judgement that it is not the inserted comment is issued. In step 67, if the other inserted comment is extracted, the process go to step 62 again. If the other inserted comment is not extracted, the process proceeds to step 63, and the overall sentence is analysed in normaly process in step 63. On the judgement that the portion is the inserted comment, the portion is extracted from the sentence and the remaining, namely, "The system has this mode in the operation." is analysed by the general analysis grammar 6d (step 64). As a result, an analysis as shown in Fig. 10 is obtained. If the analysis is not accomplished in step 64, the process proceeds to step 67. In step 67, if the other inserted comment is not extracted, the overall sentence is analysed in normaly process. In step 64, if the analysis is accomplished, the analysis shown in Fig. 9 and the analysis shown in Fig. 10 are combined together to obtain an analysis of the overall sentence shown in Fig. 11 in step 65. In a step for generating a translation in accordance with the analysis shown in Fig. 12, a symbol for showing the inserted comment, for example "(, )" is added to the translated portion corresponding to the inserted comment. Namely, in Fig. 11, a portion below an insect arc are judged as the inserted comments and the symbol "(, )" is added to the both sides of the nodes to obtain the translation as shown in Fig. 12 (step 66 in Fig. 6). In this embodiment, the symbol "(, )" is used as a symbol for showing the inserted comments, however, it is not limited, for example, symbols such as " ", "- -", "--- ---", ". .", " " may be applicable in the present invention. In summary, in accordance with the present invention, a sentence of a first language including inserted comments is automatically analysed in accordance with an inserted comment extracting rule and an inserted comment analysis grammar. Therefore, the operator does not need to designate the inserted comments one by one in the sentence in the pre-edit process. Moreover, a symbol for showing the inserted portion is added to a translated inserted comments, therefore, it brings an easy discrimination of the translated inserted comments to the operator.

Claims: A machine translation system for translating a sentence of a first language with inserted comments into a corresponding sentence of a second language, comprising: (a) input means (1) for inputting a sentence of said first language; (b) first memory means (2) connected to said input means (1), for storing the sentence of said first language; (c) dictionary means (6) containing words, grammars and other necessary information about said first and second languages and correspondences therebetween for executing the translation and including a general analysis grammar (6c) with reference to which sentences of said first language can be translated; (d) translation means (5) connected with said first memory means (2) and said dictionary means (6), for executing translation of the sentence of said first language stored in said first memory (2) into a corresponding sentence of said second language with reference to said dictionary means (6); (e) second memory means (3) connected with said translation means (5), for storing the corresponding sentence of said second language; and (f) output means (8) for outputting the corresponding sentence of said second language, said translation system characterized in that the information contained in said dictionary means (6) includes inserted comment extracting rules (6c), such rules including prescribed symbols defining the presence of inserted comments and addresses for an inserted comment analysis grammar (6e) corresponding to said inserted comments, based on which rules said inserted comments can be distinguished from the rest of sentences of said first language, said inserted comment analysis grammar (6e) including an analysis grammar for a noun phrase, a prepositional phrase, a verb phrase, an adverb phrase or a sentence, with reference to which inserted comments can be translated into said second language; and said translation means (5) extracts inserted comments from the sentences of said first language on the basis of said inserted comments extracting rule (6c) and thereafter separately translates the extracted inserted comments with reference to said inserted comments analysis grammar (6e) and the rest with reference to said general analysis grammar (6c), followed by joining the translations of the inserted comments and the rest to form the corresponding sentences of said second language. The machine translation system as claimed in claim 1, wherein said input means (1) is a keyboard. The machine translation system as claimed in claim 1, wherein said output means is a display (8). The machine translation system as claimed in claim 1, further comprising edition control means (4) for controlling the respective elements of the system. The machine translation system as claimed in claim 1, wherein the first language is English and the second language is Japanese. The machine translation system as claimed in claim 1, wherein said display control means (8) is constructed to add a symbol for showing the inserted comment to each of the translated inserted comments and to display the translated sentences including the inserted comment with the symbol. The machine translation system as claimed in claim 1, wherein said dictionary means (6) further comprises a first dictionary in accordance with which a translation processing other than the analyses of the inserted comment and the second portion is carried out. The machine translation system as claimed in claim 7, characterized in that said dictionary means (6) includes a second dictionary including a general analysis grammar (6d) and said first dictionary includes a regular and irregular change dictionary (6a), a word and idiom dictionary (6b), a transformational grammar (6f), a generative grammar (6g) and a morpheme generative grammar (6h). The machine translation system according to any of claims 1 to 8, characterized in that said translating means (5) translates, when the translation of the extracted first portion fails, the complete original text including said first portion and when the translation of the extracted first portion succeeds, translating the second portion of the text, and inserting the translation of the first portion as an inserted comment into the translation of the second portion of the text.

Inventors: AMANO SHIN-YA, AOYAMA CHIAKI, MIIKE SEIJI, NOGAMI HIROYASU, TAKEDA KIMIHITO, AMANO, SHIN-YA, AOYAMA, CHIAKI, MIIKE, SEIJI, NOGAMI, HIROYASU, TAKEDA, KIMIHITO, MIIKE, SEIJI 554 TOSHIBAHIYOSHI-RYO, NOGAMI, HIROYASU B-214 TOSHIBAISOGODAIROKU-RYO
Applicants: TOSHIBA KK, KABUSHIKI KAISHA TOSHIBA
Application year: 1987
Main classification: G06F17
IPC codes: G06F17