Text processing method and device, model training method and device

Through sentence splitting and statistical analysis of the text, highly accurate parallel sentence pairs are determined, which solves the problem of poor parallel sentence pair construction in the existing technology due to reliance on vocabulary and length information, and achieves more accurate text Process and translate the results.

CN113609872BActive Publication Date: 2024-10-25PATSNAP LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110915501.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-10-25
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

Existing parallel sentence pair construction solutions mainly rely on vocabulary and sentence length information, ignoring semantic information between sentences, resulting in poor construction results.

Method used

By splitting the first language text and the second language text into sentences and words, multiple text units are generated, and parallel sentence pairs are determined based on these units. Combined with the statistical score information and factors such as the frequency and weight of the candidate word pairs, the high-quality sentences are calculated. Accurate parallel sentence pairs.

Benefits of technology

Fully taking into account the potential semantic information between sentences, it significantly improves the construction effect and accuracy of parallel sentence pairs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113609872B_ABST
    Figure CN113609872B_ABST
Patent Text Reader

Abstract

The present disclosure provides a text processing method and device, a model training method and device, and relates to the field of data processing technology. The text processing method includes: determining a first language text module based on a first language text, and determining a second language text module based on a second language text; performing sentence-word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units; and determining parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units. The present disclosure makes full use of the structural features of the text, and converts the corresponding text module into a text unit including fragmented clauses and participles by means of the sentence-word splitting operation. Therefore, the present disclosure can fully take into account the potential semantic information between sentences, and can effectively improve the construction effect of parallel sentence pairs.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application with the application date of March 29, 2021, application number 202110331040.4, and invention name “Text processing method and device, model training method and device”. Technical Field

[0002] The present disclosure relates to the field of data processing technology, and in particular to a text processing method and device, a model training method and device, a computer-readable storage medium, and an electronic device. Background Art

[0003] In recent years, with the accelerated development of globalization, the demand for text processing such as text translation and text retrieval has emerged. As an important basis for text processing, the importance of parallel sentence pairs is self-evident.

[0004] However, existing parallel sentence pair construction schemes mainly rely on vocabulary and sentence length information, ignoring the potential semantic information between sentences. Therefore, the construction effect is poor. Summary of the invention

[0005] In order to solve the above technical problems, the present disclosure is proposed. The embodiments of the present disclosure provide a text processing method and device, a model training method and device, a computer-readable storage medium and an electronic device.

[0006] In a first aspect, an embodiment of the present disclosure provides a text processing method, the method comprising: determining a first language text module based on a first language text, and determining a second language text module based on a second language text, wherein the first language text and the second language text are bilingual patent texts of the same family, or the first language text and the second language text are bilingual texts of the same paper, and the first language text module and the second language text module are in a corresponding relationship at the text structure level; performing sentence and word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units; and determining parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units.

[0007] In conjunction with the first aspect of the present disclosure, in some embodiments, the sentence-word splitting operation is used to split the text paragraph included in each language text module in the first language text module and the second language text module into multiple sentences, and split each sentence into multiple words. And / or, determining the first language text module based on the first language text, and determining the second language text module based on the second language text, including: performing a text structure splitting operation on the first language text and the second language text respectively to generate a first language text module and a second language text module, and the text structure splitting operation refers to performing a text structure-level splitting operation on the first language text and the second language text.

[0008] In combination with the first aspect of the present disclosure, in some embodiments, determining parallel sentence pairs corresponding to a first language text module and a second language text module based on multiple first language text units and multiple second language text units includes: for each first language text unit in the multiple first language text units, determining a first candidate unit set corresponding to the first language text unit based on the multiple second language text units, wherein the first candidate unit set includes at least one second language text unit; determining multiple candidate word pairs corresponding to the second language text unit and the first language text unit included in the first candidate unit set; determining score information corresponding to each of the multiple candidate word pairs; determining statistical score information corresponding to the second language text unit included in the first candidate unit set based on the score information corresponding to each of the multiple candidate word pairs; calculating statistical score information corresponding to the second language text unit included in the first candidate unit set; determining a second candidate unit set corresponding to the first language text unit based on the statistical score information; and determining parallel sentence pairs based on the second candidate unit sets corresponding to each of the multiple first language text units. The candidate word pairs include a first language word and a second language word corresponding to the first language word, and score information corresponding to each of the plurality of candidate word pairs is determined, including: for each of the plurality of candidate word pairs, based on occurrence frequency information of the candidate word pair, ratio information of a second language text unit containing the second language word in a first candidate unit set, candidate weighting information of the second language text unit, and length ratio information of the second language text unit and the first language text unit, the score information corresponding to the candidate word pair is determined; wherein, based on the score information corresponding to each of the plurality of candidate word pairs, statistical score information is determined, including: accumulating the score information corresponding to each of the plurality of candidate word pairs to determine the statistical score information.

[0009] In a second aspect, an embodiment of the present disclosure provides a model training method, the method comprising: determining an initial processing model; training the initial processing model based on parallel sentence pairs to generate a text processing model. The text processing model is used to generate a target text in a second language corresponding to the text to be processed based on the text to be processed in a first language, and the parallel sentence pairs are determined based on the text processing method described in any of the above embodiments.

[0010] In a third aspect, an embodiment of the present disclosure provides a text processing method, the method comprising: obtaining a text to be processed in a first language; inputting the text to be processed in the first language into a text processing model to generate a target text in a second language. The text processing model is trained based on the model training method described in any of the above embodiments.

[0011] In conjunction with the third aspect of the present disclosure, in some embodiments, the text processing model is a text translation model, and the text translation model is used to translate a to-be-processed text in a first language into a translated text in a second language.

[0012] In a fourth aspect, an embodiment of the present disclosure provides a text processing device, the device comprising: a first determination module, used to determine a first language text module based on a first language text, and to determine a second language text module based on a second language text, wherein the first language text and the second language text are bilingual patent texts of the same family, or the first language text and the second language text are bilingual texts of the same paper, and the first language text module and the second language text module are in a corresponding relationship at the text structure level; a splitting module, used to perform sentence and word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units; a second determination module, used to determine parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units.

[0013] In a fifth aspect, an embodiment of the present disclosure provides a model training device, the device comprising: an initial processing model determination module, used to determine the initial processing model; a training module, used to train the initial processing model based on parallel sentence pairs to generate a text processing model. The text processing model is used to generate a target text in a second language corresponding to the text to be processed based on the text to be processed in the first language, and the parallel sentence pairs are determined based on the text processing method described in any of the above embodiments.

[0014] In a sixth aspect, an embodiment of the present disclosure provides a text processing device, the device comprising: an acquisition module, used to acquire a text to be processed in a first language; and a processing module, used to input the text to be processed in the first language into a text processing model to generate a target text in a second language. The text processing model is trained based on the model training method described in any of the above embodiments.

