Text translation method, system, device and storage medium based on deep learning

Through deep learning technology, convolutional neural networks are used to extract and analyze translation features of popular Internet words, which solves the problem of semantic differences in the existing Chinese text translation methods when processing Internet terms, and achieves more accurate and smooth translation effects.

CN118586405BActive Publication Date: 2024-10-18天津市天益达科技发展有限公司 +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411067134.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-18
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

Existing text translation methods cannot accurately translate Internet terms when the same user uses the same writing format and the written content is popular Internet terms, resulting in semantic differences between the translated article and the original.

Method used

A method based on deep learning is used to obtain hot words on the Internet in real time through big data, establish a convolutional neural network, extract translation features, and accurately translate according to the multi-lingual translation data of hot words on the Internet during the translation process to prevent semantic deviation.

Benefits of technology

Through in-depth analysis of popular Internet words and updates of multi-language translation data, it is possible to accurately translate in line with the context during the translation process, avoid semantic differences between the translated article and the original, and improve the accuracy and fluency of translation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586405B_ABST
    Figure CN118586405B_ABST
Patent Text Reader

Abstract

The present invention discloses a text translation method, system, device and storage medium based on deep learning, and relates to the field of language processing technology, including: obtaining popular network words and recording multilingual translation data; establishing a convolutional neural network, extracting translation features, and establishing a translation determination method; translating text based on the convolutional neural network; the present invention is used to solve the problem that the improved method for text translation in the prior art can only combine article content and user information, and when the user adopts the same writing format and the written content is currently popular network terms, the original translation method will still be used when translating the network terms only through the article content and user information, resulting in a problem that the translated article has different semantics from the original.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of language processing technology, and specifically to a text translation method, system, device and storage medium based on deep learning. Background Art

[0002] Translation refers to the process of converting the meaning of one language or text into another language or text. It requires the translator to have a solid language foundation and in-depth cultural understanding to accurately convey the meaning and expression of the original text. Translation is not just a simple language conversion, but also needs to consider cultural differences and language habits to ensure the accuracy and fluency of the translation.

[0003] Existing improvements in text translation usually use symbols in the article and the positional relationship between the text to perform a preliminary translation, and then perform a secondary translation in combination with the user's information to make the translation result more accurate. This method of improving text translation can only combine the article content and user information. When the same user uses the same writing format and the written content is currently popular network terms, the original translation method will still be used when translating the network terms only through the article content and user information, resulting in partial differences between the translated article and the original semantics. For example, in a Chinese patent application with application publication number CN108062301A, a text translation method and device are disclosed. This solution is to improve text translation in combination with symbols and user information. In other improvements in text translation, improvements are usually made in the translation of text in pictures. This improvement method can only determine the translation language when translating text in pictures, lacks in-depth analysis of the translation content, which will lead to the problem that the translation content is different from the actual content. In view of this, it is necessary to improve the existing text translation method. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent. By proposing a text translation method, system, device and storage medium based on deep learning, it is used to solve the problem that the improved method for text translation in the prior art can only combine the article content and user information. When the same user uses the same writing format and the written content is the currently popular network terms, the original translation method will still be used when translating the network terms only through the article content and user information, resulting in partial differences in the semantics of the translated article and the original.

[0005] To achieve the above objectives, in a first aspect, the present invention provides a text translation method based on deep learning, comprising:

[0006] Based on big data, it obtains popular online words in real time and records the multilingual translation data of the popular online words, and updates the recorded language translation data;

[0007] A convolutional neural network is established based on popular online words, and translation features are extracted in the convolutional neural network based on multilingual translation data, and a translation determination method is established based on the extracted results of the translation features;

[0008] Translate text based on convolutional neural networks.

[0009] Furthermore, based on the big data, real-time acquisition of network hot words and recording of multilingual translation data of the network hot words, and updating of the recorded language translation data include:

[0010] Based on big data, multiple hot words in the network are obtained in real time, and the multiple hot words are put into array α;

[0011] For any popular network word α1 in the array α, a plane rectangular coordinate system is established, which is recorded as the index analysis coordinate system, wherein the unit of the horizontal axis of the index analysis coordinate system is time, and the unit of the vertical axis is the index value; the search index and the information index corresponding to the popular network word α1 in the network index are placed in the index analysis coordinate system, and are recorded as the search index curve and the information index curve respectively; the point with the largest vertical coordinate in the search index curve is recorded as the search peak point (K1, K2), and the point with the largest vertical coordinate in the information index curve is recorded as the information peak point (L1, L2).

