System for text translation

Abstract: The invention concerns a text translation system, wherein the memory of a computer system stores the word type, the semantic type, a juncture code, a position code, a transfer code, as well as the associated translation into the target language for each word of the source language. By means of the juncture code and the position code, the compounds of the source language are decomposed into the words of which they consist. For these words the associated translations into the target language are read from the memory. The translations are then compounded following standard translation rules. For this purpose, translation peculiarities of compounds are taken into account by the transfer code. The invention eliminates storing compounds in the memory of the computer system. Instead, only the individual words of which the compounds consist are stored. This greatly reduces the memory space required for storing all the words of a source language and simultaneously increases the processing speed of the text translation system.

Description: The invention concerns a computer system for text translation, comprising memory means in which words and their associated translations are stored. The invention also concerns a method of text translation with the help of a computer system. Text translation systems are known wherein a computer system proposes translations of single text words to a translator. In such equipment, the stored translations of the various text words are read by the computer system from the memory means and displayed, for example, on a screen to the translator. The translator may use the proposed translations but is still forced to combine them in the form of a translated text. Thus, the text translation system is a translator tool for the preparation of translations. Text translation systems are also being marketed or under development which are aimed at fully automatic translation. In such text translation systems, the computer itself, following predetermined translation rules, also combines the translations read from memory to generate a translated text. In both cases, it is essential to store the entire vocabulary of the source language along with the associated translations of the target language in the memory means. Such computer systems and such methods for text translation are known from EP-A-398 513 or EP-A-281 742. In particular, EP-A-398 513 describes a computer system for translating a sentence including a compound word formed by a hyphenation. With the help of the hyphenation, the computer system is able to segment the compound word into its constituents. Any further methods or features are not needed for segmenting the compound word as the hyphenation is already in the text and is directly used for the segmentation. Where German is the source language of the text translation system, there is, regardless of the target language, the problem of entering the entire range of German unhyphenated compounds, i. e. any compound words of the German language, into the memory means. This necessitates storing not only the words "Tier", "Schutz", "Verein" but also compounds such as "Tierschutz", "Tierschutzverein", "Vereinskasse", "Schutzhuelle", etc. Consequently, only large computer systems with extensive memory means could be used as text translation systems, which in turn would lead to relatively slow processing speeds of the text translation system, as the entire memory means would have to be searched for each word to be translated. Finally, such a text translation system would be liable to errors, as the German language frequently produces new compounds which would then have to be stored in the memory means. It is the object of the present invention to provide a text translation system which allows a fully automatic and correct translation of German unhyphenated compounds also on small computer systems. In a computer system of the previously described kind this object is accomplished by additionally storing segmentation and translation aids for unhyphenated compound constituents. For a method of text translation of the previously mentioned kind the invention provides for unhyphenated compounds to be decomposed into words by means of stored segmentation aids and for translations associated with such words to be generated on the basis of stored translation aids. The segmentation aids allow the text translation system to decompose compounds into their constituents, i.e. single words. These words are addressable in the memory means and the associated translations may then be read out. It is no longer necessary to store the compound in its entirety but it is sufficient to file the compound constituents, i.e. the individual words, and their translations in the memory means. For the previously mentioned example it is thus sufficient to store the words "Tier", "Schutz", "Verein", etc. but not the compounds "Tierschutzverein", etc. This reduces the memory space required considerably. As a result, such text translation systems may also be run on small computers. In addition, the processing speed of the text translation system is increased. The stored translation aids ensure that compounds are correctly translated. This is particularly important whenever the translation of a compound differs from standard translation rules. It has been found, for example, that when translating from German into English, a German compound made up of two nouns also appears as two nouns in English in most cases. This is in compliance with standard translation rules. If the translation of a compound differs from those rules, meaning, for instance, if a German compound consisting of two nouns appears in English as an adjective and a noun, this deviation from the standard rules is stored as a translation aid for the corresponding word of the German compound to be taken into account for correct translation. One embodiment of the invention provides for the translation aid to take the form of a transfer code to indicate that a word is translated in a special way in conjunction with compounds. This transfer code may denote, for example, another word type or construction to be considered for translation. According to another example, the transfer code may serve to indicate different translations of a word depending upon the other words contained in the compound. Further embodiments of the invention provide for segmentation aids in the form of a connecting or juncture code and a position code; a further translation aid may be a table in which the composition of compound words is associated with that of the words of the translated compounds. Still further advantageous embodiments of the invention are described below by way of an example illustrated in the accompanying drawings, in which Fig. 1 shows an excerpt from a memory of a computer system, in which a word is stored along with the associated word and the semantic type, as well as the associated juncture, position and transfer codes, and the associated translation; Fig. 2 shows a table defining the different juncture codes of Fig. 1; Fig. 3 shows a table defining the different position codes of Fig. 1; Fig. 4 shows another excerpt from the memory of the computer system of Fig. 1, listing different examples of words, word types, junction codes, position codes, transfer codes, and translations, and Fig. 5 shows a table in which the compositions of compounds in the German and the English language are compared with each other. Fig. 1 shows an excerpt from a memory of a computer system for text translation. Depicted is one line of the memory which is subdivided into seven columns. The first column serves to accommodate a word 100. This is followed by a column for the word type 101 and the semantic type 102 of the word 100, as well as a juncture code F 103, a position code P 104, and a transfer code T 105. Finally, the line also contains a translation 106 of the word 100. The word 100 is a word of a source language, i.e. the language to be translated from. Translation 106 is a word of a target language, i.e. the language to be translated into. Word 100 of the source language and translation 106 of the target language are associated with each other, meaning they are semantically identical. The actual length of the memory line shown in Fig. 1 depends in particular on the number of letters of the word 100 and the number of letters of the translation 106. In addition, the semantic type 102 and the transfer code 105 may comprise a different number of letters. The word type 101 concerns the word 100. If the word 100 is, for example, a noun, this is stored by means of the word type 101 information "n" (noun) (see Fig. 4). In accordance with this, verbs or adjectives may be denoted by word type 101 information "v" or "a". The semantic type 102 is a general item of information concerning the associated word 100. Examples of this are described below (see Fig. 4). By means of the table of Fig. 2, the different juncture codes F 103 are explained in detail. The table has three columns, the first column containing the juncture code 103, the second column a definition 121 of the juncture code 103, and the third column an example 122 of the juncture code 103. The table of Fig. 2 concerns the German language. The juncture code 103 denotes which letters are taken off or added to the respective word 100 when words 100 are combined to a compound. An "s", for example, is added to the word 100 "Heizung" when this word is used in the compound "Heizungsmonteur". The relevant juncture code 103 is "13", and the associated definition 121 "+s" denotes that an "s" is to be added to the word 100 "Heizung", as already mentioned. In the case of the juncture code 103 "17", the definition 121 "-en +s" indicates that when the word 100 "Weihnachten" is used in a compound, the letters "en" are deleted at the end and the letter "s" is added instead, such as in the compound "Weihnachtskonzert". Twenty-seven such juncture codes 103 are listed in the table of Fig. 2. Additional juncture codes 103 may, of course, be provided. By means of the table of Fig. 3, the position code P 104 is explained in detail below. The table has three columns, the first column containing the position code 104, the second column the definition 131 of the position code 104, and the third column examples 132 of this position code 104. The table of Fig. 3 concerns the German language. The table of Fig. 3 lists a total number of eight position codes 104. Position code 104 indicates the positions at which a word may occur in a compound taking account of the juncture code 103. Thus, for instance, the word "Antritts" which is made up of the word 100 "Antritt" and the letter "s" according to the juncture code 103 "13" may occur on its own, such as in the meaning of "des Antritts", but also at any point in the compound, such as in the compound "Antrittsbesuch" or "des Probeantritts". This example includes, according to the table of Fig. 3, the position code 104 "1". The word "Oster" on the other hand, which is made up of the word 100 "Ostern" from which the letter "n" has been deleted according to the juncture code 103 "18" cannot occur on its own but only in a compound at the beginning or in the middle. This example is associated with the position code 104 "6". If a compound is to be translated by the computer system, the computer system decomposes the compound in a first step into individual words 100. This is done by the computer system such that the compound to be translated, starting from its beginning, is compared in the memory letter by letter with the words 100 stored therein until a matching word 100 has been found. For this purpose, the word type 101 excludes, for instance, pronouns, conjunctions or the like and admits in particular only nouns, adjectives, verbs, and adverbs. This search compares not only the respective portion of the compound with words 100 but also with modified words 100 which are stored in response to the juncture code 103. In the compound "Volksbefragungskampagne", for example, this ensures that the words 100 "Volk", "Befragung" and "Kampagne" are successively found in the memory, with the associated juncture code 103, i.e., an additional "s", being considered for the words 100 "Volk" and "Befragung". At the same time, this first step examines whether the position of the words 100 obtained in the compound to be translated corresponds to the position codes 104 stored for those words. If it does not, there may be an error which may be displayed or in response to which the search may be carried out a second time. If the stored position codes 104 correspond to the actual positions of the words 100 in the compound, these words 100 are used for further translation. In the next step, the computer system reads the translations 106 associated with the words 100 from memory. These translations 106 have to be combined for a correct translation of the source language compound into the target language. For this purpose, translation aids are used which are explained below with reference to Figures 4 and 5. In the excerpt from the memory of the computer system in Fig. 4, German is the source language and English the target language. A number of German words 100 are listed along with the respective word type 101, the semantic type 102 as well as the associated juncture code F 103, the position code P 104, the transfer code T 105, and the English translation 106. For translating, for instance, the German compound "Parlamentsdebatte" into English, the computer system decomposes this compound, as previously explained, into the words 100 "Parlament" and "Debatte", utilizing the word type 101, the juncture code 103 and the position code 104. The respective translations 106, i.e., "parliament" and "debate", are read by the computer system from the memory means. In the absence of a transfer code 105, the computer system would only be capable of translating the compound "Parlamentsdebatte" on the basis of the two associated translations 106. As the correct translation of this compound is however "parliamentary debate", the computer system would supply the faulty translation "parliament debate" in such a case. In the present example, the word 100 "Parlament" is accompanied by the transfer code 105 "adj". This transfer code 105 specifies that whenever the associated word 100 is used in a compound, it must be translated as an adjective. The word 100 "Parlament", provided it is used in a compound, must not be translated as a noun "parliament" but as an adjective "parliamentary". Thus, transfer code 105 specifies how the associated word 100 in a compound is to be translated deviating from standard translation rules. If necessary, this deviating translation may be especially indicated. In the described example, the adjective translation of the word 100 "Parlament" is indicated by "adj:parliamentary" as a further translation 106. It is, of course, possible to replace the direct information "parliamentary" by a code or an address pointing to the word 100 "parlamentarisch" and thus to the translation 106 "parliamentary". In another example, the German compound "Sicherheitsglas" is assumed to be translated into English. As previously described, the computer system decomposes this compound into the words 100 "Sicherheit" and "Glas", taking account of the word type 101, the juncture code 103, and the position code 104. For the word 100 "Sicherheit" there are two English translations 106, namely "safety" and "security". Without the transfer code 105 it would be impossible for the computer system to provide the correct translation of the compound, namely "safety glass". The transfer code 105 "phys/abs" in the present example denotes that the translation of the associated word 100 "Sicherheit" in a compound depends on the semantic type 102 of the respective word or the other words of the compound. If these other words of the compound have a physical connotation, meaning that they consist in particular of matter, then the translation 106 "safety" is used for the word 100 "Sicherheit". If the other words of the compound are however used in an abstract, i.e. intellectual, sense, then the translation 106 "security" is used for the word 100 "Sicherheit" in the compound. In the present example concerning the compound "Sicherheitsglas", the second word 100 "Glas" of the compound consists of matter and thus has physical characteristics within the meaning of transfer code 105. For the word 100 "Glas" this is specified by the semantic type 102 "phys". Therefore, the translation 106 "safety" is used to translate the word 100 "Sicherheit" in that compound. In the memory, this translation 106 is associated with the word 100 "Sicherheit" followed by "phys". The alternative translation of the word 100 "Sicherheit" is also stored as translation 106 but followed by "abs". On the basis of the semantic type 102 "phys" associated with the word 100 "Glas", the computer system in the present example uses the correct translation for the compound "Sicherheitsglas", namely "safety glass". Transfer code 105 thus allows considering translation peculiarities of words 100 in conjunction with compounds. There are various peculiarities which may be stored in the form of the transfer code 105 and in response to which the translation process proceeds in a special way. This may be done in the form of routines which are capable of accessing the translations 106 and selecting, for example, between the different alternatives stored therein. The two previously described transfer codes "adj" and "phys/abs" are only examples of contexts in which other word types or constructions occur, as, for instance, with prepositions or the like, and are not intended to limit the scope of the present invention in any way. Transfer codes 105, whose range of application is arbitrarily extendible, differ from one language to the other. It is also possible to store no transfer code 105 for a word 100 in the memory. This implies that the respective word 100 in the compound is translated to standard rules. Some translation rules are particularly significant and are described below with reference to Fig. 5. Fig. 5 shows the composition of German compounds and the associated English translations. It is assumed that the compounds consist in each case of two words 100, as they generally do. The English translations are arranged in the order in which they are most likely to occur. Counts have shown that compounds consisting of two nouns in German translate into English as two nouns in the majority of cases. It has also been found that compounds consisting of an adjective and a noun in German are identically structured in English in most cases. Finally, it has been found that, deviating from previous similar translation attempts, compounds composed of a verb and a noun in German translate into English compounds with two nouns in the majority of cases. The likelihood of additional compositions occurring is rather limited. If no transfer code 105 is specified for a word 100 of a compound, the computer system tests whether the compound consists of two nouns. If it does, the computer system uses translations 106 which also consist of two nouns. The computer system proceeds analogously according to table 5 if the compound consists of an adjective and a noun or of a verb and a noun. If, on the other hand, as a result of several transfer codes 105, there are differently composed translations 106 for a particular compound, the computer selects that compound which according to Fig. 5 is most likely to occur. The table of Fig. 5 may be stored in the memory of the computer system but it is also possible to use routines to specify the various associations. A table may also be prepared and stored for compositions of more than two words 100. The memory of the computer system stores all the words 100 of the source language along with the associated word type 101, the associated semantic type 102, as well as the respective juncture code 103, the position code 104, the transfer code 105, and the translation 106 into the target language. The memory of the computer system thus contains an electronic lexicon from the source into the target language. With the described text translation system it is not necessary to store compounds of the source language in the memory of the computer system, unless such compounds are lexicalized, as, for instance, the word "Gebaermutter" or the like. Any other compounds are decomposed into the words 100 of which they consist. Decomposition into the words 100 is achieved by means of the juncture code 103 and the position code 104. Translation peculiarities of these words 100 in compounds are considered by means of the transfer code 105. Thus, the memory space required for storing the electronic lexicon is relatively small. Because of its small size, the memory may be searched in a relatively short time. In view of this, the described translation system may also be stored in small computer systems. Finally, the text translation system may be designed and used for any arbitrarily selected source and target languages.

