A method and device for translating merchant names
By cleaning merchant names at the character level and word level, identifying and translating addresses, organizational forms, and industry information, we solve the problems of high investment in translation software and low accuracy in the existing technology, and achieve efficient and accurate translation of informal languages. .
Patent Information
- Application Number
- CN202110426399.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-04-20
AI Technical Summary
When using existing technology for cross-border foreign card internal transactions, merchant name translation has problems such as a large investment in language libraries, a large amount of calculations, poor informal language effects for industry attributes, and low pinyin translation accuracy.
By cleaning the merchant name to be translated at the character level and word level, the address, organizational form and store information are identified, and the industry information and corporate name are further identified. Accurate translation is performed based on this information, using location thesaurus, custom rules and word segmentation recognition. method, adjust the translation method to improve accuracy.
It achieves efficient translation of informal languages with obvious industry attributes, improves the accuracy and scalability of translation results, and meets the information integrity requirements of cross-border transactions.
Smart Images

Figure CN113128240B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method and device for translating merchant names. Background Art
[0002] When using foreign cards for cross-border transactions, the names of Chinese merchants need to be translated into English. On the one hand, this is to exchange merchant information with overseas networks; on the other hand, the merchant information is printed in the receipt for the convenience of foreign cardholders to view. However, due to technical specifications and the length of receipt paper, there are certain requirements for the length of the translation, which makes it impossible to use traditional software for translation. For example, the message requires that the name should not exceed 25 English characters, and the corresponding Chinese characters should not exceed 8 on average, making it difficult to apply traditional translation methods. Usually, the translated merchant names are forcibly truncated and the cardholders cannot understand them. The main method used by existing traditional translation software is to train on a large number of marked language libraries and then use them to translate Chinese. This method requires a lot of investment in marking language libraries, and the design of new algorithms uses a lot of computing power to calculate, but the effect is not good for informal languages that are obviously industry attributes. When translating informal languages that are clearly industry attributes, there is also the phonetic method, which is to convert Chinese directly into pinyin and then truncate it. However, this method has relatively low accuracy, little useful information, and a truncation rate of over 80%. There is also manual translation one by one, but this method is slow and costly and cannot be widely used. Summary of the invention
[0003] One purpose of the present application is to provide a method and device for translating merchant names, so as to solve the problems in the prior art that traditional translation software requires a large amount of investment in markup language libraries, has a large amount of calculation, has poor effect on informal languages belonging to industry attributes, and has low accuracy in direct pinyin translation.
[0004] According to one aspect of the present application, a method for translating a merchant name is provided, the method comprising:
[0005] Clean the merchant name to be translated at the character level and the word level to obtain a cleaned merchant name;
[0006] Identify the address information, organizational form information, and store information contained in the cleaned merchant name to obtain a first identified merchant name;
[0007] Identify the industry information and the enterprise name information in the first identified merchant name to obtain a second identified merchant name;
[0008] The second identified merchant name is translated to obtain a translated merchant name.
[0009] Optionally, identifying the address information, organizational form information, and store information contained in the cleaned merchant name includes:
[0010] Using a location word library and custom rules to identify the address information contained in the cleaned business name, wherein the location word library includes a hierarchical relationship of province, city, county and district;
[0011] Identifying the organizational form information contained in the cleaned merchant name, wherein the organizational form information includes individual business form and corporate form;
[0012] The store information contained in the cleaned merchant name is identified, wherein the store information includes center, plaza, business and store.
[0013] Optionally, identifying the industry information and enterprise name information in the first identified merchant name includes:
[0014] Identify the industry information in the first identified merchant name according to the word segmentation recognition method;
[0015] The enterprise name information is determined based on the identified industry information.
[0016] Optionally, the word segmentation recognition method includes:
[0017] Deleting the address information, organizational form information, and store information from the first identified merchant name to obtain a deleted merchant name;
[0018] Perform sentence segmentation on the deleted merchant name to obtain multiple phrases;
[0019] Traverse each phrase from left to right one by one, determine whether the traversed phrase is in the preset industry dictionary, and use the phrase in the preset industry dictionary as the industry phrase;
[0020] Determine industry information based on all industry phrases.
[0021] Optionally, the enterprise name information is determined based on the identified industry information, including:
[0022] If the identified industry information contains the detected industry phrase, the sentence before the first detected industry phrase is used as the enterprise name information;
[0023] If the detected industry phrase is not included in the identified industry information, the sentence containing the current phrase is used as the enterprise font information.
[0024] Optionally, before translating the second identified merchant name, the method further includes:
[0025] Target information is extracted from the enterprise name information in the second identified merchant name and illegal characters are deleted, wherein the target information includes Chinese, pinyin and letters.
[0026] Optionally, translating the second identified merchant name includes:
[0027] The second identified merchant name is translated according to a translation method corresponding to the organizational form to which it belongs.
[0028] Optionally, translating the second identified merchant name according to a translation method corresponding to the organizational form to which it belongs includes:
[0029] If the organization form is a self-employed business, the second identified business name is directly translated into Pinyin. If the business category code corresponding to the second identified business name is in a custom word library, the English corresponding to the business category in the custom word library is added after the Pinyin translation result.
[0030] If the organizational form is other forms, it is determined whether the second identified merchant name contains industry information, and the second identified merchant name is translated based on the determination result.
[0031] Optionally, translating the second identified merchant name based on the judgment result includes:
[0032] If the judgment result is that the business name contains industry information, translating the English corresponding to the first industry phrase of the second identified business name and translating the business name into pinyin;
[0033] If the judgment result is that the industry information is not contained and the merchant category code is in the custom word library, the English corresponding to the merchant category in the custom word library is used for translation and the enterprise name is translated into pinyin.
[0034] Optionally, translating the second identified merchant name includes:
[0035] If the second identified merchant name does not contain the industry enterprise name and industry information, the second identified merchant name is translated into pinyin and truncated into a preset number of characters.
[0036] According to another aspect of the present application, a device for translating a merchant name is also provided, the device comprising:
[0037] A cleaning device, used for cleaning the merchant name to be translated at the character level and the word level to obtain a cleaned merchant name;
[0038] A first recognition device, used to recognize the address information, organizational form information and store information contained in the cleaned merchant name to obtain a first recognized merchant name;
[0039] A second identification device, used to identify the industry information and the enterprise name information in the first identified merchant name, and obtain a second identified merchant name;
[0040] The translation device is used to translate the second identified merchant name to obtain a translated merchant name.
[0041] According to another aspect of the present application, a device for translating a merchant name is also provided, the device comprising:
[0042] one or more processors; and
[0043] A memory storing computer readable instructions, which, when executed, cause the processor to perform the operations of the method as described above.
[0044] According to another aspect of the present application, a computer-readable medium is provided, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the method described above.
[0045] Compared with the prior art, the present application cleans the merchant name to be translated at the character level and the word level to obtain the cleaned merchant name; identifies the address information, organizational form information and store information contained in the cleaned merchant name to obtain the first identified merchant name; identifies the industry information and corporate name information in the first identified merchant name to obtain the second identified merchant name; translates the second identified merchant name to obtain the translated merchant name. This can meet the translation of informal language with obvious industry attributes, and is easy to adjust and iterate, and the translation result is highly accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0047] Figure 1 A schematic flow chart of a method for translating a merchant name provided according to one aspect of the present application is shown;
[0048] Figure 2 A schematic diagram showing the structure of a device for translating a merchant name provided in yet another aspect of the present application.
[0049] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0050] The present application is described in further detail below in conjunction with the accompanying drawings.
[0051] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (eg, a central processing unit (CPU)), an input / output interface, a network interface and a memory.
[0052] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0053] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, Phase-Change RAM (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0054] Figure 1A flowchart of a method for translating a merchant name provided according to one aspect of the present application is shown, the method comprising: steps S11 to S14, wherein, in step S11, the merchant name to be translated is cleaned at the character level and the word level to obtain the cleaned merchant name; in step S12, the address information, organizational form information and store information contained in the cleaned merchant name are identified to obtain a first identified merchant name; in step S13, the industry information and corporate name information in the first identified merchant name are identified to obtain a second identified merchant name; in step S14, the second identified merchant name is translated to obtain a translated merchant name. Thus, the translation of informal language with obvious industry attributes can be satisfied, and it is easy to adjust and iterate, and the translation result has high accuracy.
[0055] Specifically, in step S11, the merchant name to be translated is cleaned at the character level and the word level to obtain the cleaned merchant name; here, the merchant name to be translated can be a merchant name in Chinese in the scenario of cross-border foreign card internal transaction. When directly translating the merchant name in Chinese, it is usually necessary to intercept a section, resulting in incomplete information retained after translation. Therefore, the merchant name to be translated can be first cleaned, which also improves the efficiency and accuracy of subsequent translation. Specifically, the merchant name to be translated can be cleaned at the character level and the word level. For example, at the character level, some Chinese characters are replaced with English characters, such as "[" becomes "(", and the full-width and half-width of Chinese characters are uniformly processed; at the word level, some useless information is deleted, such as repeated characters or invalid numbers that are too long, to obtain the cleaned merchant name.
[0056] Specifically, in step S12, the address information, organizational form information and store information contained in the cleaned merchant name are identified to obtain a first identified merchant name. Here, the cleaned merchant name is identified to identify the address information, organizational form information and store information contained in the merchant name, thereby obtaining a first identified merchant name, which already contains specific address information, organizational form information and store information.
[0057] Specifically, in step S13, the industry information and corporate name information in the first identified merchant name are identified to obtain a second identified merchant name; here, the first identified merchant name whose specific address information, organizational form information and store information have been identified is re-identified, and this second identification identifies the industry information and corporate name information in the merchant name to obtain a second identified merchant name, in which the specific address information, organizational form information and store information are already clear, as well as the specific industry information and corporate name information, thereby obtaining the specific content of the complete merchant name.
[0058] Specifically, step S14 is to translate the second identified merchant name to obtain a translated merchant name. Here, the second identified merchant name obtained by re-identification is translated, that is, the identified specific address information, organizational form information, store information, specific industry information and corporate name information are translated to obtain a translated merchant name, thereby meeting user needs.
[0059] In one embodiment of the present application, in step S12, the address information contained in the cleaned business name is identified using a location vocabulary and custom rules, wherein the location vocabulary includes the hierarchical relationship of provinces, cities, counties and districts; the organizational form information contained in the cleaned business name is identified, wherein the organizational form information includes individual business forms and corporate forms; the store information contained in the cleaned business name is identified, wherein the store information includes centers, squares, businesses and shops. Here, the main method of identification in the embodiment of the present application is based on the location vocabulary and custom rules, which is easy to understand and communicate and has scalability; new words can be added to the location vocabulary, and custom rules can be iterated and improved, wherein custom rules mainly use character matching and regular expression methods. Specifically, when using the location vocabulary, the location vocabulary contains hierarchical relationships such as provinces, cities, counties, and districts, so as to identify specific address information, such as identifying the address information in a certain merchant name as Xuhui District, Shanghai; when identifying the company's organizational form, it is divided into individual business form and enterprise form (ie company form), and the enterprise form is further divided into limited liability company, sole proprietorship, joint stock company, limited partnership, etc.; when identifying store information, such as center, square, business, store and other information, that is, the location type information of the store, etc.
[0060] In one embodiment of the present application, in step S13, the industry information in the first identified business name is identified according to the word segmentation recognition method; and the enterprise name information is determined according to the identified industry information. Here, the first identified business name is segmented, so that the industry information contained in each segmentation is identified using the word segmentation recognition method, and then the enterprise name information corresponding to the business name is determined according to the identified industry information. Configuration information can be adjusted during word segmentation to ensure that some phrases are grouped together.
[0061] The word segmentation recognition method includes: deleting the address information, organizational form information and store information in the first identified merchant name to obtain the deleted merchant name; performing sentence segmentation on the deleted merchant name to obtain multiple phrases; traversing each phrase from left to right one by one, judging whether the traversed phrase is in the preset industry dictionary, and taking the phrase in the preset industry dictionary as the industry phrase; determining industry information according to all industry phrases. Here, the previously identified address information, organizational form information and store information are removed to obtain the deleted merchant name information, and the deleted merchant name information is used as the remaining sentence, and the remaining sentence is segmented, and the natural language processing method (Natural Language Processing, NLP) can be used for word segmentation. After word segmentation, multiple phrases are generated, and each phrase is traversed from left to right in turn, and it is judged whether the current phrase traversed is in the pre-prepared industry library. If so, it is selected, and all phrases in the industry library are combined to form industry information. By using the industry library, it is possible to identify industries and translate industry words.
[0062] Specifically, in a specific embodiment of the present application, an example of the address library is shown in Table 1 below:
[0063]
[0064]
[0065] Table 1
[0066] Specifically, in a specific embodiment of the present application, an example of an industry library is shown in Table 2 below:
[0067] industry English Abbreviated English supermarket supermarket car car clothing store clothes Serve service manage management science and technology Science and technology tech
[0068] Table 2
[0069] Among them, Table 2 includes Chinese phrases and their corresponding English translations and English abbreviations. When marking and segmenting, it is determined whether each group of industry words after segmentation is in the industry library. For example, the name after removing other information is: Wanbang Automobile Consulting Service Department, and the result of the segmentation (using spaces to distinguish different phrases) is: Wanbang Automobile Consulting Service Department. The industry judgment determines that automobiles, consulting and service departments are in the industry library, so the recognition result is enterprise name: Wanbang, industry: Automobile Consulting Service Department, and the three identified industry word combinations together constitute the industry information.
[0070] Continuing with the above embodiment, in step S13, if the detected industry phrase is included in the identified industry information, the sentence before the first detected industry phrase is used as the enterprise name information; if the detected industry phrase is not included in the identified industry information, the sentence where the current phrase is located is used as the enterprise name information. Here, if the industry phrase is detected in the identified industry information, that is, if the industry phrase is detected in the previous step, the sentence before the first industry phrase is used as the enterprise name, otherwise the entire sentence is used as the enterprise name.
[0071] In an embodiment of the present application, before translating the second identified business name, the target information of the enterprise name in the second identified business name can be extracted and illegal characters can be deleted, wherein the target information includes Chinese, pinyin and letters. Here, the determined enterprise name is processed, useful information such as Chinese, pinyin, letters, etc. is extracted, and illegal characters are deleted, so as to obtain more accurate information contained in the business name.
[0072] In one embodiment of the present application, in step S14, the second identified business name is translated according to the translation method corresponding to the organizational form to which it belongs. Here, the obtained second identified business name is translated, and the corresponding translation method can be determined according to the organizational form to which the business belongs, such as individual business translation and corporate company translation. Among them, when inputting the business name to be translated, the merchant category code (Merchant category code, MCC) is also entered. If the organizational form to which it belongs is an individual business form, the second identified business name is directly translated into pinyin. If the business category code corresponding to the second identified business name is in a custom word library, the English corresponding to the business category described in the custom word library is added after the pinyin translation result; if the organizational form to which it belongs is other forms, it is determined whether the second identified business name contains industry information, and the second identified business name is translated based on the judgment result. Here, if it is in the form of a self-employed business, the name of the self-employed business will be directly translated into pinyin. The name of the self-employed business is the name of the second identified business. If the business category code corresponding to the name of the self-employed business is in the custom vocabulary, that is, the business category code of the self-employed business is in the custom vocabulary, then add the English translation corresponding to the MCC after the pinyin translation. If it is in other forms, the translation is performed using the corporate name and industry or MCC method. Specifically, it is determined whether the second identified business name contains industry information, that is, the industry name, and then the judgment result is used to decide whether to use the corporate name and industry method for translation or the corporate name and MCC method for translation. Among them, when using MCC for translation, for example, the MCC example is shown in Table 3:
[0073]
[0074]
[0075] Table 3
[0076] Assume that the identified business name includes two pieces of information: name and MCC, name: individual business owner Wang Moumou, MCC: 5812. Since MCC is in the list of the vocabulary (column B), the corresponding translation result is: Individual WangmoumouRestaurant; if the user does not provide MCC, it is translated as Individual Wangmoumou.
[0077] Continuing with the above embodiment, if the judgment result is that the industry information is contained, the English corresponding to the first industry phrase of the second identified merchant name is translated and the enterprise name is translated into pinyin; if the judgment result is that the industry information is not contained and the merchant category code is in the custom word library, the English corresponding to the merchant category in the custom word library is used for translation and the enterprise name is translated into pinyin. Here, if the above judgment result is that there is no industry name, but the merchant category code (MCC) is in the custom word library, the English corresponding to the MCC is used for translation; if the above judgment result is that the industry name is contained, the English corresponding to the first industry word is translated first. Then the enterprise name is translated into pinyin word by word, and it is guaranteed not to exceed 25 characters. If there are industry words, and there are extra industry words that have not been translated, and the current length does not exceed the preset number of characters (such as 25 characters), the subsequent industry words can be processed in sequence. If the total length does not exceed 25 characters after adding the English of the industry word, the industry word is translated, and if it exceeds, the translation is stopped.
[0078] In one embodiment of the present application, in step S14, if the second identified business name does not contain the industry enterprise name and industry information, the second identified business name is translated into pinyin and truncated into a preset number of characters. Here, a default translation can be performed, that is, if the enterprise name and industry name cannot be identified in the above identification process, they are uniformly translated into pinyin and then truncated into a preset number of characters (e.g., 25 characters).
[0079] In addition, an embodiment of the present application further provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the aforementioned method of translating a merchant name.
[0080] Corresponding to the method described above, the present application also provides a terminal, which includes a terminal capable of executing the above Figure 1 The modules or units of the method steps described in each embodiment may be implemented by hardware, software or a combination of hardware and software, which is not limited in this application. For example, in one embodiment of this application, a device for translating a merchant name is also provided, and the device includes:
[0081] one or more processors; and
[0082] A memory storing computer readable instructions, which, when executed, cause the processor to perform the operations of the method as described above.
[0083] For example, the computer readable instructions, when executed, cause the one or more processors to:
[0084] Clean the merchant name to be translated at the character level and the word level to obtain a cleaned merchant name;
[0085] Identify the address information, organizational form information, and store information contained in the cleaned merchant name to obtain a first identified merchant name;
[0086] Identify the industry information and the enterprise name information in the first identified merchant name to obtain a second identified merchant name;
[0087] The second identified merchant name is translated to obtain a translated merchant name.
[0088] Figure 2 A structural schematic diagram of a device for translating a merchant name provided in another aspect of the present application is shown, the device comprising: a cleaning device 11, a first recognition device 12, a second recognition device 13 and a translation device 14, wherein the cleaning device 11 is used to clean the merchant name to be translated at the character level and the word level to obtain a cleaned merchant name; the first recognition device 12 is used to recognize the address information, organizational form information and store information contained in the cleaned merchant name to obtain a first recognized merchant name; the second recognition device 13 is used to recognize the industry information and corporate name information in the first recognized merchant name to obtain a second recognized merchant name; the translation device 14 is used to translate the second recognized merchant name to obtain a translated merchant name.
[0089] It should be noted that the contents executed by the cleaning device 11, the first recognition device 12, the second recognition device 13 and the translation device 14 are respectively the same or correspondingly the same as the contents in the above steps S11, S12, S13 and S14, and are not repeated here for the sake of simplicity.
[0090] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0091] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0092] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. The program instruction for calling the method of the present application may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in a working memory of a computer device that runs according to the program instruction. Here, according to an embodiment of the present application, a device is included, the device including a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instruction is executed by the processor, the device is triggered to run the method and / or technical solution based on the aforementioned multiple embodiments according to the present application.
[0093] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A method for translating a merchant name, wherein: The method comprises: Clean the merchant name to be translated at the character level and the word level to obtain a cleaned merchant name; Identify the address information, organizational form information, and store information contained in the cleaned merchant name to obtain a first identified merchant name; Identify the industry information and the enterprise name information in the first identified merchant name to obtain a second identified merchant name; Translating the second identified merchant name to obtain a translated merchant name; The identifying of the industry information and the enterprise name information in the first identified merchant name includes: Identify the industry information in the first identified merchant name according to the word segmentation recognition method; Determine the enterprise name information based on the identified industry information; The word segmentation recognition method includes: Deleting the address information, organizational form information, and store information from the first identified merchant name to obtain a deleted merchant name; Perform sentence segmentation on the deleted merchant name to obtain multiple phrases; Traverse each phrase from left to right one by one, determine whether the traversed phrase is in the preset industry dictionary, and use the phrase in the preset industry dictionary as the industry phrase; Determine industry information based on all industry phrases; If the identified industry information contains the detected industry phrase, the sentence before the first detected industry phrase is used as the enterprise name information; If the detected industry phrase is not included in the identified industry information, the sentence containing the current phrase is used as the enterprise name information; Among them, the enterprise name information is determined based on the identified industry information, including: If the identified industry information contains the detected industry phrase, the sentence before the first detected industry phrase is used as the enterprise name information; If the detected industry phrase is not included in the identified industry information, the sentence containing the current phrase is used as the enterprise name information; The step of translating the second identified merchant name includes: Translating the merchant name identified by the second identification according to the translation method corresponding to the organizational form to which it belongs; The second identified merchant name is translated according to the translation method corresponding to the organizational form, including: If the organization form is a self-employed business, the second identified business name is directly translated into Pinyin. If the business category code corresponding to the second identified business name is in a custom word library, the English corresponding to the business category in the custom word library is added after the Pinyin translation result. If the organizational form is other forms, determining whether the second identified merchant name contains industry information, and translating the second identified merchant name based on the determination result; The translating of the second identified merchant name based on the judgment result includes: If the judgment result is that the business name contains industry information, translating the English corresponding to the first industry phrase of the second identified business name and translating the business name into pinyin; If the judgment result is that the industry information is not contained and the merchant category code is in the custom word library, the English corresponding to the merchant category in the custom word library is used for translation and the enterprise name is translated into pinyin.
2. The method according to claim 1, wherein: Identify the address information, organizational form information, and store information contained in the cleaned merchant name, including: Using a location word library and custom rules to identify the address information contained in the cleaned business name, wherein the location word library includes a hierarchical relationship of province, city, county and district; Identifying the organizational form information contained in the cleaned merchant name, wherein the organizational form information includes individual business form and corporate form; The store information contained in the cleaned merchant name is identified, wherein the store information includes center, plaza, business and store.
3. The method according to claim 1, wherein: Before translating the second identified merchant name, including: Target information is extracted from the enterprise name information in the second identified merchant name and illegal characters are deleted, wherein the target information includes Chinese, pinyin and letters.
4. The method according to claim 1, wherein: Translating the merchant name identified by the second method includes: If the second identified merchant name does not contain the enterprise name and industry information, the second identified merchant name is translated into pinyin and truncated into a preset number of characters.
5. A device for translating a merchant name, wherein: The device comprises: A cleaning device, used for cleaning the merchant name to be translated at the character level and the word level to obtain a cleaned merchant name; A first recognition device, used to recognize the address information, organizational form information and store information contained in the cleaned merchant name to obtain a first recognized merchant name; A second identification device, used to identify the industry information and the enterprise name information in the first identified merchant name, and obtain a second identified merchant name; A translation device, used for translating the second identified merchant name to obtain a translated merchant name; Wherein, the second identification device is used for: Identify the industry information in the first identified merchant name according to the word segmentation recognition method; Determine the enterprise name information based on the identified industry information; The word segmentation recognition method includes: Deleting the address information, organizational form information, and store information from the first identified merchant name to obtain a deleted merchant name; Perform sentence segmentation on the deleted merchant name to obtain multiple phrases; Traverse each phrase from left to right one by one, determine whether the traversed phrase is in the preset industry dictionary, and use the phrase in the preset industry dictionary as the industry phrase; Determine industry information based on all industry phrases; If the identified industry information contains the detected industry phrase, the sentence before the first detected industry phrase is used as the enterprise name information; If the detected industry phrase is not included in the identified industry information, the sentence containing the current phrase is used as the enterprise name information; Wherein, the second identification device is used for: If the identified industry information contains the detected industry phrase, the sentence before the first detected industry phrase is used as the enterprise name information; If the detected industry phrase is not included in the identified industry information, the sentence containing the current phrase is used as the enterprise name information; Wherein, the translation device is used for: Translating the merchant name identified by the second identification according to the translation method corresponding to the organizational form to which it belongs; Wherein, the translation device is used for: If the organization form is a self-employed business, the second identified business name is directly translated into Pinyin. If the business category code corresponding to the second identified business name is in a custom word library, the English corresponding to the business category in the custom word library is added after the Pinyin translation result. If the organizational form is other forms, determining whether the second identified merchant name contains industry information, and translating the second identified merchant name based on the determination result; Wherein, the translation device is used for: If the judgment result is that the business name contains industry information, translating the English corresponding to the first industry phrase of the second identified business name and translating the business name into pinyin; If the judgment result is that the industry information is not contained and the merchant category code is in the custom word library, the English corresponding to the merchant category in the custom word library is used for translation and the enterprise name is translated into pinyin.
6. A computer device, wherein: The computer device comprises: one or more processors; and A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the method as claimed in any one of claims 1 to 4.
7. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Techniques for assisting a user in the textual input of names of entities to a user device in multiple different languages
CN103558908A
Automatic name translation system and method
CN107861953A