[0012] Furthermore, obtaining network hot words in real time based on big data and recording multilingual translation data of the network hot words, and updating the recorded language translation data also includes:

[0013] The point with the ordinate K2 / 2 in the search index curve is recorded as the search midpoint; the point with the ordinate L2 / 2 in the information index curve is recorded as the information midpoint; the search midpoint whose abscissa is closest to K1 and whose abscissa is greater than K1 in the search index curve is recorded as the search reference midpoint, and the absolute value of the difference between the abscissa of the search reference midpoint and K1 is recorded as the search half-time; the information midpoint whose abscissa is closest to L1 and whose abscissa is greater than L1 in the information index curve is recorded as the information reference midpoint, and the absolute value of the difference between the abscissa of the information reference midpoint and L1 is recorded as the information half-time; the average value of the search half-time and the information half-time is recorded as the hot reference time of the network hot word α1, wherein, when the search reference midpoint or the information reference midpoint cannot be obtained in the search index curve or the information index curve, the network hot word α1 is recorded as the hot word;

[0014] Obtain the hot reference time of all the hot network words in the array α, and record the average value of all the hot reference times as the standard hot time; for any hot network word α1 other than the hot words in the array α, when the time from the horizontal coordinate of the search peak point of the hot network word α1 to the present is greater than the standard hot time or the time from the horizontal coordinate of the information peak point of the hot network word α1 to the present is greater than the standard hot time, the hot network word α1 is removed from the array α; when the hot network word α1 is not removed, the hot network word α1 is recorded as the hot word.

[0015] Furthermore, obtaining network hot words in real time based on big data and recording multilingual translation data of the network hot words, and updating the recorded language translation data also includes:

[0016] For any hot word in the array α, the foreign language with the most usage after the hot word is translated on foreign websites is obtained based on a web crawler, and recorded as the multilingual translation data of the hot word. When the hot word is translated into multiple foreign languages, the foreign language with the most usage in each foreign language is recorded in the multilingual translation data of the hot word;

[0017] Get multilingual translation data of all popular words;

[0018] The update time of the network index is recorded as the data update time. After the multilingual translation data of all hot words are obtained, the multilingual translation data of all hot words are obtained again every data update time.

[0019] Furthermore, a convolutional neural network is established based on the popular words on the Internet, and translation features are extracted based on the multilingual translation data in the convolutional neural network. A translation determination method is established based on the extracted results of the translation features, including:

[0020] Convolutional neural network is established, all hot words and multilingual translation data are stored in the convolutional neural network, and translation feature analysis method is set in the convolutional layer of the convolutional neural network. The translation feature analysis method includes:

[0021] Obtain the number of all language types in the multilingual translation data, recorded as J, and set the numbers of all language types in the multilingual translation data to 1 to J;

[0022] When text is input into the convolutional neural network, the input text is segmented, and the Chinese words obtained by the segmentation are stored in the array β in sequence based on the order of the text. For any Chinese word β1 in the array β, when the Chinese word β1 is not equal to all the hot words, the Chinese word β1 is recorded as a normal translation word; when the Chinese word β1 is equal to any hot word, the numbers of all language types in the multilingual translation data of the Chinese word β1 are obtained, recorded as the number group β1; the number group of all Chinese words in the array β is obtained, wherein the number in the number group of the normal translation word is 0.

[0023] Furthermore, a convolutional neural network is established based on the popular network words, and translation features are extracted based on the multilingual translation data in the convolutional neural network. The translation determination method is established based on the extracted results of the translation features and further includes:

[0024] An array γ is established, and the number groups of all Chinese words in the array β are recorded in the array γ; the associated feature value of the array γ is obtained using the number association algorithm, and the number association algorithm includes: , where f is the associated eigenvalue, M is the number of numbered groups in array β, Pij is the number of language types numbered j in the i-th numbered group, gi is the number of numbered groups that are exactly the same as the i-th numbered group in all numbered groups, and Qj is the sum of the number of language types numbered j in all numbered groups;

[0025] When f is less than or equal to 1, the translation features of the input text are recorded as regular translations; when f is greater than 1, the number association algorithm is obtained during the calculation process. The number group corresponding to the maximum value of is recorded as the special number group, and the translation feature of the input text is recorded as the special translation.

[0026] A translation determination method is set in a fully connected layer of a convolutional neural network, and the translation determination method includes: when the translation feature of the input text is a regular translation, normal translation words in the input text are translated based on translation software, and hot words in the input text are translated based on the foreign language that is used most frequently in multilingual translation data of the hot words.