[0015] In the seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores instructions. When the instructions are executed by a processor of an electronic device, the electronic device can execute the text processing method and / or model training method mentioned in any of the above embodiments.

[0016] In an eighth aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor and a memory for storing the computer executable instructions. The processor is used to execute the computer executable instructions to implement the text processing method and / or model training method mentioned in any of the above embodiments.

[0017] The text processing method provided by the embodiment of the present disclosure makes full use of the structural characteristics of the text, and converts the corresponding text modules into fragmented sentence segments by means of sentence-word splitting operations. Therefore, the embodiment of the present disclosure can fully take into account the potential semantic information between sentences, and can effectively improve the construction effect of parallel sentence pairs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The figure is a schematic diagram of an application scenario of a text processing method provided by an embodiment of the present disclosure.

[0019] Figure 2 The figure is a flowchart of a text processing method provided by an embodiment of the present disclosure.

[0020] Figure 3 The figure is a schematic diagram of a process of determining parallel sentence pairs corresponding to a first language text module and a second language text module based on a plurality of first language text units and a plurality of second language text units provided by an embodiment of the present disclosure.

[0021] Figure 4 The figure is a schematic diagram of a flow chart of calculating statistical score information corresponding to a second language text unit included in a first candidate unit set provided by an embodiment of the present disclosure.

[0022] Figure 5 The figure is a schematic diagram of a flow chart of calculating statistical score information corresponding to a second language text unit included in a first candidate unit set provided by another embodiment of the present disclosure.

[0023] Figure 6 The figure shows a flow chart of determining score information corresponding to a candidate word pair based on occurrence frequency information of the candidate word pair, ratio information of a second language text unit containing a second language word in a first candidate unit set, candidate weighting information of the second language text unit, and length ratio information of the second language text unit and the first language text unit, provided by an embodiment of the present disclosure.

[0024] Figure 7 The figure is a schematic diagram of a process of determining a set of second candidate units corresponding to a first language text unit based on statistical score information provided by an embodiment of the present disclosure.

[0025] Figure 8The figure is a schematic diagram of a flow chart of determining parallel sentence pairs corresponding to a first language text module and a second language text module based on a plurality of first language text units and a plurality of second language text units provided by another embodiment of the present disclosure.

[0026] Fig. 9 The figure is a schematic diagram of a process of determining a third candidate unit set based on a second candidate unit set and a bilingual translation model provided by an embodiment of the present disclosure.

[0027] Fig.10 The figure is a schematic diagram of a process of determining a third candidate unit set based on similarity evaluation information provided by an embodiment of the present disclosure.

[0028] Fig.11 The figure is a schematic diagram of a flow chart of determining parallel sentence pairs corresponding to a first language text module and a second language text module based on a plurality of first language text units and a plurality of second language text units provided by another embodiment of the present disclosure.

[0029] Fig.12 Shown is a flowchart of a text processing method provided by another embodiment of the present disclosure.

[0030] Fig.13 The figure is a schematic diagram of the actual application process of the text processing method provided by an embodiment of the present disclosure.

[0031] Fig.14 The figure is a flow chart of a model training method provided in one embodiment of the present disclosure.

[0032] Fig.15 The figure is a flowchart of a text processing method provided by an embodiment of the present disclosure.

[0033] Fig.16 Shown is a structural schematic diagram of a text processing device provided by an embodiment of the present disclosure.

[0034] Fig.17 Shown is a schematic diagram of the structure of a second determination module provided in an embodiment of the present disclosure.

[0035] Fig.18 Shown is a schematic diagram of the structure of a statistical score information determination unit provided in an embodiment of the present disclosure.

[0036] Fig.19 Shown is a schematic diagram of the structure of a second candidate unit set determination unit provided in an embodiment of the present disclosure.

[0037] Fig. 20 Shown is a schematic structural diagram of a second determination module provided in another embodiment of the present disclosure.

[0038] Fig.21Shown is a schematic diagram of the structure of a third candidate unit set determination unit provided in an embodiment of the present disclosure.

[0039] Fig. 22 Shown is a schematic diagram of the structure of a third candidate unit set determining subunit provided in an embodiment of the present disclosure.

[0040] Fig.23 Shown is a structural schematic diagram of a text processing device provided by another embodiment of the present disclosure.

[0041] Fig.24 Shown is a schematic diagram of the structure of a model training device provided in one embodiment of the present disclosure.

[0042] Fig.25 Shown is a structural schematic diagram of a text processing device provided by an embodiment of the present disclosure.

[0043] Fig.26 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0045] The technical solution provided by the present disclosure can be applied in smart terminals (such as tablet computers, mobile phones, etc.) to enable the smart terminals to have relevant functions, such as cross-language patent retrieval function, patent text rapid translation function, etc.

[0046] Combine the following Figure 1 The application scenarios of the text processing method provided by the present disclosure are briefly introduced.

[0047] Figure 1 The figure is a schematic diagram of an application scenario of a text processing method provided by an embodiment of the present disclosure. Figure 1 The illustrated scenario includes a server 110 and a client 120 in communication with the server 110. Specifically, the server 110 is configured to generate parallel sentence pairs corresponding to the bilingual patent family texts based on the bilingual patent family texts, and to generate search results or translation results in the second language according to the received information to be retrieved or information to be translated in the first language and the pre-generated parallel sentence pairs.

[0048] Exemplarily, the method of generating parallel sentence pairs corresponding to bilingual patent family texts based on bilingual patent family texts includes: determining a first language text module based on the first language text, and determining a second language text module based on the second language text, and then performing sentence-word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units, and determining parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units. Wherein, the first language text and the second language text are patent texts in two different languages ​​corresponding to the same patent to be processed (i.e., bilingual patent family texts), and the first language text module and the second language text module are in a corresponding relationship at the text structure (i.e., patent structure) level.

[0049] Exemplarily, in actual application, the client 120 can receive the information to be retrieved (i.e., information to be processed) in the first language sent by the user, and send the received information to be retrieved in the first language to the server 110. The server 110 generates the search results in the second language based on the received information to be retrieved in the first language and the pre-generated parallel sentence pairs corresponding to the multiple groups of patent families, and sends the generated search results in the second language to the client 120. The client 120 presents the received search results in the second language to the user.

[0050] For example, in actual application, the client 120 can receive information to be translated in a first language sent by a user, and send the received information to be translated in the first language to the server 110. The server 110 generates a translation result in a second language based on the received information to be translated in the first language and the pre-generated parallel sentence pairs corresponding to each of the multiple groups of patent families, and sends the generated translation result in the second language to the client 120. The client 120 presents the received translation result in the second language to the user.

