A company information matching method
Through fuzzy search and multi-dimensional comprehensive judgment, the problem that existing platforms cannot intelligently match company information is solved, the stability and accuracy of company information query is achieved, the review efficiency is improved, and financial risks are reduced.
Patent Information
- Application Number
- CN202111505876.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-12-10
AI Technical Summary
The existing company information query platform cannot achieve intelligent matching of multiple information such as company name, phone number, address, etc., resulting in lending institutions spending a lot of manpower and time to verify during review, which has low accuracy and reliability, and has increased financial loans. risk.
By receiving company information entered by users, fuzzy search of company names, combining self-built databases and search engines to obtain similar company information, and comprehensively judge the consistency of company names, phone numbers, and addresses through multi-dimensional and comprehensive measurement, providing stable company information query interface services .
It improves the work efficiency of company information review personnel, reduces labor and time costs, enhances the accuracy and reliability of query results, and reduces financial loan risks.
Smart Images

Figure CN114297461B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a company information matching method. Background Art
[0002] Financial institutions need to verify whether the name, number, and address of the work unit submitted by the borrower are correct during pre-loan review. The company name provided by the borrower may be inconsistent with the one registered with the Industry and Commerce Bureau (for example, there are abbreviations, typos, homophones, branch names, group names, etc.), making information verification difficult.
[0003] Currently, the platforms that provide company information query on the market can only query company information through accurate company names, and cannot achieve intelligent matching of input company names. These platforms are also unable to provide the function of consistent matching of multiple information such as company names, telephone numbers, addresses, etc. Therefore, these existing company information query platforms cannot provide stable query interface services for lending institutions to use. Lending institutions often need to spend a lot of manpower and time to verify whether the multiple information of each company is accurate, which is time-consuming and labor-intensive. In addition, the accuracy and reliability of manual query results are low, which increases the risk of financial loans. Summary of the invention
[0004] The purpose of the present invention is to provide a company information matching method, which is used to solve the problem that the existing company information query platform can only query the precise company name, cannot achieve the matching of the company's multi-dimensional information, and the manual query is time-consuming and unreliable. The present invention can calculate the similarity between the similar company and the company name to be queried based on the company name provided by the user, and then verify the consistency of multi-dimensional information such as name, number, address, etc., provide a stable company information query interface service, and improve the work efficiency of company information auditors.
[0005] The present invention provides a company information matching method, comprising:
[0006] Receiving company information to be checked input by a user; the company information includes company name, company telephone number and company address;
[0007] Format the phone number of the company to be checked;
[0008] Fuzzy search the company name to be searched to obtain a first result set; the first result set includes at least one similar company information retrieved;
[0009] Determine whether the company name to be checked is consistent with similar company names in the first result set;
[0010] If the company name to be checked is consistent with the similar company name in the first result set, determining whether the similar company phone number corresponding to the similar company name consistent with the company name to be checked is consistent with the formatted company phone number to be checked;
[0011] If the similar company phone number corresponding to the similar company name that is consistent with the company name to be checked is consistent with the formatted company phone number to be checked, it is determined that the matching result of the company information to be checked is consistent.
[0012] The technical solution provided by this embodiment may have the following beneficial effects:
[0013] The company information matching method provided in the embodiment of the present invention obtains company information similar to the company name to be checked through a self-built database and a search engine, and comprehensively judges whether the similar company information is consistent with the company information to be checked through multiple dimensions such as company name, telephone number, address, etc. Only when the multi-dimensional company information is consistent, the result of consistent company information matching is output, and a new interface service for querying company information through multi-dimensional information is provided. The query results are accurate and reliable, which can improve the work efficiency of company information reviewers, reduce labor and time costs, and reduce financial loan risks.
[0014] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0016] Figure 1 A flowchart of a first embodiment of a company information matching method provided by an embodiment of the present invention;
[0017] Figure 2 for Figure 1 A flow chart of a method for formatting a telephone number of a company to be checked in S12;
[0018] Figure 3 A flowchart of a specific method for obtaining a third result set by searching for company information similar to the phone number and name of the company to be checked through a search engine in S133;
[0019] Figure 4 for Figure 3 Flow chart of the specific implementation method of step A17;
[0020] Figure 5 for Figure 1 A flowchart of a method for determining whether the company name to be checked is consistent with similar company names in the first result set as described in S14;
[0021] Figure 6 for Figure 5 Flow chart of the specific implementation method of S145;
[0022] Figure 7 A flow chart of a method for calculating the address similarity coefficient between a company name to be checked and a current similar company name;
[0023] Figure 8 A flow chart of the method for calculating the industry similarity coefficient between the company name to be checked and the current similar company name;
[0024] Fig. 9 A flow chart of a method for calculating a keyword similarity coefficient between a company name to be checked and a current similar company name;
[0025] Fig.10 A flowchart of a second embodiment of a company information matching method provided by an embodiment of the present invention;
[0026] Fig.11 for Fig.10 Flow chart of the specific implementation method of S26;
[0027] Fig.12 for Fig.11 Flow chart of the specific implementation method of S266. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0029] Figure 1 A flowchart of a first embodiment of a company information matching method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown in , the method includes the following steps S11-S17:
[0030] S11: receiving the company information to be checked input by the user;
[0031] In the embodiment of the present invention, the company information includes the company name, company telephone number and company address. The company information to be checked includes the company name to be checked, company telephone number to be checked and company address to be checked.
[0032] S12: Format the phone number of the company to be checked.
[0033] S13: Fuzzy search the company name to be checked to obtain the first result set.
[0034] The first result set includes at least one similar company information retrieved.
[0035] In an optional embodiment, the specific implementation method of S13 includes the following steps S131-S134:
[0036] S131: Calculate the matching score between the company name to be checked and each company name stored in a preset Elasticsearch database based on the TF-IDF algorithm;
[0037] The Term Frequency-Inverse Document Frequency (TF-IDF) algorithm is a commonly used weighted technology for information retrieval and text mining. The TF-IDF algorithm can be used to calculate text similarity. In this step, the TF-IDF algorithm is used to calculate the matching score between the company name to be checked and each company name stored in the preset Elasticsearch database.
[0038] In this embodiment, before executing step S11, it also includes: crawling the names, telephone numbers, and addresses of a large number of companies through a public network interface, and storing them in a pre-set Elasticsearch database. The Elasticsearch database also stores a national provincial, municipal, district, and county database, various company industry databases (for example: oil: ["gas station", "PetroChina", "Oil and Gas", "Oil Field", "Petrochemical", "Oil", "Oil Production"]), a national area code database, and information on the number of digits behind each area code.
[0039] S132: Obtain the top N company information with the highest matching scores with the company name to be checked as the second result set;
[0040] Wherein, N is a first preset number. Preferably, N=5, that is, in step S132, the top 5 company information with the highest matching scores with the company name to be checked are selected as company information similar to the company name to be checked to form a second result set.
[0041] S133: searching through a search engine for company information similar to the phone number and name of the company to be checked as a third result set;
[0042] S134: Merge the second result set and the third result set to obtain a first result set.
[0043] In this embodiment, through the self-built Elasticsearch database and search engine, the company information similar to the company name to be searched is fuzzily retrieved as the first result set for subsequent steps.
[0044] S14: Determine whether the company name to be checked is consistent with similar company names in the first result set; if so, execute S15; otherwise, execute S17.
[0045] S15: Determine whether the similar company phone number corresponding to the similar company name that is consistent with the company name to be checked is consistent with the formatted company phone number to be checked; if so, execute S16, otherwise, execute S17.
[0046] S16: Determine that the matching result of the company information to be checked is consistent.
[0047] S17: Determine that the matching result of the company information to be checked is inconsistent.
[0048] The company information matching method provided in this embodiment obtains company information similar to the company name to be checked through a self-built database and search engine, and comprehensively judges whether the similar company information is consistent with the company information to be checked through multiple dimensions such as company name, telephone number, address, etc. Only when the multi-dimensional company information is consistent, the result of consistent company information matching is output, which provides a new interface service for querying company information through multi-dimensional information. The query results are accurate and reliable, which can improve the work efficiency of company information reviewers, reduce labor and time costs, and reduce financial loan risks.
[0049] In an alternative embodiment, if Figure 2 As shown, the method for formatting the telephone number of the company to be checked in S12 may include the following steps S1201-S1210:
[0050] S1201: Deleting characters other than numbers in the telephone number of the company to be checked to obtain a first number string;
[0051] S1202: Determine whether the prefix of the first digital string contains "0086" or "86" and / or whether the suffix contains ".0" or ".00"; if so, execute S1203; otherwise, execute S1204;
[0052] S1203: If the prefix of the first digital string contains "0086" or "86", remove the prefix of the first digital string; if the suffix of the first digital string contains ".0" or ".00", remove the suffix of the first digital string, and then execute S1204;
[0053] S1204: Determine whether the first two digits of the current first digital string are any digits from 12 to 19 and whether the number of digits of the current first digital string is 11; if so, execute S1205; otherwise, execute S1206;
[0054] S1205: Determine that the current first digital string is a formatted telephone number of the company to be checked in the form of a mobile phone number;
[0055] S1206: Determine whether the first digit of the current first digit string is 0; if so, execute S1208; otherwise, execute S1207;
[0056] S1207: according to the location information of the area code in the current first and fourth digital strings, add 0 to the first digit of the current first digital string and match the area code, and then execute S1208;
[0057] S1208: Determine whether the area code in the current first digital string is repeated; if so, execute S1209; otherwise, execute S1210;
[0058] For example, if the current first digit string is 010-01088193388, remove "010-" or remove the second "010".
[0059] S1209: Remove repeated area codes in the current first digital string;
[0060] S1210: According to the location information of the area code in the current first and fourth digit strings, the digits after the area code in the current first digit string are extracted from the front to the back according to the number of digits in the location number, and the remaining digits except the area code and the extracted part are deleted to obtain the formatted company telephone number to be checked in the form of a landline number.
[0061] Figure 3 The flowchart of the specific method of obtaining the third result set by searching the company information similar to the phone number and the name of the company to be checked by the search engine in S133 is shown as follows. Figure 3 As shown in , the method includes the following steps A11-A17:
[0062] Step A11: constructing a query link with the company telephone number to be checked as a search keyword according to a preset link format and the formatted company telephone number to be checked.
[0063] Preferably, the default link format is: https: / / www.baidu.com / s?ie=utf-8&f=8& rsv_bp=1&tn=baiduadv&wd=Company phone number to be checked&rqlang=cn&rsv_enter=1&rsv_sug3 =2 In actual operation, replace the "telephone number of the company to be checked" in the link format with the actual telephone number of the company to be checked, thus forming a query link.
[0064] Step A12: accessing the query link through a designated search engine to obtain a fourth result set returned by the search engine;
[0065] There are multiple search results in the fourth result set, and each search result is related to the phone number of the company to be checked.
[0066] Step A13: Determine whether there is a result in the fourth result set whose title / abstract includes the formatted company phone number to be searched; if so, execute step A14; otherwise, execute step A17.
[0067] Step A14: Determine whether the number of results in the fourth result set that include the formatted company phone number in the title / abstract is not less than M; if so, execute step A15; otherwise, execute step A16;
[0068] Wherein, the M is a second preset number. Preferably, M=3.
[0069] Step A15: Obtain the titles of the first M results in the fourth result set whose titles / abstracts include the formatted company telephone number to be checked as the corresponding company names, record the company information of the first M results in the titles / abstracts that include the formatted company telephone number to be checked, and obtain the third result set.
[0070] Preferably, in this step A15, the matching score between each similar company name in the third result set and the company name to be checked is also set to a first preset score, that is: the matching score between the company name corresponding to the first M results in the title / abstract of the fourth result set that include the formatted company phone number to be checked and the company name to be checked is set.
[0071] Step A16: Obtain the titles of all results including the formatted company phone number to be checked in the summary in the fourth result set as the corresponding company name, record the company information of all results including the formatted company phone number to be checked in the title / summary, and obtain the third result set.
[0072] Preferably, in this step A16, the matching score between each similar company name in the third result set and the company name to be checked is also set to a first preset score.
[0073] Step A17: According to the titles of the first M results in the fourth result set, obtain the company information similar to the name of the company to be checked, and obtain a third result set.
[0074] Preferably, in this step A17, the matching score between each similar company name in the third result set and the company name to be checked is also set to a second preset score; the second preset score is lower than the first preset score.
[0075] Preferably, the first preset score is 10 and the second preset score is 5.
[0076] In this embodiment, a maximum of M company information similar to the company phone number and the company name to be checked is queried through the search engine, so as to prevent the problem of low similarity of similar company information matched in the Elasticsearch database and resulting in inaccurate matching results. The combined use of the Elasticsearch database and the search engine to fuzzily query similar company information can improve the accuracy and reliability of company information matching.
[0077] Figure 4 Shown Figure 3 The specific implementation method flow chart of step A17 is as follows: Figure 4 As shown in , step A17 may include the following steps B11-B21:
[0078] Step B11: Determine whether a string with a word in the first preset dictionary as a suffix can be found in the title and abstract of each of the first M results in the fourth result set; if so, execute step B12; otherwise, execute step B13;
[0079] The first preset dictionary at least includes words representing enterprise types such as company, limited liability company, group, etc.
[0080] Step B12: Determine that the current result is a company with a name similar to the company to be searched, and obtain the found string as the company name corresponding to the current result.
[0081] Step B13: Compare and determine whether the pinyin of the company name to be checked is exactly the same as that of the title of the current result; if so, execute step B14; otherwise, execute step B15.
[0082] Step B14: Determine that the current result is a company with a name similar to the company to be searched, and use the title of the current result as the company name corresponding to the current result.
[0083] Step B15: Determine whether the pinyin of the company name to be checked is in the title of the current result and the length of the pinyin of the company name to be checked is greater than 4 and the pinyin of the company name to be checked is not the pinyin of any word in the second preset dictionary; if so, execute step B14, otherwise, execute step B16;
[0084] The second preset dictionary at least includes words of the type of place names, company suffixes, etc.
[0085] Step B16: Obtain the longest subsequence of the company name to be checked and the title of the current result;
[0086] The longest subsequence is the first character string composed of the same characters of the company name to be checked and the title of the current result in sequence. For example, the longest subsequence of the company name to be checked "People's Bank of China Beijing Haidian Branch" and the title of the current result "People's Bank of China Fuxing Road Branch" is "People's Bank of China Branch".
[0087] Step B17: Determine whether the ratio of the length of the longest subsequence of the company name to be checked and the title of the current result to the length of the company name to be checked is greater than 0.7; if so, execute step B14, otherwise, execute step B18.
[0088] For example: if the name of the company to be checked is "People's Bank of China Beijing Haidian Branch", the length of the company name to be checked is 12 characters, and the title of the current result is "People's Bank of China Fuxing Road Branch", the longest subsequence of the two is "People's Bank of China Branch", and the length of the longest subsequence is 8 characters. The ratio of the length of the longest subsequence to the length of the company name to be checked is 8 / 12=0.67<0.7, then step B18 should be executed subsequently.
[0089] Step B18: segment the company name to be checked according to the region location and the keyword "company" to obtain a third character string in the form of "region+second character string+company suffix" corresponding to the company name to be checked.
[0090] Step B19: Determine whether the second character string is empty; if so, execute step B21; otherwise, execute step B20.
[0091] Step B20: Determine whether the pinyin of the second character string is in the title of the current result and the length of the pinyin of the second character string is greater than 4 and the pinyin of the second character string is not the pinyin of any word in the second preset dictionary; if so, execute step B14; otherwise, execute step B21;
[0092] Step B21: Determine that the current result is not a company with a name similar to the company to be checked.
[0093] In this embodiment, according to the pre-set matching rules, it is determined whether the titles of the first M results in the fourth result set match the company name to be checked, and company information similar to the company name to be checked can be obtained from the titles. These similar company information are formed into a third result set, and then the company name to be checked and the similar company names in the first result set are matched, so as to screen out the company information in the first result set that matches the company name to be checked for telephone number matching.
[0094] In an alternative embodiment, Figure 1 The method for determining whether the company name to be checked is consistent with the similar company names in the first result set in step S14 can be as follows: Figure 5 As shown, the following steps S141-S145 are included:
[0095] S141: Determine whether the character string of the company name to be checked is equal to the character string of the current similar company name in the first result set, or whether one of the character string of the company name to be checked and the character string of the current similar company name completely contains the other character string; if so, execute S142, otherwise, execute S143.
[0096] S142: Set the similarity coefficient between the company name to be checked and the current similar company name to 0.4, and continue to execute S145.
[0097] S143: Cut the company name to be checked into a fourth character string in the form of "region+character name+industry number+enterprise type", and cut the current similar company name into a fifth character string in the form of "region+character name+industry number+enterprise type".
[0098] Furthermore, if the company name to be checked or the current similar company name is a branch name, the company name in the branch format is cut into the form of "region + font size + industry number + enterprise type + sub-region + sub-font size + sub-industry + sub-enterprise type" in this step.
[0099] In this step, when the cut company name is in the above-mentioned form, part of the characters of the address in the company name to be cut (the company name to be checked or the current similar company name) can be extracted according to the company address library stored in the pre-set Elasticsearch database to obtain the area information; and according to the company type library stored in the Elasticsearch database, part of the characters of the type in the company name to be cut are extracted to obtain the industry number information; and according to the company suffix library stored in the Elasticsearch database, the suffix part of the company name to be cut is extracted to obtain the enterprise type information; finally, the remaining part of the company name to be cut is used as the company's keyword, that is, the font size information.
[0100] S144: Calculate a similarity coefficient between the to-be-queried company name and a current similar company name based on the fourth character string and the fifth character string.
[0101] In the embodiment of the present invention, if the similarity coefficient is larger, it means that the similarity between the two company names is higher, and vice versa, if the similarity coefficient is smaller, it means that the similarity between the two company names is lower, that is, the similarity coefficient is used to characterize the similarity between the two corresponding company names.
[0102] Preferably, this step can first calculate the address similarity coefficient between the company name to be checked and the current similar company name according to the area in the fourth character string and the fifth character string; and calculate the industry similarity coefficient between the company name to be checked and the current similar company name according to the industry number in the fourth character string and the fifth character string; and calculate the keyword similarity coefficient between the company name to be checked and the current similar company name according to the font size in the fourth character string and the fifth character string. Subsequently, the similarity coefficient between the company name to be checked and the current similar company name is calculated according to the formula S=q1*S1+q2*S2+q3*S3. Among them, q1, q2, q3 are the first preset weighting coefficient, the second preset weighting coefficient, and the third preset weighting coefficient respectively; S1, S2, S3 are the address similarity coefficient, industry similarity coefficient, and keyword similarity coefficient between the company name to be checked and the current similar company name respectively.
[0103] Further preferably, according to Figure 7 The method calculates the address similarity coefficient between the company name to be checked and the current similar company name, based on Figure 8 The method calculates the industry similarity coefficient between the company name to be checked and the current similar company name, based on Fig. 9 The method calculates the keyword similarity coefficient between the company name to be checked and the current similar company name, which will be described in detail below.
[0104] S145: Determine whether the company name to be checked and the current similar company name are consistent according to the similarity coefficient between the company name to be checked and the current similar company name and the matching score between the current similar company name and the company name to be checked.
[0105] according to Figure 5 In the illustrated embodiment, company names in the first result set that match the company name to be checked can be screened out.
[0106] Alternatively, if Figure 6 As shown, this step S145 may include the following steps C10-C31:
[0107] Step C10: Determine whether the matching score between the current similar company name and the company name to be checked is not less than a first preset matching score; if so, execute step C20; otherwise, execute step C30;
[0108] Preferably, the first preset matching score is equal to 10.
[0109] Step C20: Determine whether the similarity coefficient between the company name to be checked and the current similar company name is not less than a first preset coefficient; if so, execute step C21, otherwise execute step C22;
[0110] Step C21: Determine whether the name of the company to be checked is exactly the same as the name of the current similar company;
[0111] Step C22: Determine whether the similarity coefficient between the company name to be checked and the current similar company name is not less than a second preset coefficient; if so, execute step C23; otherwise, execute step C24;
[0112] The second preset coefficient is smaller than the first preset coefficient; preferably, the first preset coefficient is equal to 0.4, and the second preset coefficient is equal to 0.1.
[0113] Step C23: Determine whether the company name to be checked is fuzzily consistent with the current similar company name;
[0114] Step C24: Determine that the company name to be checked is inconsistent with the current similar company name;
[0115] Step C30: Determine whether the matching score between the current similar company name and the company name to be checked is not less than a second preset matching score; if so, execute step C31, otherwise execute step C24;
[0116] Preferably, the second preset matching score is equal to 5.
[0117] Step C31: Determine whether the similarity coefficient between the company name to be checked and the current similar company name is not less than a first preset coefficient; if so, execute step C23, otherwise execute step C24;
[0118] pass Figure 6 The process shown can determine whether the name of the company to be checked is consistent with the name of each similar company in the first result set, and the final company name matching result is one of exact consistency, fuzzy consistency and inconsistency. In this embodiment, the similar company names in the first result set that are exactly consistent or fuzzy consistent with the name of the company to be checked are screened out, and then the telephone numbers of these screened similar companies are obtained to continue execution. Figure 1 Step S15 in the above process performs phone number consistency matching. After S15 is executed, if the company name and phone number of at least one similar company are consistent with the company name and phone number of the company to be checked, it is determined that the company name and phone number of the company to be checked can be matched. If the company names and phone numbers of multiple similar companies are consistent with the company name and phone number of the company to be checked, the result with the highest name matching degree is selected as the matching result of the company name and phone number of the company to be checked. For example, if the matching result of A similar company name and the company name to be checked is exactly consistent, and the phone number matching result is consistent, and there is also B similar company name and the company name to be checked. The matching result is fuzzy consistent, and the phone number matching result is consistent, then after step S15, it is determined that the matching result of the company name and phone number to be checked is exactly consistent.
[0119] Figure 7 A flow chart of a method for calculating the address similarity coefficient between the company name to be checked and the current similar company name, such as Figure 7 As shown in , the method includes the following steps S701-S706:
[0120] S701: Determine whether the first region and the second region are congruent, or whether one of the first region and the second region is a non-empty proper subset of the other; if so, execute S702; otherwise, execute S703.
[0121] The first area is an area in the fourth character string, and the second area is an area in the fifth character string.
[0122] S702: Set the address similarity coefficient S1 between the company name to be checked and the current similar company name to be equal to 0.2;
[0123] S703: Determine whether there is a subordinate relationship between the first area and the second area; if so, execute S702; otherwise, execute S704.
[0124] In this step, it is determined whether the first area belongs to the second area or whether the second area belongs to the first area. If either the first area or the second area belongs to the other, S702 is executed; otherwise, S704 is executed.
[0125] S704: Determine whether the symmetric difference set between the first region and the second region is empty; if so, execute S705; otherwise, execute S706.
[0126] S705: Set the address similarity coefficient S1 between the company name to be checked and the current similar company name = 0;
[0127] S706: Set the address similarity coefficient S1 between the company name to be checked and the current similar company name to be -0.1.
[0128] Figure 8 The flowchart of the method for calculating the industry similarity coefficient between the company name to be checked and the current similar company name is as follows: Figure 8 As shown in , the method includes the following steps S801-S805:
[0129] S801: Determine whether the first industry number and the second industry number are identical, or whether one of the first industry number and the second industry number is a non-empty proper subset of the other; if so, execute S802, otherwise, execute S803.
[0130] The first industry number is the industry number in the fourth character string, and the second industry number is the industry number in the fifth character string.
[0131] S802: Let the industry similarity coefficient S2 between the company name to be checked and the current similar company name be 0.25.
[0132] S803: According to the standard industry names stored in the Elasticsearch database, obtain the standard industry names corresponding to the first industry number and the second industry number respectively.
[0133] For example, if the first industry number is "hotel" and the second industry number is "guest house", according to the standard industry names stored in the Elasticsearch database, the standard industry names corresponding to the first industry number and the second industry number are obtained as "hotel".
[0134] S804: Determine whether the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number are identical, or whether one of the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number is a non-empty true subset of the other; if so, execute S802, otherwise, execute S805.
[0135] S805: Set the industry similarity coefficient S2 between the company name to be checked and the current similar company name to be equal to 0.
[0136] Fig. 9 The flowchart of the method for calculating the keyword similarity coefficient between the company name to be checked and the current similar company name. Fig. 9 As shown in , the method includes the following steps S901-S909:
[0137] S901: Determine whether the first keyword and the second keyword are congruent, or whether one of the first keyword and the second keyword is a non-empty proper subset of the other; if so, execute S902, otherwise, execute S903.
[0138] Wherein, the first keyword is the font size in the fourth character string, and the second keyword is the font size in the fifth character string;
[0139] S902: Let the keyword similarity coefficient S3 between the company name to be checked and the current similar company name = 0.55.
[0140] S903: Determine whether one of the first keyword and the second keyword is empty but the other is not empty; if so, execute S904; otherwise, execute S905.
[0141] In this step, it is determined whether one of the company name to be checked and the current similar company name has no keyword and the other has a keyword. If so, S904 is executed; otherwise, if both the first keyword and the second keyword are not empty, S905 is executed.
[0142] S904: Set the keyword similarity coefficient S3 between the company name to be checked and the current similar company name = 0.25*0.55;
[0143] S905: Determine whether the pinyin of the first keyword is consistent with the pinyin of the second keyword; if so, execute S902; otherwise, execute S906.
[0144] S906: Calculate the intersection-over-union ratio of the first keyword and the second keyword.
[0145] S907: Determine whether the intersection-over-union ratio of the first keyword and the second keyword is not less than 0.4; if so, execute S908; otherwise, execute S909.
[0146] S908: Let the keyword similarity coefficient S3 between the company name to be checked and the current similar company name = the intersection and union ratio of the first keyword and the second keyword * 0.35;
[0147] S909: Set the keyword similarity coefficient S3 between the company name to be checked and the current similar company name to be equal to 0.
[0148] Fig.10 A flowchart of a second embodiment of a company information matching method provided by an embodiment of the present invention is shown in FIG. Fig.10 As shown in , the method includes the following steps S21-S28:
[0149] S21: receiving the company information to be checked input by the user;
[0150] S22: Format the phone number of the company to be checked.
[0151] S23: Fuzzy search the company name to be searched to obtain the first result set.
[0152] S24: Determine whether the company name to be checked is consistent with similar company names in the first result set; if so, execute S25; otherwise, execute S28.
[0153] S25: Determine whether the similar company phone number corresponding to the similar company name that is consistent with the company name to be checked is consistent with the formatted company phone number to be checked; if so, execute S26, otherwise, execute S28.
[0154] In this embodiment, the specific implementation method of steps S21-S25 is similar to steps S11-S15 in the above-mentioned embodiment 1, and will not be repeated here.
[0155] S26: Determine whether the second result set can match the company address to be queried; if so, execute S27; otherwise, execute S28.
[0156] S27: Determine that the matching result of the company information to be checked is consistent.
[0157] S28: Determine that the matching result of the company information to be checked is inconsistent.
[0158] In this embodiment, when it is determined that the name and telephone number of the company to be checked are consistent with the name and telephone number of at least one similar company, it is further determined whether the address of the company to be checked can be matched in the second result set, and whether the three elements of the company name, number, and address are consistent, which can further improve the accuracy of company information matching.
[0159] In an alternative embodiment, if Fig.11 As shown in , S26 may include the following specific steps S261-S266:
[0160] S261: Obtaining the addresses of similar companies in the second result set as the searched addresses;
[0161] S262: filtering the address of the company to be checked and keywords in each checked address;
[0162] S263: for each found address, determine whether the character string corresponding to the company address to be found after filtering the keyword is completely consistent with the character string corresponding to the current found address; if so, execute S264; otherwise, execute S265;
[0163] S264: Determine that the address of the company to be checked can be matched and the currently checked address is exactly consistent with the address of the company to be checked;
[0164] S265: Locate the address of the company to be checked after filtering the keywords and the currently checked address in a designated map.
[0165] In the embodiment of the present invention, the complete composition format of the defined address is: country + province + city + county / district + township / town + road / road / street + courtyard / commune / building + building number / block + floor / floor + house number.
[0166] In this step S265, preferably, the method of locating the address of the company to be checked and the currently checked address in the specified map is: determine whether the current address to be located is an accurate address accurate to the building / floor / house number; if so, locate the current address to be located as a point in the specified map; otherwise, locate the current address to be located in the specified map as the minimum level area recorded by the current address to be located. For example: if the current address to be located is "Haidian District, Beijing", and the address is not detailed to the community and its building / floor / house number, then the address is located in the specified map such as Amap as the "Haidian District" area of Beijing.
[0167] S266: Determine whether the currently found address matches the company address to be checked according to the sizes of the positioning areas of the company address to be checked and the currently found address in the specified map and the distance between the company address to be checked and the currently found address.
[0168] Preferably, if Fig.12 As shown, step S266 may specifically include the following steps D11-D22:
[0169] Step D11: Determine whether the location areas of the company address to be checked and the currently checked address in the specified map are both points; if so, execute step D12; otherwise, execute step D18;
[0170] Step D12: Calculate the distance between the location points of the company address to be checked and the currently checked address in the specified map;
[0171] In this step, the longitude and latitude of the location point of the address of the company to be checked in the specified map and the location point of the address currently checked in the specified map are first determined, and then the distance between the two locations is calculated according to the longitude and latitude. The specific calculation rule is that on the same longitude, the difference in latitude of 1 degree is 111 kilometers. On the same latitude, for every 1 degree difference in longitude, the actual distance to be checked is 111×cosθ kilometers, where θ represents the latitude of the latitude.
[0172] Step D13: Determine whether the distance between the location points of the to-be-queried company address and the currently-queried address in the specified map is greater than a first preset distance; if so, execute step D14, otherwise execute step D15;
[0173] Preferably, the first preset distance is 1000 meters.
[0174] Step D14: Determine whether the currently checked address is inconsistent with the address of the company to be checked;
[0175] Step D15: Determine whether the distance between the location points of the to-be-queried company address and the currently-queried address in the specified map is less than a second preset distance; if so, execute step D16; otherwise, execute step D17;
[0176] Wherein, the second preset distance is smaller than the first preset distance. Preferably, the second preset distance is 50 meters.
[0177] Step D16: Determine that the address of the company to be checked can be matched and the currently checked address is exactly consistent with the address of the company to be checked;
[0178] Step D17: Determine that the address of the company to be checked can be matched and the currently checked address is fuzzily consistent with the address of the company to be checked;
[0179] Step D18: Determine whether the area of the location area of any one of the to-be-queried company address and the currently-queried address in the specified map is greater than a preset area threshold; if so, execute step D19, otherwise execute step D20;
[0180] Preferably, the preset area threshold is 4 square kilometers. In this embodiment, if the location area located according to the address is larger than 4 square kilometers, the address is considered too general, and no comparison is performed, and step D19 is executed.
[0181] Step D19: Determine that the address of the company to be checked cannot be matched;
[0182] Step D20: Determine whether the locations of the company address to be checked and the currently checked address in the specified map are both areas; if so, execute step D21, otherwise execute step D22;
[0183] Step D21: determine whether the location area of the company address to be checked in the specified map and the location area of the currently checked address in the specified map have an intersection; if so, execute step D17, otherwise execute step D14;
[0184] Step D22: Determine whether the positioning points of the company address to be checked and the currently checked address in the specified map are within the positioning area; if so, execute step D17, otherwise execute step D14.
[0185] In this embodiment, the consistency between the address to be searched and the currently searched address is determined by locating the address on a specified map, thereby creatively providing a means of matching the address with company information.
[0186] In the solution provided in the second embodiment of the present invention, the company information is matched by the three elements of company name, telephone number and address. As long as the matching result of one of the company name, telephone number and address is inconsistent, the matching result of inconsistent company information matching is returned to the user. If the company name, telephone number and address are all consistent, the matching result of consistent company information matching is returned to the user. Furthermore, in the detailed schemes of the above-mentioned company name matching and address matching, there are two results of exact consistency and fuzzy consistency. Under the premise of consistent telephone number matching, as long as the matching result of one of the company name or address is fuzzy consistency, the matching result of fuzzy consistency of company information matching is returned to the user.
[0187] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0188] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A company information matching method, It is characterized in that include: Receiving company information to be checked input by a user; the company information includes company name, company telephone number and company address; Format the phone number of the company to be checked; Fuzzy search the company name to be searched to obtain a first result set; the first result set includes at least one similar company information retrieved; Determine whether the company name to be checked is consistent with similar company names in the first result set; If the company name to be checked is consistent with the similar company name in the first result set, determining whether the similar company phone number corresponding to the similar company name consistent with the company name to be checked is consistent with the formatted company phone number to be checked; If the similar company phone number corresponding to the similar company name that is consistent with the company name to be checked is consistent with the formatted company phone number to be checked, it is determined that the matching result of the company information to be checked is consistent; The fuzzy search for the company name to be checked obtains a first result set, including: Based on the TF-IDF algorithm, the matching score between the company name to be checked and each company name stored in the preset Elasticsearch database is calculated; Obtaining the top N company information with the highest matching scores with the company name to be checked as the second result set; N is a first preset number; Step A11: constructing a query link with the company telephone number to be checked as a search keyword according to a preset link format and the formatted company telephone number to be checked; Step A12: accessing the query link through a designated search engine to obtain a fourth result set returned by the search engine; the fourth result set includes a plurality of search results; Step A13: Determine whether there is a result in the fourth result set that includes the formatted company phone number in the title / abstract; if so, execute step A14; otherwise, execute step A17; Step A14: Determine whether the number of results in the fourth result set that include the formatted company phone number in the title / abstract is not less than M; if so, execute step A15; otherwise, execute step A16; wherein M is a second preset number; Step A15: obtaining the titles of the first M results in the fourth result set whose titles / abstracts include the formatted company telephone number to be checked as corresponding company names, and recording the company information of the first M results in the titles / abstracts including the formatted company telephone number to be checked, to obtain a third result set; Step A16: obtaining the titles of all results in the fourth result set that include the formatted company phone number in the summary as the corresponding company name, recording the company information of all results in the title / summary that include the formatted company phone number to be checked, and obtaining a third result set; Step A17: according to the titles of the first M results in the fourth result set, obtain the company information similar to the name of the company to be checked, and obtain a third result set; The second result set and the third result set are combined to obtain a first result set.
2. The company information matching method according to claim 1, It is characterized in that The step of obtaining company information similar to the name of the company to be checked according to the titles of the first M results in the fourth result set includes: Step B11: Determine whether a string with a word in the first preset dictionary as a suffix can be found in the title and abstract of each of the first M results in the fourth result set; if so, execute step B12; otherwise, execute step B13; wherein the first preset dictionary includes: company, limited company, group; Step B12: Determine that the current result is a company with a name similar to the company to be searched, and obtain the searched string as the company name corresponding to the current result; Step B13: Compare and determine whether the pinyin of the company name to be checked is exactly the same as the pinyin of the title of the current result; if yes, execute step B14; otherwise, execute step B15; Step B14: Determine that the current result is a company with a name similar to the company to be checked, and use the title of the current result as the company name corresponding to the current result; Step B15: Determine whether the pinyin of the company name to be checked is in the title of the current result and the length of the pinyin of the company name to be checked is greater than 4 and the pinyin of the company name to be checked is not the pinyin of any word in the second preset dictionary; if so, execute step B14, otherwise, execute step B16; wherein the second preset dictionary at least includes: place name, company suffix; Step B16: obtaining the longest subsequence of the company name to be checked and the title of the current result; the longest subsequence is a first character string composed of the same characters of the company name to be checked and the title of the current result in sequence; Step B17: Determine whether the ratio of the length of the longest subsequence of the company name to be checked and the title of the current result to the length of the company name to be checked is greater than 0.7; if so, execute step B14; otherwise, execute step B18; Step B18: segment the company name to be checked according to the region and the keyword "company" to obtain a third character string in the form of "region+second character string+company suffix" corresponding to the company name to be checked; Step B19: Determine whether the second character string is empty; if so, execute step B21; otherwise, execute step B20; Step B20: Determine whether the pinyin of the second character string is in the title of the current result and the length of the pinyin of the second character string is greater than 4 and the pinyin of the second character string is not the pinyin of any word in the second preset dictionary; if so, execute step B14; otherwise, execute step B21; Step B21: Determine that the current result is not a company with a name similar to the company to be checked.
3. The company information matching method according to claim 1, It is characterized in that The formatted company telephone number to be checked includes: S1201: Deleting characters other than numbers in the telephone number of the company to be checked to obtain a first number string; S1202: Determine whether the prefix of the first digital string contains "0086" or "86" and / or whether the suffix contains ".0" or ".00"; if yes, execute S1203, otherwise, execute S1204; S1203: if the prefix of the first digital string contains "0086" or "86", remove the prefix of the first digital string; if the suffix of the first digital string contains ".0" or ".00", remove the suffix of the first digital string, and then execute S1204; S1204: Determine whether the first two digits of the current first digital string are any digits from 12 to 19 and whether the number of digits of the current first digital string is 11; if so, execute S1205; otherwise, execute S1206; S1205: Determine that the current first digital string is a formatted telephone number of the company to be checked in the form of a mobile phone number; S1206: Determine whether the first digit of the current first digit string is 0; if so, execute S1208; otherwise, execute S1207; S1207: according to the location information of the area code in the current first and fourth digital strings, add 0 to the first digit of the current first digital string and match the area code, and then execute S1207; S1208: Determine whether the area code in the current first digital string is repeated; if so, execute S1209; otherwise, execute S1210; S1209: Remove repeated area codes in the current first digital string; S1210: According to the location information of the area code in the current first and fourth digit strings, the digits after the area code in the current first digit string are extracted from the front to the back according to the number of digits in the location number, and the remaining digits except the area code and the extracted part are deleted to obtain the formatted company telephone number to be checked in the form of a landline number.
4. The company information matching method according to claim 1, It is characterized in that The recording of the company information of the first M results including the formatted telephone number of the company to be checked in the title / abstract to obtain a third result set further includes: setting a matching score between each similar company name in the third result set and the company name to be checked to a first preset score; The recording of the company information of all results including the formatted telephone number of the company to be checked in the title / abstract to obtain a third result set further includes: setting a matching score between each similar company name in the third result set and the company name to be checked to a first preset score; The method further comprises: setting a matching score between each similar company name in the third result set and the company name to be checked as a second preset score; wherein the second preset score is lower than the first preset score; The step of determining whether the company name to be checked is consistent with similar company names in the first result set comprises the following steps: S141: Determine whether the character string of the company name to be checked is equal to the character string of the current similar company name in the first result set, or whether one of the character string of the company name to be checked and the character string of the current similar company name completely contains the other character string; if so, execute S142; otherwise, execute S143; S142: setting the similarity coefficient between the company name to be checked and the current similar company name to 0.4, and continuing to execute S145; S143: cutting the company name to be checked into a fourth character string in the form of "region+character number+industry number+enterprise type", and cutting the current similar company name into a fifth character string in the form of "region+character number+industry number+enterprise type"; S144: Calculating a similarity coefficient between the company name to be checked and a current similar company name based on the fourth character string and the fifth character string; S145: Determine whether the company name to be checked and the current similar company name are consistent according to the similarity coefficient between the company name to be checked and the current similar company name and the matching score between the current similar company name and the company name to be checked.
5. The company information matching method according to claim 4, It is characterized in that The determining whether the company name to be checked and the current similar company name are consistent according to the similarity coefficient between the company name to be checked and the current similar company name and the matching score between the current similar company name and the company name to be checked comprises: Step C10: Determine whether the matching score between the current similar company name and the company name to be checked is not less than a first preset matching score; if so, execute step C20; otherwise, execute step C30; Step C20: Determine whether the similarity coefficient between the company name to be checked and the current similar company name is not less than a first preset coefficient; if so, execute step C21, otherwise execute step C22; Step C21: Determine whether the company name to be checked is exactly the same as the current similar company name; Step C22: Determine whether the similarity coefficient between the company name to be checked and the current similar company name is not less than a second preset coefficient; if so, execute step C23, otherwise execute step C24; wherein the second preset coefficient is less than the first preset coefficient; Step C23: Determine whether the company name to be checked is fuzzily consistent with the current similar company name; Step C24: Determine that the company name to be checked is inconsistent with the current similar company name; Step C30: Determine whether the matching score between the current similar company name and the company name to be checked is not less than a second preset matching score; if so, execute step C31, otherwise execute step C24; Step C31: Determine whether the similarity coefficient between the company name to be checked and the current similar company name is not less than a first preset coefficient; if so, execute step C23, otherwise execute step C24; If the company name to be checked is consistent with the similar company name in the first result set, determining whether the similar company phone number corresponding to the similar company name consistent with the company name to be checked is consistent with the formatted company phone number to be checked includes: If the company name to be checked is exactly the same or fuzzily the same as the similar company name in the first result set, it is determined whether the similar company phone number corresponding to the similar company name that is exactly the same or fuzzily the same as the company name to be checked is consistent with the formatted company phone number to be checked.
6. The company information matching method according to claim 5, It is characterized in that N=5, M=3, the first preset score is equal to 10, the second preset score is equal to 5, the first preset coefficient is equal to 0.4, and the second preset coefficient is equal to 0.
1.
7. The company information matching method according to claim 4, It is characterized in that The calculating, based on the fourth character string and the fifth character string, a similarity coefficient between the company name to be checked and a current similar company name includes: Calculate the address similarity coefficient between the company name to be checked and the current similar company name according to the area in the fourth character string and the fifth character string; calculate the industry similarity coefficient between the company name to be checked and the current similar company name according to the industry number in the fourth character string and the fifth character string; calculate the keyword similarity coefficient between the company name to be checked and the current similar company name according to the font size in the fourth character string and the fifth character string; According to the formula S = q 1 *S 1 +q 2 *S 2 +q 3 *S 3 Calculate the similarity coefficient between the company name to be checked and the current similar company name; where q 1 ,q 2 ,q 3 are respectively the first preset weighting coefficient, the second preset weighting coefficient, and the third preset weighting coefficient; S 1 , S 2 , S 3 They are respectively the address similarity coefficient, industry similarity coefficient, and keyword similarity coefficient of the company name to be checked and the current similar company name.
8. The company information matching method according to claim 7, It is characterized in that The calculating, based on the regions in the fourth character string and the fifth character string, the address similarity coefficient between the company name to be checked and the current similar company name comprises: Determine whether a first region and a second region are congruent, or whether one of the first region and the second region is a non-empty proper subset of the other; wherein the first region is a region in the fourth character string, and the second region is a region in the fifth character string; If the first region and the second region are congruent, or one of the first region and the second region is a non-empty proper subset of the other, then let the address similarity coefficient S of the company name to be checked and the current similar company name be 1 =0.2; If the first region and the second region are not congruent and neither of the first region and the second region is a non-empty proper subset of the other, determining whether there is a membership relationship between the first region and the second region; If there is a subordinate relationship between the first area and the second area, then the address similarity coefficient S of the company name to be checked and the current similar company name is set to 1 =0.2; If there is no affiliation relationship between the first region and the second region, determining whether the symmetric difference set of the first region and the second region is empty; If the symmetric difference set of the first region and the second region is not empty, then the address similarity coefficient S of the company name to be checked and the current similar company name is set to 1 =-0.1; If the symmetric difference set of the first region and the second region is empty, then let the address similarity coefficient S of the company name to be checked and the current similar company name be 1 =0.
9. The company information matching method according to claim 7, It is characterized in that The calculating of the industry similarity coefficient between the company name to be checked and the current similar company name according to the region in the fourth character string and the fifth character string includes: Determine whether the first industry number and the second industry number are congruent, or whether one of the first industry number and the second industry number is a non-empty true subset of the other; wherein the first industry number is the industry number in the fourth character string, and the second industry number is the industry number in the fifth character string; If the first industry number and the second industry number are identical, or one of the first industry number and the second industry number is a non-empty true subset of the other, then let the industry similarity coefficient S of the company name to be checked and the current similar company name be 2 =0.25; If the first industry number and the second industry number are not identical and neither of the first industry number and the second industry number is a non-empty true subset of the other, obtaining the standard industry names corresponding to the first industry number and the second industry number respectively according to the standard industry names stored in the Elasticsearch database; Determine whether the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number are identical, or whether one of the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number is a non-empty true subset of the other; If the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number are identical, or one of the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number is a non-empty true subset of the other, then let the industry similarity coefficient S of the company name to be checked and the current similar company name be 2 =0.25; If the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number are not identical and neither of the standard industry name corresponding to the first industry number and the standard industry name corresponding to the second industry number is a non-empty true subset of the other, then let the industry similarity coefficient S of the company name to be checked and the current similar company name be 2 =0.
10. The company information matching method according to claim 7, It is characterized in that The calculating, based on the regions in the fourth character string and the fifth character string, the keyword similarity coefficient between the company name to be checked and the current similar company name comprises: Determine whether the first keyword and the second keyword are congruent, or whether one of the first keyword and the second keyword is a non-empty proper subset of the other; wherein the first keyword is the font size in the fourth character string, and the second keyword is the font size in the fifth character string; If the first keyword and the second keyword are congruent, or one of the first keyword and the second keyword is a non-empty proper subset of the other, then let the keyword similarity coefficient S of the company name to be checked and the current similar company name be 3 =0.55; If the first keyword and the second keyword are not congruent and neither of the first keyword and the second keyword is a non-empty proper subset of the other, then determine whether one of the first keyword and the second keyword is empty but the other is not empty; If one of the first keyword and the second keyword is empty but the other is not empty, then let the keyword similarity coefficient S between the company name to be checked and the current similar company name be 3 =0.25*0.55; If both the first keyword and the second keyword are not empty, determine whether the pinyin of the first keyword is consistent with the pinyin of the second keyword; If the pinyin of the first keyword is the same as the pinyin of the second keyword, then the keyword similarity coefficient S of the company name to be checked and the current similar company name is set. 3 =0.55; If the pinyin of the first keyword is inconsistent with the pinyin of the second keyword, then the intersection and union ratio of the first keyword and the second keyword is calculated; Determine whether the intersection-over-intersection ratio of the first keyword and the second keyword is not less than 0.4; If the intersection-over-intersection ratio of the first keyword and the second keyword is not less than 0.4, then the keyword similarity coefficient S of the company name to be checked and the current similar company name is set to 3 =Intersection-over-intersection ratio of the first keyword and the second keyword*0.35; If the intersection-over-intersection ratio of the first keyword and the second keyword is less than 0.4, then the keyword similarity coefficient S of the company name to be checked and the current similar company name is set to 3 =0.
11. The company information matching method according to any one of claims 1 to 10, It is characterized in that After determining whether the similar company phone number corresponding to the similar company name that is consistent with the company name to be checked is consistent with the formatted company phone number to be checked, and before determining that the matching result of the company information to be checked is consistent, the method further includes: If the similar company phone number corresponding to the similar company name that is consistent with the company name to be checked is consistent with the formatted company phone number to be checked, then determining whether the address of the company to be checked can be matched in the second result set; If the address of the company to be checked can be matched in the second result set, it is determined that the matching result of the company information to be checked is consistent.
12. The company information matching method according to claim 11, It is characterized in that The determining whether the second result set can match the address of the company to be checked includes: Obtaining the similar company addresses in the second result set as the searched addresses; Filter the address of the company to be checked and the keywords in each checked address; For each found address, determine whether the character string corresponding to the company address to be found after filtering the keyword is completely consistent with the character string corresponding to the current found address; If the character string corresponding to the address of the company to be checked after filtering the keyword is completely consistent with the character string corresponding to the currently checked address, it is determined that the address of the company to be checked can be matched and the currently checked address is exactly consistent with the address of the company to be checked; If the character string corresponding to the address of the company to be checked after filtering the keyword is not completely consistent with the character string corresponding to the currently checked address, the address of the company to be checked after filtering the keyword and the currently checked address are located in the specified map; According to the sizes of the positioning areas of the company address to be checked and the currently checked address in the specified map and the distance between the company address to be checked and the currently checked address, it is determined whether the currently checked address matches the company address to be checked.
13. The company information matching method according to claim 12, It is characterized in that The method for locating the address of the company to be found and the currently found address in the specified map is as follows: determine whether the address to be located is an accurate address with accuracy to the building / floor / house number; if so, locate the address to be located as a point in the specified map; otherwise, locate the address to be located in the specified map as the minimum level area of the address record to be located; The determining whether the currently checked address matches the address of the company to be checked according to the sizes of the positioning areas of the address of the company to be checked and the currently checked address in the specified map and the distance between the address of the company to be checked and the currently checked address includes: Step D11: Determine whether the location areas of the company address to be checked and the currently checked address in the specified map are both points; if so, execute step D12; otherwise, execute step D18; Step D12: Calculate the distance between the positioning points of the company address to be checked and the currently checked address in the specified map; Step D13: Determine whether the distance between the location points of the to-be-queried company address and the currently-queried address in the specified map is greater than a first preset distance; if so, execute step D14, otherwise execute step D15; Step D14: Determine whether the currently checked address is inconsistent with the address of the company to be checked; Step D15: Determine whether the distance between the location points of the company address to be checked and the currently checked address in the specified map is less than a second preset distance; if so, execute step D16, otherwise execute step D17; wherein the second preset distance is less than the first preset distance; Step D16: Determine that the address of the company to be checked can be matched and the currently checked address is exactly consistent with the address of the company to be checked; Step D17: Determine that the address of the company to be checked can be matched and the currently checked address is fuzzily consistent with the address of the company to be checked; Step D18: Determine whether the area of the location area of any one of the to-be-queried company address and the currently-queried address in the specified map is greater than a preset area threshold; if so, execute step D19, otherwise execute step D20; Step D19: Determine that the address of the company to be checked cannot be matched; Step D20: Determine whether the locations of the company address to be checked and the currently checked address in the specified map are both areas; if so, execute step D21, otherwise execute step D22; Step D21: determine whether the location area of the company address to be checked in the specified map and the location area of the currently checked address in the specified map have an intersection; if so, execute step D17, otherwise execute step D14; Step D22: Determine whether the positioning points of the company address to be checked and the currently checked address in the specified map are within the positioning area; if so, execute step D17, otherwise execute step D14.
Citation Information
Patent Citations
Character string matching method and device
CN110427991A
Company name matching method and device, computer equipment and storage medium
CN111104795A