[0027] Furthermore, a convolutional neural network is established based on the popular network words, and translation features are extracted based on the multilingual translation data in the convolutional neural network. The translation determination method is established based on the extracted results of the translation features and further includes:

[0028] When the translation feature of the input text is special translation, the numbers in the special number group are recorded as pending numbers, and the emphasis determination algorithm is used to obtain the emphasis ratio of each pending number. The emphasis determination algorithm includes: , where d is the emphasis ratio, d1 is the number of times the pending number appears in all number groups, and dsum is the number of pending numbers in all number groups; the language type corresponding to the pending number with the largest emphasis ratio is recorded as the special translation type; the normal translation words in the input text are translated based on the translation software; when the multilingual translation data of the hot words in the input text contains the language type of the special translation type, the hot words are translated based on the foreign language with the language type of the special translation type in the multilingual translation data; when the multilingual translation data of the hot words in the input text does not contain the language type of the special translation type, the translation is performed based on the foreign language with the most used times in the multilingual translation data of the hot words.

[0029] In a second aspect, the present invention also provides a text translation system based on deep learning, including a translation analysis module, a translation determination module and a real-time translation module; the translation analysis module is used to obtain network hot words in real time based on big data and record multilingual translation data of network hot words, and update the recorded language translation data;

[0030] The translation determination module is used to establish a convolutional neural network based on the popular network words, extract translation features based on multilingual translation data in the convolutional neural network, and establish a translation determination method based on the extracted results of the translation features;

[0031] The real-time translation module is used to translate text based on convolutional neural networks.

[0032] In a third aspect, the present invention provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps in any of the methods described above are executed.

[0033] In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in any of the methods described above are executed.

[0034] Beneficial effects of the present invention: The present invention first obtains network hot words in real time based on big data and records the multilingual translation data of the network hot words, and updates the recorded language translation data. This has the advantage that by analyzing the network hot words to obtain multilingual translation data, the network hot words can be translated in a context-compliant manner based on the language environment in which the network hot words are used in the subsequent translation process, thereby preventing the conventional translation method from being unable to accurately translate the network hot words during the translation process, thereby causing the problem that the translated article has semantic differences with the original article;

[0035] The present invention also establishes a convolutional neural network based on Internet hot words, extracts translation features based on multilingual translation data in the convolutional neural network, and establishes a translation determination method based on the extraction results of the translation features; finally, the text is translated based on the convolutional neural network. The advantage of this is that by establishing a convolutional neural network and extracting translation features, it is helpful to conduct in-depth analysis of the translation content during the translation process, so as to determine whether to use a translation method related to the multilingual translation data for the detected Internet hot words, so as to perform conventional text translation on the Internet hot words in a context that does not conform to the use of the Internet hot words, thereby preventing the deviation between the translated content and the actual content. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a functional block diagram of the system of the present invention.

[0037] Figure 2 The figure is a flow chart of the steps of the method of the present invention.

[0038] Figure 3 It is a schematic diagram of the index analysis coordinate system of the present invention.

[0039] Figure 4 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Example 1, please refer to Figure 1 As shown, the present application provides a text translation system based on deep learning, including a translation analysis module, a translation determination module and a real-time translation module;

[0042] The translation analysis module is used to obtain Internet hot words in real time based on big data, record the multilingual translation data of the Internet hot words, and update the recorded language translation data.

[0043] The translation analysis module is configured with popular language analysis strategies, which include:

[0044] Based on big data, multiple hot words in the network are obtained in real time, and the multiple hot words are put into array α;

[0045] For any popular network word α1 in the array α, a plane rectangular coordinate system is established, which is recorded as the index analysis coordinate system, wherein the unit of the horizontal axis of the index analysis coordinate system is time, and the unit of the vertical axis is the index value; the search index of the popular network word α1 in the network index and the curve corresponding to the information index are placed in the index analysis coordinate system, and the network index specifically selects the Baidu Index as a reference, and they are recorded as the search index curve and the information index curve respectively; the point with the largest vertical coordinate in the search index curve is recorded as the search peak point (K1, K2), and the point with the largest vertical coordinate in the information index curve is recorded as the information peak point (L1, L2).

[0046] In the specific implementation process, please refer to Figure 3 As shown, the solid line curve corresponding to point CC1 is the search index curve, the dotted line curve corresponding to point CC2 is the information index curve, and point CC1 and point CC2 are the search peak point and the information peak point respectively, CC3 is half of the ordinate value of point CC1, and points CC4 to CC9 are all search midpoints. Through analysis, it can be obtained that point CC9 is the search reference midpoint, and the time corresponding to CC10 is the search half-time.