[0051] Combine the following Figures 2 to 15 A brief introduction is given to the text processing method and model training method provided by the present invention.

[0052] Figure 2 FIG. 1 is a flow chart of a text processing method provided by an embodiment of the present disclosure. Figure 2 As shown, the text processing method provided by the embodiment of the present disclosure includes the following steps.

[0053] Step 210: determining a first language text module based on the first language text, and determining a second language text module based on the second language text.

[0054] For example, the first language text and the second language text are bilingual patent texts of the same family, such as Chinese and English patent texts of the same family. For another example, the first language text and the second language text are bilingual texts of the same paper (such as a master's degree thesis), such as Chinese and English bilingual texts.

[0055] Exemplarily, the first language text module and the second language text module are in a corresponding relationship at the patent structure (i.e., text structure) level. For example, the first language text module is the summary module of the first language text, and correspondingly, the second language text module is the summary module of the second language text. For another example, the first language text module is the claim module of the first language text, and correspondingly, the second language text module is the claim module of the second language text.

[0056] Step 220 , performing sentence-word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units.

[0057] In one embodiment of the present disclosure, the sentence-word splitting operation refers to splitting the text paragraph included in the text module to be split (i.e., the first language text module or the second language text module) into multiple sentences, and splitting each sentence into multiple words, so as to finally generate a text unit corresponding to the text module to be split.

[0058] It should be noted that a text unit (including a first language text unit and a second language text unit) may include only one independent sentence (i.e. one clause) or two, three or more independent sentences (i.e. two, three or more clauses). Each independent sentence includes multiple participles, i.e. each clause is divided into multiple participles.

[0059] For example, the first language text unit is represented by S, and the second language text unit is represented by T. S and T can be represented by the following expressions (1) and (2).

[0060] S={S1,S2,……,S i-1 ,S i} (1)

[0061] In expression (1), S = {S1, S2, ..., S i-1 ,S i} respectively represent the participles included in the first language text unit.

[0062] T={T1,T2,……,T j-1 ,T j} (2)

[0063] In expression (2), T = {T1, T2, ..., T j-1 ,Tj} respectively represent the participles included in the second language text unit.

[0064] Step 230: Determine parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units.

[0065] In actual application, a first language text module is first determined based on the first language text, and a second language text module is determined based on the second language text. Then, sentence and word splitting operations are performed on the first language text module and the second language text module respectively to generate multiple first language text units and multiple second language text units. Based on the multiple first language text units and multiple second language text units, parallel sentence pairs corresponding to the first language text module and the second language text module are determined.

[0066] The text processing method provided by the embodiment of the present disclosure makes full use of the structural characteristics of the text, and converts the corresponding text modules into fragmented sentence segments by means of sentence-word splitting operations. Therefore, the embodiment of the present disclosure can fully take into account the potential semantic information between sentences, and can effectively improve the construction effect of parallel sentence pairs.

[0067] Figure 3 The figure shows a flow chart of determining parallel sentence pairs corresponding to a first language text module and a second language text module based on a plurality of first language text units and a plurality of second language text units provided by an embodiment of the present disclosure. Figure 2 The present disclosure is extended based on the embodiment shown Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0068] like Figure 3 As shown, in the text processing method provided by the embodiment of the present disclosure, the step of determining the parallel sentence pairs corresponding to the first language text module and the second language text module based on multiple first language text units and multiple second language text units includes the following steps.

[0069] Step 310: for each first language text unit in the plurality of first language text units, determine a first candidate unit set corresponding to the first language text unit based on the plurality of second language text units.

[0070] Exemplarily, the first candidate unit set includes at least one second language text unit. That is, at least one second language text unit is selected from the plurality of second language text units mentioned in step 310 to generate the first candidate unit set.

[0071] Exemplarily, a first candidate unit set corresponding to the first language text unit is determined based on a preset artificial dictionary.

[0072] Step 320: Calculate statistical score information corresponding to the second language text units included in the first candidate unit set.

[0073] In an embodiment of the present disclosure, for each second language text unit included in the first candidate unit set, a score based on statistics is recursively calculated to obtain statistical score information corresponding to the second language text unit.

[0074] Step 330: Determine a second candidate unit set corresponding to the first language text unit based on the statistical score information.

[0075] Exemplarily, the second language text units in the first candidate unit set whose statistical scores are greater than a preset statistical score threshold are grouped together to generate a second candidate unit set.

[0076] Step 340: determine parallel sentence pairs based on the second candidate unit sets corresponding to the plurality of first language text units.

[0077] The text processing method provided by the embodiment of the present disclosure achieves the purpose of determining the parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units by determining the first candidate unit set corresponding to the first language text unit based on the plurality of second language text units for each of the plurality of first language text units, then calculating the statistical score information corresponding to the second language text unit included in the first candidate unit set, and determining the second candidate unit set corresponding to the first language text unit based on the statistical score information, and then determining the parallel sentence pairs based on the second candidate unit sets corresponding to the plurality of first language text units. Since the statistical score information corresponding to the second language text unit can effectively characterize the accuracy of the second language text unit relative to the first language text unit, the accuracy of the second candidate unit set generated by the embodiment of the present disclosure is higher than the accuracy of the first candidate unit set. On this basis, the embodiment of the present disclosure uses the method of determining the parallel sentence pairs by the second candidate unit sets corresponding to the plurality of first language text units, and achieves the purpose of further improving the accuracy of the constructed parallel sentence pairs.

[0078] Figure 4 The figure is a flow chart of calculating the statistical score information corresponding to the second language text unit included in the first candidate unit set provided by an embodiment of the present disclosure. Figure 3 The present disclosure is extended based on the embodiment shown Figure 4 The embodiment shown is described below in detail. Figure 4 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.

[0079] like Figure 4 As shown, in the text processing method provided by the embodiment of the present disclosure, the step of calculating the statistical score information corresponding to the second language text unit included in the first candidate unit set includes the following steps.

[0080] Step 410: Determine a plurality of candidate word pairs corresponding to the second language text unit and the first language text unit included in the first candidate unit set.

[0081] It should be noted that if the first candidate unit set includes only one second language text unit, then it is sufficient to determine the multiple candidate word pairs corresponding to the second language text unit and the first language text unit. If the first candidate unit set includes multiple second language text units, then for each second language text unit, it is necessary to determine the multiple candidate word pairs corresponding to the second language text unit and the first language text unit, and then determine the statistical score information corresponding to each of the multiple second language text units based on the multiple candidate word pairs corresponding to each of the multiple second language text units.

[0082] Step 420: Determine score information corresponding to each of the plurality of candidate word pairs.

[0083] Step 430: Determine statistical score information based on the score information corresponding to each of the plurality of candidate word pairs.

