Burmese parallel corpus construction method based on pivot optimization self-training

Through the self-training method based on pivot optimization, the Chinese-Myanmar and English-Myanmar parallel corpora are used to gradually improve the capabilities of the Burmese to Chinese translation model, solve the problem of insufficient quality and quantity of the Chinese-Myanmar parallel corpora, and achieve efficient corpus construction and translation. Performance improvements.

CN118569273APending Publication Date: 2024-08-30KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806381.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The China-Myanmar parallel corpus is of low quality and scarce in quantity, which results in limited performance of the China-Myanmar machine translation system and high manual annotation costs, which affects the performance of the translation model.

Method used

A self-training method based on pivot optimization is adopted, and through cyclic semi-supervised self-training, the Chinese-Myanmar and English-Myanmar parallel corpora are used to gradually improve the capabilities of the Burmese to Chinese translation model, build a high-quality Sino-Myanmar parallel corpus, and reduce the cost of manual verification.

Benefits of technology

It effectively reduces the labor and time costs of corpus construction, improves the performance of China-Myanmar machine translation and natural language processing tasks, and ensures the high quality and generalization ability of the corpus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569273A
    Figure CN118569273A
Patent Text Reader

Abstract

The invention relates to a method for constructing a Burmese parallel corpus based on pivot optimization self-training. Initializing a machine translation model by using a small number of marked Mian sentence pairs; splitting the parallel corpus from the English to the Kanmar language into a monolingual corpus of the English and the Kanmar language; an English corpus is translated into Chinese through a Chinese-English machine translation model, and the Murank language corpus is translated into Chinese by using the initialized model, so that two parallel corpora from Murank language to Chinese are constructed; selecting 200,000 parallel sentence pairs each time according to the sequence of the generated corpora, and scoring the generated Mian parallel corpora through an LASER parallel sentence pair scoring tool and a cosine similarity algorithm; and screening and retaining 100,000 parallel corpora with the highest score, and at most retaining 800,000 parallel corpora to continuously participate in model training until all the generated corpora participate in the screening process. According to the method, the translation performance of the model from the Murankang language to the Chinese is improved, and finally the problem that the parallel corpora of machine translation from the Chinese to the Murankang language are deficient is solved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Technical Language

[0002] The invention relates to a method for constructing Chinese-Burmese parallel corpora based on pivot optimization self-training, and belongs to the technical field of natural language processing. Background Art

[0003] As neighboring countries, China and Myanmar need to have in-depth exchanges in many fields, especially in politics, economy, culture and education. However, language barriers have become an important factor restricting exchanges and cooperation between the two countries. Compared with other major languages ​​(such as English, Chinese, French, etc.), digital resources for Burmese are relatively scarce. The existing Burmese corpus is small in scale, and most of the corpus lacks high-quality annotations, which poses a challenge to the development of the China-Myanmar translation system.

[0004] With the development of deep learning technology, especially the rise of neural machine translation (NMT) technology, the quality of machine translation has been significantly improved. However, the NMT model is highly dependent on large-scale high-quality parallel corpora, and the lack of sufficient parallel corpora will affect the performance of the translation model. Building a high-quality Chinese-Burmese parallel corpus can significantly improve the performance of the machine translation system, making it more accurate and natural when handling Chinese-Burmese translation tasks, thereby enhancing communication and understanding between the two countries.

[0005] However, the construction of a high-quality Chinese-Burmese parallel corpus usually relies on a large amount of manually annotated data. This process usually requires a large number of Chinese-Burmese translation staff to translate and proofread the corpus, which is quite demanding in terms of manpower and time costs. In order to effectively deal with these problems, we proposed a method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training. At present, the low quality and shortage of Chinese-Burmese parallel corpus have always been the shortcomings of Chinese-Burmese machine translation and other natural language processing tasks. This study aims to use the existing Chinese-Burmese parallel corpus combined with the relatively rich English-Burmese parallel corpus to build a relatively high-quality Chinese-Burmese parallel corpus through model self-training to improve the performance of Chinese-Burmese machine translation and other natural language processing related tasks. The model self-training method can effectively reduce the cost of manual verification. In the study, we designed a cyclic semi-supervised self-training method to train the Burmese to Chinese translation model by increasing the corpus size in small amounts and multiple times, gradually improving the translation ability of the model itself, so that the final constructed corpus has a higher quality. Summary of the invention