[0047] The point with the ordinate K2 / 2 in the search index curve is recorded as the search midpoint; the point with the ordinate L2 / 2 in the information index curve is recorded as the information midpoint; the search midpoint whose abscissa is closest to K1 and whose abscissa is greater than K1 in the search index curve is recorded as the search reference midpoint, and the absolute value of the difference between the abscissa of the search reference midpoint and K1 is recorded as the search half-time; the information midpoint whose abscissa is closest to L1 and whose abscissa is greater than L1 in the information index curve is recorded as the information reference midpoint, and the absolute value of the difference between the abscissa of the information reference midpoint and L1 is recorded as the information half-time; the average value of the search half-time and the information half-time is recorded as the hot reference time of the network hot word α1, wherein, when the search reference midpoint or the information reference midpoint cannot be obtained in the search index curve or the information index curve, the network hot word α1 is recorded as the hot word;

[0048] In the specific implementation process, when the search reference midpoint or the information reference midpoint cannot be obtained in the search index curve or the information index curve, it means that the search heat or information heat of the hot word has not dropped to half of the peak value, that is, it is still in a hot state. Therefore, the hot word can be recorded as a hot word and no subsequent analysis is performed. In this embodiment, it is assumed that when the heat drops to half of the peak value, the hot word is not in a hot state. In the specific implementation, the value for judging whether it is in a hot state can be adjusted according to the actual situation;

[0049] Obtain the hot reference time of all the hot network words in the array α, and record the average value of all the hot reference times as the standard hot time; for any hot network word α1 other than the hot words in the array α, when the time from the horizontal coordinate of the search peak point of the hot network word α1 to the present is greater than the standard hot time or the time from the horizontal coordinate of the information peak point of the hot network word α1 to the present is greater than the standard hot time, the hot network word α1 is removed from the array α; when the hot network word α1 is not removed, the hot network word α1 is recorded as the hot word.

[0050] In the specific implementation process, when the time from the horizontal coordinate of the search peak point of the network hot word α1 is greater than the standard hot time or the time from the horizontal coordinate of the information peak point of the network hot word α1 is greater than the standard hot time, it means that the network hot word α1 has been popular for a long time and has no reference value. Therefore, the network hot word α1 can be removed. For example, in an analysis, the time from the search peak point of the network hot word α1 is 2 years ago and the standard hot time is 1 year. It means that the popularity of the network hot word α1 is low in the past year. If the network hot word α1 is analyzed subsequently, the analysis result obtained does not have much reference significance and will affect the overall analysis efficiency. Therefore, the network hot word α1 can be removed from the array α;

[0051] For any hot word in the array α, the foreign language with the most usage after the hot word is translated on foreign websites is obtained based on a web crawler, and recorded as the multilingual translation data of the hot word. When the hot word is translated into multiple foreign languages, the foreign language with the most usage in each foreign language is recorded in the multilingual translation data of the hot word;

[0052] In the specific implementation process, for example, in a data processing process, if the hot word is translated into English, Japanese, French and German, the language record with the most times of use when the hot word is translated into English, Japanese, French and German on foreign websites should be recorded in the multilingual translation data of the hot word;

[0053] Get multilingual translation data of all popular words;

[0054] The update time of Baidu Index is recorded as the data update time. After obtaining the multilingual translation data of all hot words, the multilingual translation data of all hot words are re-obtained every data update time.

[0055] The translation determination module is used to establish a convolutional neural network based on popular network words, extract translation features based on multilingual translation data in the convolutional neural network, and establish a translation determination method based on the extracted results of the translation features.

[0056] In the specific implementation process, convolutional neural network is a kind of deep learning. By using convolutional neural network, it can efficiently extract translation features in the text to be translated and accurately judge the translation features, which is conducive to accurate translation;

[0057] The translation determination module is configured with a determination method establishment strategy, and the determination method establishment strategy includes:

[0058] Convolutional neural network is established, all hot words and multilingual translation data are stored in the convolutional neural network, and translation feature analysis method is set in the convolutional layer of the convolutional neural network. The translation feature analysis method includes:

[0059] Obtain the number of all language types in the multilingual translation data, recorded as J, and set the numbers of all language types in the multilingual translation data to 1 to J;