[0084] Exemplarily, for each group of second language text units and first language text units, the scores of the candidate word pairs corresponding to the group are accumulated, and the accumulated result is used as the statistical score corresponding to the group (ie, statistical score information).

[0085] The text processing method provided by the embodiment of the present disclosure achieves the purpose of calculating the statistical score information corresponding to the second language text unit included in the first candidate unit set by determining multiple candidate word pairs corresponding to the second language text unit and the first language text unit included in the first candidate unit set, determining the score information corresponding to each of the multiple candidate word pairs, and then determining the statistical score information based on the score information corresponding to each of the multiple candidate word pairs.

[0086] In the disclosed embodiment, the statistical score information corresponding to each group of second language text units and first language text units is determined based on the score information corresponding to each of the multiple candidate word pairs corresponding to the group of second language text units and first language text units. Since each group of second language text units and first language text units is composed of the above multiple candidate word pairs, the disclosed embodiment can more accurately determine the statistical score information corresponding to the group of second language text units and first language text units based on the score information corresponding to each of the above multiple candidate word pairs, thereby providing a prerequisite for improving the accuracy of parallel sentence pairs.

[0087] Figure 5 The figure is a flow chart of calculating the statistical score information corresponding to the second language text unit included in the first candidate unit set provided by another embodiment of the present disclosure. Figure 4 The present disclosure is extended based on the embodiment shown Figure 5 The embodiment shown is described below in detail. Figure 5 The embodiment shown and Figure 4 The differences and similarities of the illustrated embodiments are not described in detail.

[0088] like Figure 5 As shown, in the text processing method provided by the embodiment of the present disclosure, the step of determining the score information corresponding to each of the plurality of candidate word pairs includes the following steps.

[0089] Step 510, for each candidate word pair among the multiple candidate word pairs, determine the score information corresponding to the candidate word pair based on the occurrence frequency information of the candidate word pair, the ratio information of the second language text unit containing the second language word in the first candidate unit set, the candidate weighting information of the second language text unit, and the length ratio information of the second language text unit and the first language text unit.

[0090] Furthermore, in the embodiment of the present disclosure, the step of determining statistical score information based on the score information corresponding to each of the plurality of candidate word pairs includes the following steps.

[0091] Step 520: Accumulate the score information corresponding to each of the plurality of candidate word pairs to determine statistical score information.

[0092] Since the statistical score information corresponding to each group of second language text units and first language text units fully takes into account the occurrence frequency of candidate word pairs, candidate weighting information of the second language text units and other information, the embodiments of the present disclosure can greatly improve the accuracy of the obtained statistical score information.

[0093] Figure 6The figure shows a flow chart of determining the score information corresponding to a candidate word pair based on the occurrence frequency information of the candidate word pair, the ratio information of the second language text unit containing the second language word in the first candidate unit set, the candidate weight information of the second language text unit, and the length ratio information of the second language text unit and the first language text unit provided by an embodiment of the present disclosure. Figure 5 The present disclosure is extended based on the embodiment shown Figure 6 The embodiment shown is described below in detail. Figure 6 The embodiment shown and Figure 5 The differences and similarities of the illustrated embodiments are not described in detail.

[0094] like Figure 6 As shown, in the text processing method provided by the embodiment of the present disclosure, based on the occurrence frequency information of the candidate word pairs, the ratio information of the second language text unit containing the second language word in the first candidate unit set, the candidate weighting information of the second language text unit, and the length ratio information of the second language text unit and the first language text unit, the step of determining the score information corresponding to the candidate word pairs includes the following steps.

[0095] Step 610: Calculate logarithmic information corresponding to the first product information of the occurrence frequency information and the ratio information.

[0096] Step 620, calculating second product information of the logarithmic information, the candidate weight information and the length ratio information.

[0097] Step 630: Determine score information based on the second product information.

[0098] For example, assuming that in a group of second language text units and first language text units, the first language text unit S is represented by the above expression (1), and the second language text unit T is represented by the above expression (2), then the statistical scores Score(S, T) corresponding to the group of second language text units and first language text units can be calculated based on the following formula (3).

[0099]

[0100] In formula (3), k represents the number of candidate word pairs included in the set of second language text units and first language text units, W i Indicates the score information of the i-th group of candidate word pairs. That is, in the disclosed embodiment, the statistical score of the group of second language text units and first language text units (i.e., the statistical score corresponding to the second language text unit) is the cumulative sum of the scores of the candidate word pairs included in the group of second language text units and first language text units.

[0101] In addition, for the i-th group of candidate word pairs, tf(si ,t i ) represents the frequency of occurrence of the candidate word pair in the second language text unit and the first language text unit, idf(t i ) represents the ratio information of the second language text unit containing the second language word in the set of candidate word pairs in the first candidate unit set, pair_weight ij The candidate weighting information of the second language text unit is represented, and length_ratio(S, T) represents the length ratio information of the second language text unit and the first language text unit.

[0102] Exemplarily, pair_weight is determined based on the mapping relationship between the second language text unit (also called candidate text unit) in the group and the first language text units corresponding to the first language text module. ij The inventors of the present disclosure have found through multiple experiments that limiting the candidate weighting information of the second language text unit in this way can greatly improve the accuracy of the score information corresponding to the determined candidate word pairs.

[0103] Figure 7 The figure is a flow chart of determining a second candidate unit set corresponding to a first language text unit based on statistical score information provided by an embodiment of the present disclosure. Figure 3 The present disclosure is extended based on the embodiment shown Figure 7 The embodiment shown is described below in detail. Figure 7 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.

[0104] like Figure 7 As shown, in the text processing method provided by the embodiment of the present disclosure, the step of determining a second candidate unit set corresponding to the first language text unit based on statistical score information includes the following steps.

[0105] Step 710: Determine the relationship between the statistical score information corresponding to the second language text unit included in the first candidate unit set and the preset statistical score threshold.

[0106] Step 720: Generate a second candidate unit set based on the second language text units in the first candidate unit set that meet the first preset relationship condition.

[0107] Exemplarily, the first preset relationship condition is “greater than”, and correspondingly, the second language text unit that meets the first preset relationship condition is a second language text unit whose statistical score information (ie, statistical score) is greater than a preset statistical score threshold.

[0108] It should be noted that the first preset relationship condition can be determined according to actual conditions, and the embodiments of the present disclosure do not impose a unified limitation on this.

[0109] The text processing method provided by the embodiment of the present disclosure achieves the purpose of determining the second candidate unit set corresponding to the first language text unit based on the statistical score information by determining the relationship between the statistical score information corresponding to the second language text unit included in the first candidate unit set and the preset statistical score threshold, and generating the second candidate unit set based on the second language text units in the first candidate unit set that meet the first preset relationship condition.