[0006] The technical problem to be solved by the present invention is: the present invention provides a method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training. The model self-training method can effectively reduce the cost of manual verification, and designs a cyclic semi-supervised self-training method. By increasing the corpus size by a small amount and multiple times, the translation model from Burmese to Chinese is trained, and the translation ability of the model itself is gradually improved, so that the finally constructed corpus has a higher quality.

[0007] The technical solution of the present invention is: a method for constructing a Chinese-Myanmar parallel corpus based on pivot optimization self-training, and the specific steps of the method are as follows:

[0008] Step 1: Collect annotated Chinese-Burmese and English-Burmese parallel corpus datasets;

[0009] Step 2: Use the fairseq toolkit to build a machine translation Transformer model, and train it with the scarce Chinese to Burmese parallel corpus to initialize the model parameters so that it can translate from Burmese to Chinese.

[0010] Step 3: Split the resource-rich English-to-Burmese parallel corpus into monolingual corpora, translate the English part into Chinese using the existing Chinese-English machine translation model, and then combine it with the original Burmese monolingual corpus to form a Chinese-to-Burmese parallel corpus;

[0011] Step 4: Using the initialized model, input 100,000 Burmese monolingual corpora into the model each time to generate the corresponding Burmese to Chinese parallel corpora;

[0012] Step 5: Extract 100,000 parallel sentence pairs from the Chinese-Myanmar parallel corpus generated by Chinese-English machine translation, combine them with the parallel sentence pairs generated by the model, and use the LASER parallel sentence pair scoring tool and cosine similarity algorithm to score the synthesized 200,000 sentence pairs and the corpus used in the previous round of training;

[0013] Step 6: Delete sentence pairs with scores lower than the parallel sentence pairs used in the previous model training, and combine the remaining synthetic sentence pairs with the original corpus for the next model training; when the corpus size exceeds 800,000 sentences, sort the sentence pairs in descending order according to their scores and remove redundant sentence pairs, retaining a maximum of 800,000 high-quality parallel sentence pairs.

[0014] As a further solution of the present invention, the specific steps of Step 1 are as follows:

[0015] Step 1.1: Collect labeled Chinese-Burmese and English-Burmese parallel corpus datasets from the OPUS public parallel corpus website, and preprocess the corpus, such as removing duplicates, removing sentences that are too long or too short, and removing garbled characters in sentences.

[0016] As a further solution of the present invention, the specific steps of Step 2 are as follows:

[0017] Step 2.1: Download the fairseq toolkit from the website, use this toolkit to build a Transformer model, and select the Transformer-base model as the base model of the experiment.

[0018] Step 2.2: Then use the parameters of the Transformer-base model as the initial version, and train the Transformer model in batches on the Burmese to Chinese parallel sentence pairs; retain the model parameters with the highest Bleu score on the test set in multiple rounds of training to complete the subsequent Burmese monolingual corpus translation task.

[0019] As a further solution of the present invention, the specific steps of Step 3 are as follows:

[0020] Step 3.1: Split the collected English-Myanmar parallel sentence pairs into English and Burmese monolingual data.

[0021] Step 3.2: Get the existing Chinese to English machine translation model, and translate the English monolingual text into the corresponding Chinese text by calling the translation model.

[0022] Step 3.3: Align the translated Chinese text data with the above-mentioned Burmese monolingual data to form parallel sentence pairs from pseudo-Chinese to Burmese.

[0023] As a further solution of the present invention, the specific steps of Step 4 are as follows:

[0024] Step 4.1: Extract 100,000 data from the Burmese monolingual data and input them into the trained Transformer model.

[0025] Step 4.2: Combine the Chinese corpus output by the model with Burmese to form Chinese-Burmese pseudo-parallel sentence pairs.

[0026] As a further solution of the present invention, the specific steps of Step 5 are as follows:

[0027] Step 5.1: Extract 100,000 parallel sentence pairs from the Chinese-Burmese pseudo-parallel corpus after Chinese-English machine translation, and integrate them with the Chinese-Burmese pseudo-parallel corpus generated by the model.

[0028] Step 5.2: Use the multilingual sequence-to-sequence sentence embedding model LASER to obtain a high-dimensional representation of the parallel sentence pair, and take its outer product and the cosine similarity algorithm of its representation as the score of the corpus pair. Calculate the scores of the pseudo-parallel corpus generated in this round and the corpus used in the previous round of training, and sort the corpus in descending order according to the score.

[0029] As a further solution of the present invention, the specific steps of Step 6 are as follows:

[0030] Step 6.1: Delete the parallel sentence pairs in the pseudo-parallel corpus whose scores are lower than the minimum score in the previous round of training corpus.