[0060] When text is input into the convolutional neural network, the input text is segmented, and the Chinese words obtained by the segmentation are stored in the array β in sequence based on the order of the text. For any Chinese word β1 in the array β, when the Chinese word β1 is not equal to all the hot words, the Chinese word β1 is recorded as a normal translation word; when the Chinese word β1 is equal to any hot word, the numbers of all language types in the multilingual translation data of the Chinese word β1 are obtained, recorded as the number group β1; the number group of all Chinese words in the array β is obtained, wherein the number in the number group of the normal translation word is 0.

[0061] In the specific implementation process, for example, in a data processing, the Chinese words obtained through word segmentation are "college student", "holiday", "will be carried out" and "special forces style tourism". Then, through analysis, it is found that "college student", "holiday" and "will be carried out" are all normal translation words, "special forces style tourism" is a hot word, and the numbers of all language types in the multilingual translation data of "special forces style tourism" are 1, 2 and 4 respectively. Then, the array γ obtained through analysis is [0, 0, 0, 1 2 4];

[0062] An array γ is established, and the number groups of all Chinese words in the array β are recorded in the array γ; the associated feature value of the array γ is obtained using the number association algorithm, and the number association algorithm includes: , where f is the associated eigenvalue, M is the number of numbered groups in array β, Pij is the number of language types numbered j in the i-th numbered group, gi is the number of numbered groups that are exactly the same as the i-th numbered group in all numbered groups, and Qj is the sum of the number of language types numbered j in all numbered groups;

[0063] In the specific implementation process, for example, in a data processing process, the array γ obtained is [0, 0, 0, 1 24], then the associated eigenvalue can be obtained by calculation as 1;

[0064] When f is less than or equal to 1, the translation features of the input text are recorded as regular translations; when f is greater than 1, the number association algorithm is obtained during the calculation process. The number group corresponding to the maximum value of is recorded as the special number group, and the translation feature of the input text is recorded as the special translation.

[0065] In the specific implementation process, when f is less than or equal to 1, it means that the input text does not contain words related to the hot words or only contains a small number of words related to the hot words. Therefore, conventional language translation can be performed in combination with multilingual translation data. When f is greater than 1, it means that the input text contains multiple words related to the hot words. The maximum value of is used to locate the words related to the hot words and perform special translation;

[0066] A translation determination method is set in a fully connected layer of a convolutional neural network, and the translation determination method includes: when the translation feature of the input text is a regular translation, normal translation words in the input text are translated based on translation software, and hot words in the input text are translated based on the foreign language that is used most frequently in multilingual translation data of the hot words.

[0067] When the translation feature of the input text is special translation, the numbers in the special number group are recorded as pending numbers, and the emphasis determination algorithm is used to obtain the emphasis ratio of each pending number. The emphasis determination algorithm includes: , where d is the emphasis ratio, d1 is the number of times the pending number appears in all number groups, and dsum is the number of pending numbers in all number groups; the language type corresponding to the pending number with the largest emphasis ratio is recorded as the special translation type; the normal translation words in the input text are translated based on the translation software; when the multilingual translation data of the hot words in the input text contains the language type of the special translation type, the hot words are translated based on the foreign language with the language type of the special translation type in the multilingual translation data; when the multilingual translation data of the hot words in the input text does not contain the language type of the special translation type, the translation is performed based on the foreign language with the most used times in the multilingual translation data of the hot words.

[0068] In the specific implementation process, during analysis, there may be multiple special number groups. For example, in the process of obtaining the associated characteristic value, multiple number groups correspond to are all maximum values, the number of special number groups obtained is greater than 1; by obtaining the maximum value of the emphasis ratio, the language that can translate the hot words corresponding to most number groups can be obtained, so that the translated language is more unified.

[0069] The real-time translation module is used to translate text based on convolutional neural networks.

[0070] Example 2, please refer to Figure 2 As shown, the present invention provides a text translation method based on deep learning, including: step S1, obtaining network hot words in real time based on big data and recording multilingual translation data of the network hot words, and updating the recorded language translation data.

[0071] Step S1 includes: Step S101, acquiring multiple network hot words in the network in real time based on big data, and putting the multiple network hot words into an array α;

[0072] Step S102, for any network hot word α1 in the array α, establish a plane rectangular coordinate system, recorded as the index analysis coordinate system, wherein the unit of the horizontal axis of the index analysis coordinate system is time, and the unit of the vertical axis is the index value; place the search index and information index corresponding to the network hot word α1 in the Baidu Index in the index analysis coordinate system. The curves are recorded as the search index curve and the information index curve respectively; the point with the largest vertical coordinate in the search index curve is recorded as the search peak point (K1, K2), and the point with the largest vertical coordinate in the information index curve is recorded as the information peak point (L1, L2).