[0110] Figure 8 The figure shows a flow chart of determining parallel sentence pairs corresponding to a first language text module and a second language text module based on a plurality of first language text units and a plurality of second language text units provided by another embodiment of the present disclosure. Figure 3 The present disclosure is extended based on the embodiment shown Figure 8 The embodiment shown is described below in detail. Figure 8 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.

[0111] like Figure 8 As shown, in the text processing method provided by the embodiment of the present disclosure, before the step of determining parallel sentence pairs based on the second candidate unit sets corresponding to each of the plurality of first language text units, the following steps are also included.

[0112] Step 810: Determine a third candidate unit set based on the second candidate unit set and the bilingual translation model.

[0113] Exemplarily, the bilingual translation model is used to translate a first language text unit into a second language translation unit corresponding to the first language text unit. For example, the first language is Chinese, the second language is English, the first language text unit is "I love China", and the second language translation unit is "I love China".

[0114] It should be understood that the bilingual translation model is used to further screen the second language text units included in the second candidate unit set to obtain a preset number of second language text units with higher accuracy, and then generate a third candidate unit set.

[0115] In one embodiment of the present disclosure, the process of determining the bilingual translation model is as follows: determining an initial network model, and training the initial network model using parallel sentence pair samples to obtain a bilingual translation model.

[0116] Furthermore, in the embodiment of the present disclosure, the step of determining parallel sentence pairs based on the second candidate unit sets corresponding to each of the plurality of first language text units includes the following steps.

[0117] Step 820: Determine parallel sentence pairs based on the third candidate unit set.

[0118] In one embodiment of the present disclosure, the second language text units included in the third candidate unit set are used as components of the parallel sentence pairs.

[0119] Since the bilingual translation model can further screen the second language text units included in the second candidate unit set, and the bilingual translation model can fully take into account the semantic information of the sentence pairs, the embodiment of the present disclosure can further improve the accuracy of the determined parallel sentence pairs with the help of the bilingual translation model.

[0120] Fig. 9 The figure shows a flow chart of determining a third candidate unit set based on a second candidate unit set and a bilingual translation model provided by an embodiment of the present disclosure. Figure 8 The present disclosure is extended based on the embodiment shown Fig. 9 The embodiment shown is described below in detail. Fig. 9 The embodiment shown and Figure 8 The differences and similarities of the illustrated embodiments are not described in detail.

[0121] like Fig. 9 As shown, in the text processing method provided by the embodiment of the present disclosure, the step of determining the third candidate unit set based on the second candidate unit set and the bilingual translation model includes the following steps.

[0122] Step 910: Input the first language text unit into a bilingual translation model to obtain a second language translation unit corresponding to the first language text unit.

[0123] Step 920: Determine similarity evaluation information between the second language text unit and the second language translation unit included in the second candidate unit set.

[0124] It should be noted that the specific calculation method of the similarity evaluation information can be determined according to the actual situation, and the embodiments of the present disclosure do not make a unified limitation on this.

[0125] Step 930: determine a third candidate unit set based on the similarity evaluation information.

[0126] Exemplarily, the third candidate unit set is determined based on the similarity evaluation information corresponding to each of the second language text units included in the second candidate unit set and a preset similarity evaluation threshold. For example, the second language text units whose similarity evaluation information is greater than the preset similarity evaluation threshold are selected to generate the third candidate unit set.

[0127] The text processing method provided by the embodiment of the present disclosure inputs a first language text unit into a bilingual translation model to obtain a second language translation unit corresponding to the first language text unit, then determines similarity evaluation information between the second language text unit and the second language translation unit included in the second candidate unit set, and determines a third candidate unit set based on the similarity evaluation information, thereby generating a third candidate unit set including more accurate second language text units.

[0128] In one embodiment of the present disclosure, similarity evaluation information is determined based on Bilingual Evaluation Understudy (BLEU) score information.

[0129] Fig.10 FIG. 1 is a flow chart of determining a third candidate unit set based on similarity evaluation information provided by an embodiment of the present disclosure. Fig. 9 The present disclosure is extended based on the embodiment shown Fig.10 The embodiment shown is described below in detail. Fig.10 The embodiment shown and Fig. 9 The differences and similarities of the illustrated embodiments are not described in detail.

[0130] like Fig.10 As shown, in the text processing method provided by the embodiment of the present disclosure, the step of determining the third candidate unit set based on similarity evaluation information includes the following steps.

[0131] Step 1010: Determine the relationship between the similarity evaluation information corresponding to the second language text unit included in the second candidate unit set and a preset similarity evaluation threshold.

[0132] Step 1020: Generate a third candidate unit set based on the second language text units in the second candidate unit set that meet the second preset relationship condition.

[0133] Exemplarily, the second preset relationship condition is “greater than”, and correspondingly, the second language text unit that meets the second preset relationship condition is a second language text unit whose similarity evaluation information (ie, similarity evaluation value) is greater than a preset similarity evaluation threshold.

[0134] It should be noted that the second preset relationship condition can be determined according to actual conditions, and the embodiments of the present disclosure do not impose a unified limitation on this.

[0135] Since the similarity evaluation information can accurately represent the similarity between the second language text units and the second language translation units included in the second candidate unit set, the embodiment of the present disclosure can screen out a third candidate unit set including second language text units with higher accuracy.

[0136] Fig.11The figure shows a flow chart of determining parallel sentence pairs corresponding to a first language text module and a second language text module based on a plurality of first language text units and a plurality of second language text units provided by another embodiment of the present disclosure. Figure 8 The present disclosure is extended based on the embodiment shown Fig.11 The embodiment shown is described below in detail. Fig.11 The embodiment shown and Figure 8 The differences and similarities of the illustrated embodiments are not described in detail.

[0137] like Fig.11 As shown, in the text processing method provided by the embodiment of the present disclosure, after the step of determining parallel sentence pairs based on the third candidate unit set, the following steps are also included.

[0138] Step 1110, incrementally updating the bilingual translation model based on parallel sentence pairs.

[0139] The text processing method provided by the embodiment of the present disclosure optimizes the translation quality of the bilingual translation model by incrementally updating the bilingual translation model with parallel sentence pairs, thereby ultimately improving the extraction accuracy of subsequent parallel sentence pairs.

[0140] Fig.12 FIG. 1 is a flowchart of a text processing method provided by another embodiment of the present disclosure. Figure 2 The present disclosure is extended based on the embodiment shown Fig.12 The embodiment shown is described below in detail. Fig.12 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0141] like Fig.12 As shown, in the text processing method provided by the embodiment of the present disclosure, the steps of determining a first language text module based on a first language text and determining a second language text module based on a second language text include the following steps.

