A fuzzy query method and system for line number based on specific word library
By establishing a search database index and using the relevance scoring algorithm, the problem of users being unable to quickly find bank branches is solved, achieving fast and accurate branch matching and improving system performance.
Patent Information
- Application Number
- CN202110833556.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-07-23
AI Technical Summary
In the existing technology, when the user does not know the bank branch or province or city information of the bank branch, fuzzy search for bank branch name keywords will lead to long response times and reduced system performance, making it impossible to quickly and accurately find the bank branch.
Adopt a fuzzy query method of joint bank numbers based on a specific vocabulary, establish a search database index, segment the query information entered by the user, and use a relevance scoring algorithm such as BM25 to sort the bank name results to provide fast and accurate outlet matching result.
Even if the user inputs approximate or fuzzy network point names, they can obtain fast and accurate network point matching results, reduce resource consumption, and improve system performance.
Smart Images

Figure CN113553354B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic management of financial information, and in particular to a method and system for fuzzy query of bank numbers based on a specific word library. Background Art
[0002] At present, when bank customers handle financial services, they often need to specify the corresponding bank outlets first. However, due to the limitations of existing technologies, there are problems such as long response time and low accuracy in finding bank outlets at this stage, and the user experience is poor. In order to solve the problem of finding bank outlets (generally corresponding to a bank number), fuzzy query technology is generally used. The existing bank number fuzzy query technology generally stores the bank number data in a relational database (such as Mysql or DB2). When users search for bank numbers, they first select the bank type (such as rural commercial banks) and then select the administrative region (such as province or city) to which the bank belongs. The system searches in the database according to the query conditions and displays the matched bank outlets to the customer in the form of a list for the user to choose. When the user selects the above query conditions, the customer is also allowed to enter a known bank name keyword. After the database narrows the bank outlet range according to the bank type, province, and city information selected by the user, a list of bank outlets is first obtained, and then a fuzzy search is performed in the previous list according to the keyword.
[0003] However, the inventors of this application found that the above technology has at least the following technical problems in the process of implementing the technical solution of the invention in the embodiment of this application:
[0004] There are technical problems in the prior art that when a user does not know the bank branch's bank type, or the province or city information, fuzzy searching for bank branch name keywords will result in a long response time and reduced system performance; or when a user is not clear about the exact branch name keyword and only knows an approximate branch name, the branch search cannot be performed quickly and accurately. Summary of the invention
[0005] The embodiments of the present application provide a fuzzy query method and system for bank branch numbers based on a specific vocabulary, thereby solving the technical problems in the prior art that when a user does not know the bank branch’s bank branch name, or the province or city information, fuzzy search for bank branch name keywords will result in a long response time and reduced system performance, or when the user is not clear about the exact branch name keyword and only knows an approximate branch name, the branch search cannot be performed quickly and accurately. The technical effect is that even if the user enters an approximate or fuzzy branch name, a fast and accurate branch matching result can be obtained, thereby reducing resource consumption and improving system performance.
[0006] In view of the above problems, an embodiment of the present application provides a method and system for fuzzy query of line numbers based on a specific vocabulary.
[0007] In a first aspect, an embodiment of the present application provides a fuzzy query method for bank numbers based on a specific vocabulary, the method comprising: obtaining first query information; establishing a search database index; searching the first query information in the search database index to obtain a first bank name result set; performing relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result; sorting the first bank name results from high to low according to the relevance score result to obtain a second bank name result.
[0008] On the other hand, the present application also provides a fuzzy query system for bank numbers based on a specific vocabulary, the system comprising: a first obtaining unit, the first obtaining unit being used to obtain first query information; a first establishing unit, the first establishing unit being used to establish a search database index; a second obtaining unit, the second obtaining unit being used to search the search database index for the first query information to obtain a first bank name result set; a third obtaining unit, the third obtaining unit being used to perform relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result; a fourth obtaining unit, the fourth obtaining unit being used to sort the first bank name results from high to low according to the relevance score result to obtain a second bank name result.
[0009] In a third aspect, the present invention provides a fuzzy query system for linked line numbers based on a specific vocabulary, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the program.
[0010] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0011] By establishing a search database index, searching the first query information in the search database index to obtain a first bank name result set, performing relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result, and sorting the first bank name results from high to low according to the relevance score result to obtain a second bank name result, the method achieves the technical effect of obtaining fast and accurate branch matching results even if the user enters an approximate or ambiguous branch name, reducing resource consumption and improving system performance.
[0012] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A schematic diagram of a flow chart of a method for fuzzy query of a line number based on a specific vocabulary according to an embodiment of the present application;
[0014] Figure 2 This is a schematic diagram of the structure of a fuzzy query system for line numbers based on a specific vocabulary in an embodiment of the present application;
[0015] Figure 3 It is a schematic diagram of the structure of an exemplary electronic device according to an embodiment of the present application.
[0016] Explanation of the reference numerals: first obtaining unit 11 , first establishing unit 12 , second obtaining unit 13 , third obtaining unit 14 , fourth obtaining unit 15 , bus 300 , receiver 301 , processor 302 , transmitter 303 , memory 304 , bus interface 306 . DETAILED DESCRIPTION
[0017] The embodiment of the present application provides a fuzzy query method and system for bank branch numbers based on a specific vocabulary, which solves the technical problems in the prior art that when the user does not know the bank branch’s bank name, or the province or city information, the fuzzy search for the bank branch name keyword will result in a long response time and reduced system performance, or when the user is not clear about the exact branch name keyword and only knows the approximate branch name, the branch search cannot be performed quickly and accurately. The technical effect is that even if the user enters an approximate branch name, a fast and accurate branch matching result can be obtained, resource consumption is reduced, and system performance is improved. Below, the example embodiment of the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments of the present application. It should be understood that the present application is not limited to the example embodiment described here.
[0018] Application Overview
[0019] At present, when bank customers handle financial services, they often need to specify the corresponding bank outlets first. However, due to the limitations of existing technologies, there are problems such as long response time and low accuracy in finding bank outlets at this stage, and the user experience is poor. In order to solve the problem of finding bank outlets (generally corresponding to a bank number), fuzzy query technology is generally used. The existing bank number fuzzy query technology generally stores the bank number data in a relational database (such as Mysql or DB2). When users search for bank numbers, they first select the bank type (such as rural commercial banks) and then select the administrative region (such as province or city) to which the bank belongs. The system searches in the database according to the query conditions and displays the matched bank outlets to the customer in the form of a list for the user to choose. When the user selects the above query conditions, the customer is also allowed to enter a known bank name keyword. After the database narrows the bank outlet range according to the bank type, province, and city information selected by the user, a list of bank outlets is first obtained, and then a fuzzy search is performed in the previous list according to the keyword. However, there are technical problems in the prior art that when the user does not know the bank branch's bank type, or the province or city information, fuzzy search for bank branch name keywords will result in a long response time and reduced system performance; or when the user is not clear about the exact branch name keyword and only knows the approximate branch name, the branch search cannot be performed quickly and accurately.
[0020] In response to the above technical problems, the overall idea of the technical solution provided by this application is as follows:
[0021] An embodiment of the present application provides a fuzzy query method for bank number based on a specific vocabulary, the method comprising: obtaining first query information; establishing a search database index; searching the first query information in the search database index to obtain a first bank name result set; performing relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result; sorting the first bank name results from high to low according to the relevance score result to obtain a second bank name result.
[0022] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.
[0023] Embodiment 1
[0024] like Figure 1 As shown, the embodiment of the present application provides a fuzzy query method for line numbers based on a specific vocabulary, wherein the method includes:
[0025] Step S100: obtaining first query information;
[0026] Specifically, the first query information is the query information of the user, and the query information is the input information of the user. The input information may be complete long input information, keyword information, or similar word information.
[0027] Step S200: Establishing a search database index;
[0028] Specifically, the search database index is a mapping relationship with the original bank name data, providing a pointer to the data value stored in the specified column of the table. After establishing the bank branch name vocabulary, national place name vocabulary, and bank synonym vocabulary, the above vocabulary is imported into the word segmenter. Then the original bank name data is imported into the search database, and the database uses the word segmenter to segment all bank name data, and establishes a mapping relationship (inverted index) between the segmented vocabulary and the original bank name data. After all data are imported, the index of the search database is established.
[0029] Step S300: searching the first query information in the search database index to obtain a first bank name result set;
[0030] Specifically, based on the established search database, a fuzzy search of bank names can be performed. The user inputs a query word or phrase, the word segmenter performs word segmentation on the query word, and searches in the inverted index according to the words obtained after the word segmentation to find a bank name result set, which is the first bank name result set.
[0031] Step S400: performing relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result;
[0032] Specifically, the relevance score is a relevance score result obtained according to the relevance score algorithm BM25 algorithm. Alternative relevance score algorithms include but are not limited to TF&IDF, Lucene relevance algorithm, etc.
[0033] Step S500: sorting the first bank name results from high to low according to the relevance score results to obtain second bank name results.
[0034] Specifically, the search results are sorted from high to low according to the above relevance score results to obtain the second bank name result, which is finally output to the user. This achieves the technical effect of obtaining fast and accurate branch matching results even if the user enters an approximate or ambiguous branch name, reducing resource consumption and improving system performance.
[0035] Furthermore, the embodiment of the present application also includes:
[0036] Step S610: Obtain original bank name data;
[0037] Step S620: constructing a search database according to the original bank name data;
[0038] Step S630: construct a bank name word library;
[0039] Step S640: importing the bank name word library into the word segmenter;
[0040] Step S650: the search database performs word segmentation on the original bank name data through the word segmenter to establish a search database index.
[0041] Specifically, the word segmenter is the open source Chinese word segmenter IK. Other Chinese word segmenters that can replace the IK word segmenter include ICTCLAS, HTTPCWS, SCWS, PhpanAlysis, MMSEG4J, Pangu word segmenter and jieba word segmenter, as well as the default English word segmenter of ElasticSearch. The BM25 algorithm is a classic algorithm used in the field of information indexing to calculate the similarity score between query and document. The characteristics of this algorithm are: 1. The more times the search term appears in a single search result, the higher the score; 2. The fewer times the search term appears in the entire bank data set, the higher the score; 3. The shorter the length of the search result, the higher the score. The above algorithm characteristics enable full-text search to find the search target more accurately. The goal of bank name search is to be able to fuzzily and accurately find the results that the user really wants, and to arrange the results that the user wants at the front of the result set. For example, the search database index can be established by the BM25 algorithm by analyzing the phrase structure of the bank name. The bank name is generally composed of: bank type (generally the head office) + region (province, city, county) + branch network name, such as "Bank of China Beijing Guohua Building Branch". When the query word or phrase entered by the user is segmented, multiple words are hit in the target entry. At this time, according to the BM25 algorithm characteristic 1, the target entry has a high score and can be ranked at the front of the search result set. For example, the user enters "Bank of China Beijing Guohua Building Branch". After segmentation, "Bank of China", "Beijing", "Guohua Building Branch" and other words are included in the target entry, so the target entry "Bank of China Beijing Guohua Building Branch" is ranked at the front. In addition, the region and branch name in the bank name do not appear many times in all bank network data, so the BM25 algorithm characteristic 2 can be used to improve the search accuracy. In order to improve the search accuracy according to the characteristic 2 of the BM25 relevance algorithm, it is necessary to find the unique words in each search result to generate a vocabulary. In the entire bank name set, the branch name has the lowest number of occurrences, followed by the region (province, city, county), and the bank type has the highest number of occurrences. Therefore, it is necessary to generate a branch name word library and a regional word library respectively. For example: the search target is "Bank of China Beijing Guohua Building Branch", and the user enters "Guohua". If the word is segmented according to "Guo" and "Hua" respectively, many search results containing "Guo" and "Hua" will be found. Since "Guo" and "Hua" appear many times in the entire bank name set, and there are multiple search results containing these two words at the same time, "Bank of China Beijing Guohua Building Branch" cannot be ranked at the top. However, if the word is segmented according to "Guohua", then the word "Guohua" appears less frequently in the entire bank name set, and the search target "Bank of China Beijing Guohua Building Branch" can be ranked at the top of the search result list. Thus, a search database index is established.The search database is segmented by the word segmenter on the original bank name data to establish a search database index, so that the search accuracy is improved according to the query words or phrases entered by the user, which lays a solid foundation for obtaining fast and accurate branch matching results in the future, reducing resource consumption and improving system performance.
[0042] Furthermore, the search database performs word segmentation on the original bank name data through the word segmenter to establish a search database index. Step S650 of the embodiment of the present application further includes:
[0043] Step S651: the original bank name data is used as input data and input into the word segmenter to establish a mapping relationship between the segmented phrases and the original bank name;
[0044] Step S652: Obtain word frequency statistics information;
[0045] Step S653: Establishing the search database index according to the word frequency statistical information and the mapping relationship.
[0046] Specifically, after establishing the bank branch name word library, national place name library, and bank synonym word library, the above word libraries are imported into the word segmenter. Then the original bank name data is imported into the search database. The database uses the word segmenter to segment all bank name data and establishes a mapping relationship between the segmented words and the original bank name data (inverted index). After all data are imported, the inverted index of the search database is established. In this process, the word segmenter should segment words at the finest granularity. For example, "Bank of China Beijing Guohua Building Branch", after being processed by the word segmenter, the words include: China, Bank, Beijing, Guohua, Building, Branch, Bank of China, Beijing, Guohua Building, Guohua Building Branch, Guo, Hua, Da, Xia, etc. These words all point to the original entry "Bank of China Beijing Guohua Building Branch" through pointers. When the search term contains the above words, the target result "Bank of China Beijing Guohua Building Branch" can be found.
[0047] Furthermore, the step S630 of constructing the bank name word library in the embodiment of the present application further includes:
[0048] Step S631: construct a national place name database;
[0049] Step S632: construct a bank-specific synonyms database;
[0050] Step S633: construct a bank branch name word library;
[0051] Step S634: construct the bank name word library according to the bank branch name word library, the national place name word library and the bank branch synonym word library.
[0052] Specifically, a copy of the national administrative division place name is made, and the administrative level words such as province, city, county, etc. of the copied place name are removed to obtain the place name abbreviation. The original place name and the abbreviation place name are merged to obtain the national place name database. Since large banks usually have abbreviations in daily life, for example, the full name of the bank is "Industrial and Commercial Bank of China Co., Ltd.", which is abbreviated as "Industrial and Commercial Bank of China" and "ICBC". In order to adapt to people's daily habits of bank abbreviations, when the user enters "Industrial and Commercial Bank of China Co., Ltd.", "Industrial and Commercial Bank of China", "Industrial and Commercial Bank of China", "ICBC", the target entry "Industrial and Commercial Bank of China" as a synonym should be returned to the user. By analogy, the synonym word databases of other bank names can be enumerated, and the bank branch synonym word database is constructed according to the above situation; the bank branch name word database is obtained according to the bank name composition rules. The bank name word database is constructed according to the bank branch name word database, the national place name word database and the bank branch synonym word database.
[0053] Furthermore, the step S633 of constructing the bank branch name word library in the embodiment of the present application further includes:
[0054] Step S6331: Obtain bank name composition rules;
[0055] Step S6332: performing character string interception on the original bank name data according to the bank name composition rule to obtain first character string information;
[0056] Step S6333: Match and intercept the first character string information according to the national geographical word database to obtain a bank branch name word database.
[0057] Specifically, the name composition rule can be to arrange the national place name library set in order from long to short, and match them with the beginning of the B string in sequence. The first matching place name is the match hit, and the B string is intercepted from the end of this string to obtain two segments of strings. The first segment is the place name, which can be discarded. The second segment may be the place name + bank branch name C. The second step is performed on C again, and the loop is iterated until all the place names in C are intercepted and discarded, and the remaining string has at least 2 other characters in addition to repeated words such as "branch", "outlet", and "sub-branch office". The remaining string obtained at this time is the key name of the bank branch, and all the bank branch names output in this step form a set bank branch name vocabulary.
[0058] Furthermore, the step S631 of constructing a national place name database in the present embodiment of the application further includes:
[0059] Step S6311: Obtaining national administrative division place name data;
[0060] Step S6312: correcting the national administrative division place name data;
[0061] Step S6313: Construct a national place name database based on the revised national administrative division place name data.
[0062] Specifically, the data correction of the national administrative division place name data is mainly to correct the abbreviations of the national administrative division place names. For example, administrative words such as "province", "city", and "county" are removed from the place names, and the national administrative division place name data after the correction are collected to construct a national place name database.
[0063] Furthermore, before the character string is intercepted from the original bank name data according to the bank name composition rule to obtain the first character string information, step S6332 of the embodiment of the present application further includes:
[0064] Step S63321: Obtain original bank name data;
[0065] Step S63322: modifying the original bank name data;
[0066] Step S63323: perform character string interception on the revised original bank name data according to the bank name composition rule to obtain first character string information.
[0067] Specifically, the bank name data is corrected including bank name abbreviation correction. For example, meaningless repeated words such as "branch", "outlet", and "sub-office" are removed, and the full name of the bank is "China Postal Savings Bank Co., Ltd., Liaoning Province Huludao City Chemical Industry Branch". The intercepted bank type is China Postal Savings Bank Co., Ltd., the intercepted and discarded place name is Huludao City, Liaoning Province, and the intercepted branch key name is "Chemical Industry Branch". The full name of the bank is "Bank of China Beijing Guohua Building Branch", the intercepted bank type is Bank of China, the intercepted and discarded place name is Beijing, and the intercepted branch name is Guohua Building Branch.
[0068] For example, when a user transfers money through online banking, he needs to enter the bank information of the recipient's account, including the account opening branch. When the user enters "Postal Savings Bank of China, Tieling, Liaoning Tiansheng Branch", clicks the search button, and the first item in the query list is "Postal Savings Bank of China, Tieling City, Liaoning Province, Tiansheng Branch", which accurately hits the target entry, thereby achieving approximate matching of bank branch names, such as "Postal Savings Bank of China", "Liaoning" approximates "Liaoning Province", and "Tieling" approximates "Tieling City", and achieves high-accuracy return of bank branch names. "Tiansheng Branch" appears very few times in the entire database entry, so the target entry is ranked before other entries. When the user does not search for bank branches through the above interactive interface, but transfers money by uploading a batch file, the bank branches in the batch transfer file can only be entered manually by the customer. At this time, when the user enters "Postal Savings Bank of China, Tieling, Liaoning Tiansheng Branch", the first record returned by the search database is the target entry the user wants, thus achieving approximate matching of bank branches that cannot be achieved by traditional methods.
[0069] In summary, the embodiment of the present application provides a method and system for fuzzy query of bank numbers based on a specific vocabulary, which has the following technical effects:
[0070] 1. By establishing a search database index, searching the first query information in the search database index to obtain a first bank name result set, scoring the relevance of all first bank name results in the first bank name result set to obtain a relevance score result, and sorting the first bank name results from high to low according to the relevance score result to obtain a second bank name result, a technical effect of obtaining a fast and accurate branch matching result even if the user inputs an approximate or ambiguous branch name is achieved, thereby reducing resource consumption and improving system performance.
[0071] 2. By using the search database to segment the original bank name data through the word segmenter and establish a search database index, the search accuracy is improved according to the query words or phrases entered by the user, which lays a solid foundation for obtaining fast and accurate branch matching results, reducing resource consumption, and improving system performance.
[0072] Embodiment 2
[0073] Based on the same inventive concept as the method for fuzzy querying bank numbers based on a specific word library in the aforementioned embodiment, the present invention also provides a fuzzy querying system for bank numbers based on a specific word library, such as Figure 2 As shown, the system comprises:
[0074] A first obtaining unit 11, wherein the first obtaining unit 11 is used to obtain first query information;
[0075] A first establishing unit 12, wherein the first establishing unit 12 is used to establish a search database index;
[0076] A second obtaining unit 13, the second obtaining unit 13 is used to search the first query information in the search database index to obtain a first bank name result set;
[0077] A third obtaining unit 14, the third obtaining unit 14 is used to perform relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result;
[0078] The fourth obtaining unit 15 is used to sort the first bank name results from high to low according to the relevance score results to obtain the second bank name results.
[0079] Furthermore, the system also includes:
[0080] a fifth obtaining unit, the fifth obtaining unit being used to obtain original bank name data;
[0081] A first construction unit, the first construction unit is used to construct a search database according to the original bank name data;
[0082] A second construction unit, the second construction unit is used to construct a bank name word library;
[0083] A first importing unit, the first importing unit is used to import the bank name word library into a word segmenter;
[0084] The second establishing unit is used for the search database to segment the original bank name data through the word segmenter to establish a search database index.
[0085] Furthermore, the system also includes:
[0086] a first input unit, the first input unit being used to input the original bank name data as input data into the word segmenter, and establish a mapping relationship between the segmented phrase and the original bank name;
[0087] A sixth obtaining unit, the sixth obtaining unit is used to obtain word frequency statistical information;
[0088] A third establishing unit is used to establish the search database index according to the word frequency statistical information and the mapping relationship.
[0089] Furthermore, the system also includes:
[0090] A third construction unit, the third construction unit is used to construct a national place name database;
[0091] A fourth construction unit, the fourth construction unit is used to construct a bank-specific synonyms thesaurus;
[0092] A fifth construction unit, the fifth construction unit is used to construct a bank branch name word library;
[0093] The sixth construction unit is used to construct the bank name word library according to the bank branch name word library, the national place name word library and the bank branch synonym word library.
[0094] Furthermore, the system also includes:
[0095] A seventh obtaining unit, the seventh obtaining unit is used to obtain a bank name composition rule;
[0096] an eighth obtaining unit, the eighth obtaining unit being used to perform character string interception on the original bank name data according to the bank name composition rule to obtain first character string information;
[0097] The ninth obtaining unit is used to match and intercept the first character string information according to the national geographical word library to obtain a bank branch name word library.
[0098] Furthermore, the system also includes:
[0099] A tenth obtaining unit, the tenth obtaining unit is used to obtain national administrative division place name data;
[0100] A first correction unit, the first correction unit is used to correct the national administrative division place name data;
[0101] The seventh construction unit is used to construct a national place name database based on the revised national administrative division place name data.
[0102] Furthermore, the system also includes:
[0103] an eleventh obtaining unit, the eleventh obtaining unit being used to obtain original bank name data;
[0104] a second correction unit, the second correction unit being used to correct the original bank name data;
[0105] The twelfth obtaining unit is used to perform character string interception on the corrected original bank name data according to the bank name composition rule to obtain first character string information.
[0106] The foregoing Figure 1The various variations and specific examples of a fuzzy query method for bank numbers based on a specific vocabulary in Example 1 are also applicable to a fuzzy query system for bank numbers based on a specific vocabulary in this embodiment. Through the above detailed description of a fuzzy query method for bank numbers based on a specific vocabulary, those skilled in the art can clearly know the implementation method of a fuzzy query system for bank numbers based on a specific vocabulary in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here.
[0107] Exemplary Electronic Devices
[0108] Reference below Figure 3 To describe the electronic device of the embodiment of the present application.
[0109] Figure 3 The figure shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
[0110] Based on the inventive concept of a fuzzy query method for bank numbers based on a specific vocabulary in the aforementioned embodiment, the present invention also provides a fuzzy query system for bank numbers based on a specific vocabulary, on which a computer program is stored, and when the program is executed by a processor, the steps of any method of the fuzzy query method for bank numbers based on a specific vocabulary described above are implemented.
[0111] Among them, Figure 3 In the embodiment of the present invention, a bus architecture (represented by bus 300) is shown, which may include any number of interconnected buses and bridges, and bus 300 links together various circuits including one or more processors represented by processor 302 and memory represented by memory 304. Bus 300 may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 306 provides an interface between bus 300 and receiver 301 and transmitter 303. Receiver 301 and transmitter 303 may be the same element, namely a transceiver, which provides a unit for communicating with various other systems over a transmission medium.
[0112] The processor 302 is responsible for managing the bus 300 and general processing, while the memory 304 may be used to store data used by the processor 302 when performing operations.
[0113] The embodiment of the present invention provides a fuzzy query method for bank number based on a specific word library, the method comprising: obtaining first query information; establishing a search database index; searching the first query information in the search database index to obtain a first bank name result set; scoring the relevance of all first bank name results in the first bank name result set to obtain a relevance score result; sorting the first bank name results from high to low according to the relevance score result to obtain a second bank name result. The method solves the technical problems in the prior art that when the user does not know the bank branch to which the bank branch belongs, or the province and city information, the response time is too long and the system performance is reduced by fuzzy searching for the bank branch name keyword, or when the user is not clear about the accurate branch name keyword and only knows the approximate branch name, the branch search cannot be performed quickly and accurately, and the technical effect of obtaining a fast and accurate branch matching result even if the user enters an approximate and fuzzy branch name can be achieved, reducing resource consumption and improving system performance.
[0114] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.
[0116] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in a box or multiple boxes. Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they know the basic creative concept. Therefore, the attached claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0118] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A fuzzy query method for line numbers based on a specific vocabulary, in, The method comprises: Obtaining first query information; Building search database indexes; Searching the first query information in the search database index to obtain a first bank name result set; Performing relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result; and Sort the first bank name results from high to low according to the relevance score results to obtain the second bank name results, The step of establishing a search database index includes: obtaining original bank name data; constructing a search database based on the original bank name data; constructing a bank name word library; importing the bank name word library into a word segmenter; the search database performs word segmentation on the original bank name data through the word segmenter to establish a search database index; The bank name word library comprises: constructing a national place word library; constructing a bank line synonym word library; constructing a bank branch name word library; constructing the bank name word library according to the bank branch name word library, the national place word library and the bank line synonym word library; The step of constructing a bank branch name word library includes: obtaining a bank name composition rule; performing a character string interception on the original bank name data according to the bank name composition rule to obtain first character string information; matching and intercepting the first character string information according to the national place name word library to obtain a bank branch name word library; The step of constructing a national place name database includes: obtaining national administrative division place name data; correcting the national administrative division place name data; and constructing a national place name database based on the corrected national administrative division place name data. The method of performing character string interception on the original bank name data according to the bank name composition rule to obtain the first character string information includes: obtaining the original bank name data; performing data correction on the original bank name data; and performing character string interception on the corrected original bank name data according to the bank name composition rule to obtain the first character string information.
2. The method according to claim 1, in, The search database performs word segmentation on the original bank name data through the word segmenter to establish a search database index, including: The original bank name data is used as input data and input into the word segmenter to establish a mapping relationship between the word segmented phrases and the original bank name; Get word frequency statistics; The search database index is established according to the word frequency statistical information and the mapping relationship.
3. A fuzzy query system for line numbers based on a specific vocabulary, in, The system comprises: A first obtaining unit, wherein the first obtaining unit is used to obtain first query information; A first establishing unit, the first establishing unit is used to establish a search database index; a second obtaining unit, the second obtaining unit being configured to search the first query information in the search database index to obtain a first bank name result set; a third obtaining unit, the third obtaining unit being used to perform relevance scoring on all first bank name results in the first bank name result set to obtain a relevance score result; a fourth obtaining unit, the fourth obtaining unit being used to sort the first bank name results from high to low according to the relevance score results to obtain a second bank name result, The step of establishing a search database index includes: obtaining original bank name data; constructing a search database based on the original bank name data; constructing a bank name word library; importing the bank name word library into a word segmenter; the search database performs word segmentation on the original bank name data through the word segmenter to establish a search database index; The bank name word library comprises: constructing a national place word library; constructing a bank line synonym word library; constructing a bank branch name word library; constructing the bank name word library according to the bank branch name word library, the national place word library and the bank line synonym word library; The step of constructing a bank branch name word library includes: obtaining a bank name composition rule; performing a character string interception on the original bank name data according to the bank name composition rule to obtain first character string information; matching and intercepting the first character string information according to the national place name word library to obtain a bank branch name word library; The step of constructing a national place name database includes: obtaining national administrative division place name data; correcting the national administrative division place name data; and constructing a national place name database based on the corrected national administrative division place name data. The method of performing character string interception on the original bank name data according to the bank name composition rule to obtain the first character string information includes: obtaining the original bank name data; performing data correction on the original bank name data; and performing character string interception on the corrected original bank name data according to the bank name composition rule to obtain the first character string information.
4. A fuzzy query system for line numbers based on a specific word library, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, in, When the processor executes the program, the steps of the method according to claim 1 or 2 are implemented.