[0073] Step S103, record the point with the ordinate K2 / 2 in the search index curve as the search midpoint; record the point with the ordinate L2 / 2 in the information index curve as the information midpoint; record the search midpoint with the abscissa closest to K1 and greater than K1 in the search index curve as the search reference midpoint, and record the absolute value of the difference between the abscissa of the search reference midpoint and K1 as the search half-time; record the information midpoint with the abscissa closest to L1 and greater than L1 in the information index curve as the information reference midpoint, and record the absolute value of the difference between the abscissa of the information reference midpoint and L1 as the information half-time; record the average of the search half-time and the information half-time as the hot reference time of the network hot word α1, wherein, when the search reference midpoint or the information reference midpoint cannot be obtained in the search index curve or the information index curve, the network hot word α1 is recorded as the hot word;

[0074] Step S104, obtaining the hot reference time of all the hot network words in the array α, and recording the average value of all the hot reference times as the standard hot time; for any hot network word α1 other than the hot words in the array α, when the time from the horizontal coordinate of the search peak point of the hot network word α1 to the present is greater than the standard hot time or the time from the horizontal coordinate of the information peak point of the hot network word α1 to the present is greater than the standard hot time, the hot network word α1 is removed from the array α; when the hot network word α1 is not removed, the hot network word α1 is recorded as the hot word.

[0075] Step S105: for any hot word in the array α, the foreign language with the most usage times after the hot word is translated on foreign websites is obtained based on a web crawler, and recorded as the multilingual translation data of the hot word. When the hot word is translated into multiple foreign languages, the foreign language with the most usage times in each foreign language is recorded in the multilingual translation data of the hot word;

[0076] Step S106, obtaining multilingual translation data of all hot words;

[0077] Step S107, recording the update time of Baidu Index as the data update time, and after obtaining the multilingual translation data of all hot words, re-obtaining the multilingual translation data of all hot words every data update time.

[0078] Step S2, establishing a convolutional neural network based on the popular network words, extracting translation features based on multilingual translation data in the convolutional neural network, and establishing a translation determination method based on the extracted results of the translation features.

[0079] Step S2 includes: Step S201, establishing a convolutional neural network, storing all hot words and multilingual translation data in the convolutional neural network, and setting a translation feature analysis method in the convolution layer of the convolutional neural network. The translation feature analysis method includes:

[0080] Step S202, obtaining the number of all language types in the multilingual translation data, recorded as J, and setting the numbers of all language types in the multilingual translation data to 1 to J;

[0081] Step S203, when inputting text into the convolutional neural network, the input text is segmented, and the Chinese words obtained by the segmentation are stored in the array β in sequence based on the text order. For any Chinese word β1 in the array β, when the Chinese word β1 is not equal to all the hot words, the Chinese word β1 is recorded as a normal translation word; when the Chinese word β1 is equal to any hot word, the numbers of all language types in the multilingual translation data of the Chinese word β1 are obtained, recorded as the number group β1; the number group of all Chinese words in the array β is obtained, wherein the number in the number group of the normal translation word is 0.

[0082] Step S204, establish an array γ, record the number groups of all Chinese words in the array β in the array γ; use the number association algorithm to obtain the associated feature value of the array γ, the number association algorithm includes: , where f is the associated eigenvalue, M is the number of numbered groups in array β, Pij is the number of language types numbered j in the i-th numbered group, gi is the number of numbered groups that are exactly the same as the i-th numbered group in all numbered groups, and Qj is the sum of the number of language types numbered j in all numbered groups;

[0083] Step S205: when f is less than or equal to 1, the translation feature of the input text is recorded as a regular translation; when f is greater than 1, the calculation process of the number association algorithm is obtained. The number group corresponding to the maximum value of is recorded as the special number group, and the translation feature of the input text is recorded as the special translation.

[0084] Step S206, setting a translation determination method in the fully connected layer of the convolutional neural network, the translation determination method comprising: when the translation feature of the input text is a regular translation, translating the normal translation words in the input text based on the translation software, and translating the hot words in the input text based on the foreign language with the most usage in the multilingual translation data of the hot words.

[0085] Step S207: When the translation feature of the input text is special translation, the numbers in the special number group are recorded as pending numbers, and the emphasis ratio of each pending number is obtained using an emphasis determination algorithm. The emphasis determination algorithm includes: , where d is the emphasis ratio, d1 is the number of times the pending number appears in all number groups, and dsum is the number of pending numbers in all number groups; the language type corresponding to the pending number with the largest emphasis ratio is recorded as the special translation type; the normal translation words in the input text are translated based on the translation software; when the multilingual translation data of the hot words in the input text contains the language type of the special translation type, the hot words are translated based on the foreign language with the language type of the special translation type in the multilingual translation data; when the multilingual translation data of the hot words in the input text does not contain the language type of the special translation type, the translation is performed based on the foreign language with the most used times in the multilingual translation data of the hot words.

