Text translation device and translation model
The text translation device improves translation accuracy by dividing input sentences into multiple units and using a trained model to correct errors, addressing inaccuracies in conventional neural machine translation systems.
Patent Information
- Application Number
- JP2020084341
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-05-13
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2040-05-13
AI Technical Summary
Conventional neural machine translation systems struggle with inaccuracies when input sentences contain errors, such as typos, leading to incorrect translations.
A text translation device that divides input sentences into first and second units, using a trained translation model to accurately translate sentences by recognizing and correcting errors in both word and character levels.
The device enhances translation accuracy by understanding and correcting errors at multiple levels, ensuring more precise translations even with input errors.
Smart Images

Figure 0007547077000004 
Figure 0007547077000010 
Figure 0007547077000009
Abstract
Description
[Technical field]
[0001] One aspect of the present disclosure relates to a text translation device and a translation model for translating an input text in a first language into a second language. [Background technology]
[0002] Neural machine translation is known as a machine translation method that uses a neural network of an encoder-decoder model consisting of an encoder and a decoder. In the neural network of the encoder-decoder model, the encoder inputs a sentence in a first language (e.g., Japanese), and the decoder outputs a sentence in a second language (e.g., English) that corresponds to the sentence in the first language as a translation result.
[0003] For example, Patent Document 1 listed below discloses an automatic interpretation device including an encoder and a decoder configured with a neural network. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-5218 A Summary of the Invention [Problem to be solved by the invention]
[0005] For example, when a sentence in a first language containing an error such as a typo is input to a conventional neural machine translation system, there is a problem that an incorrect sentence in a second language that has been translated based on the error is output.
[0006] Therefore, it is desirable to output a more accurately translated sentence. [Means for solving the problem]
[0007] A text translation device according to one aspect of the present disclosure includes a storage unit that stores a translation model, which is a trained model trained based on training data including first training sentences obtained by dividing a training sentence in a first language into first units, second training sentences obtained by dividing the training sentences into second units, and translation sentences obtained by translating the training sentences into a second language, an acquisition unit that acquires an input sentence in the first language, and an output unit that outputs a sentence obtained by applying the input sentences divided into first units and the input sentences divided into second units acquired by the acquisition unit to the translation model stored in the storage unit, the sentences being translated into the second language of the input sentence.
[0008] In this aspect, a sentence obtained by dividing an input sentence into first units and a sentence obtained by dividing a learning sentence into second units are applied to a translation model trained based on a first learning sentence obtained by dividing a learning sentence into first units and a second learning sentence obtained by dividing a learning sentence into second units. In other words, since learning (understanding) and application are performed based on two units, the first unit and the second unit, a more accurately translated sentence can be output compared to learning and application based on a single unit. Effect of the Invention
[0009] According to one aspect of the present disclosure, a more accurately translated sentence can be output. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of a neural network structure of an encoder-decoder model. [Diagram 2] FIG. 1 is a diagram showing an example of translation according to the prior art. [Diagram 3] FIG. 2 is a diagram showing an example of translation by the text translation device according to the embodiment. [Figure 4] FIG. 2 is a diagram illustrating an example of a functional configuration of a text translation device according to an embodiment. [Diagram 5] 3A and 3B are diagrams showing examples of a first learning sentence and a second learning sentence. [Figure 6] 1A and 1B are diagrams showing examples of a first learning sentence and a second learning sentence including an error. [Figure 7] 1 is a diagram showing an example of a first learning sentence and a second learning sentence including an error. FIG. [Figure 8] FIG. 13 is a diagram showing one example (part 1) of the effect of learning. [Figure 9] FIG. 13 is a diagram showing an example (part 2) of the effect of learning. [Figure 10] FIG. 13 is a diagram showing an example (part 3) of the effect of learning. [Figure 11] 4 is a flowchart showing one example of a learning process executed by the text translation device according to the embodiment. [Figure 12] 13 is a flowchart showing an example (part 2) of the learning process executed by the text translation device according to the embodiment. [Figure 13] 10 is a flowchart showing an example of an application process executed by the text translation device according to the embodiment. [Figure 14] FIG. 2 is a diagram illustrating an example of a hardware configuration of a computer used in the text translation device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the drawings. In the description of the drawings, the same elements are given the same reference numerals, and duplicated descriptions will be omitted. In addition, the embodiments of the present disclosure in the following description are specific examples of the present invention, and the present invention is not limited to these embodiments unless otherwise specified to limit the present invention.
[0012] First, an overview of a text translation device 1 (text translation device) according to an embodiment will be described.
[0013] The text translation device 1 is a computer device that, when it acquires (inputs) an input text in a first language, outputs a text in which the input text is translated into a second language. The first language is, for example, Japanese, but may be any other language. The second language is a language different from the first language, for example, English, but may be any other language. The first language and the second language may be the same language. The first language and the second language may be different regional dialects (for example, standard Japanese and Kansai dialect). The language is not limited to a natural language, and may be an artificial language or a formal language (such as a computer program language), etc.
[0014] The sentence translation device 1 translates an input sentence based on a translation model, which is a trained model. The translation model is, for example, a neural network of an encoder-decoder model (also known as an encoder-decoder translation model or a Sequence to Sequence Model). FIG. 1 is a diagram showing an example of the structure of a neural network of an encoder-decoder model. In the example shown in FIG. 1, a Long Short Term Memory (LSTM), which is a recurrent neural network (RNN), is used as the neural network, and an attention mechanism is also used.
[0015] The neural network encoder shown in Figure 1 (upper half of Figure 1) inputs a sentence in the first language and outputs the intermediate layer (hidden state, internal state). More specifically, the encoder divides the sentence in the first language into words (token units, such as "nice" and "That") using morphological analysis, converts the word IDs (input word IDs) corresponding to each word into vectors in the input layer, inputs them sequentially, and sequentially outputs intermediate layer vectors based on the input content up to that point (performs neural network calculations). When the encoder inputs "EOS" (End Of Sentence), which indicates the end of a sentence, it outputs the intermediate layer vector based on the input content up to that point from the encoder to the decoder. Conceptually, it can be said that the encoder performs semantic analysis of the sentence in the first language and extracts semantic expressions.
[0016] The decoder of the neural network shown in FIG. 1 (the lower half of FIG. 1) receives the intermediate layer vector output from the encoder, and outputs the output layer vector corresponding to the first word of the sentence in the second language to be finally output based on the input intermediate layer vector. The output layer vector is, for example, information indicating a list of second language word candidates and the likelihood of the word candidates. Thereafter, for example, the decoder extracts the word candidate with the highest likelihood from the word candidates indicated by the output layer vector of the Nth word (N is an integer equal to or greater than 1), inputs the extracted word to the decoder, and outputs the output layer vector of the (N+1)th word based on the input word and the intermediate layer vector used when outputting the output layer vector of the Nth word. This process is repeated until the last word of the sentence in the second language. The decoder converts the output layer vector into a word ID (output word ID) and outputs it as the corresponding word in the second language (translated word). Conceptually, the decoder can be said to generate a sentence (in a second language different from the first language) from the semantic expression extracted by the encoder.
[0017] The translation model is not limited to an encoder-decoder model neural network, and there are no restrictions on the algorithm as long as it is a network structure such as a transformer that performs input and output on a word-by-word basis (or on the first unit, as described below).
[0018] The difference between translation by the conventional technology and translation by the text translation device 1 will be described with reference to FIG. 2 and FIG.
[0019] Fig. 2 is a diagram showing an example of translation by the conventional technology. As shown in Fig. 2, a sentence in a first language divided into words, "Andy," "," "a," "do," "bai," "i," "shi," "yu," "wo," "morare," "ru," "?", is input to the encoder of the neural network of the encoder-decoder model, and the decoder outputs a sentence in a second language divided into words, "Andy," "," "could," "you," "get," "me," "a," "kick," "?". In this way, if the input sentence contains an error "adobaishu" (correctly "advice") (such as a speech recognition error or character recognition error), it will not be translated accurately and will be erroneously translated as "a," "kick."
[0020] 3 is a diagram showing an example of translation by the sentence translation device 1. As shown in FIG. 3, the encoder of the translation model stores the sentences in the first language "Andy," "," "advance," "o," "morare," "ru," "?"" divided into words, and the symbols " <t>" and the above sentences separated into individual characters (converted into hiragana and broken down into individual characters) ""a", "n", "de", "i", ","", "a", "do", "bai", "i", "shi", "yu", "o", "mo", "ra", "e", "ru", "?"" are combined into the sentence ""Andy", ","", "adobaishu", "o", "morare", "ru", "?"", <t>The sentences "Andy", ",", "could", "you", "give", "me", "some", "advice", "?" are input, and the decoder of the translation model outputs the second language sentences "Andy", ",", "could", "you", "give", "me", "some", "advice", "?" separated by words. In this way, even if the input sentence contains an error (such as a speech recognition error or character recognition error) such as "adobaishu" (the correct word is "advice"), it is translated more accurately.
[0021] Next, the functions of the text translation device 1 will be described in detail.
[0022] Fig. 4 is a diagram showing an example of a functional configuration of the text translation device 1. As shown in Fig. 4, the text translation device 1 includes a learning unit 10, a storage unit 11 (storage unit), an acquisition unit 12 (acquisition unit), and an output unit 13 (output unit).
[0023] Each functional block of the text translation device 1 is assumed to function within the text translation device 1, but is not limited to this. For example, some of the functional blocks of the text translation device 1 may function in a computer device different from the text translation device 1 and connected to the text translation device 1 through a network, while appropriately transmitting and receiving information with the text translation device 1. Also, some of the functional blocks of the text translation device 1 may be omitted, multiple functional blocks may be integrated into one functional block, or one functional block may be divided into multiple functional blocks.
[0024] Hereinafter, each function of the text translation device 1 shown in FIG. 4 will be described.
[0025] The learning unit 10 acquires learning data including first learning sentences obtained by dividing learning sentences, which are sentences in a first language, into first units, second learning sentences obtained by dividing the learning sentences into second units, and translated sentences obtained by translating the learning sentences into a second language, and learns (e.g., machine learning) based on the acquired learning data to generate a translation model that is a trained model of the learning result. The learning unit 10 causes the storage unit 11 to store the generated translation model.
[0026] The first unit may be a word unit (token unit). The second unit may be a character unit. Furthermore, the first unit may be a character unit, and the second unit may be a word unit. The first unit and the second unit may be any unit other than a word unit or a character unit. The first unit and the second unit may be the same unit or different units.
[0027] The translation sentence may be a sentence divided into a first unit, a sentence divided into a second unit, or a sentence divided into any other unit.
[0028] For example, if the learning sentence is "This place is very nice," with the first unit being the word unit and the second unit being the character unit, the first learning sentence is "(This place), (wa), (very), (nice), (des), (su), (ne), (.") (divided into first units by brackets and commas), the second learning sentence is "(ko), (ko), (wa), (to), (te), (mo), (su), (te), (ki), (des), (su), (ne), (.")" (divided into second units by brackets and commas), and the translated sentence (one example) is "(That), (park), (is), (nice), (,"), (is), (n't), (it), (?")" (divided into first units by brackets and commas).
[0029] A trained model is a combination of a computer program and parameters. A trained model is also a combination of a neural network structure and parameters (weighting coefficients) that are the strength of connections between neurons in the neural network. A trained model is also a set of instructions for a computer that are combined to obtain a result (to execute a specific process), that is, a computer program that causes a computer to function.
[0030] The translation model may be a trained model trained based on training data including a combination of a first training sentence and a second training sentence, and a translation sentence. The combination may be a sentence in which the first training sentence and the second training sentence are combined with a symbol (tag, tag element) for distinguishing the first training sentence from the second training sentence. The symbol may be, for example, the above-mentioned " <t>" The combined sentences are, for example, "Here," "is," "Very," "Nice," "De," "Su," "Ne," ".", " <t>"," "ko," "ko," "ha," "to," "te," "mo," "su," "te," "ki," "de," "su," "ne," and ".".
[0031] The translation model is a trained model for causing a computer to function so as to output a sentence obtained by translating an input sentence into a second language based on a first input sentence obtained by dividing an input sentence in a first language into first units and a second input sentence obtained by dividing the input sentence into second units. The translation model is composed of a neural network in which weighting coefficients have been trained using training data including sentences obtained by dividing a training sentence in the first language into first units, sentences obtained by dividing the training sentence into second units, and sentences obtained by translating the training sentence into the second language. The translation model performs a calculation based on the trained weighting coefficients on the first input sentences and second input sentences input to the neural network, and outputs a sentence obtained by translating the input sentence into the second language.
[0032] A part of the learning data may include first learning sentences containing errors or second learning sentences containing errors. That is, a part of the learning data may include only first learning sentences containing errors, only second learning sentences containing errors, or both first learning sentences containing errors and second learning sentences containing errors. For example, 90% of the learning data used by the learning unit 10 when learning may include first learning sentences without errors and second learning sentences without errors, 10% may include first learning sentences without errors and second learning sentences without errors, and the remaining 10% may include first learning sentences without errors and second learning sentences without errors.
[0033] A first learning sentence containing an error means, for example, that a first unit of the first learning sentence contains an error (typo).Similarly, a second learning sentence containing an error means, for example, that a second unit of the second learning sentence contains an error (typo).
[0034] Below, examples of the first learning sentence and the second learning sentence will be described with reference to FIGS.
[0035] Fig. 5 is a diagram showing an example of the first learning sentence and the second learning sentence. As shown in Fig. 5, the first learning sentence is "Here, is ...
[0036] Fig. 6 is a diagram showing an example of a first learning sentence and a second learning sentence containing an error. As shown in Fig. 6, the first learning sentence is "Koko", "wa", "to", "suteki", "sukiyaki", "se", "su", "ne", "."" which contains the error "se", and the second learning sentence is "ko", "ko", "ha", "to", "te", "mo", "su", "te", "ki", "de", "su", "ne", "."" which is error-free.
[0037] Fig. 7 is a diagram showing an example of a first learning sentence and a second learning sentence containing an error. As shown in Fig. 7, the first learning sentence is "Koko, ha, toto, sukiyaki, desu, su, ne, ." without any errors, and the second learning sentence is "ko, ko, ha, to, te, mo, su, te, ki, se, su, ne, ." with an erroneous "se".
[0038] The storage unit 11 stores a translation model. For example, the storage unit 11 stores a translation model generated by the learning unit 10. The storage unit 11 may store a translation model generated in advance by another computer device or the like.
[0039] The storage unit 11 may also store any information used in calculations in the text translation device 1 and the results of calculations in the text translation device 1. The information stored by the storage unit 11 may be referred to by each function of the text translation device 1 as appropriate.
[0040] The acquisition unit 12 acquires an input sentence in the first language. The acquisition unit 12 may acquire the input sentence from another computer device connected to the network, may acquire an input sentence stored in advance by the storage unit 11, or may acquire an input sentence input by a user of the sentence translation device 1 via an input device 1005 described later. The acquisition unit 12 outputs the acquired input sentence to the output unit 13.
[0041] The input sentence may include errors. More specifically, the input sentence may include errors in speech recognition or character recognition.
[0042] The output unit 13 outputs a sentence obtained by applying the input sentence obtained by dividing the input sentence acquired (inputted) by the acquisition unit 12 into first units and the input sentence obtained by dividing the input sentence into second units to the translation model stored in the storage unit 11, resulting in the input sentence being translated into a second language. The output unit 13 may transmit the translated sentence to, for example, another computer device connected via a network, may store the translated sentence in the storage unit 11, or may output (display, output as voice) to a user of the text translation device 1 via the output device 1006 described below.
[0043] Hereinafter, with reference to FIGS. 8 to 10, an example of the effect of learning in application to a translation model by the output unit 13 will be described.
[0044] 8 is a diagram showing an example (part 1) of the effect of learning. As shown in FIG. 8, the output unit 13 outputs to the encoder of the translation model the sentence "That park is wonderful, se su ne.", which is obtained by dividing the input sentence "That park is wonderful, se su ne.", which includes the erroneous "se", into words ""Ano", "Park", "Wa", "Suteki", "Se", "Su", "Ne", "."" and the symbol " <t>" and the sentences "a", "no", "ko", "u", "e", "n", "ha", "su", "te", "ki", "se", "su", "ne", "."" that are obtained by dividing the input sentence into character units are combined into the sentence ""Ano", "Koen", "Ha", "Suteki", "Se", "Su", "Ne", "."", <t>",", "no,", "ko,", "u,", "e,", "n,", "ha,", "su,", "te,", "ki,", "se,", "su,", "ne,", and "." are input, and the decoder of the translation model outputs sentences in the second language divided into words, "That,", "park,", "is,", "nice,", "is,", "n't,", "it,", and "?". For example, if the translation model is applied to a translation model trained mainly based on training data including the first training sentence and the second training sentence as shown in FIG. 5, it can correctly understand that "se" in the sentences ""that," "park," "ha," "suteki," "se," "su," "ne,", and "." obtained by dividing the input sentence into words in the example shown in FIG. 8 is incorrect for "de," and that "se" in the sentences ""a," "no," "ko," "u," "e,", "n,", "ha,", "su,", "te,", "ki,", "se," "su," "ne,", and "." obtained by dividing the input sentence into characters is incorrect for "de.". This allows the output unit 13 to translate more accurately even if the input sentence contains an error.
[0045] FIG. 9 is a diagram showing an example (part 2) of the effect of learning. The input to the encoder of the translation model and the output from the decoder of the translation model are the same as those in FIG. 8. For example, if applied to a translation model trained mainly on the basis of training data including the first training sentence and the second training sentence containing errors as shown in FIG. 6, it can correctly understand that "se" is an error for "de" in the sentence ""That", "Park", "Ha", "Suteki", "Se", "Su", "Ne", "."" obtained by dividing the input sentence into word units in the example shown in FIG. 9. As a result, the output unit 13 can translate more accurately even if the input sentence contains an error.
[0046] FIG. 10 is a diagram showing an example (part 3) of the effect of learning. The input to the encoder of the translation model and the output from the decoder of the translation model are the same as those in FIG. 8. For example, if the translation model is applied to a translation model trained mainly on the basis of training data including a first training sentence and a second training sentence containing an error as shown in FIG. 7, it can correctly understand that "se" is an error for "de" in the sentences ""a", "no", "ko", "u", "e", "n", "ha", "su", "te", "ki", "se", "su", "ne", "."" obtained by dividing the input sentence into character units in the example shown in FIG. 10. As a result, the output unit 13 can translate more accurately even if the input sentence contains an error.
[0047] Next, two examples of the learning process executed by the text translation device 1 will be described with reference to FIGS.
[0048] FIG. 11 is a flowchart showing one example (part 1) of the learning process executed by the text translation device 1. First, the learning unit 10 acquires an original text A and a bilingual text B containing errors (step S1). The errors may be artificially added by a predetermined program. Next, the learning unit 10 executes the following steps (a) to (c) (step S2). The learning unit 10 may execute steps (a) to (c) in any order. The conversion to hiragana in step (b) may utilize furigana output by an existing morphological analyzer such as Mecab. (a) A sentence Au is created by dividing the original sentence A into words (word segments), and sentence Auf is created by correcting the errors in sentence Au. (b) Sentence C is created by converting original sentence A into hiragana, sentence Cu is created by dividing sentence C into character units, and sentence Cuf is created by correcting errors in sentence Cu. (c) A sentence Bu is created by dividing the bilingual sentence B into words.
[0049] Next, the learning unit 10 executes the following steps (d) and (e) (step S3). Note that the learning unit 10 may execute steps (d) and (e) in any order. (d) Training data is created that includes sentences Auf and Cu combined with a tag, and sentence Bu. (e) Training data is created that includes sentences Au and Cuf joined with a tag, and sentence Bu.
[0050] Next, the learning unit 10 learns (by using a neural network) using the created learning data, and the learned translation model is stored by the storage unit 11 (step S4). In addition to the data prepared above, data that includes errors and data that does not include errors are also learned during the learning process, thereby maintaining versatility.
[0051] 12 is a flowchart showing one example (part 2) of the learning process executed by the text translation device 1. First, the learning unit 10 acquires an original text D and a bilingual text E (step S10). Next, the learning unit 10 executes the following steps (f) to (h) (step S11). Note that the learning unit 10 may execute steps (f) to (h) in any order. (f) A sentence Du is created by dividing the original sentence D into words, and an error is added to sentence Du to create sentence Due. (g) Sentence F is created by converting original sentence D into hiragana, sentence Fu is created by dividing sentence F into character units, and sentence Fue is created by adding errors to sentence Fu. (h) A sentence Eu is created by dividing the bilingual sentence E into words.
[0052] Next, the learning unit 10 executes the following steps (i) to (k) (step S12). Note that the learning unit 10 may execute steps (i) to (k) in any order. (i) Training data is created that includes sentences Du and Fue combined with a tag, and sentence Eu. (j) Training data is created that includes sentences Due and Fu linked together with a tag, and sentence Eu. (k) Training data is created that includes sentences Du and Fu linked together with a tag, and sentence Eu.
[0053] Next, the learning unit 10 learns using the created learning data, and the learned translation model is stored in the storage unit 11 (step S13).
[0054] Next, an example of the application process executed by the text translation device 1 will be described with reference to Fig. 13. Fig. 13 is a flowchart showing an example of the application process executed by the text translation device 1. First, the acquisition unit 12 acquires an input text in a first language (step S20). Next, the output unit 13 applies a text obtained by dividing the input text into first units and a text obtained by dividing the input text into second units to a translation model (step S21). Next, the output unit 13 outputs a text obtained by translating the input text into a second language (step S22).
[0055] Next, the effects of the text translation device 1 according to the embodiment will be described.
[0056] The text translation device 1 includes a storage unit 11 that stores a translation model that is a trained model trained based on training data including a first training sentence obtained by dividing a first language training sentence into a first unit, a second training sentence obtained by dividing the training sentence into a second unit, and a translation sentence obtained by translating the training sentence into a second language, an acquisition unit 12 that acquires an input text in the first language, and an output unit 13 that outputs a text obtained by applying the input text divided into the first unit and the input text divided into the second unit acquired by the acquisition unit 12 to the translation model stored in the storage unit 11. With this configuration, the text obtained by dividing the input text into the first unit and the text obtained by dividing the input text into the second unit are applied to the translation model trained based on the first training text obtained by dividing the training text into the first unit and the second training text obtained by dividing the training text into the second unit. In other words, since learning (understanding) and application are performed based on two units, the first unit and the second unit, a more accurately translated text can be output compared to learning and application based on one unit.
[0057] Furthermore, the first unit may be a word unit according to the sentence translation device 1. With this configuration, when an error is included in a word, for example, "advance" and "advance" are recognized as completely different words, which improves semantic understanding.
[0058] Furthermore, the second unit may be a character unit according to the sentence translation device 1. With this configuration, even if an error is included in a character, for example, "advance" and "advance" are recognized as similar words, which improves speech understanding.
[0059] Furthermore, the translation sentence may be a sentence divided into first units according to the sentence translation device 1. With this configuration, the sentence translation device 1 can be easily implemented using a neural network structure that performs input and output in first units.
[0060] Furthermore, according to the text translation device 1, a part of the training data may include a first training sentence containing an error or a second training sentence containing an error. With this configuration, the translation model trained based on the training data can perform translation while identifying (understanding) errors.
[0061] Furthermore, according to the text translation device 1, the translation model may be a trained model trained based on training data including a combination of the first training sentence and the second training sentence, and a translation sentence. With this configuration, the text translation device 1 can be easily implemented using an existing neural network structure.
[0062] Furthermore, according to the text translation device 1, a combination (of a first learning sentence and a second learning sentence) may be a sentence in which the first learning sentence and the second learning sentence are joined by a symbol for distinguishing the first learning sentence from the second learning sentence. This configuration makes it possible to easily generate learning data.
[0063] Furthermore, the input sentence may contain errors, and the sentence translation device 1 can output a more accurate translation of an input sentence that contains errors.
[0064] Furthermore, the input sentence may contain errors in voice recognition or character recognition, according to the sentence translation device 1. With this configuration, it is possible to output a more accurately translated sentence for an input sentence that contains errors in voice recognition or character recognition.
[0065] According to the text translation device 1, the translation model is a trained model for causing a computer to function so as to output a sentence obtained by translating an input text in a second language based on a first input text obtained by dividing an input text in a first language into first units and a second input text obtained by dividing the input text into second units, and is configured by a neural network in which weighting coefficients are trained using training data including a first language training text divided into first units, a training text divided into second units, and a training text translated into a second language, and the neural network performs a calculation based on the trained weighting coefficients on the first input text and the second input text input to the neural network, and outputs a sentence obtained by translating the input text into the second language. With this configuration, learning (understanding) is performed based on two units, the first unit and the second unit, and therefore a more accurately translated sentence can be output compared to learning based on a single unit.
[0066] Here, the problems of the conventional technology will be described. Conventionally, it has been possible to realize speech translation by combining speech recognition technology and translation technology. However, in a real environment, speech recognition may be inaccurate due to environmental sounds and poor pronunciation, and translation may not be successful. For example, if a user utters "The date will be 3-5 days until shipment" and the speech recognition result is "The date will be 3-5 days until shipment" (a speech recognition error occurred in which "shipment" was replaced by "shipment"), the conventional technology would translate this as "The date will be 3-5 days."
[0067] In order to solve the above problem, the text translation device 1 according to the present embodiment generates and applies a translation model that is resistant to speech recognition errors or character recognition errors, so that in the above case, the text is correctly translated as "It will take 3 to 5 days for delivery." The text translation device 1 relates to a technology for improving the translation accuracy of data with speech recognition errors or character recognition errors. The text translation device 1 also relates to a technology that uses a neural network of an encoder-decoder model, and that realizes a translation that is resistant to speech recognition errors or character recognition errors by inputting an input text obtained by dividing a sentence containing a speech recognition error or character recognition error into words and an input text obtained by converting the sentence into hiragana and breaking it down into individual characters, and combining these input texts with tag elements.
[0068] According to the text translation device 1, by combining word segmentation and character segmented sentences, it is possible to realize a translation technique that understands speech recognition errors or character recognition errors while also achieving high translation accuracy. When dealing with speech errors in an input sentence on a word-by-word basis, the words are recognized as completely different words, and the ability to distinguish meanings is high, making it strong at understanding meaning. Also, when dealing with speech errors in an input sentence on a character-by-character basis, the words are recognized as similar words, and the ability to distinguish meanings is low, making it strong at understanding speech. As described above, the text translation device 1 can realize a technique that is strong against speech recognition errors or character recognition errors and also achieves high translation accuracy.
[0069] According to the sentence translation device 1, by learning using learning data including erroneous word-based sentences and error-free character-based sentences, and / or learning data including error-free word-based sentences and error-free character-based sentences, it becomes possible to identify errors during translation.
[0070] According to the text translation device 1, the flow of use is "preparation of learning data", "learning", and "translation" in that order. In addition to original texts containing errors, pairs of original texts and translations that do not contain errors are also learned during learning. Hiragana characters divided into character units are used not only for learning but also during translation.
[0071] In the embodiment, an example is shown in which two units, the first unit and the second unit, are used, but the number of units is not limited to two. For example, learning and application may be performed using two or more (multiple) units, such as three units, the first unit, the second unit, and the third unit.
[0072] The block diagrams used to explain the above embodiments show functional blocks. These functional blocks (components) are realized by any combination of at least one of hardware and software. The method of realizing each functional block is not particularly limited. That is, each functional block may be realized by using one device that is physically or logically combined, or may be realized by using two or more devices that are physically or logically separated and directly or indirectly connected (for example, by wire, wirelessly, etc.). The functional blocks may be realized by combining the one device or the multiple devices with software.
[0073] Functions include, but are not limited to, judgment, determination, judgment, calculation, computation, processing, derivation, investigation, search, confirmation, reception, transmission, output, access, resolution, selection, selection, establishment, comparison, assumption, expectation, consideration, broadcasting, notifying, communicating, forwarding, configuring, reconfiguring, allocation, mapping, assignment, etc. For example, a functional block (component) that performs the function of transmission is called a transmitting unit or a transmitter. In either case, as described above, there is no particular limitation on the method of realization.
[0074] For example, the text translation device 1 according to an embodiment of the present disclosure may function as a computer that performs the learning and application processes of the present disclosure. Fig. 14 is a diagram showing an example of a hardware configuration of the text translation device 1 according to an embodiment of the present disclosure. The text translation device 1 described above may be physically configured as a computer device including a processor 1001, a memory 1002, a storage 1003, a communication device 1004, an input device 1005, an output device 1006, a bus 1007, and the like.
[0075] In the following description, the term "apparatus" may be interpreted as a circuit, a device, a unit, etc. The hardware configuration of the text translation apparatus 1 may be configured to include one or more of the devices shown in the figures, or may be configured to exclude some of the devices.
[0076] Each function in the text translation device 1 is realized by loading a specific software (program) onto hardware such as a processor 1001 and a memory 1002, causing the processor 1001 to perform calculations, control communications via a communication device 1004, and control at least one of the reading and writing of data in the memory 1002 and the storage 1003.
[0077] The processor 1001 controls the entire computer by running an operating system, for example. The processor 1001 may be configured with a central processing unit (CPU) including an interface with peripheral devices, a control device, an arithmetic unit, a register, etc. For example, the learning unit 10, the acquisition unit 12, and the output unit 13 described above may be realized by the processor 1001.
[0078] Moreover, the processor 1001 reads out a program (program code), a software module, data, etc. from at least one of the storage 1003 and the communication device 1004 into the memory 1002, and executes various processes according to the read out programs. As the program, a program that causes a computer to execute at least a part of the operations described in the above-mentioned embodiment is used. For example, the learning unit 10, the storage unit 11, the acquisition unit 12, and the output unit 13 may be realized by a control program stored in the memory 1002 and operating in the processor 1001, and other functional blocks may be realized in a similar manner. Although the above-mentioned various processes have been described as being executed by one processor 1001, they may be executed simultaneously or sequentially by two or more processors 1001. The processor 1001 may be implemented by one or more chips. The program may be transmitted from a network via a telecommunication line.
[0079] The memory 1002 is a computer-readable recording medium, and may be configured by at least one of, for example, a Read Only Memory (ROM), an Erasable Programmable ROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), a Random Access Memory (RAM), etc. The memory 1002 may be called a register, a cache, a main memory (primary storage device), etc. The memory 1002 can store a program (program code), software modules, etc. that are executable to implement a wireless communication method according to an embodiment of the present disclosure.
[0080] Storage 1003 is a computer-readable recording medium, and may be composed of at least one of, for example, an optical disk such as a CD-ROM (Compact Disc ROM), a hard disk drive, a flexible disk, a magneto-optical disk (e.g., a compact disk, a digital versatile disk, a Blu-ray (registered trademark) disk), a smart card, a flash memory (e.g., a card, a stick, a key drive), a floppy (registered trademark) disk, a magnetic strip, and the like. Storage 1003 may be referred to as an auxiliary storage device. The above-mentioned storage medium may be, for example, a database, a server, or other suitable medium including at least one of memory 1002 and storage 1003.
[0081] The communication device 1004 is hardware (transmission / reception device) for performing communication between computers via at least one of a wired network and a wireless network, and is also called, for example, a network device, a network controller, a network card, a communication module, etc. The communication device 1004 may be configured to include a high-frequency switch, a duplexer, a filter, a frequency synthesizer, etc., in order to realize at least one of Frequency Division Duplex (FDD) and Time Division Duplex (TDD). For example, the learning unit 10, the acquisition unit 12, the output unit 13, etc. described above may be realized by the communication device 1004.
[0082] The input device 1005 is an input device (e.g., a keyboard, a mouse, a microphone, a switch, a button, a sensor, etc.) that accepts input from the outside. The output device 1006 is an output device (e.g., a display, a speaker, an LED lamp, etc.) that performs output to the outside. The input device 1005 and the output device 1006 may be integrated into one device (e.g., a touch panel).
[0083] In addition, each device such as the processor 1001 and the memory 1002 is connected by a bus 1007 for communicating information. The bus 1007 may be configured using a single bus, or may be configured using different buses between each device.
[0084] Furthermore, the text translation device 1 may be configured to include hardware such as a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD), a field programmable gate array (FPGA), etc., and some or all of the functional blocks may be realized by the hardware. For example, the processor 1001 may be implemented using at least one of these pieces of hardware.
[0085] Notification of information is not limited to the aspects / embodiments described in this disclosure and may be performed using other methods.
[0086] The order of the steps, sequences, flow charts, etc. of each aspect / embodiment described in this disclosure may be changed unless inconsistent. For example, the methods described in this disclosure present elements of various steps using an example order, and are not limited to the particular order presented.
[0087] Information, etc. may be output from a higher layer (or a lower layer) to a lower layer (or a higher layer). Information may be input / output via multiple network nodes.
[0088] The input and output information may be stored in a specific location (e.g., memory) or may be managed using a management table. The input and output information may be overwritten, updated, or added to. The output information may be deleted. The input information may be transmitted to another device.
[0089] The determination may be based on a value represented by a single bit (0 or 1), a Boolean value (true or false), or a numerical comparison (e.g., comparison with a predetermined value).
[0090] Each aspect / embodiment described in this disclosure may be used alone, in combination, or switched according to execution. In addition, notification of specific information (e.g., notification that "X is the case") is not limited to being done explicitly, but may be done implicitly (e.g., not notifying the specific information).
[0091] Although the present disclosure has been described in detail above, it is clear to those skilled in the art that the present disclosure is not limited to the embodiments described in the present disclosure. The present disclosure can be implemented in modified and altered forms without departing from the spirit and scope of the present disclosure as defined by the claims. Therefore, the description of the present disclosure is intended to be illustrative and does not have any limiting meaning on the present disclosure.
[0092] Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, executable files, threads of execution, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.
[0093] Additionally, software, instructions, information, etc. may be transmitted or received over a transmission medium. For example, if the software is transmitted from a website, server, or other remote source using wired and / or wireless technologies (such as coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL)), and / or wireless technologies (such as infrared, microwave, etc.), then these wired and / or wireless technologies are included within the definition of transmission media.
[0094] The information, signals, etc. described in this disclosure may be represented using any of a variety of different technologies. For example, the data, instructions, commands, information, signals, bits, symbols, chips, etc. that may be referred to throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or magnetic particles, optical fields or photons, or any combination thereof.
[0095] In addition, terms explained in this disclosure and terms necessary for understanding this disclosure may be replaced with terms having the same or similar meanings.
[0096] As used in this disclosure, the terms "system" and "network" are used interchangeably.
[0097] In addition, the information, parameters, etc. described in the present disclosure may be represented using absolute values, may be represented using relative values from a predetermined value, or may be represented using other corresponding information. For example, a radio resource may be indicated by an index.
[0098] The names used for the above parameters are not limiting in any way, and furthermore, the formulas etc. using these parameters may differ from those explicitly disclosed in this disclosure.
[0099] As used in this disclosure, the terms "determining" and "determining" may encompass a wide variety of actions. "Determining" and "determining" may include, for example, judging, calculating, computing, processing, deriving, investigating, looking up, search, inquiry (e.g., searching in a table, database, or other data structure), ascertaining, and the like. "Determining" and "determining" may also include receiving (e.g., receiving information), transmitting (e.g., sending information), input, output, accessing (e.g., accessing data in a memory), and the like. In addition, "judgment" and "decision" can include considering resolving, selecting, choosing, establishing, comparing, etc., to be a "judgment" or "decision." In other words, "judgment" and "decision" can include considering some action to be a "judgment" or "decision." In addition, "judgment" can be interpreted as "assuming," "expecting," "considering," etc.
[0100] The terms "connected," "coupled," or any variation thereof, refer to any direct or indirect connection or coupling between two or more elements, and may include the presence of one or more intermediate elements between two elements that are "connected" or "coupled" to each other. The coupling or connection between elements may be physical, logical, or a combination thereof. For example, "connected" may be read as "access." As used in this disclosure, two elements may be considered to be "connected" or "coupled" to each other using at least one of one or more wires, cables, and printed electrical connections, as well as electromagnetic energy having wavelengths in the radio frequency range, microwave range, and optical (both visible and invisible) range, as some non-limiting and non-exhaustive examples.
[0101] As used in this disclosure, the phrase "based on" does not mean "based only on," unless expressly stated otherwise. In other words, the phrase "based on" means both "based only on" and "based at least on."
[0102] Any reference to an element using a designation such as "first," "second," etc., as used in this disclosure does not generally limit the quantity or order of those elements. These designations may be used in this disclosure as a convenient method of distinguishing between two or more elements. Thus, a reference to a first and a second element does not imply that only two elements may be employed or that the first element must precede the second element in some way.
[0103] The "means" in the configuration of each of the above devices may be replaced with "part," "circuit," "device," etc.
[0104] When the terms "include," "including," and variations thereof are used in this disclosure, these terms are intended to be inclusive, similar to the term "comprising." Further, when used in this disclosure, the term "or" is not intended to be an exclusive or.
[0105] In this disclosure, where articles have been added due to translation, such as, for example, a, an, and the in English, the disclosure may include that the nouns following these articles are in the plural form.
[0106] In the present disclosure, the term "A and B are different" may mean "A and B are different from each other." The term may also mean "A and B are each different from C." Terms such as "separate" and "coupled" may also be interpreted in the same way as "different." [Explanation of symbols]
[0107] 1...text translation device, 10...learning unit, 11...storage unit, 12...acquisition unit, 13...output unit.< / t> < / t> < / t> < / t> < / t> < / t>
Claims
1. a storage unit for storing a translation model, which is a trained model trained based on training data including a combination of first training sentences obtained by dividing a training sentence in a first language into first units and second training sentences obtained by dividing the training sentence into second units, and translation sentences obtained by translating the training sentences into a second language; an acquisition unit for acquiring an input sentence in a first language; an output unit that outputs a sentence obtained by applying a combination of a sentence obtained by dividing the input sentence into first units and a sentence obtained by dividing the input sentence into second units, the combination being obtained by applying the translation model stored in the storage unit, the output unit outputting a sentence obtained by translating the input sentence into a second language; A text translation device comprising:
2. The first unit is the word unit.
2. A text translation device according to claim 1.
3. The second unit is the character unit.
3. A text translation device according to claim 1 or 2.
4. The translation sentence is a sentence divided into first units. The text translation device according to any one of claims 1 to 3.
5. The part of the training data includes the first training sentence including an error or the second training sentence including an error. The text translation device according to any one of claims 1 to 4.
6. The combination of the first learning sentence and the second learning sentence is a sentence in which the first learning sentence and the second learning sentence are combined with a symbol for distinguishing the first learning sentence from the second learning sentence. A text translation device according to any one of claims 1 to 5.
7. the input sentence includes an error; The text translation device according to any one of claims 1 to 6.
8. The input sentence includes errors in speech recognition or character recognition.
8. A text translation device according to claim 7.
9. A translation model that is a trained model for causing a computer to function so as to output a sentence in a second language in which an input sentence in a first language is translated based on a combination of a first input sentence obtained by dividing the input sentence in a first language into first units and a second input sentence obtained by dividing the input sentence into second units, The neural network is configured such that weighting coefficients are learned using training data including combinations of training sentences in a first language divided into first units and training sentences divided into second units, and training sentences translated into a second language, and the neural network performs a calculation based on the learned weighting coefficients on combinations of the first input sentences and the second input sentences input to the neural network, and outputs sentences translated into the second language of the input sentences. Translation model.
Citation Information
Patent Citations
Method for constructing Mongolian-Chinese parallel corpora by utilizing generative adversarial network to improve Mongolian-Chinese translation quality
CN110598221A
Depthwise separable convolution-based Chinese-Vietnamese neural machine translation method
CN111144142A
Generating vector representations of documents
JP2017509963A
Automatic interpretation method and apparatus
JP2018005218A