[0031] Step 6.2: Combine the remaining pseudo-parallel corpus with the parallel corpus used in the previous round of training and sort them in descending order according to the sentence pair scores.

[0032] Step 6.3: If the total number of combined corpora is greater than 800,000, only the first 800,000 corpus data will be retained in sorted order; otherwise, no modification will be made and all will be used for the next training of the model.

[0033] The beneficial effects of the present invention are:

[0034] 1. The present invention effectively constructs a certain scale of Chinese-Burmese parallel corpus by adopting a model-based self-training method. The corpus covers parallel sentence pairs such as news, politics and religion, so that the generated corpus can better train natural language processing tasks such as Chinese-Burmese machine translation;

[0035] 2. Compared with the traditional method, the present invention does not directly manually annotate the corpus in order, but relies on model self-training to construct Chinese-Burmese parallel sentence pairs, thereby significantly reducing the manpower and time costs of corpus construction;

[0036] 3. By adopting the multi-scoring corpus screening and cyclic multiple model training mechanism, the present invention ensures the high quality of the corpus in the final corpus screening process. This strategy helps to improve the performance and generalization ability of the Sino-Myanmar natural language processing model. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of the present invention; DETAILED DESCRIPTION

[0038] Example 1: Figure 1 As shown, a method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training is used to construct the Chinese-Burmese corpus using a semi-supervised self-training model. The specific steps of the method are as follows:

[0039] Step 1: Collect labeled Chinese-Burmese and English-Burmese parallel corpus datasets from the OPUS public parallel corpus website, and preprocess the corpus, such as removing duplicates, removing too long or too short sentences, and removing garbled characters in sentences.

[0040] Step 2: Use the fairseq toolkit to build a machine translation Transformer model, and use the collected Chinese to Burmese parallel corpus to train the model and initialize the model parameters so that it has the ability to translate from Burmese to Chinese.

[0041] Step 2.1: Download the fairseq toolkit from the website, use this toolkit to build a Transformer model, and select the Transformer-base model as the base model of the experiment.

[0042] Step 2.2: Then use the parameters of the Transformer-base model as the initial version, and train the Transformer model in batches on the Burmese to Chinese parallel sentence pairs; retain the model parameters with the highest Bleu score on the test set in multiple rounds of training to complete the subsequent Burmese monolingual corpus translation task.

[0043] Step 3: Split the resource-rich English-to-Burmese parallel corpus into monolingual corpora, translate the English part into Chinese using the existing Chinese-English machine translation model, and then combine it with the original Burmese monolingual corpus to form a Chinese-to-Burmese parallel corpus;

[0044] Step 3.1: Split the collected English-Myanmar parallel sentence pairs into English and Burmese monolingual data.

[0045] Step 3.2: Get the existing Chinese to English machine translation model, and translate the English monolingual text into the corresponding Chinese text by calling the translation model.

[0046] Step 3.3: Align the translated Chinese text data with the above-mentioned Burmese monolingual data to form parallel sentence pairs from pseudo-Chinese to Burmese.

[0047] Step 4: Using the initialized model, input 100,000 Burmese monolingual corpora into the model each time to generate the corresponding Burmese to Chinese parallel corpora;

[0048] Step 4.1: Extract 100,000 data from the Burmese monolingual data and input them into the trained Transformer model.

[0049] Step 4.2: Combine the Chinese corpus output by the model with Burmese to form Chinese-Burmese pseudo-parallel sentence pairs.

[0050] Step 5: Extract 100,000 parallel sentence pairs from the Chinese-Myanmar parallel corpus generated by Chinese-English machine translation, combine them with the parallel sentence pairs generated by the model, and use the LASER parallel sentence pair scoring tool and cosine similarity algorithm to score the synthesized 200,000 sentence pairs and the corpus used in the previous round of training;

[0051] Step 5.1: Extract 100,000 parallel sentence pairs from the Chinese-Burmese pseudo-parallel corpus after Chinese-English machine translation, and integrate them with the Chinese-Burmese pseudo-parallel corpus generated by the model.

[0052] Step 5.2: Use the multilingual sequence-to-sequence sentence embedding model LASER to obtain a high-dimensional representation of the parallel sentence pair, and take its outer product and the cosine similarity algorithm of its representation as the score of the corpus pair. Calculate the scores of the pseudo-parallel corpus generated in this round and the corpus used in the previous round of training, and sort the corpus in descending order according to the score.

