Large language model-based sentence segmentation method and device suitable for machine translation
Through the punctuation mark reconstruction and LoRA fine-tuning technology of large language models, the problems of incorrect or missing punctuation marks, unclear text structure and complexity of model training in machine translation are solved, achieving higher quality and efficient translation results.
Patent Information
- Application Number
- CN202410478485.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing machine translation technology handles uncertain input, punctuation errors or missing marks lead to reduced translation accuracy and readability, unclear text structure, and complicated and time-consuming model training and tuning.
A large language model is used for punctuation reconstruction, the model is adjusted through LoRA fine-tuning technology, and the input text is optimized to improve translation quality and efficiency.
It improves the accuracy and readability of translation, simplifies the model tuning process, reduces training costs, improves translation quality and efficiency, and reduces the need for subsequent editing.
Smart Images

Figure CN118627520A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of military security technology, and in particular relates to a sentence segmentation method and device based on a large language model suitable for machine translation. Background Art
[0002] Sentence segmentation is usually the first processing task to be performed in machine translation. Usually, sentence segmentation adopts a rule-based segmentation method that uses punctuation marks as segmentation markers. This method has the advantages of fast speed and high accuracy. However, for machine translation, which often encounters uncertain input scenarios, this rule-based segmentation method often causes many problems.
[0003] For example, in the training process of machine translation, the input and output sentences are often limited to a certain length range, such as 1,100 words. In this case, sentences with more than 100 words will not be included in the training. This is done on the one hand to reduce the length of the input and maintain the model at an appropriate scale. On the other hand, it can effectively control the decoding speed and keep the translation time within a reasonable range. In actual use, especially when facing the input of Internet users, there will be many non-standard inputs, such as input code snippets, URLs, file paths, non-target language characters, hash codes, overlong unsigned texts, etc. In this case, the traditional rule-based sentence segmentation method cannot achieve effective segmentation. At this time, a more effective segmentation method is needed. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention provides a sentence segmentation method and device suitable for machine translation based on a large language model.
[0005] The present invention proposes effective solutions to several key technical problems existing in the field of machine translation.
[0006] The main problems faced by existing technologies include:
[0007] 1. Incorrect or missing punctuation: In the input text of machine translation, incorrect or missing punctuation will seriously affect the accuracy and readability of the translation. Punctuation not only marks the end of a sentence, but also helps to understand the structure and tone of a sentence. Its correct use is crucial to ensuring translation quality.
[0008] 2. Unclear text structure: Text without proper punctuation often has unclear structure, which makes it difficult for the machine translation system to understand the true intention of the sentence, thus affecting the accuracy and naturalness of the translation results.
[0009] 3. Complexity of machine translation model training and tuning: Existing machine translation models often require a large amount of data and computing resources to train, and tuning for specific tasks is usually complex and time-consuming.
[0010] The present invention solves the above problems through the following solutions:
[0011] Introduction of punctuation reconstruction model: By using a large language model for punctuation reconstruction, the present invention automatically corrects or adds missing punctuation before translation, significantly improving the quality of the input text. This not only improves the accuracy of the translation, but also improves the readability of the text.
[0012] Application of LoRA fine-tuning technology: LoRA fine-tuning technology is used to adjust large language models, effectively solving the complexity of model training and tuning. LoRA achieves fine-tuning by adding a small number of trainable parameters to the pre-trained model, which not only saves training costs but also maintains the performance of the model.
[0013] Optimizing machine translation input text: By optimizing input text through advanced punctuation reconstruction technology, the present invention provides higher quality input for machine translation systems, thereby improving the overall quality and efficiency of translation.
[0014] In summary, the present invention has achieved significant technological progress in the field of machine translation by solving problems such as incorrect or missing punctuation, unclear text structure, and complexity of model training and tuning, improved translation quality, simplified the model tuning process, and provided an efficient and reliable solution for machine translation.
[0015] The present invention is implemented as follows: a sentence segmentation method based on a large language model suitable for machine translation, the method comprising:
[0016] S1: Use the tuning of the large language model to complete the punctuation reconstruction function and realize the training of the punctuation reconstruction model;
[0017] S2: Optimizing the input text for machine translation using the punctuation reconstruction model;
[0018] S3: Output the corresponding translation results and complete this round of translation.
[0019] Furthermore, the training method in S1 is to select an open source large language model to perform LoRA fine-tuning.
[0020] Further, the fine-tuned template is:
[0021] Task type: Reconstruct sentence punctuation. Note that the maximum length of each sentence is X words.
[0022] Original text: Please add appropriate punctuation marks to the following text to separate each sentence. If you do not need to add punctuation marks, please output the original text directly;
[0023] Modified punctuation: Please add appropriate punctuation to the following text to separate the sentences. If no punctuation is needed, please output the original text directly.
[0024] Furthermore, the value of the X word is the maximum length of training data set during the machine translation model training process.
[0025] Further, the S1 specifically includes:
[0026] By constructing content including code snippets, URLs, file paths, non-target language characters, hash codes, and long unsigned text as input, the correctly segmented content is used as the output training sample. The segmentation rules include: 1. Correcting incorrectly used punctuation marks; 2. Limiting the maximum length of each sentence. By performing task optimization on the large language model (using the LoRA method), the trained model can effectively solve the problems of punctuation reconstruction and excessive length.
[0027] The basic principle of the above LoRA fine-tuning algorithm is to freeze the pre-trained model weight parameters. While freezing the original model parameters, additional network layers are added to the model and only the parameters of these newly added network layers are trained. Since the number of these newly added parameters is small, not only the cost of parameter fine-tuning is significantly reduced, but also similar effects to full model fine-tuning can be achieved.
[0028] Further, the S2 specifically includes:
[0029] The trained model is used to reconstruct punctuation in the original text input for machine translation, so that the length of the input sentence is more consistent with the language logic and meets the maximum length limit of the machine translation model training.
[0030] Further, the S3 specifically includes:
[0031] The punctuation-optimized text generated in step S2 is used as the input of the translation model, and the corresponding translation is obtained through the translation model to complete the entire translation process of this round.
[0032] Another object of the present invention is to provide a sentence segmentation device based on a large language model suitable for machine translation that implements the sentence segmentation method based on a large language model suitable for machine translation, the device comprising:
[0033] The model tuning module is used to complete the punctuation reconstruction function by tuning the large language model and realize the training of the punctuation reconstruction model;
[0034] The optimization module is connected to the model tuning module and uses the punctuation reconstruction model to optimize the input text for machine translation;
[0035] The output module is connected to the optimization module and is used to output the corresponding translation results to complete this round of translation.
[0036] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the sentence segmentation method based on a large language model suitable for machine translation.
[0037] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the sentence segmentation method based on a large language model suitable for machine translation.
[0038] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0039] First, the present invention uses a large-scale language model to reconstruct sentence punctuation marks and realizes the function of sentence segmentation, thereby solving the problem that machine translation cannot be effectively segmented when faced with uncertainty input during actual use. Thereby improving the usability of machine translation and improving the translation quality of machine translation. The economic and social benefits brought are mainly reflected in: improving the accuracy and effectiveness of sentence segmentation, improving the translation quality of machine translation, helping to reduce the workload of subsequent manual review, and improving translation efficiency.
[0040] Second, the present invention mainly utilizes the language understanding ability of the large language model, realizes the punctuation reconstruction ability through fine-tuning, and optimizes the punctuation of the machine translation input, thereby solving the abnormal translation that occurs when the machine translation faces irregular input on the one hand, and optimizing the overall translation quality on the other hand. In the experiment of the present invention, the present invention has achieved a certain improvement in the wmt test. The specific experimental results are as follows:
[0041] Test Set This method Conventional method based on punctuation WMT2019 English and Chinese 32.19 32.18 WMT2020 English and Chinese 43.09 43.00 WMT2021 English-Chinese 38.18 34.14 WMT2022 English-Chinese 37.11 37.07
[0042] Note that although the above experimental results have a small improvement effect, in the actual test set, there are very few test texts with sentences that are too long, so the overall optimization result of the test is diluted, and the punctuation reconstruction model of the present invention does not change any words in the original text, but only changes the symbols, and the impact on the translation result is not very significant. It can be seen that the method of the present invention can not only solve the problem of low translation quality caused by non-standard input in machine translation, but also has a certain effect on improving translation quality. The method of the present invention can be extended to any other language with punctuation marks. A large number of experiments have shown certain effects.
[0043] The expected benefits and commercial value of the technical solution of the present invention after transformation are as follows: the present invention is applicable to sentences with incorrect punctuation marks, and can effectively improve the accuracy of machine translation on these sentences, greatly reducing the cost of post-editing. In internal evaluations, the quality of machine translation from Chinese to foreign languages can be improved by an average of about 3%.
[0044] Fourth, the significant technical progress brought about by the sentence segmentation method based on a large language model suitable for machine translation provided by the present invention is reflected in the following aspects:
[0045] 1. Improve the accuracy and naturalness of machine translation
[0046] Deeper semantic understanding: By ensuring the correct use of punctuation in the input text, the machine translation system's ability to understand the original text is greatly enhanced. Accurate punctuation can clarify the structure of the sentence and reduce ambiguity, thereby improving the accuracy of the translation.
[0047] Improved naturalness of translation: The optimized text structure makes the translation more fluent and natural. Punctuation not only helps define the sentence structure, but also affects the rhythm and tone of the sentence, which is crucial to improving the naturalness of the translated text.
[0048] 2. Reduce ambiguity in translation
[0049] Clear sentence boundaries: By optimizing punctuation, the boundaries of sentences and sentence components are more clearly defined, effectively reducing ambiguity in the translation process. This is especially important for processing complex and long sentences, and can ensure the accuracy and coherence of the translation.
[0050] Improved grammatical structure recognition: Proper use of punctuation helps machine translation systems better recognize grammatical structures, especially when it comes to subordinate clauses and compound sentences, which is crucial to maintaining the integrity of the original meaning.
[0051] 3. Improve the efficiency of machine translation
[0052] Optimize processing flow: By automatically reconstructing punctuation marks, the need for manual intervention is reduced, and the degree of automation and efficiency of the translation process is improved. This is especially important for large-scale translation tasks, which can speed up the processing while ensuring translation quality.
[0053] Reduced subsequent revision costs: Accurate punctuation reduces the need for later proofreading and revisions, thereby reducing the overall cost of the translation process.
[0054] 4. Efficiency and flexibility of LoRA fine-tuning
[0055] Improved parameter efficiency: The LoRA fine-tuning method achieves task-specific optimization by adding a small number of trainable parameters to the pre-trained model. This approach maintains the complexity and expressiveness of the model while avoiding the computational resources required for large-scale parameter updates.
[0056] Flexible and applicable to multiple languages and fields: The flexibility of this method makes it not only suitable for punctuation reconstruction, but can also be extended to other language processing tasks, such as language style transfer, grammatical error correction, etc., and has broad application prospects.
[0057] The sentence segmentation method based on a large language model provided by the present invention has brought significant technological progress to the field of machine translation, especially in improving translation quality, reducing ambiguity, improving processing efficiency, and enhancing the flexibility and efficiency of model adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flow chart of a sentence segmentation method based on a large language model suitable for machine translation provided by an embodiment of the present invention;
[0059] Figure 2 It is a structural diagram of a sentence segmentation device suitable for machine translation based on a large language model provided by an embodiment of the present invention;
[0060] In the figure: 1. Model tuning module; 2. Optimization module; 3. Output module. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0062] The following are two specific applications of sentence segmentation methods based on large language models suitable for machine translation:
[0063] Application 1: Cross-language news translation
[0064] In this application, news organizations need to translate news reports from all over the world in real time. Since news reports often contain a large number of long sentences and complex grammatical structures, direct machine translation results in inaccurate or difficult to understand translation results. Therefore, a sentence segmentation method based on a large language model can be used.
[0065] First, we fine-tune LoRA using an open-source large language model to train a punctuation reconstruction model, which can accurately identify and reconstruct punctuation marks in text, thereby helping to segment long and complex sentences.
[0066] Then, when a news organization receives a news article for translation, it can first use the punctuation reconstruction model to optimize the input text. By adding or adjusting punctuation, the model is able to break long sentences into shorter, more understandable sentence fragments.
[0067] Finally, the optimized text is fed into the machine translation system to generate the corresponding translation results. Since the input text has been optimized through sentence segmentation, the translation results will be more accurate and smooth, improving the efficiency and quality of news translation.
[0068] Application 2: Product description translation on e-commerce platforms
[0069] In cross-border e-commerce platforms, the translation of product descriptions is crucial to attracting international consumers. However, due to the large differences in grammar and expression habits between different languages, direct translation leads to semantic distortion or difficulty in understanding of product descriptions.
[0070] The sentence segmentation method based on the large language model is also applicable to this scenario. By training the punctuation reconstruction model, the input text of the product description can be optimized. The model can recognize and reconstruct punctuation in the text, helping to segment long sentences and complex descriptions to make them more in line with the expression habits of the target language.
[0071] The optimized product description text is fed into the machine translation system to generate the corresponding translation results. Such translation results are not only more accurate, but also better preserve the semantics and style of the original description, improving consumers' understanding of the product and willingness to buy.
[0072] These two application cases demonstrate the practical application value of the sentence segmentation method based on the large language model in the field of machine translation, which can significantly improve the translation quality and efficiency and meet the translation needs of different fields and scenarios.
[0073] like Figure 1 As shown, an embodiment of the present invention provides a sentence segmentation method suitable for machine translation based on a large language model, the method comprising:
[0074] S1: Use the tuning of the large language model to complete the punctuation reconstruction function and realize the training of the punctuation reconstruction model;
[0075] S2: Optimizing the input text for machine translation using the punctuation reconstruction model;
[0076] S3: Output the corresponding translation results and complete this round of translation.
[0077] The training method in S1 is to select an open source large language model for LoRA fine-tuning.
[0078] The fine-tuned template is:
[0079] Task type: Reconstruct sentence punctuation. Note that the maximum length of each sentence is X words.
[0080] Original text: Please add appropriate punctuation marks to the following text to separate each sentence. If you do not need to add punctuation marks, please output the original text directly;
[0081] Modified punctuation: Please add appropriate punctuation to the following text to separate the sentences. If no punctuation is needed, please output the original text directly.
[0082] The value of the X word is the maximum length of the training data set during the machine translation model training process.
[0083] The S1 specifically includes:
[0084] By constructing training samples containing code snippets, URLs, file paths, non-target language characters, hash codes, very long unsigned texts, etc., the trained model can effectively solve the problems of punctuation reconstruction and excessive length.
[0085] The S2 specifically includes:
[0086] The trained model is used to reconstruct punctuation in the original text input for machine translation, so that the length of the input sentence is more consistent with the language logic and meets the maximum length limit of the machine translation model training.
[0087] The basic principle of the LoRA fine-tuning algorithm is to freeze the pre-trained model weight parameters. While freezing the original model parameters, additional network layers are added to the model and only the newly added network layer parameters are trained. Since the number of these newly added parameters is small, not only the cost of parameter fine-tuning is significantly reduced, but also similar effects to full model fine-tuning can be achieved.
[0088] The sentence segmentation method based on a large language model provided by the present invention is used to optimize machine translation, and the specific steps include punctuation reconstruction, text optimization and translation result output.
[0089] S1: Punctuation reconstruction model training
[0090] In the first step, the large language model completes the reconstruction function of punctuation through tuning. The core of this step is to train a model that can accurately add or correct punctuation in the input text. Specifically, the LoRA (LowRank Adaptation) fine-tuning method is used to adjust the open source large language model.
[0091] LoRA fine-tuning: LoRA is an efficient model tuning technique that adds a small number of trainable parameters to the weights of a pre-trained model to achieve fine control over the model's behavior. This approach can significantly improve the model's performance on specific tasks with almost no increase in model size. In this scenario, LoRA is used to tune the model to better handle and reconstruct punctuation, which is critical to the subsequent accuracy of machine translation.
[0092] S2: Optimization of machine translation input text
[0093] The second step uses the trained punctuation reconstruction model to optimize the input text for machine translation. This step ensures that the punctuation of the input text is accurate, providing a more structurally clear and standardized text for machine translation. This is crucial to improving the understanding and translation quality of the machine translation system, because correct punctuation can clarify the boundaries of sentences and the structure of components within sentences, thereby reducing ambiguity.
[0094] S3: Output the corresponding translation results
[0095] In the final step, the optimized text is fed into the machine translation system for translation, which outputs the corresponding translation result. At this point, because the quality of the input text has been significantly improved, the translation system can more accurately understand the meaning of the source text, thereby generating a more natural and accurate translation.
[0096] Importance of punctuation: Punctuation plays a role in defining sentence structure and boundaries in text and is crucial to the accuracy and fluency of machine translation.
[0097] Application of LoRA fine-tuning: Through LoRA fine-tuning, the performance of large language models on specific tasks can be effectively improved without significantly increasing the complexity of the model. In this case, it is the reconstruction of punctuation marks.
[0098] Optimize translation input text: By pre-processing and optimizing the input text, the machine translation system can handle the translation task more efficiently and output higher quality translation text.
[0099] The sentence segmentation method based on a large language model provided by the present invention improves the quality of input text and thus improves the effect of machine translation, especially in terms of the correctness of punctuation marks and the clarity of text structure.
[0100] like Figure 2 As shown, an embodiment of the present invention provides a sentence segmentation device based on a large language model suitable for machine translation that implements the sentence segmentation method based on a large language model suitable for machine translation, and the device includes:
[0101] Model tuning module 1, used to complete the punctuation reconstruction function by tuning the large language model, and realize the training of the punctuation reconstruction model;
[0102] Optimization module 2, connected to model tuning module 1, optimizes the input text of machine translation using punctuation reconstruction model;
[0103] The output module 3 is connected to the optimization module 2 and is used to output the corresponding translation results to complete this round of translation.
[0104] An embodiment of the present invention provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the sentence segmentation method based on a large language model suitable for machine translation.
[0105] An embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the sentence segmentation method based on a large language model suitable for machine translation.
[0106] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. A person of ordinary skill in the art will appreciate that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVDROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0107] The present invention is applied to the WMT2019 English to Chinese test set for comparative testing, and the results are shown in the following table
[0108]
[0109] The method using a language model adopted by the present invention achieves the best performance when testing sentences with a word length of more than 70, surpassing the previous best method ERSATZ by 26%.
[0110] The following is a specific example of how to implement a sentence segmentation method based on a large language model suitable for machine translation, especially how to use LoRA (Low-Rank Adaptation) fine-tuning technology to optimize the model. The following is a specific implementation example of this process:
[0111] S1: Specific steps for training the punctuation reconstruction model
[0112] 1. Construction of training samples: First, you need to construct a training sample set containing various special contents (such as code snippets, URLs, file paths, non-target language characters, hash codes, very long unsigned texts, etc.). Such training samples can help the model learn to correctly add or modify punctuation in complex scenarios, as well as handle the segmentation of very long texts.
[0113] 2. Training data preprocessing: Preprocess the training samples, including text cleaning, punctuation standardization, etc., to ensure that the model can be trained on clean and consistent data.
[0114] 3. Model training: Select an open source large language model as the basis and apply LoRA fine-tuning technology to train the model. In this step, special attention will be paid to the model's performance in punctuation reconstruction and processing specific content (such as the special content mentioned above).
[0115] S2: Punctuation reconstruction and length adjustment of input text
[0116] 1. Punctuation reconstruction: Use the trained model to reconstruct the punctuation of the input text for machine translation. This includes adding missing punctuation marks at appropriate locations and correcting incorrect punctuation marks, so that the structure of the input sentence is more consistent with language logic.
[0117] 2. Length adjustment: While reconstructing punctuation, ensure that the length of the input text meets the maximum length limit set when the machine translation model is trained. This involves segmenting overlong sentences to ensure that each input sentence can be effectively processed by the model.
[0118] Example: Example of LoRA fine-tuning algorithm
[0119] The core of LoRA fine-tuning is to fine-tune the model by adding additional, trainable network layers while keeping the original model structure unchanged. The following are the specific implementation steps:
[0120] 1. Freeze the original model parameters: The original weight parameters of the selected large language model are frozen, which means that these parameters will not be updated during the fine-tuning process.
[0121] 2. Adding additional network layers: Add additional network layers to the model. These network layers have lower ranks, which means they have fewer parameters than the original model. These additional network layers can be linear layers or other network structures suitable for the task.
[0122] 3. Train additional network layers: During training, only the parameters of the newly added network layers are updated. These newly added trainable parameters are responsible for fine-tuning the model on specific tasks, such as punctuation reconstruction and text length adjustment in this case.
[0123] 4. Integration and testing: The fine-tuned model needs to be fully tested to ensure its effectiveness and accuracy in actual machine translation tasks.
[0124] Through the above steps, LoRA fine-tuning not only significantly reduces the cost of parameter fine-tuning, but also maintains the model performance, providing an effective solution for complex text processing tasks such as sentence segmentation and punctuation reconstruction in machine translation.
[0125] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A sentence segmentation method suitable for machine translation based on a large language model, characterized in that: The method includes: S1: Use the tuning of the large language model to complete the punctuation reconstruction function and realize the training of the punctuation reconstruction model; S2: Optimizing the input text for machine translation using the punctuation reconstruction model; S3: Output the corresponding translation results and complete this round of translation.
2. The sentence segmentation method for machine translation based on a large language model as claimed in claim 1, characterized in that: The training method in S1 is to select an open source large language model for LoRA fine-tuning.
3. The sentence segmentation method for machine translation based on a large language model as claimed in claim 1, characterized in that: The fine-tuned template is: Task type: Reconstruct sentence punctuation. Note that the maximum length of each sentence is X words. Original text: Please add appropriate punctuation marks to the following text to separate each sentence. If you do not need to add punctuation marks, please output the original text directly; Modified punctuation: Please add appropriate punctuation to the following text to separate the sentences. If no punctuation is needed, please output the original text directly.
4. The sentence segmentation method for machine translation based on a large language model as claimed in claim 3, characterized in that: The value of the X word is the maximum length of the training data set during the machine translation model training process.
5. The sentence segmentation method for machine translation based on a large language model as claimed in claim 1, characterized in that: The S1 specifically includes: By constructing training samples containing code snippets, URLs, file paths, non-target language characters, hash codes, very long unsigned texts, etc., the trained model can effectively solve the problems of punctuation reconstruction and excessive length.
6. The sentence segmentation method for machine translation based on a large language model as claimed in claim 1, characterized in that: The S2 specifically includes: The trained model is used to reconstruct punctuation in the original text input for machine translation, so that the length of the input sentence is more consistent with the language logic and meets the maximum length limit of the machine translation model training.
7. The sentence segmentation method for machine translation based on a large language model as claimed in claim 2, characterized in that: The basic principle of the LoRA fine-tuning algorithm is to freeze the pre-trained model weight parameters. While freezing the original model parameters, additional network layers are added to the model and only the newly added network layer parameters are trained. Since the number of these newly added parameters is small, not only the cost of parameter fine-tuning is significantly reduced, but also similar effects to full model fine-tuning can be achieved.
8. A sentence segmentation device based on a large language model suitable for machine translation that implements the sentence segmentation method based on a large language model suitable for machine translation as claimed in any one of claims 1 to 7, characterized in that: The device includes: The model tuning module is used to complete the punctuation reconstruction function by tuning the large language model and realize the training of the punctuation reconstruction model; The optimization module is connected to the model tuning module and uses the punctuation reconstruction model to optimize the input text for machine translation; The output module is connected to the optimization module and is used to output the corresponding translation results to complete this round of translation.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the sentence segmentation method based on a large language model suitable for machine translation as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the sentence segmentation method based on a large language model suitable for machine translation as claimed in any one of claims 1 to 7.