Claims: Computer system for text translation comprising memory means storing words (100) and their associated translations (106); characterized in that for words (100) which are constituents of unhyphenated compounds segmentation and translation aids are additionally stored. Computer system as claimed in claim 1, characterized in that as a segmentation aid a juncture code (103) is provided which indicates modifications of words (100) used in compounds. Computer system as claimed in claim 1 or 2, characterized in that as a segmentation aid a position code (104) is provided which indicates the possible positions of words (100) in compounds. Computer system as claimed in any one of the claims 1 to 3, characterized in that as a translation aid a transfer code (105) is provided which denotes translation peculiarities of the words (100) in compounds. Computer system as claimed in claim 4, characterized in that the transfer code (105) denotes another word type (e.g. an adjective) or another construction (e.g. a preposition) of the translation (106) of the word (100). Computer system as claimed in claim 4 or 5, characterized in that the transfer code (105) denotes different translations (106) of the word (100) depending on other words (100) of the compound. Computer system as claimed in any one of the claims 1 to 6, characterized in that as a translation aid a table (Fig. 5) is provided in which the composition of the words (100) of compounds is associated with the composition of the words of the translated compounds. Computer system as claimed in claim 7, characterized in that a noun-noun-composition of the words (100) is associated with a non-noun composition of the translations (106), that an adjective-noun composition of the words (100) is associated with an adjective-noun composition of the translations (106), and that a verb-noun composition of the words (100) is associated with a noun-noun composition of the translations (106). Method of text translation, using a computer system, wherein unhyphenated compounds are decomposed into words (100) by means of stored segmentation aids and the translations (106) associated with the words (100) are generated, taking account of stored translation aids.

Inventors: RACKOW ULRIKE, SCHWALL ULRIKE, RACKOW, ULRIKE, SCHWALL, ULRIKE
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1992
Main classification: G06F17
IPC codes: G06F17