[0053] (1) In Step 5.2, LASER is a multilingual sequence-to-sequence sentence embedding model. The source language and target language of the input model will first enter a 5-layer BiLSTM (bidirectional long short-term memory network) neural network to convert the source language and target language into x1x2....x i , (i=1024) embedding representation. Then input to the Decoder layer, which is trained by multiple languages. After determining the generated language, the Decoder layer will convert the embedding representation of the upper layer input into a [1,1024]-dimensional sentence embedding representation vector through the loss function (softmax function). Since LASER can map sentence pairs of any language to similar positions in high-dimensional space, the outer product is directly removed as part of the sentence score during the score calculation process. The calculation process can be summarized as follows:

[0054] Score(X i ,Y i )=LASER(X i )×LASER(Y i ) T (1)

[0055] Where X i and Y iRepresents any parallel sentence pair in Chinese and Burmese. After obtaining the LASER scores for the source language and the target language, it is also necessary to obtain the probability similarity representation of each word in the sentence to ensure that the calculated corpus is similar at the sentence level and has a high correlation at the word level. The cosine similarity algorithm is used in the scoring process to complete this task. The sentence sequence is converted into a sentence embedding representation by using the vocabulary formed by the source language and the target language. The cosine similarity of the two vectors is then calculated and added to the LASER score to form the final sentence pair score. The formula for cosine similarity is defined as:

[0056]

[0057] Among them, A i and B i Sentence embedding representations of the source language and the target language respectively.

[0058] Step 6: Delete sentence pairs with scores lower than the parallel sentence pairs used in the previous model training, and combine the remaining synthetic sentence pairs with the original corpus for the next model training; when the corpus size exceeds 800,000 sentences, sort the sentence pairs in descending order according to their scores and remove redundant sentence pairs, retaining a maximum of 800,000 high-quality parallel sentence pairs.

[0059] Step 6.1: Delete the parallel sentence pairs in the pseudo-parallel corpus whose scores are lower than the minimum score in the previous round of training corpus.

[0060] Step 6.2: Combine the remaining pseudo-parallel corpus with the parallel corpus used in the previous round of training and sort them in descending order according to the sentence pair scores.

[0061] Step 6.3: If the total number of combined corpora is greater than 800,000, only the first 800,000 corpus data will be retained in sorted order; otherwise, no modification will be made and all will be used for the next training of the model.

[0062] In order to verify the effect of the method in this study, the mBART multilingual machine translation pre-training model was selected in the experimental stage. mBART is a multilingual seq2seq pre-training translation model based on the Transformer model. In the pre-training stage, the denoising autoencoder (DAE) method is used for training. mBART has certain translation capabilities in a large number of languages ​​and can achieve cross-language migration of new language types. During the experiment, we first randomly selected 4,000 parallel sentence pairs from the Chinese-Burmese parallel corpus in the Asian Language Treebank Parallel Corpus (ALT) as the validation set and test set for the subsequent machine translation task evaluation, and used the remaining part as the training part of the original model. Secondly, 300,000 parallel sentence pairs were randomly selected from the NLLB English-Burmese parallel corpus in the OPUS corpus and split into English and Burmese monolingual corpora. Subsequently, we used the existing English-Chinese machine translation model to generate a Chinese-Burmese pseudo-parallel corpus from the English monolingual corpus, and translated the Burmese monolingual corpus through the mBART pre-trained model to generate another Chinese-Burmese pseudo-parallel corpus.

[0063] In the experimental setting, the mBART model fine-tuned with ALT is first used as the baseline of the experiment. Subsequently, 20,000 parallel sentence pairs are randomly selected from the two Chinese-Burmese pseudo-parallel corpora, added to the original training corpora, and the results are evaluated. Finally, the generated pseudo-parallel sentence pairs are screened using the method proposed in the present invention, and experimental verification is performed. In this experiment, we use the Bleu value (Bilingual Evaluation Understudy) to evaluate the experimental results. In each group of experiments, 30 rounds of training are performed, and the round with the highest Bleu value is taken as the final result of this round of experiments. The experimental results of the present invention are shown in Table 1.

[0064] Table 1 Comparison of experimental results between different methods and the method of the present invention

[0065]

[0066] The 2nd and 3rd rows in Table 1 are pseudo corpora generated by model self-training and pseudo corpora generated by the existing English-Burmese machine translation model, respectively. From the above table, we can see that the self-training method without any screening will make it difficult for the model to find and use unlabeled samples with high confidence. If more low-quality training samples are introduced during the training of the translation model, the translation ability of the model itself will be reduced, resulting in mistranslation and wrong translation. The present invention is not only useful in generating bilingual aligned texts, but also can optimize the translation performance of its own model during the self-training process.