[0086] Step S3: translating the text based on a convolutional neural network.

[0087] Embodiment 3, the present application provides an electronic device 40, including a processor 401 and a memory 402, the memory 402 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 401, the steps in the above method are executed. Through the above technical solution, the processor 401 and the memory 402 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms, and the memory 402 stores a computer program executable by the processor 401. When the electronic device is running, the processor 401 executes the computer program to execute the method in any optional implementation of the above embodiment to achieve the following functions: based on big data, real-time acquisition of network hot words and recording of multilingual translation data of network hot words, and updating the recorded language translation data; then, a convolutional neural network is established based on network hot words, and translation features are extracted based on multilingual translation data in the convolutional neural network, and a translation determination method is established based on the extraction results of the translation features; finally, the text is translated based on the convolutional neural network.

[0088] Embodiment 4, the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: based on big data, real-time acquisition of network hot words and recording of multilingual translation data of network hot words, and updating the recorded language translation data; then establishing a convolutional neural network based on network hot words, and extracting translation features based on multilingual translation data in the convolutional neural network, and establishing a translation determination method based on the extraction results of the translation features; finally, translating text based on the convolutional neural network.

[0089] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0090] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0091] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

Claims

1. Text translation method based on deep learning, It is characterized in that include: Based on big data, it obtains popular online words in real time and records the multilingual translation data of the popular online words, and updates the recorded language translation data; A convolutional neural network is established based on popular online words, and translation features are extracted in the convolutional neural network based on multilingual translation data, and a translation determination method is established based on the extracted results of the translation features; Translate text based on convolutional neural networks; Based on big data, real-time acquisition of popular Internet words and recording of multilingual translation data of popular Internet words are performed, and the recorded language translation data is updated, including: Based on big data, multiple hot words in the network are obtained in real time, and the multiple hot words are put into array α; For any network hot word α1 in the array α, a plane rectangular coordinate system is established, which is recorded as the index analysis coordinate system, wherein the unit of the horizontal coordinate of the index analysis coordinate system is time, and the unit of the vertical coordinate is the index value; the search index and the information index corresponding to the network hot word α1 in the network index are placed in the index analysis coordinate system, and are recorded as the search index curve and the information index curve respectively; the point with the largest vertical coordinate in the search index curve is recorded as the search peak point (K1, K2), and the point with the largest vertical coordinate in the information index curve is recorded as the information peak point (L1, L2); Acquiring Internet hot words in real time based on big data and recording multilingual translation data of Internet hot words, and updating the recorded language translation data also includes: The point with the ordinate K2 / 2 in the search index curve is recorded as the search midpoint; the point with the ordinate L2 / 2 in the information index curve is recorded as the information midpoint; the search midpoint whose abscissa is closest to K1 and whose abscissa is greater than K1 in the search index curve is recorded as the search reference midpoint, and the absolute value of the difference between the abscissa of the search reference midpoint and K1 is recorded as the search half-time; the information midpoint whose abscissa is closest to L1 and whose abscissa is greater than L1 in the information index curve is recorded as the information reference midpoint, and the absolute value of the difference between the abscissa of the information reference midpoint and L1 is recorded as the information half-time; the average value of the search half-time and the information half-time is recorded as the hot reference time of the network hot word α1, wherein, when the search reference midpoint or the information reference midpoint cannot be obtained in the search index curve or the information index curve, the network hot word α1 is recorded as the hot word; Obtain the hot reference time of all the hot network words in the array α, and record the average of all the hot reference times as the standard hot time; for any hot network word α1 other than the hot words in the array α, when the time from the horizontal coordinate of the search peak point of the hot network word α1 to the present is greater than the standard hot time or the time from the horizontal coordinate of the information peak point of the hot network word α1 to the present is greater than the standard hot time, remove the hot network word α1 from the array α; when the hot network word α1 is not removed, record the hot network word α1 as the hot word; Acquiring Internet hot words in real time based on big data and recording multilingual translation data of Internet hot words, and updating the recorded language translation data also includes: For any hot word in the array α, the foreign language with the most usage after the hot word is translated on foreign websites is obtained based on a web crawler, and recorded as the multilingual translation data of the hot word. When the hot word is translated into multiple foreign languages, the foreign language with the most usage in each foreign language is recorded in the multilingual translation data of the hot word; Get multilingual translation data of all popular words; The update time of the network index is recorded as the data update time. After the multilingual translation data of all hot words are obtained, the multilingual translation data of all hot words are obtained again every data update time.

