A method for generating Chinese-Thai pseudo-parallel sentence pairs based on double discriminators
The adversarial training method based on dual discriminators generates high-quality Chinese-Thai pseudo-parallel sentence pairs, which solves the problem of insufficient training corpus of the Chinese-Thai neural network machine translation model, expands the parallel corpus of low-resource languages, and improves the accuracy of the translation model. quality.
Patent Information
- Application Number
- CN202210716701.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-23
AI Technical Summary
Due to insufficient training corpus, the Chinese-Thai neural network machine translation model has unsatisfactory translation results. The lack of sufficient parallel corpus limits the quality of the model.
The Chinese-Thai pseudo-parallel sentence pair generation method based on dual discriminators is used to generate higher-quality pseudo-parallel corpora through adversarial training, and the existing high-resource languages are used as assistance to expand the parallel corpora of low-resource languages. Specific steps include training English-Chinese and English-Thai translation models, using a CNN screening model to filter pseudo-parallel corpus, and generating high-quality Chinese-Thai pseudo-parallel corpus through adversarial training.
Through adversarial training, higher-quality Chinese-Thailand pseudo-parallel sentence pairs are generated, which expands the parallel corpus of low-resource languages and improves the quality of the Chinese-Thailand neural machine translation model.
Smart Images

Figure CN114970571B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of natural language processing, and in particular to a method for generating Chinese-Thai pseudo-parallel sentence pairs based on a double discriminator. Background Art
[0002] Machine translation is one of the tasks in the field of natural language processing. It is widely used and has great research and commercial value. The emergence of neural network machine translation has greatly promoted the development of machine translation. Neural network machine translation relies on a large amount of parallel corpus, but there is not enough parallel corpus for low-resource language pairs. There is a small amount of parallel corpus in Chinese-Thai neural network machine translation. Due to insufficient training corpus, the translation model effect is not ideal. In order to expand the parallel corpus of Chinese-Thai language pairs and improve the quality of Chinese-Thai neural network machine translation model, a method for generating Chinese-Thai pseudo-parallel sentence pairs based on dual discriminators is proposed. Summary of the invention
[0003] The technical problem to be solved by the present invention is the technical problem described above, and a method for generating Chinese-Thai pseudo-parallel corpus is provided to provide the required data support for the subsequent training of a Chinese-Thai neural machine translation model.
[0004] In order to solve the above technical problems, the present invention provides a technical solution: a method for generating Chinese-Thai pseudo-parallel sentence pairs based on a double discriminator. The specific steps of the method for generating Chinese-Thai pseudo-parallel sentence pairs based on a double discriminator are as follows:
[0005] Step 1: Use a small amount of existing parallel corpus to train the English-Chinese translation model and the English-Thai translation model respectively;
[0006] Step 2: Use the pseudo-parallel corpus generated by the translation model and the real parallel corpus to train the CNN screening model;
[0007] Step 3: Use the translation model as the generator and the screening model as the discriminator to perform adversarial training;
[0008] Step 4: Use the translation model obtained through adversarial training to generate higher quality pseudo-parallel corpus.
[0009] As an improvement, the specific steps of Step 1 are:
[0010] Step 1.1: Use Transformer as the translation model;
[0011] Step 1.2: Use the existing parallel corpus to train the English-Chinese translation model and the English-Thai translation model respectively;
[0012] Step 1.3: Use one end of the existing parallel corpus as the input of the trained translation model, and then generate English-Chinese pseudo-parallel corpus and English-Thai pseudo-parallel corpus respectively.
[0013] As an improvement, the specific steps of Step 2 are:
[0014] Step 2.1: Use the pseudo-parallel corpus generated by the previous translation model as a negative example, and the original parallel corpus used to train the translation model as a positive example;
[0015] Step 2.2: Input positive and negative examples into the CNN screening model together;
[0016] Step 2.3: Define the English end as the source language end (X), and the Chinese end as the target language end (Y). X and Y after being encoded by the gated recurrent unit (GRU) are shown below:
[0017] EX=BiGRU X (X)
[0018] EY=BiGRU Y (Y)
[0019] Among them, EX∈R T×2D and EY∈R T×2D It is represented as the source matrix and target matrix vector after bidirectional encoding of X and Y. D represents the dimension of the word vector, and T represents the length of the source sentence and the target sentence. When performing convolution operations, EX and EY are regarded as a set of T word vectors, and the sentence embedding is as follows:
[0020] EX 1:T =EX1;EX2;...;EX T
[0021] EY 1:T =EY1;EY2;...;EY T
[0022] Use a convolution kernel w∈R with a window length of k respectively k×2D Convolution operation is performed on EX and EY. The convolution kernel window length ranges from 1 to T-1. After convolution, the feature dimension increases from R T×1 to R 2×1 The specific calculation formula is as follows:
[0023]
[0024]
[0025] in Represents the dot product operation, b represents the bias term. p represents the nonlinear activation function tanh, and BN represents batch normalization. Then, all CX and CY are processed by maximum pooling to obtain the most significant features of the source sentence and the target sentence. The calculation formula is as follows:
[0026] CX=max{CX1,CX2,...,CX T-k+1}
[0027] CY=max{CY1,CY2,...,CY T-k+1}
[0028] Finally, a fully connected layer is used to map CX and CY to the same vector space, and this is used to determine the degree of mutual translation between the two sentences. Figure 1 As shown:
[0029] As an improvement, the specific steps of Step 3 are:
[0030] Step 3.1: Generate the target sentence through the generator;
[0031] Step 3.2: Construct the intermediate sentence: Based on the part-of-speech information of the target word, replace the target word with words with the same part of speech and words with different parts of speech to construct the intermediate sentence. The difference between the evaluation score of the original translation and the evaluation score of the intermediate sentence is used to judge the quality of the target word, so as to obtain a more accurate evaluation score formula as follows;
[0032] Same tk =N1,N2,...,S t ,...,N T
[0033] Diff tk =N1,N2,...,D t ,...,N T
[0034] Same t Represents the middle sentence with similar parts of speech, Diff t Represents the middle sentence with different parts of speech;
[0035] Step 3.3: Construct a loss function and return the loss value. The specific formula is as follows:
[0036]
[0037] Same tk =N1,N2,...,S t ,...,N T
[0038] Diff tk =N1,N2,...,D t ,...,N T
[0039] Rewardt represents the alignment score of the tth word in the target sentence, N represents the target sentence generated by the generator (translation model), D(X, ) represents the alignment score of the target sentence or the intermediate sentence, K is a fixed value, S t and D t Represents and N t Words with the same part of speech and words with different parts of speech.
[0040] As an improvement, the specific steps of Step 4 are:
[0041] Step 4.1: After the adversarial training is completed, the English corpus in the English-Thai parallel corpus is used as the input of the English-Chinese translation model to obtain the English-Chinese-Thai pseudo-parallel corpus;
[0042] Step 4.2: Use the trained English-Chinese discriminator to filter the English-Chinese pseudo-parallel corpus in the English-Chinese-Thai pseudo-parallel corpus;
[0043] Step 4.3: Use the trained Thai-Chinese discriminator to filter the Chinese-Thai pseudo-parallel corpus in the English-Chinese-Thai pseudo-parallel corpus;
[0044] Step 4.4: Finally, combine the two filtering results, extract the Chinese corpus and the Thai corpus to form a Chinese-Thai pseudo-parallel corpus, and generate the Chinese-Thai pseudo-parallel corpus flow chart as shown below: Figure 2 :
[0045] Step 4.5: The steps for generating Thai-Chinese pseudo-parallel corpus are the same as Step 4.1-Step 4.4, except that the source language and target language are replaced by Thai and Chinese.
[0046] The beneficial effects of the present invention are as follows: (1) the present invention trains a high-quality generator by adversarial training, thereby generating high-quality Chinese-Thai pseudo-parallel sentence pairs. (2) the present invention can use existing high-resource languages as an auxiliary to generate high-quality pseudo-parallel sentence pairs, thereby achieving the purpose of expanding the parallel corpus of low-resource languages. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a flow chart of a method for generating Chinese-Thai pseudo-parallel sentence pairs based on double discriminators of the present invention.
[0048] Figure 2 It is a diagram of the convolutional pooling layer of the discriminator of the present invention.
[0049] Figure 3 It is a flow chart of generating Chinese-Thai pseudo-parallel corpus of the present invention. DETAILED DESCRIPTION
[0050] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0051] Example 1: Combination Figure 1-Figure 3 A method for generating Chinese-Thai pseudo-parallel sentence pairs based on a double discriminator is provided. The specific steps of the method for generating Chinese-Thai pseudo-parallel sentence pairs based on a double discriminator are as follows:
[0052] Step 1: Use a small amount of existing parallel corpus to train the English-Chinese translation model and the English-Thai translation model respectively;
[0053] Step 2: Use the pseudo-parallel corpus generated by the translation model and the real parallel corpus to train the CNN screening model;
[0054] Step 3: Use the translation model as the generator and the screening model as the discriminator to perform adversarial training;
[0055] Step 4: Use the translation model obtained through adversarial training to generate higher quality pseudo-parallel corpus.
[0056] The specific steps of Step 1 are:
[0057] Step 1.1: Use Transformer as the translation model;
[0058] All experiments were implemented on the Tensorflow 2.2 framework and an NVIDIA GPU (GTX TitanX) was used to train the model. All translation models in the experiment were transformers, with the encoder and decoder using the default 6 layers, the number of attention heads set to 8, the word embedding dimension set to 512, the hidden dimension set to 512, and the parameter optimizer selected as Adam.
[97] Optimizer, dropout is set to 0.1, and learning rate is set to 5*10 -5 , the learning rate is set to 1*10 during adversarial training -5 , the batch size is set to 64 and the vocabulary size is set to 50000.
[0059] Step 1.2: Use the existing parallel corpora to train the English-Chinese translation model and the English-Thai translation model respectively: the Chinese-Thai, English-Thai and English-Chinese parallel corpora are all from the Opus corpus;
[0060] First, the Chinese-Thai, English-Thai, and English-Chinese parallel corpora were initially filtered, and sentence pairs with a length ratio exceeding 2 or a single sentence length exceeding 30 words were filtered. In addition, the length of a single word was restricted to no more than 40 characters.
[0061] 200,000 Chinese-Thai parallel corpora were extracted from Opus as training sets, 2,000 sentences were extracted as validation sets, and 2,000 sentences were extracted as test sets. One million sentences were extracted from English-Thai and English-Chinese parallel corpora as training sets, and 4,000 sentences were extracted and divided equally, and used as validation sets and test sets respectively. In addition, 10 million Chinese monolingual corpora and Thai monolingual corpora in the same field were extracted from Opus for training language models for comparison. Jieba was used for Chinese word segmentation, and pythainlP was used for Thai word segmentation.
[0062] Step 1.3: Use one end of the existing parallel corpus as the input of the trained translation model, and then generate English-Chinese pseudo-parallel corpus and English-Thai pseudo-parallel corpus respectively.
[0063] The specific steps of Step 2 are:
[0064] Step 2.1: Use the pseudo-parallel corpus generated by the previous translation model as a negative example, and the original parallel corpus used to train the translation model as a positive example;
[0065] Step 2.2: Input positive and negative examples into the CNN screening model together;
[0066] The word embedding dimension of the GRU module in the discriminator is set to 512, the hidden layer dimension is set to 512, the convolution kernel window size ranges from 1 to 30, and the number of convolution kernels for each window size is 15 + convolution kernel window size. The Adam optimizer is used, the dropout is set to 0.1, and the learning rate is set to 10 -4 , the batch size is set to 512. In adversarial training, λ is set to 0.5 and K is set to 2.
[0067] Step 2.3: Define the English end as the source language end (X), and the Chinese end as the target language end (Y). X and Y after being encoded by the gated recurrent unit (GRU) are shown below:
[0068] EX=BiGRU X (X)
[0069] EY=BiGRU Y (Y)
[0070] Among them, EX∈R T×2D and EY∈R T×2D It is represented as the source matrix and target matrix vector after bidirectional encoding of X and Y. D represents the dimension of the word vector, and T represents the length of the source sentence and the target sentence. When performing convolution operations, EX and EY are regarded as a set of T word vectors, and the sentence embedding is as follows:
[0071] EX 1:T=EX1;EX2;...;EX T
[0072] EY 1:T =EY1;EY2;...;EY T
[0073] Use a convolution kernel w∈R with a window length of k respectively k×2D Convolution operation is performed on EX and EY. The convolution kernel window length ranges from 1 to T-1. After convolution, the feature dimension increases from R T×1 to R 2×1 The specific calculation formula is as follows:
[0074]
[0075]
[0076] in Represents the dot product operation, b represents the bias term. p represents the nonlinear activation function tanh, and BN represents batch normalization. Then, all CX and CY are processed by maximum pooling to obtain the most significant features of the source sentence and the target sentence. The calculation formula is as follows:
[0077] CX=max{CX1,CX2,...,CX T-k+1}
[0078] CY=max{CY1,CY2,...,CY T-k+1}
[0079] Finally, a fully connected layer is used to map CX and CY to the same vector space, and this is used to determine the degree of mutual translation between the two sentences. Figure 1 As shown:
[0080] The specific steps of Step 3 are:
[0081] Step 3.1: Generate the target sentence through the generator;
[0082] Step 3.2: Construct the intermediate sentence: Based on the part-of-speech information of the target word, replace the target word with words with the same part of speech and words with different parts of speech to construct the intermediate sentence. The difference between the evaluation score of the original translation and the evaluation score of the intermediate sentence is used to judge the quality of the target word, so as to obtain a more accurate evaluation score formula as follows;
[0083] Same tk =N1,N2,...,S t ,...,N T
[0084] Difftk =N1,N2,...,D t ,...,N T
[0085] Same t Represents the middle sentence with similar parts of speech, Diff t Represents a middle sentence with different parts of speech
[0086] Step 3.3: Construct a loss function and return the loss value. The specific formula is as follows:
[0087]
[0088] Same tk =N1,N2,...,S t ,...,N T
[0089] Diff tk =N1,N2,...,D t ,...,N T
[0090] Reward t represents the alignment score of the tth word in the target sentence, N represents the target sentence generated by the generator (translation model), D(X, ) represents the alignment score of the target sentence or the intermediate sentence, K is a fixed value, S t and D t Respectively represent and N t Words with the same part of speech and words with different parts of speech.
[0091] The specific steps of Step 4 are:
[0092] Step 4.1: After the adversarial training is completed, the English corpus in the English-Thai parallel corpus is used as the input of the English-Chinese translation model to obtain the English-Chinese-Thai pseudo-parallel corpus;
[0093] Step 4.2: Use the trained English-Chinese discriminator to filter the English-Chinese pseudo-parallel corpus in the English-Chinese-Thai pseudo-parallel corpus;
[0094] Step 4.3: Use the trained Thai-Chinese discriminator to filter the Chinese-Thai pseudo-parallel corpus in the English-Chinese-Thai pseudo-parallel corpus;
[0095] Step 4.4: Finally, combine the two filtering results, extract the Chinese corpus and the Thai corpus to form a Chinese-Thai pseudo-parallel corpus, and generate the Chinese-Thai pseudo-parallel corpus flow chart as shown below: Figure 2 :
[0096] Step 4.5: The steps for generating Thai-Chinese pseudo-parallel corpus are the same as Step 4.1-Step 4.4, except that the source language and target language are replaced by Thai and Chinese.
[0097] Experimental results:
[0098] 1. Analyze the performance of different pseudo-corpus generation methods.
[0099] Table 1: The BLEU values of different pseudo-corpus generation methods are compared as follows:
[0100] method Thai Han Hantai Pure original material 12.32 16.16 Back translation 16.59 21.20 <![CDATA[Ahmadnia [4] ]]> 17.45 20.93 <![CDATA[Currey [3] ]]> 18.10 21.89 Translation (GAN) 18.15 22.02 Currey+Filter 18.64 24.41 Currey+Screening (GAN) 18.88 24.48 Translation (GAN) + Screening (GAN) 19.73 24.87 Dual Discriminator + Part of Speech Replacement 20.24 26.32
[0101] Translation (GAN): adversarially train the English-Thai and English-Chinese translation models and use them to obtain pseudo-parallel corpora without any filtering, using Monte Carlo search to construct intermediate sentences, and only one discriminator.
[0102] Currey+Filtering: Currey et al. combined back-translation with pivot translation and used high-resource parallel corpora to train back-translation models, thereby improving the performance of back-translation models and thus improving the quality of pseudo-parallel corpora. The pseudo-parallel corpora generated by Currey are filtered using a discriminator.
[0103] Currey+Filtering (GAN): Use an adversarially trained discriminator to filter the pseudo-parallel corpus generated by Currey, use a Monte Carlo search method to construct intermediate sentences, and only have one discriminator.
[0104] Translation (GAN) + Filtering (GAN): Use the adversarially trained translation model to generate pseudo-parallel corpus, and use the adversarially trained discriminator to filter the pseudo-parallel corpus, use the Monte Carlo search method to construct the intermediate sentence, and only have one discriminator
[0105] Dual discriminators + part-of-speech replacement: During adversarial training, an additional Chinese-Thai discriminator is added and the part-of-speech replacement method is used instead of the Monte Carlo search method. Finally, the adversarially trained translation model is used to generate pseudo-parallel corpus.
[0106] 2. Compare the filtering capabilities of different screening models.
[0107] In order to further judge the effectiveness of the discriminator proposed in this invention in filtering noisy parallel corpora, this chapter uses the discriminator and LSTM language model to filter noisy parallel corpora. In order to further judge the effectiveness of the discriminator proposed in this invention in filtering noisy parallel corpora, this chapter uses the discriminator and LSTM language model to filter noisy parallel corpora.
[0108] Table 2: Screening performance of different screening methods
[0109]
[0110] In Table 2, the generated Chinese translation is quite different from the Thai original in terms of meaning, which is an incorrect translation. However, the discriminator without adversarial training gave a higher quality score of 0.57, and the average quality score of the entire Chinese-Thai corpus was 0.32. The higher the quality score, the better the quality of the pseudo-parallel sentence pair. Therefore, in this Chinese-Thai pseudo-parallel sentence pair, the discriminator made a wrong judgment and evaluated the sentence pair as a high-quality Chinese-Thai pseudo-parallel sentence pair. The discriminator (GAN) gave a lower quality score of 0.25, and the average quality score was 0.31, evaluating the sentence pair as a low-quality Chinese-Thai pseudo-parallel sentence pair. At the same time, the LSTM language model evaluated the Chinese translation based on the perplexity (PPL), with a perplexity of 3.86 and a perplexity threshold of 3.33. The lower the perplexity, the better the translation quality, and the Chinese translation was evaluated as a low-quality Chinese translation.
[0111] Table 3: Screening performance of different screening methods
[0112]
[0113] In Table 3, the Chinese translation has a high fluency and the confusion of the LSTM language model is very low, at 1.00. The meaning of is "executioner" instead of "agent", which results in both the discriminator and the discriminator (GAN) giving lower quality scores, among which the quality score given by the discriminator (GAN) is lower. Therefore, this sentence pair will be evaluated as a high-quality sentence pair by the LSTM language model, but will be evaluated as a low-quality sentence pair by the discriminator. Finally, the present invention adopts any sentence pair that is evaluated as a low-quality sentence pair by any model as a low-quality sentence pair.
[0114] Table 4: Comparison of filtering capabilities of different discriminators
[0115] method Thai Han Hantai LSTM 16.60 20.42 Discriminator 18.64 24.41 Discriminator (GAN) 18.88 24.48 Discriminator + LSTM 19.12 24.56 Discriminator (GAN) + LSTM 19.40 24.63
[0116] The comparison of filtering ability is evaluated by the BLEU value of the translation model trained on the filtered corpus of the same size. From the experimental results in Table 4, it can be seen that the quality of the pseudo-parallel corpus after filtering by the LSTM language model is lower than that after filtering by the discriminator. This shows that the discriminator, which uses the degree of mutual translation as the basis for filtering, has a better filtering effect. This is because in the case of insufficient parallel corpus, providing more effective bilingual information will be more important than providing more effective monolingual information. This is because low-resource neural machine translation lacks sufficient and accurate bilingual information compared to high-resource neural machine translation, and is more easily affected by incorrect bilingual information in the pseudo-parallel corpus. The discriminator can filter out incorrectly aligned sentence pairs and increase the proportion of correctly aligned sentence pairs in the entire pseudo-parallel corpus. However, the LSTM language model can only evaluate the fluency of pseudo-source language sentences, and can filter out sentences with low fluency, but cannot judge sentences with high fluency but incorrect alignment. When the discriminator is combined with the LSTM language model to filter the noisy corpus, the quality of the pseudo-parallel corpus after filtering is further improved compared to filtering with only the discriminator, with an improvement of 0.24 BLEU in Thai-Chinese and 0.07 BLEU in Chinese-Thai. If the adversarially trained discriminator and LSTM language model are combined to filter the noisy corpus, the quality of the pseudo-parallel corpus after filtering is improved by 0.28 and 0.07 BLEU respectively compared to the method of combining the discriminator and LSTM language model without adversarial training.
[0117] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A method for generating Chinese-Thai pseudo-parallel sentence pairs based on dual discriminators, characterized by: The specific steps of the method are as follows: Step 1: Use the existing parallel corpus to train the English-Chinese translation model and the English-Thai translation model respectively; Step 2: Use the pseudo-parallel corpus generated by the translation model and the real parallel corpus to train the CNN screening model; Step 3: Use the translation model as the generator and the screening model as the discriminator to perform adversarial training; Step 4: Generate high-quality pseudo-parallel corpus using the translation model obtained through adversarial training; The specific steps of Step 2 are: Step 2.1: Use the pseudo-parallel corpus generated by the previous translation model as a negative example, and the original parallel corpus used to train the translation model as a positive example; Step 2.2: Input positive and negative examples into the CNN screening model together; Step 2.3: Define the English end as the source language end X, and the Chinese end as the target language end Y. X and Y after GRU encoding are shown below: EX=BiGRU X (X) EY=BiGRU Y (AND) Among them, EX∈R T×2D and EY∈R T×2D It is represented as the source matrix and target matrix vector after bidirectional encoding of X and Y. D represents the dimension of the word vector, and T represents the length of the source sentence and the target sentence. When performing convolution operation, EX and EY are regarded as a set of T word vectors, and the sentence embedding is as follows: FROM 1:T =EX1;EX2;...;EX T EY 1:T =EY1;EY2;...;EY T Use a convolution kernel w∈R with a window length of k respectively k×2D Convolution operation is performed on EX and EY. The convolution kernel window length ranges from 1 to T-1. After convolution, the feature dimension increases from R T×1 to R 2×1 ; The specific calculation formula is as follows: in Represents the dot product operation, b represents the bias term, p represents the nonlinear activation function tanh, and BN represents batch normalization; then all CX and CY are subjected to maximum pooling respectively to obtain the most significant features of the source sentence and the target sentence. The calculation formula is as follows: CX=max{CX1,CX2,...,CX T-k+1 } CY=max{CY1,CY2,...,CY T-k+1 } Finally, a fully connected layer is used to map CX and CY to the same vector space, and this is used to determine the degree of mutual translation between the two sentences; The specific steps of Step 3 are: Step 3.1: Generate the target sentence through the generator; Step 3.2: Construct the intermediate sentence: Based on the part-of-speech information of the target word, replace the target word with words with the same part of speech and words with different parts of speech to construct the intermediate sentence. The difference between the evaluation score of the original translation and the evaluation score of the intermediate sentence is used to judge the quality of the target word, so as to obtain a more accurate evaluation score formula as follows; Same tk =N1,N2,...,S t ,...,N T Diff tk =N1,N2,...,D t ,...,N T Same t Represents the middle sentence with similar parts of speech, Diff t Represents the middle sentence with different parts of speech; Step 3.3: Construct a loss function and return the loss value. The specific formula is as follows: Same tk =N1,N2,...,S t ,...,N T Diff tk =N1,N2,...,D t ,...,N T Reward t represents the alignment score of the tth word in the target sentence, N represents the target sentence generated by the generator, D(X, ) represents the alignment score of the target sentence or the intermediate sentence, K is a fixed value, S t and D t Represents and N t Words with the same part of speech and words with different parts of speech.
2. The method for generating Chinese-Thai pseudo-parallel sentence pairs based on double discriminators according to claim 1 is characterized in that: The specific steps of Step 1 are: Step 1.1: Use Transformer as the translation model; Step 1.2: Use the existing parallel corpus to train the English-Chinese translation model and the English-Thai translation model respectively; Step 1.3: Use one end of the existing parallel corpus as the input of the trained translation model, and then generate English-Chinese pseudo-parallel corpus and English-Thai pseudo-parallel corpus respectively.
3. The method for generating Chinese-Thai pseudo-parallel sentence pairs based on double discriminators according to claim 1 is characterized in that: The specific steps of Step 4 are: Step 4.1: After the adversarial training is completed, the English corpus in the English-Thai parallel corpus is used as the input of the English-Chinese translation model to obtain the English-Chinese-Thai pseudo-parallel corpus; Step 4.2: Use the trained English-Chinese discriminator to filter the English-Chinese pseudo-parallel corpus in the English-Chinese-Thai pseudo-parallel corpus; Step 4.3: Use the trained Thai-Chinese discriminator to filter the Chinese-Thai pseudo-parallel corpus in the English-Chinese-Thai pseudo-parallel corpus; Step 4.4: Finally, combine the two filtering results and extract the Chinese and Thai corpora to form a Chinese-Thai pseudo-parallel corpus; Step 4.5: The steps for generating Thai-Chinese pseudo-parallel corpus are the same as Step 4.1-Step 4.4, except that the source language and target language are replaced by Thai and Chinese.