[0067] 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 constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training, characterized by: The specific steps of the method are as follows: Step 1: Collect annotated Chinese-Burmese and English-Burmese parallel corpus datasets; Step 2: Use the fairseq toolkit to build a machine translation Transformer model, train it with Chinese to Burmese parallel corpus, initialize the model parameters, and enable it to have the ability to translate from Burmese to Chinese; Step 3: Split the English-to-Burmese parallel corpus into monolingual corpora, translate the English part into Chinese using the existing Chinese-English machine translation model, and then combine it with the original Burmese monolingual corpus to form a Chinese-to-Burmese parallel corpus; Step 4: Using the initialized model, input several Burmese monolingual corpora into the model each time to generate the corresponding Burmese to Chinese parallel corpora; Step 5: Extract several parallel sentence pairs from the Chinese-Burmese parallel corpus generated by the Chinese-English machine translation model in sequence, combine them with the parallel sentence pairs generated by the model, and use the LASER parallel sentence pair scoring tool and the cosine similarity algorithm to score the synthesized sentence pairs and the corpus used in the previous round of training; Step 6: Delete the sentence pairs with scores lower than the parallel sentence pairs used in the previous model training, and combine the remaining synthetic sentence pairs with the original corpus for the next model training; when the corpus size exceeds a certain amount, sort the sentence pairs in descending order according to their scores and remove redundant sentence pairs, retaining high-quality parallel sentence pairs.

2. The method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training according to claim 1, characterized in that: The specific steps of Step 1 are as follows: Step 1.1: Collect labeled Chinese-Burmese and English-Burmese parallel corpus datasets from the OPUS public parallel corpus website and preprocess the corpus, including removing duplicates, removing sentences that are too long or too short, and removing garbled characters in sentences.

3. The method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training according to claim 1, characterized in that: The specific steps of Step 2 are as follows: Step 2.1: Download the fairseq toolkit from the website, use this toolkit to build a Transformer model, and select the Transformer-base model as the base model of the experiment; Step 2.2: Then use the parameters of the Transformer-base model as the initial version, and train the Transformer model in batches on the parallel sentence pairs from Burmese to Chinese; The model parameters with the highest translation Bleu score on the test set during multiple rounds of training are retained to complete the subsequent Burmese monolingual corpus translation task.

4. The method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training according to claim 1, characterized in that: The specific steps of Step 3 are as follows: Step 3.1: Split the collected English-Myanmar parallel sentence pairs into English and Burmese monolingual data; Step 3.2: Obtain the existing Chinese-to-English machine translation model and translate the English monolingual text into the corresponding Chinese text by calling the translation model; Step 3.3: Align the translated Chinese text data with the above-mentioned Burmese monolingual data to form parallel sentence pairs from pseudo-Chinese to Burmese.

5. The method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training according to claim 1, characterized in that: The specific steps of Step 4 are as follows: Step 4.1: Extract 100,000 data from the Burmese monolingual data and input them into the trained Transformer model; Step 4.2: Combine the Chinese corpus output by the model with Burmese to form Chinese-Burmese pseudo-parallel sentence pairs.

6. The method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training according to claim 1, characterized in that: The specific steps of Step 5 are as follows: Step 5.1: Extract 100,000 parallel sentence pairs from the Chinese-Burmese pseudo-parallel corpus after Chinese-English machine translation, and integrate them with the Chinese-Burmese pseudo-parallel corpus generated by the model; Step 5.2: Use the multilingual sequence-to-sequence sentence embedding model LASER to obtain a high-dimensional representation of the parallel sentence pair, and take its outer product and the cosine similarity algorithm of its representation as the score of the corpus pair; Calculate the scores of the pseudo-parallel corpus generated in this round and the corpus used in the previous round of training, and sort the corpus in descending order according to the scores.

7. The method for constructing a Chinese-Burmese parallel corpus based on pivot optimization self-training according to claim 1, characterized in that: The specific steps of Step 6 are as follows: Step 6.1: Delete the parallel sentence pairs in the pseudo-parallel corpus whose scores are lower than the minimum score in the previous round of training corpus. Step 6.2: Combine the remaining pseudo-parallel corpus with the parallel corpus used in the previous round of training and sort them in descending order according to the sentence pair scores. Step 6.3: If the total number of combined corpora is greater than 800,000, only the first 800,000 corpus data will be retained in sorted order; otherwise, no modification will be made and all will be used for the next training of the model.