[0142] Step 1210 , performing text structure splitting operations on the first language text and the second language text respectively to generate a first language text module and a second language text module.

[0143] Exemplarily, the text structure splitting operation refers to performing a text structure splitting operation on the first language text and the second language text, for example, performing a text structure splitting operation based on the structure of the text such as the abstract, preface, and research content.

[0144] Exemplarily, the first language text and the second language text are bilingual patent texts of the same family, and the text structure splitting operation is a patent structure splitting operation. The patent structure splitting operation refers to splitting the patent text at the patent structure level. For example, the patent structure splitting operation includes at least one of the abstract structure splitting operation, the claim structure splitting operation, the specification structure splitting operation, the background technology splitting operation, the invention content splitting operation and the specific implementation method splitting operation. Among them, the abstract structure splitting operation refers to splitting the abstract module of the patent text from the patent text. The claim structure splitting operation refers to splitting the claim module of the patent text from the patent text. The specification structure splitting operation refers to splitting the specification module of the patent text from the patent text. The background technology splitting operation refers to splitting the background technology module of the patent text from the patent text. The invention content splitting operation refers to splitting the invention content module of the patent text from the patent text. The specific implementation method splitting operation refers to splitting the specific implementation method module of the patent text from the patent text.

[0145] Since the embodiments of the present disclosure make full use of the structural information of the text, the accuracy of the constructed parallel sentence pairs can be greatly improved.

[0146] Fig.13 FIG. 1 is a schematic diagram of the actual application process of the text processing method provided by an embodiment of the present disclosure. Fig.13 As shown, the actual application process of the text processing method provided by the embodiment of the present disclosure can be seen as follows.

[0147] Obtain patent bilingual family data (i.e., 1310), perform patent structure splitting operation on the patent bilingual family data to generate a first language text module and a second language text module (i.e., 1320), and then perform sentence and word splitting operation on the first language text module and the second language text module respectively to determine multiple first language text units and multiple second language text units (i.e., 1330).

[0148] Then, for each of the first language text units in the plurality of first language text units, a first candidate unit set is generated based on a preset artificial dictionary and the plurality of second language text units (wherein the first candidate unit set includes at least one second language text unit), and then the statistical score information corresponding to the second language text units included in the first candidate unit set is calculated (i.e., 1340), and it is determined whether the statistical score information corresponding to the second language text units included in the first candidate unit set is greater than a preset statistical score threshold, and a second candidate unit set is generated based on the second language text units whose statistical score information is greater than the preset statistical score threshold (i.e., 1350). In addition, parallel sentence pair sample data is obtained (i.e., 1360), and then the bilingual translation model is obtained by training using the parallel sentence pair sample data. Then, the first language text unit corresponding to the second candidate unit set is input into the bilingual translation model to obtain the second language translation unit (i.e., 1370), and the similarity evaluation information of the second language text unit and the second language translation unit included in the second candidate unit set is determined respectively (i.e., 1380), and then it is determined respectively whether the similarity evaluation information corresponding to each of the second language text units included in the second candidate unit set is greater than a preset similarity evaluation threshold, and the second language text units whose similarity evaluation information is greater than the preset similarity evaluation threshold are generated into a third candidate unit set (i.e., 1390), and then the third candidate unit set and the first language text unit are combined to generate parallel sentence pairs. In addition, the bilingual translation model is updated based on the determined parallel sentence pairs.

[0149] The disclosed embodiment combines statistical analysis methods and bilingual translation models to greatly improve the accuracy of the constructed parallel sentence pairs, thereby providing favorable conditions for the subsequent construction of patent translation engines and cross-language patent retrieval. In addition, the disclosed embodiment uses the constructed parallel sentence pairs to incrementally update the bilingual translation model, which can further improve the scenario adaptability and translation accuracy of the bilingual translation model.

[0150] In one embodiment of the present disclosure, after determining the parallel sentence pairs, the text processing method further includes: receiving information to be processed input by a user, wherein the information to be processed includes information to be translated or information to be retrieved; determining a processing result based on the information to be processed and the parallel sentence pairs, wherein the processing result includes a translation result or a retrieval result.

[0151] The disclosed embodiment achieves cross-language retrieval and translation purposes by means of generated parallel sentence pairs, and has advantages of high speed and accurate results compared with the prior art.

[0152] Fig.14 FIG. 1 is a flow chart of a model training method provided by an embodiment of the present disclosure. Fig.14 As shown, the model training method provided by the embodiment of the present disclosure includes the following steps.

[0153] Step 2310, determine the initial processing model.

[0154] Exemplarily, the initial processing model is a neural network model based on deep learning.

[0155] Step 2320, training an initial processing model based on parallel sentence pairs to generate a text processing model.

[0156] Exemplarily, the text processing model is used to generate a target text in a second language corresponding to the text to be processed based on the text to be processed in the first language. The parallel sentence pairs are determined based on the text processing method mentioned in any of the above embodiments.

[0157] Since the construction accuracy of the parallel sentence pairs determined based on the above embodiment is relatively high, the text processing model obtained by training the parallel sentence pairs determined in the above embodiment in the embodiment of the present disclosure also has relatively high processing accuracy.

[0158] Fig.15 The figure is a flowchart of a text processing method provided by an embodiment of the present disclosure. Fig.14 The text processing model obtained by training the model training method mentioned in the embodiment shown. Fig.15 As shown, the text processing method provided by the embodiment of the present disclosure includes the following steps.

[0159] Step S2410, obtaining the text to be processed in the first language.

[0160] Step S2420: input the to-be-processed text in the first language into a text processing model to generate a target text in the second language.

[0161] Exemplarily, the text processing model is a text translation model, wherein the text translation model is used to translate a to-be-processed text in a first language into a translation text in a second language (ie, a target text in the second language).

[0162] Exemplarily, the text processing model is a text retrieval model, wherein the text retrieval model is used to generate a retrieval text in a second language (ie, a target text in the second language) based on a to-be-processed text in a first language.

[0163] The text processing method provided by the embodiments of the present disclosure can optimize the text processing results with the help of a text processing model and improve the accuracy of text processing.

[0164] Combination of the above Figures 2 to 15 , describes in detail the method embodiment of the present disclosure, and the following is combined with Figures 16 to 26, describes the device embodiment of the present disclosure in detail. In addition, it should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0165] Fig.16 FIG. 1 is a schematic diagram of the structure of a text processing device provided by an embodiment of the present disclosure. Fig.16 As shown, the text processing device 1400 provided in the embodiment of the present disclosure includes:

[0166] A first determination module 1410, configured to determine a first language text module based on the first language text, and to determine a second language text module based on the second language text;

[0167] A splitting module 1420 is used to perform sentence-word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units;