2. According to the text translation method based on deep learning according to claim 1, It is characterized in that A convolutional neural network is established based on popular network words, and translation features are extracted based on multilingual translation data in the convolutional neural network. A translation determination method is established based on the extracted results of the translation features, including: Convolutional neural network is established, all hot words and multilingual translation data are stored in the convolutional neural network, and translation feature analysis method is set in the convolutional layer of the convolutional neural network. The translation feature analysis method includes: Obtain the number of all language types in the multilingual translation data, recorded as J, and set the numbers of all language types in the multilingual translation data to 1 to J; When text is input into the convolutional neural network, the input text is segmented, and the Chinese words obtained by the segmentation are stored in the array β in sequence based on the order of the text. For any Chinese word β1 in the array β, when the Chinese word β1 is not equal to all the hot words, the Chinese word β1 is recorded as a normal translation word; when the Chinese word β1 is equal to any hot word, the numbers of all language types in the multilingual translation data of the Chinese word β1 are obtained, recorded as the number group β1; the number group of all Chinese words in the array β is obtained, wherein the number in the number group of the normal translation word is 0.

3. The text translation method based on deep learning according to claim 2, It is characterized in that A convolutional neural network is established based on the popular words on the Internet, and translation features are extracted based on the multilingual translation data in the convolutional neural network. The translation determination method is established based on the extracted results of the translation features and further includes: An array γ is established, and the number groups of all Chinese words in the array β are recorded in the array γ; the associated feature value of the array γ is obtained using the number association algorithm, and the number association algorithm includes: , where f is the associated eigenvalue, M is the number of numbered groups in array β, Pij is the number of language types numbered j in the i-th numbered group, gi is the number of numbered groups that are exactly the same as the i-th numbered group in all numbered groups, and Qj is the sum of the number of language types numbered j in all numbered groups; When f is less than or equal to 1, the translation features of the input text are recorded as regular translations; when f is greater than 1, the number association algorithm is obtained during the calculation process. The number group corresponding to the maximum value of is recorded as a special number group, and the translation feature of the input text is recorded as a special translation; A translation determination method is set in a fully connected layer of a convolutional neural network, and the translation determination method includes: when the translation feature of the input text is a regular translation, normal translation words in the input text are translated based on translation software, and hot words in the input text are translated based on the foreign language that is used most frequently in multilingual translation data of the hot words.

4. The text translation method based on deep learning according to claim 3, It is characterized in that A convolutional neural network is established based on the popular words on the Internet, and translation features are extracted based on the multilingual translation data in the convolutional neural network. The translation determination method is established based on the extracted results of the translation features and further includes: When the translation feature of the input text is special translation, the numbers in the special number group are recorded as pending numbers, and the emphasis determination algorithm is used to obtain the emphasis ratio of each pending number. The emphasis determination algorithm includes: , where d is the emphasis ratio, d1 is the number of times the pending number appears in all number groups, and dsum is the number of pending numbers in all number groups; the language type corresponding to the pending number with the largest emphasis ratio is recorded as the special translation type; the normal translation words in the input text are translated based on the translation software; when the multilingual translation data of the hot words in the input text contains the language type of the special translation type, the hot words are translated based on the foreign language with the language type of the special translation type in the multilingual translation data; when the multilingual translation data of the hot words in the input text does not contain the language type of the special translation type, the translation is performed based on the foreign language with the most used times in the multilingual translation data of the hot words.

5. A text translation system based on deep learning, for implementing the text translation method based on deep learning according to any one of claims 1 to 4, It is characterized in that It includes a translation analysis module, a translation determination module and a real-time translation module; The translation analysis module is used to obtain Internet hot words in real time based on big data, record the multilingual translation data of the Internet hot words, and update the recorded language translation data; The translation determination module is used to establish a convolutional neural network based on the popular network words, extract translation features based on multilingual translation data in the convolutional neural network, and establish a translation determination method based on the extracted results of the translation features; The real-time translation module is used to translate text based on convolutional neural networks.

6. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 4 are executed.

7. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are executed.

Citation Information

Patent Citations

  • Character translation method and device thereof

    CN108062301A

  • Multi-language machine translation method and device, electronic equipment and storage medium

    CN113239710A

  • Intelligent keyword recommendation system and method based on big data analysis

    CN115794991A