Name translation method and device, electronic equipment, storage medium and program product
By matching with the name library and replacing the name in the translated text, the problem of insufficient accuracy and consistency of name translation is solved, and a more efficient cross-language communication and optimized user experience is achieved.
Patent Information
- Application Number
- CN202411935874.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, there are problems with poor accuracy and consistency in the translation of human names, which leads to poor user experience and affects the effectiveness of cross-language communication.
By extracting the names of the original text and the translated text, and matching them with the names of the corresponding languages in the name library, the translated names in the translated text are replaced by the target name matching the original name in the name library.
It improves the accuracy and consistency of person name translation, improves the fluency and credibility of translation results, optimizes the user experience, and promotes cross-language communication.
Smart Images

Figure CN119849513A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device, storage medium and program product for translating a person's name. Background Art
[0002] As cross-language communication becomes increasingly frequent, the accuracy of name translation is crucial to promoting understanding and communication between different cultures. Especially in English-Chinese translation, as names are important symbols of personal identity, the accuracy and consistency of their translation are particularly important.
[0003] At present, the translation of names is mostly done by transliteration. However, since English pronunciations do not correspond to Chinese characters one-to-one, the same English pronunciation may correspond to multiple Chinese characters, resulting in a variety of translation results. This diversity is not only reflected in the context of the same document, that is, the same English name may be translated into multiple different Chinese names in the context, but also in different translation engines, that is, different translation engines have different translation results for the same English name. This uncertainty and inconsistency in translation seriously affects the accuracy of translation, reduces users' trust in translation results, and thus affects the effectiveness of cross-language communication. Summary of the invention
[0004] The present invention provides a name translation method, device, electronic device, storage medium and program product, which are used to solve the defects of poor accuracy and consistency of name translation in the prior art, resulting in poor user experience, and to improve the accuracy and consistency of name translation, so that the translation is more accurate and smooth, thereby optimizing the user experience and promoting cross-language communication.
[0005] The present invention provides a method for translating a person's name, comprising: Extracting names from the original text and its corresponding translated text to obtain original names and translated names; Matching the original name and the translated name with names in a name library respectively, wherein the name library contains a plurality of first names in the same language as the original text and a plurality of second names corresponding to the first names in the same language as the translated text; In the case where the name is matched successfully, replacing the corresponding translated name in the translated text with the target name corresponding to the first name in the name library that matches the original name; The target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translation name.
[0006] According to a method for translating a name provided by the present invention, matching the original name and the translated name with names in a name library respectively comprises: Matching the original name with each first name in the name library; In the case where the original name matches successfully, matching the translated name with each second name corresponding to the first matching name; The first matching name is the first name that matches the original name.
[0007] According to a method for translating a name provided by the present invention, when the original name is successfully matched, the translated name is matched with each second name corresponding to the first matching name, and then the method further includes: In the case where the translated name matches successfully, determining that the name matches successfully; In the case where the translation name fails to match or the original name fails to match, the corresponding translation name in the translation text is not replaced.
[0008] According to a method for translating a name provided by the present invention, when the name is successfully matched, replacing the corresponding translated name in the translation text with the target name corresponding to the first name matching the original name in the name library comprises: In the case where the name is matched successfully, determining the target name from the name database; Determine a standard name corresponding to the original name from a pre-built name dictionary; The target name is matched with the standard name, and when the target name fails to match, the standard name is used to replace the corresponding translated name in the translation text.
[0009] According to a method for translating a name provided by the present invention, when the name is successfully matched, the target name corresponding to the first name matching the original name in the name library is used to replace the corresponding translated name in the translation text, and then the method further includes: Displaying the translated text after the name is replaced, and receiving user feedback information on the displayed translated text; the name feedback information includes the user's satisfaction with the name in the displayed translated text, or includes the satisfaction and correction suggestions; Based on the name feedback information, the names in the displayed translation text and the name database are updated.
[0010] According to a method for translating a person's name provided by the present invention, the person's name in the displayed translation text and the person's name database are updated based on the person's name feedback information, including: Based on the satisfaction of the name feedback information received within a preset period, the name statistics are performed to determine the names to be corrected in the displayed translation text; Based on the correction suggestions in the name feedback information received within the preset time period, performing name correction analysis to determine a corrected name corresponding to the name to be corrected; Replacing the corresponding name to be corrected in the displayed translation text with the corrected name, and replacing the corresponding target name in the name database; Alternatively, the corrected name and the corresponding original name are added to the name database.
[0011] The present invention also provides a name translation device, comprising: A name extraction unit, used to extract the name from the original text and its corresponding translated text to obtain the original name and the translated name; A name matching unit, used to match the original name and the translated name with names in a name library, respectively, wherein the name library contains a plurality of first names in the same language as the original text, and a plurality of second names corresponding to the first names in the same language as the translated text; A name replacement unit, used to replace the corresponding translated name in the translated text with the target name corresponding to the first name matching the original name in the name library when the name matching succeeds; The target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translation name.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any of the above-mentioned methods for translating names when executing the computer program.
[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for translating a person's name as described above is implemented.
[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for translating a person's name as described above is implemented.
[0015] The name translation method, device, electronic device, storage medium and program product provided by the present invention extract names from original text and translated text, and match them with names of corresponding languages in a name library respectively, wherein the name library contains multiple first names of the same language as the original text, and multiple second names of the same language as the translated text corresponding to each first name; and when the name is successfully matched, the corresponding translated name in the translated text is replaced with the target name corresponding to the first name matched with the original name in the name library, thereby overcoming the defect that the diversity of name translation in traditional solutions leads to low trust in the translation results by users, improving the accuracy of name translation, as well as the fluency and credibility of the translation results, avoiding the influence on the overall translation fluency and accuracy, thereby optimizing the user experience and providing assistance for promoting cross-language language communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 It is a flowchart of the name translation method provided by the present invention; Figure 2 It is an overall flow chart of the name translation method provided by the present invention; Figure 3 It is a structural schematic diagram of a name translation device provided by the present invention; Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0019] At present, the translation of names in the translation field is mostly done by transliteration, and there are usually multiple Chinese characters corresponding to the English pronunciation, resulting in diversity in the translation results. This diversity is not only reflected in the context of the translation, that is, when translating the same document, the same English name in the context may be translated into multiple different Chinese names, for example, "John Smith" may be translated into "John Smith", "John Smith" or "John Smith", etc., but also in different translation engines, that is, different translation engines may have inconsistent translation results for the same English name. This uncertainty and inconsistency seriously affects the accuracy of the translation, reduces the user's trust in the translation results, and thus leads to a poor user experience.
[0020] In addition, most of the current English-Chinese translations are done by machine translation, which lacks consideration for the particularity of names. This approach not only fails to effectively address the diversity and uncertainty of name translation, but can also lead to a significant reduction in the accuracy and fluency of the translation, further reducing the user experience.
[0021] In this regard, the present invention provides a name translation method, which aims to extract names from original text and translated text, and match them with names of corresponding languages in a pre-built name library, so that the names in the translated text can be corrected according to the matching results, thereby improving the accuracy of the name translation and avoiding affecting the overall translation fluency and accuracy.
[0022] Figure 1 It is a flowchart of the name translation method provided by the present invention, such as Figure 1 As shown, the method includes: Step 110, extracting names from the original text and its corresponding translated text to obtain original names and translated names; Step 120, matching the original name and the translated name with names in a name database, wherein the name database includes a plurality of first names in the same language as the original text, and a plurality of second names in the same language as the translated text corresponding to each first name; Step 130, when the name is successfully matched, the target name corresponding to the first name matching the original name in the name database is used to replace the corresponding translated name in the translation text; The target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translation name.
[0023] Specifically, considering the diversity of name translation in the current translation field, not only is the context translation inconsistent, but different translation engines may also produce different translation results for the same name. This uncertainty and inconsistency will cause users to have low trust in the translation results, seriously affecting the accuracy and reliability of the translation. In an embodiment of the present invention, a more accurate, consistent and efficient name translation method is proposed to solve the problems existing in name translation in the current translation field, improve the accuracy of name translation, and the fluency and credibility of the translation results, thereby promoting cross-language communication and optimizing user experience.
[0024] In detail, before translating a name, it is usually necessary to obtain the original text before translation in order to translate the name therein and obtain an accurate and consistent translated name. Specifically in the embodiment of the present invention, the original text to be translated may be obtained first, and the language of the text may be any language, for example, English, French, Russian, etc., which is not specifically limited in the embodiment of the present invention. After determining the original text, the embodiment of the present invention also needs to obtain the translation text corresponding to the original text. The translation text is the text formed after translating the content in the original text. The translation text is in a different language from the original text, but the semantics are basically the same. Here, the acquisition of the translation text may be to directly perform machine translation on the original text, or to directly obtain a pair of pre-translated texts, respectively as the original text and the translation text.
[0025] It should be noted that, in the embodiment of the present invention, the languages of the original text and the translated text can be arbitrary, as long as they are different. However, as a preference, in the embodiment of the present invention, the language of the original text can be set to any language other than Chinese, for example, English, French, Russian, etc., and the language of the translated text can be set to Chinese. That is, the scenario set in the embodiment of the present invention is to translate other languages into Chinese.
[0026] After obtaining the original text and its corresponding translated text, in the embodiment of the present invention, the original text and the translated text can be respectively subjected to name extraction to identify the name components therein, thereby obtaining the names in the original text, i.e., the original names, and the names in the translated text, i.e., the translated text. The name extraction process here can be obtained by current named entity recognition methods, rule / template-based recognition methods, supervised learning-based methods, etc., and the embodiment of the present invention does not specifically limit this.
[0027] Furthermore, after the original names and translated names are extracted, considering the diversity of the translation of names in the translated text obtained directly through machine translation, in an embodiment of the present invention, in order to improve the consistency of the content of the translated text, the fluency and accuracy of the translation, it is also necessary to match and correct the names in the translated text to ensure the consistency and accuracy of the names in the final translated text.
[0028] Specifically, here, a name library containing a large number of names may be pre-constructed, and the name library may be constructed on the basis of a large number of parallel corpora (i.e., corpora with different languages but the same semantics). For example, names may be extracted from journal documents in different languages, and names in other languages corresponding to each extracted name may be obtained. In this process, when searching for names corresponding to other languages for a certain name, more than one name in other languages may be retrieved. At this time, the names in other languages corresponding to the name may be ranked according to the frequency of use. The most frequently used name may be considered to be the most popular and most accepted by the public. Therefore, it may be ranked first and have the highest priority. In this way, the order / ranking of names in other languages may be determined, thereby constructing a name library containing names in multiple languages, and there is a corresponding relationship between names in different languages, and there is a clear priority order under a corresponding relationship.
[0029] Next, the names extracted from the original text and the translated text can be matched with the names in the name library, that is, the original names and the translated names are compared with the names in the name library to determine whether they match. Here, specifically, the original name is matched with multiple first names in the name library with the same language as the original text, and the translated name is matched with multiple second names in the name library with the same language as the translated text to obtain the name matching result. The name matching result here can be one or two, specifically, it can include the result of matching the original name with the first name, and the result of matching the translated name with the second name; it can also include only one final result, which is not specifically limited in the embodiment of the present invention. Among them, the final result can be determined based on the result of matching the original name with the first name, or the result of matching the original name with the first name and the result of matching the translated name with the second name, which is not specifically limited in the embodiment of the present invention.
[0030] After that, the names in the translated text can be corrected according to the name matching result. Specifically, when the name matching result indicates a successful match, that is, when the name matching is successful, the target name can be first determined from the name library. The target name here is the second name corresponding to the first name that matches the original name. Specifically, when there is only one corresponding second name at this time, the name is used as the target name, and when there are multiple corresponding second names, the second name with the highest priority (i.e., the highest frequency of use and the most frequent) can be selected as the target name, or the second name that matches the translated name corresponding to the original name among the multiple second names can be directly used as the target name. The embodiment of the present invention does not make specific limitations.
[0031] It should be noted that when selecting the target name, whether the second name with the highest frequency of use or the second name that matches the translation name is used, the selection criteria should be the same for the same original name or the same document. As a preference, in order to ensure the consistency of the machine translation results as much as possible, the second name with the highest frequency of use can be selected as the target name, so that the machine translation results can be as consistent as possible with the names used in the current document while ensuring their own consistency, thereby ensuring the accuracy of the translation, which is the same as the general trend.
[0032] Furthermore, the target name can be used to correct the translated name in the translated text, that is, when it is determined that the name match is successful, the translated name corresponding to a certain original name and the target name can be used to replace the translated name corresponding to the original name in the translated text with this target name. In this way, the corresponding translated name in the translated text can be replaced by each target name determined when the name match is successful, thereby ensuring the consistency and accuracy of the names in the translated text, improving the overall completeness, fluency and consistency of the translated text, and further promoting cross-language language communication and cultural exchange, and improving user experience.
[0033] The name translation method provided by the present invention extracts names from an original text and a translated text, and matches the names with names of corresponding languages in a name library respectively, wherein the name library contains a plurality of first names of the same language as the original text, and a plurality of second names of the same language as the translated text corresponding to each first name; and when the name is successfully matched, the corresponding translated name in the translated text is replaced with a target name corresponding to the first name matched with the original name in the name library, thereby overcoming the defect that the diversity of name translation in traditional solutions leads to low trust in translation results by users, improving the accuracy of name translation, as well as the fluency and credibility of the translation results, avoiding the influence on the overall translation fluency and accuracy, thereby optimizing the user experience, and providing assistance for promoting cross-language language communication.
[0034] It is worth noting that although the embodiment of the present invention provides a scenario of name translation, the method provided by the present invention is not actually limited to name translation, and can be applied to all kinds of nouns and verbs with particularity, for example, scenic spots, famous books, etc. When it comes to scenic spots / famous books, the name extraction and the name library can be changed accordingly. It is highly practical and has a wide range of applications.
[0035] Based on the above embodiment, step 120 includes: Match the original name with each first name in the name database; In the case where the original name is matched successfully, the translated name is matched with each second name corresponding to the first matching name; The first matching name is the first name that matches the original name.
[0036] Specifically, the above process of matching the original name and the translated name with the names in the name database may include: First, according to the language of the original text, the names of the same language, that is, the first names, can be determined from the name database, and the original names can be matched with the first names to determine whether the two are consistent, thereby obtaining the original name matching result.
[0037] It should be noted that the consistency here is not absolute consistency, and there is a tolerance rate. For example, inconsistency in capitalization is allowed. For example, there is inconsistency in capital letters in "John Smith" and "John smith", but when matching the original names, it is determined that the two are matched.
[0038] Next, if the original name matches the first name, that is, the original name matches successfully, the first name that matches the original name can be determined first, called the first matching name, and then the translated name corresponding to the original name can be matched with each second name corresponding to the first matching name to determine whether the two are consistent, thereby obtaining the translated name matching result.
[0039] Similarly, the matching here is not absolutely consistent, and there is a tolerance rate. For example, the position of the period in the name is allowed to be inconsistent, such as the position of the period in "John Smith" and "John. Smith" is different, but when translating the name, it is also determined that the two are matched.
[0040] Based on the above embodiment, when the original name matches successfully, the translated name is matched with each second name corresponding to the first matching name, and then the following is further included: In the case where the translated name matches successfully, determining that the name matches successfully; In the event that the translation name fails to match or the original name fails to match, the corresponding translation name in the translation text is not replaced.
[0041] Specifically, after the original name matching is performed, if the original name does not match any of the first names, that is, the original name matching fails, then the translated name matching will no longer be performed. At this time, the translated name corresponding to the original name can be directly used as the target name. In other words, there is no need to replace the translated name corresponding to the original name in the translated text.
[0042] Similarly, when the original name matches successfully, after the translated name matches, if the translated name does not match any of the second names, that is, the translated name matches fail, the translated name can be directly used as the target name. In other words, there is no need to replace the translated name.
[0043] On the contrary, if the translated name matches the second name, that is, the translated name matches successfully, then the name matching result can be determined as a successful match, that is, the name matches successfully, and the target name can be further determined to wait for the name to be replaced. If the original name fails to match, or the original name matches successfully but the translated name fails to match, then the name matching result is determined as a failed match, that is, the name matches failed.
[0044] Here, the name database can be expressed as shown in the following table:
[0045] Among them, the priority order can be determined according to the usage frequency of each second name under the corresponding first name counted when the name database is constructed. The one with the highest usage frequency has the highest priority, and the one with the lowest usage frequency has the lowest priority.
[0046] Based on the above embodiment, step 130 includes: When the name is successfully matched, the target name is determined from the name database; Determine the standard name corresponding to the original name from a pre-built name dictionary; The target name is matched with the standard name, and if the target name fails to match, the standard name is used to replace the corresponding translation name in the translation text.
[0047] Specifically, in step 130, the process of replacing the corresponding translation name in the translation text according to the target name may specifically include: When the name matching is successful, the target name can be determined from the name database first. Specifically, the second name with the highest frequency of use among the second names corresponding to the first matching name, or the second name matching the translation name, can be used as the target name.
[0048] At the same time, the original corresponding standard name can be searched from the pre-constructed name dictionary. The name dictionary here is pre-set and can be directly searched. It contains names in multiple languages, as well as the standard names in other languages corresponding to each name.
[0049] After that, the target name can be matched with the standard name to determine whether the two are consistent. The matching here also has a tolerance rate, allowing differences in specific positions. If the two are consistent, that is, the target name is matched successfully, the name can be directly replaced according to the target name; if they are inconsistent, that is, the target name fails to match, the target name can be replaced with the standard name, and the corresponding translated name in the translation text can be updated.
[0050] It should be noted that in the case of name matching failure, you can also look up the standard name corresponding to the original name from the name dictionary, and match the standard name with the translated name corresponding to the original name. If the match is successful, there is no need to replace the translated name. If the match fails, you can replace the translated name with the standard name.
[0051] In the embodiment of the present invention, matching is performed through a name database to determine the target name after preliminary proofreading, and on this basis, secondary proofreading can be performed through a high-level name dictionary to ensure the accuracy of the name in the final translated text.
[0052] Based on the above embodiment, in step 130, if the name is matched successfully, the target name corresponding to the first name matching the original name in the name library is used to replace the corresponding translated name in the translation text, and then the following steps are further included: Displaying the translated text after the name is replaced, and receiving user feedback information on the name in the displayed translated text; the name feedback information includes the user's satisfaction with the name in the displayed translated text, or includes the satisfaction and correction suggestions; Based on the name feedback information, the names and name database in the displayed translation text are updated.
[0053] Specifically, after replacing the corresponding translated name in the translated text with the target name, the updated translated text can be displayed so that the user can see the translated text with more accurate and consistent content after the name is replaced, and can receive feedback and suggestions from the user on the name in the translated text.
[0054] Specifically, the translated text after the name is replaced can be displayed, and the user's name feedback information on the displayed translated text can be received. The name feedback information here can be the user's satisfaction with the name, for example, the user said "the name at this position is translated very accurately, very good", "the name at this position in the third paragraph is translated incorrectly, not very accurate"; it can also be the user's satisfaction with the name and correction suggestions, for example, the user said "the name in the last sentence of the last paragraph is translated incorrectly, it should be John Smith instead of John Smith".
[0055] Next, the displayed translation text and the name library can be updated according to the received name feedback information. Specifically, when the number of users' dissatisfaction with a certain name in the displayed translation text reaches a certain number according to the name feedback information, for example, 20 users said that a certain name was translated incorrectly within a week, or 5 users said that a certain name was translated incorrectly within a day, then the name in the displayed translation text can be updated, and the name library can be updated synchronously.
[0056] Based on the above embodiment, based on the name feedback information, the names and the name library in the displayed translation text are updated, including: Based on the satisfaction of the name feedback information received within a preset period, the name statistics are performed to determine the names to be corrected in the displayed translation text; Based on the correction suggestions in the name feedback information received within a preset period of time, a name correction analysis is performed to determine a corrected name corresponding to the name to be corrected; Replace the corresponding name to be corrected in the displayed translation text with the corrected name, and replace the corresponding target name in the name database; Alternatively, the revised names and the corresponding original names are added to the name database.
[0057] Specifically, the process of updating the names and the name database in the displayed translation text according to the name feedback information may include: Firstly, the names that need to be modified and the names to be modified can be determined based on the name feedback information within a preset time period, that is, the name feedback information received within the preset time period is counted, and the names are counted according to the satisfaction level, and the names to be modified in the displayed translation text are determined, and the modified names corresponding to each name to be modified are determined based on the correction suggestions.
[0058] Then, these corrected names can be used to replace the corresponding names to be corrected in the displayed translation text. At the same time, if the name to be corrected is the target name determined from the name library, rather than the original translated name, the corrected name can be used to replace the target name in the name library. Conversely, if the name to be corrected is not the target name in the name library, the corrected name and the corresponding original name can be added to the name library to expand the name library for subsequent use, to ensure the accuracy of subsequent translation, and to better meet user habits and expectations.
[0059] In the embodiment of the present invention, the name database is iteratively proofread according to the name feedback information, which can ensure the real-time update of the database and make the subsequent translation more accurate and applicable.
[0060] Figure 2 It is the overall flow chart of the name translation method provided by the present invention, such as Figure 2 As shown, the method includes: First, name extraction is performed on the original text and its corresponding translated text to obtain the original name and the translated name.
[0061] Next, the original name is matched with each first name in the name database; the name database contains multiple first names in the same language as the original text, and multiple second names corresponding to each first name in the same language as the translated text.
[0062] Then, if the original name matches successfully, the translated name is matched with each second name corresponding to the first matching name; if the translated name matches successfully, it is determined that the name matches successfully; if the translated name matches unsuccessfully or the original name matches unsuccessfully, the corresponding translated name in the translated text is not replaced; the first matching name is the first name that matches the original name.
[0063] Afterwards, if the name is matched successfully, the target name is determined from the name library, and the standard name corresponding to the original name is determined from the pre-built name dictionary; wherein the target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translated name.
[0064] Then, the target name is matched with the standard name, and when the target name fails to match, the standard name is used to replace the corresponding translation name in the translation text.
[0065] Furthermore, after replacing the corresponding translated names in the translated text, the method further includes: displaying the translated text after the names are replaced, and receiving user feedback information on the names in the displayed translated text; the name feedback information includes the user's satisfaction with the names in the displayed translated text, or includes satisfaction and correction suggestions; based on the satisfaction in the name feedback information received within a preset period of time, performing name statistics to determine the names to be corrected in the displayed translated text; based on the correction suggestions in the name feedback information received within a preset period of time, performing name correction analysis to determine the corrected names corresponding to the names to be corrected; replacing the corresponding names to be corrected in the displayed translated text with the corrected names, and replacing the corresponding target names in the name library; or, supplementing the corrected names and the corresponding original names in the name library.
[0066] The method provided by the embodiment of the present invention extracts names from original text and translated text, and matches them with names of corresponding languages in a name library, respectively. The name library contains multiple first names of the same language as the original text, and multiple second names of the same language as the translated text corresponding to each first name; and when the name is successfully matched, the corresponding translated name in the translated text is replaced with the target name corresponding to the first name matched with the original name in the name library, thereby overcoming the defect that the diversity of name translation in traditional solutions leads to low trust in the translation results by users, improving the accuracy of name translation, as well as the fluency and credibility of the translation results, avoiding the impact on the overall translation fluency and accuracy, thereby optimizing the user experience and providing assistance for promoting cross-language language communication.
[0067] The name translation device provided by the present invention is described below. The name translation device described below and the name translation method described above can be referenced to each other.
[0068] Figure 3 Schematic diagram of the structure of the name translation device provided by the present invention. Figure 3 As shown, the device comprises: A name extraction unit 310 is used to extract names from the original text and its corresponding translated text to obtain original names and translated names; A name matching unit 320, for matching the original name and the translated name with names in a name library, wherein the name library includes a plurality of first names in the same language as the original text, and a plurality of second names in the same language as the translated text corresponding to each first name; A name replacement unit 330 is used to replace the corresponding translation name in the translation text with the target name corresponding to the first name matching the original name in the name library when the name matching succeeds; The target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translation name.
[0069] The name translation device provided by the present invention extracts names from original text and translated text, and matches them with names of corresponding languages in a name library respectively, wherein the name library contains a plurality of first names of the same language as the original text, and a plurality of second names of the same language as the translated text corresponding to each first name; and when the name is successfully matched, the target name corresponding to the first name matched with the original name in the name library is used to replace the corresponding translated name in the translated text, thereby overcoming the defect that the diversity of name translation in traditional solutions leads to low trust in translation results by users, improving the accuracy of name translation, as well as the fluency and credibility of the translation results, avoiding the influence on the overall translation fluency and accuracy, thereby optimizing the user experience and providing assistance for promoting cross-language language communication.
[0070] Based on the above embodiment, the name matching unit 320 is used to: Matching the original name with each first name in the name library; In the case where the original name matches successfully, matching the translated name with each second name corresponding to the first matching name; The first matching name is the first name that matches the original name.
[0071] Based on the above embodiment, the name matching unit 320 is used to: In the case where the translated name matches successfully, determining that the name matches successfully; In the case where the translation name fails to match or the original name fails to match, the corresponding translation name in the translation text is not replaced.
[0072] Based on the above embodiment, the name replacement unit 330 is used to: In the case where the name is matched successfully, determining the target name from the name database; Determine a standard name corresponding to the original name from a pre-built name dictionary; The target name is matched with the standard name, and when the target name fails to match, the standard name is used to replace the corresponding translated name in the translation text.
[0073] Based on the above embodiment, the device further includes a name updating unit, which is used to: Displaying the translated text after the name is replaced, and receiving user feedback information on the displayed translated text; the name feedback information includes the user's satisfaction with the name in the displayed translated text, or includes the satisfaction and correction suggestions; Based on the name feedback information, the names in the displayed translation text and the name database are updated.
[0074] Based on the above embodiment, the device further includes a name updating unit, which is used to: Based on the satisfaction of the name feedback information received within a preset period, the name statistics are performed to determine the names to be corrected in the displayed translation text; Based on the correction suggestions in the name feedback information received within the preset time period, performing name correction analysis to determine a corrected name corresponding to the name to be corrected; Replacing the corresponding name to be corrected in the displayed translation text with the corrected name, and replacing the corresponding target name in the name database; Alternatively, the corrected name and the corresponding original name are added to the name database.
[0075] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor (processor) 410 , a communication interface (Communications Interface) 420 , a memory (memory) 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logic instructions in the memory 430 to execute the name translation method, which includes: extracting names from the original text and the corresponding translated text to obtain original names and translated names; matching the original names and the translated names with names in a name library respectively, wherein the name library contains multiple first names in the same language as the original text, and multiple second names in the same language as the translated text corresponding to each first name; when the name matching is successful, replacing the corresponding translated name in the translated text with a target name corresponding to the first name in the name library that matches the original name; wherein the target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translated name.
[0076] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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 invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0077] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the name translation method provided by the above methods, which method includes: extracting names from an original text and its corresponding translated text to obtain original names and translated names; matching the original names and the translated names with names in a name library respectively, wherein the name library contains multiple first names in the same language as the original text, and multiple second names corresponding to each first name in the same language as the translated text; when the name matching is successful, replacing the corresponding translated name in the translated text with a target name corresponding to the first name in the name library that matches the original name; wherein the target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translated name.
[0078] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the name translation method provided by the above-mentioned methods, the method comprising: extracting names from an original text and its corresponding translated text to obtain original names and translated names; matching the original names and the translated names with names in a name library respectively, the name library containing multiple first names in the same language as the original text, and multiple second names in the same language as the translated text corresponding to each first name; when the name matching is successful, replacing the corresponding translated name in the translated text with a target name corresponding to the first name in the name library that matches the original name; wherein the target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translated name.
[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for translating a person's name, characterized in that: include: Extracting names from the original text and its corresponding translated text to obtain original names and translated names; Matching the original name and the translated name with names in a name library respectively, wherein the name library contains a plurality of first names in the same language as the original text and a plurality of second names in the same language as the translated text corresponding to each first name; In the case where the name is matched successfully, replacing the corresponding translated name in the translated text with the target name corresponding to the first name in the name library that matches the original name; The target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translation name.
2. The method for translating a person's name according to claim 1, characterized in that: The matching of the original name and the translated name with names in a name database respectively includes: Matching the original name with each first name in the name library; In the case where the original name matches successfully, matching the translated name with each second name corresponding to the first matching name; The first matching name is the first name that matches the original name.
3. The method for translating a person's name according to claim 2, characterized in that: In the case where the original name matches successfully, the translated name is matched with each second name corresponding to the first matching name, and then the following steps are further included: In the case where the translated name matches successfully, determining that the name matches successfully; In the case where the translation name fails to match or the original name fails to match, the corresponding translation name in the translation text is not replaced.
4. The method for translating a person's name according to any one of claims 1 to 3, characterized in that: In the case where the name matching is successful, replacing the corresponding translated name in the translated text with the target name corresponding to the first name in the name library that matches the original name, comprises: In the case where the name is matched successfully, determining the target name from the name database; Determine a standard name corresponding to the original name from a pre-built name dictionary; The target name is matched with the standard name, and when the target name fails to match, the standard name is used to replace the corresponding translated name in the translation text.
5. The method for translating a person's name according to any one of claims 1 to 3, characterized in that: In the case where the name matching is successful, the target name corresponding to the first name matching the original name in the name library is used to replace the corresponding translated name in the translation text, and then the following step further includes: Displaying the translated text after the name is replaced, and receiving user feedback information on the displayed translated text; the name feedback information includes the user's satisfaction with the name in the displayed translated text, or includes the satisfaction and correction suggestions; Based on the name feedback information, the names in the displayed translation text and the name database are updated.
6. The method for translating a person's name according to claim 5, characterized in that: The updating of the names in the displayed translation text and the name database based on the name feedback information includes: Based on the satisfaction of the name feedback information received within a preset period, the name statistics are performed to determine the names to be corrected in the displayed translation text; Based on the correction suggestions in the name feedback information received within the preset time period, performing name correction analysis to determine a corrected name corresponding to the name to be corrected; Replacing the corresponding name to be corrected in the displayed translation text with the corrected name, and replacing the corresponding target name in the name database; Alternatively, the corrected name and the corresponding original name are added to the name database.
7. A name translation device, characterized in that: include: A name extraction unit, used to extract the name from the original text and its corresponding translated text to obtain the original name and the translated name; A name matching unit, used to match the original name and the translated name with names in a name library, respectively, wherein the name library contains a plurality of first names in the same language as the original text, and a plurality of second names corresponding to the first names in the same language as the translated text; A name replacement unit, used to replace the corresponding translated name in the translated text with the target name corresponding to the first name matching the original name in the name library when the name matching succeeds; The target name is the second name with the highest frequency of use among the multiple second names corresponding to the first name, or the second name that matches the corresponding translation name.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method for translating a person's name as claimed in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for translating a person's name as claimed in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for translating a person's name as claimed in any one of claims 1 to 6 is implemented.