[0168] The second determining module 1430 is used to determine parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units.

[0169] Fig.17 The figure is a schematic diagram of the structure of the building block provided by an embodiment of the present disclosure. Fig.16 The present disclosure is extended based on the embodiment shown Fig.17 The embodiment shown is described below in detail. Fig.17 The embodiment shown and Fig.16 The differences and similarities of the illustrated embodiments are not described in detail.

[0170] like Fig.17 As shown, in the text processing device provided by the embodiment of the present disclosure, the second determination module 1430 includes:

[0171] A first candidate unit set determining unit 1510 is configured to determine, for each first language text unit in the plurality of first language text units, a first candidate unit set corresponding to the first language text unit based on the plurality of second language text units;

[0172] A statistical score information determination unit 1520, configured to calculate statistical score information corresponding to the second language text units included in the first candidate unit set;

[0173] A second candidate unit set determining unit 1530, configured to determine a second candidate unit set corresponding to the first language text unit based on the statistical score information;

[0174] The parallel sentence pair determining unit 1540 is configured to determine a parallel sentence pair based on a set of second candidate units corresponding to each of the plurality of first language text units.

[0175] Fig.18 The figure is a schematic diagram of the structure of a statistical score information determination unit provided in one embodiment of the present disclosure. Fig.17 The present disclosure is extended based on the embodiment shown Fig.18 The embodiment shown is described below in detail. Fig.18 The embodiment shown and Fig.17 The differences and similarities of the illustrated embodiments are not described in detail.

[0176] like Fig.18 As shown, in the text processing device provided by the embodiment of the present disclosure, the statistical score information determination unit 1520 includes:

[0177] The candidate word pair determination subunit 1610 is used to determine a plurality of candidate word pairs corresponding to the second language text unit and the first language text unit included in the first candidate unit set;

[0178] The score information determination subunit 1620 is used to determine the score information corresponding to each of the plurality of candidate word pairs;

[0179] The statistical score information determination subunit 1630 is used to determine the statistical score information based on the score information corresponding to each of the plurality of candidate word pairs.

[0180] Fig.19 The figure is a schematic diagram of the structure of the second candidate unit set determination unit provided by an embodiment of the present disclosure. Fig.17 The present disclosure is extended based on the embodiment shown Fig.19 The embodiment shown is described below in detail. Fig.19 The embodiment shown and Fig.17 The differences and similarities of the illustrated embodiments are not described in detail.

[0181] like Fig.19 As shown, in the text processing device provided by the embodiment of the present disclosure, the second candidate unit set determining unit 1530 includes:

[0182] The first relationship determination subunit 1710 is used to determine the relationship between the statistical score information corresponding to the second language text unit included in the first candidate unit set and a preset statistical score threshold;

[0183] The second candidate unit set determining subunit 1720 is configured to generate a second candidate unit set based on the second language text units in the first candidate unit set that meet the first preset relationship condition.

[0184] Fig. 20 The figure is a schematic diagram of the structure of the building block provided by another embodiment of the present disclosure. Fig.17 The present disclosure is extended based on the embodiment shown Fig. 20 The embodiment shown is described below in detail. Fig. 20 The embodiment shown and Fig.17 The differences and similarities of the illustrated embodiments are not described in detail.

[0185] like Fig. 20 As shown, in the text processing device provided by the embodiment of the present disclosure, the second determining module 1430 further includes:

[0186] The third candidate unit set determining unit 1810 is configured to determine a third candidate unit set based on the second candidate unit set and the bilingual translation model.

[0187] Furthermore, in the embodiment of the present disclosure, the parallel sentence pair determining unit 1540 includes:

[0188] The parallel sentence pair determining subunit 1820 is used to determine the parallel sentence pairs based on the third candidate unit set.

[0189] Fig.21 The figure is a schematic diagram of the structure of the third candidate unit set determination unit provided in one embodiment of the present disclosure. Fig. 20 The present disclosure is extended based on the embodiment shown Fig.21 The embodiment shown is described below in detail. Fig.21 The embodiment shown and Fig. 20 The differences and similarities of the illustrated embodiments are not described in detail.

[0190] like Fig.21 As shown, in the text processing device provided by the embodiment of the present disclosure, the third candidate unit set determining unit 1810 includes:

[0191] A second language translation unit obtaining subunit 1910 is used to input the first language text unit into the bilingual translation model to obtain a second language translation unit corresponding to the first language text unit;

[0192] A similarity evaluation information determination subunit 1920 is used to determine similarity evaluation information between the second language text unit and the second language translation unit included in the second candidate unit set;

[0193] The third candidate unit set determining subunit 1930 is configured to determine a third candidate unit set based on similarity evaluation information.

[0194] Fig. 22 The figure is a schematic diagram of the structure of determining a subunit of the third candidate unit set provided in one embodiment of the present disclosure. Fig.21 The present disclosure is extended based on the embodiment shown Fig. 22 The embodiment shown is described below in detail. Fig. 22 The embodiment shown and Fig.21The differences and similarities of the illustrated embodiments are not described in detail.

[0195] like Fig. 22 As shown, in the text processing device provided by the embodiment of the present disclosure, the third candidate unit set determination subunit 1930 includes:

[0196] The second relationship determination subunit 210 is used to determine the relationship between the similarity evaluation information corresponding to the second language text unit included in the second candidate unit set and a preset similarity evaluation threshold;

[0197] The generating subunit 2020 is configured to generate a third candidate unit set based on the second language text units in the second candidate unit set that meet the second preset relationship condition.

[0198] Fig.23 The figure is a schematic diagram of the structure of a text processing device provided by another embodiment of the present disclosure. Fig. 20 The present disclosure is extended based on the embodiment shown Fig.23 The embodiment shown is described below in detail. Fig.23 The embodiment shown and Fig. 20 The differences and similarities of the illustrated embodiments are not described in detail.

[0199] like Fig.23 As shown, the text processing device 1400 provided in the embodiment of the present disclosure further includes:

[0200] The incremental updating module 2110 is used to incrementally update the bilingual translation model based on parallel sentence pairs.

[0201] Fig.24 FIG. 1 is a schematic diagram of the structure of a model training device provided by an embodiment of the present disclosure. Fig.24 As shown, the model training device 2400 provided in the embodiment of the present disclosure includes:

[0202] An initial processing model determination module 2410 is used to determine an initial processing model;

[0203] The training module 2420 is used to train the initial processing model based on parallel sentence pairs to generate a text processing model.

[0204] Fig.25 The text processing device provided in this embodiment of the present disclosure needs to be used Fig.24 The model training device mentioned in the embodiment shown. Fig.25 As shown, the text processing device 2500 provided by the embodiment of the present disclosure includes:

[0205] An acquisition module 2510 is used to acquire a text to be processed in a first language;

[0206] The processing module 2520 is used to input the to-be-processed text in the first language into the text processing model to generate the target text in the second language.

[0207] Fig.26 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present disclosure. Fig.26 The electronic device 2200 shown (the electronic device 2200 may be a computer device) includes a memory 2201, a processor 2202, a communication interface 2203 and a bus 2204. The memory 2201, the processor 2202 and the communication interface 2203 are connected to each other through the bus 2204.

[0208] The memory 2201 may be a read only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 2201 may store a program. When the program stored in the memory 2201 is executed by the processor 2202, the processor 2202 and the communication interface 2203 are used to execute the various steps of the text processing method and / or the model training method of the embodiment of the present disclosure.

[0209] Processor 2202 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the text processing device and / or model training device of the embodiments of the present disclosure.

[0210] The processor 2202 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the text processing method and / or model training method disclosed in the present invention may be completed by an integrated logic circuit of hardware or software instructions in the processor 2202. The above-mentioned processor 2202 may also be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 2201, and the processor 2202 reads the information in the memory 2201, and combines its hardware to complete the functions required to be performed by the units included in the text processing device and / or model training device of the embodiment of the present disclosure, or executes the text processing method and / or model training method of the method embodiment of the present disclosure.

[0211] The communication interface 2203 uses a transceiver device such as, but not limited to, a transceiver to implement communication between the electronic device 2200 and other devices or a communication network. For example, the first association matrix can be obtained through the communication interface 2203.

[0212] The bus 2204 may include a path for transmitting information between various components of the electronic device 2200 (eg, the memory 2201 , the processor 2202 , and the communication interface 2203 ).

[0213] It should be understood that the first determination module 1410 , the splitting module 1420 , and the second determination module 1430 in the text processing device 1400 may be equivalent to the processor 2202 .

[0214] It should be noted that although Fig.26The electronic device 2200 shown only shows a memory, a processor, and a communication interface, but in the specific implementation process, those skilled in the art should understand that the electronic device 2200 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 2200 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 2200 may also include only the devices necessary for implementing the embodiments of the present disclosure, and does not necessarily include Fig.26 All devices shown in .

[0215] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the model training method and / or text processing method according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.

[0216] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0217] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the model training method and / or text processing method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0218] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0219] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0220] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0221] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0222] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0223] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0224] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.

[0225] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A text processing method, characterized in that: include: Determining a first language text module based on a first language text, and determining a second language text module based on a second language text, wherein the first language text and the second language text are bilingual patent texts of the same family, or the first language text and the second language text are bilingual texts of the same paper, and the first language text module and the second language text module are in a corresponding relationship at the text structure level; Performing sentence-word splitting operations on the first language text module and the second language text module respectively to generate a plurality of first language text units and a plurality of second language text units; Determining parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units; The step of determining the first language text module based on the first language text and determining the second language text module based on the second language text includes: Performing a text structure splitting operation on the first language text and the second language text respectively to generate a first language text module and a second language text module, wherein the text structure splitting operation refers to performing a text structure-level splitting operation on the first language text and the second language text; The step of determining the parallel sentence pairs corresponding to the first language text module and the second language text module based on the plurality of first language text units and the plurality of second language text units includes: For each first language text unit in the plurality of first language text units, based on the plurality of second language text units, using a preset artificial dictionary to determine a first candidate unit set corresponding to the first language text unit, wherein the first candidate unit set includes at least one second language text unit; For each second language text unit included in the first candidate unit set, recursively calculate a score based on statistics to obtain statistical score information corresponding to the second language text unit; Determine a second candidate unit set corresponding to the first language text unit based on the statistical score information; The parallel sentence pairs are determined based on the second candidate unit sets corresponding to the plurality of first language text units.

2. The text processing method according to claim 1, characterized in that: The sentence-word splitting operation is used to split the text paragraph included in each of the first language text module and the second language text module into a plurality of sentences, and split each sentence into a plurality of words.

3. A model training method, characterized in that: include: Determine the initial treatment model; The initial processing model is trained based on parallel sentence pairs to generate a text processing model, wherein the text processing model is used to generate a target text in a second language corresponding to the text to be processed based on the text to be processed in a first language, and the parallel sentence pairs are determined based on the text processing method described in claim 1 or 2 above.

4. A text processing method, characterized in that: include: Obtaining the text to be processed in the first language; The text to be processed in the first language is input into a text processing model to generate a target text in the second language, wherein the text processing model is trained based on the model training method described in claim 3 above.

5. A text processing device, characterized in that: include: A first determination module is used to determine a first language text module based on a first language text, and to determine a second language text module based on a second language text, wherein the first language text and the second language text are bilingual patent texts of the same family, or the first language text and the second language text are bilingual texts of the same paper, and the first language text module and the second language text module are in a corresponding relationship at the text structure level; a splitting module, used to perform sentence and word splitting operations on the first language text module and the second language text module respectively, so as to generate a plurality of first language text units and a plurality of second language text units; A second determining module, configured to determine, based on the plurality of first language text units and the plurality of second language text units, parallel sentence pairs corresponding to the first language text module and the second language text module; The first determination module is further used to perform a text structure splitting operation on the first language text and the second language text respectively to generate a first language text module and a second language text module, wherein the text structure splitting operation refers to performing a text structure level splitting operation on the first language text and the second language text; The second determination module is further used to, for each first language text unit in the multiple first language text units, determine a first candidate unit set corresponding to the first language text unit based on the multiple second language text units using a preset artificial dictionary, wherein the first candidate unit set includes at least one second language text unit; for each second language text unit included in the first candidate unit set, recursively calculate a score based on statistics to obtain statistical score information corresponding to the second language text unit; determine a second candidate unit set corresponding to the first language text unit based on the statistical score information; and determine the parallel sentence pair based on the second candidate unit sets corresponding to each of the multiple first language text units.

6. A model training device, characterized in that: include: An initial processing model determination module, used to determine an initial processing model; A training module, used for training the initial processing model based on parallel sentence pairs to generate a text processing model, wherein the text processing model is used to generate a target text in a second language corresponding to the text to be processed based on the text to be processed in a first language, and the parallel sentence pairs are determined based on the text processing method described in claim 1 or 2 above.

7. A text processing device, characterized in that: include: An acquisition module, used for acquiring the text to be processed in the first language; A processing module is used to input the to-be-processed text in the first language into a text processing model to generate a target text in the second language, wherein the text processing model is trained based on the model training method described in claim 3 above.

8. A computer-readable storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 4.

9. An electronic device, characterized in that: The electronic device comprises: processor; memory for storing computer executable instructions; The processor is used to execute the computer executable instructions to implement the method described in any one of claims 1 to 4 above.