An information matching method based on Rete algorithm and related products

Through the information matching method based on the Rete algorithm, enterprise information is extracted and policy rules are determined, which solves the problem of low information matching efficiency in the existing technology, achieves efficient matching of enterprise information and policy information, and improves matching accuracy.

CN112015768BActive Publication Date: 2024-10-25PINGAN INT SMART CITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010893498.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2024-10-25
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

Existing information matching technology is inefficient, making it difficult for companies to accurately match policy information related to project declarations from massive amounts of information.

Method used

The information matching method based on the Rete algorithm is used to determine the preset rules in the policy information by obtaining enterprise information and extracting the nature of the enterprise, and performs matching based on the Rete algorithm to generate target rules that conform to the nature of the enterprise.

Benefits of technology

It improves the efficiency of matching enterprise information and policy information, and can more accurately identify and filter out policy information suitable for enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112015768B_ABST
    Figure CN112015768B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an information matching method based on the Rete algorithm and related products thereof, the method is applied to a computer device, the method comprises: obtaining enterprise information of a first enterprise, extracting a first information set in the enterprise information, the first information set being associated with the enterprise nature of the first enterprise; determining a preset rule in the policy information; matching the first information set with the preset rule based on the Rete algorithm to obtain a target rule that conforms to the enterprise nature, and improving the efficiency of matching enterprise information with policy information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an information matching method based on a Rete algorithm and related products thereof. Background Art

[0002] With the development of information technology, the amount and types of information have also shown a blowout growth. Among all kinds of information, policy information is a type of information that enterprises focus on. When enterprises apply for projects, they need to use policy information as support. When enterprises apply for scientific and technological projects, first, they cannot have a more comprehensive understanding of various policies; second, the enterprises cannot have a good understanding and grasp of the policy content that their various conditions meet. Therefore, it is very important to dig out policy information related to the project application of the enterprise from the massive amount of information.

[0003] The current information matching technology has low efficiency. Therefore, how to accurately match enterprise information with policy information has become a problem to be solved. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to provide an information matching method based on the Rete algorithm and related products thereof, which can effectively improve the efficiency of matching enterprise information and policy information.

[0005] In a first aspect, an embodiment of the present application provides an information matching method based on a Rete algorithm, the method comprising:

[0006] Acquire enterprise information of a first enterprise, and extract a first information set from the enterprise information, where the first information set is associated with the enterprise nature of the first enterprise;

[0007] Identify the pre-set rules in the policy information;

[0008] The first information set is matched with the preset rules based on the Rete algorithm to obtain target rules that meet the nature of the enterprise.

[0009] In a second aspect, an embodiment of the present application provides an information matching device based on the Rete algorithm, and the information matching device based on the Rete algorithm includes:

[0010] An acquisition unit, configured to acquire enterprise information of a first enterprise and extract a first information set from the enterprise information, wherein the first information set is associated with the enterprise nature of the first enterprise;

[0011] A determination unit, used for determining a preset rule in the policy information;

[0012] A matching unit is used to match the first information set with the preset rules based on the Rete algorithm to obtain target rules that meet the nature of the enterprise.

[0013] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor, a memory, a communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the processor, and the computer program includes instructions for executing the steps of any method of the first aspect of the embodiment of the present application.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0016] It can be seen that in the embodiment of the present application, the computer device obtains the enterprise information of the first enterprise, extracts the first information set in the enterprise information, and the first information set is associated with the enterprise nature of the first enterprise; determines the preset rules in the policy information; matches the first information set with the preset rules based on the Rete algorithm to obtain the target rules that meet the nature of the enterprise. Improve the efficiency of matching enterprise information with policy information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A schematic diagram of an application scenario of an information matching method based on the Rete algorithm provided in an embodiment of the present application;

[0019] Figure 2 A flowchart of an information matching method based on the Rete algorithm provided in an embodiment of the present application;

[0020] Figure 3 A flowchart of an information matching method based on the Rete algorithm provided in an embodiment of the present application;

[0021] Figure 4 is a structural schematic diagram of a computer device provided in an embodiment of the present application;

[0022] Figure 5 It is a block diagram of the functional units of an information matching device based on the Rete algorithm provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0026] The following is a detailed description of the embodiments of the present application.

[0027] See also Figure 1 , Figure 1 It is a schematic diagram of an application scenario of an information matching method based on the Rete algorithm provided in an embodiment of the present application.

[0028] This application provides an information matching method based on the Rete algorithm. Figure 2 As shown, the method may include but is not limited to the following steps:

[0029] S201, a computer device obtains enterprise information of a first enterprise, and extracts a first information set from the enterprise information;

[0030] The first information set is associated with the enterprise nature of the first enterprise.

[0031] Among them, the enterprise information includes the following enterprise properties: enterprise name, enterprise code, industrial and commercial registered capital, enterprise type, administrative division, business term, industry, business status, registered address, business scope, and tax information. Among them, the first information set includes any one of the following enterprise properties: enterprise name, enterprise code, industrial and commercial registered capital, enterprise type, administrative division, business term, industry, business status, registered address, business scope, and tax information.

[0032] Optionally, obtaining the enterprise information of the first enterprise and extracting a first information set from the enterprise information include, but are not limited to: searching and obtaining the enterprise information of the first enterprise in a database according to the enterprise name of the first enterprise or the enterprise code of the first enterprise, wherein the above-mentioned database may be a pre-established database; extracting the enterprise name, enterprise code, industrial and commercial registered capital, enterprise type, administrative division, business term, industry, business status, registered address, business scope, and tax information from the enterprise information of the first enterprise.

[0033] The specific steps of the pre-established database are: storing the enterprise information of a large number of enterprises in the above database, and regularly updating the enterprise information of the above large number of enterprises, such as updating the business scope of existing enterprises in the database, and adding the enterprise information of newly registered enterprises in the database.

[0034] Optionally, obtain the corporate information of the first enterprise and extract a first information set from the corporate information, including but not limited to: obtaining the corporate information of the first enterprise on a third-party corporate information service platform based on the corporate name of the first enterprise; extracting the corporate name, corporate code, industrial and commercial registered capital, corporate type, administrative division, business term, industry, business status, registered address, business scope, and tax information from the corporate information of the first enterprise.

[0035] Optionally, obtain the enterprise information of the first enterprise and extract a first information set from the enterprise information, including but not limited to: obtaining the enterprise information of the first enterprise from the first terminal; extracting the enterprise name, enterprise code, industrial and commercial registered capital, enterprise type, administrative division, business term, industry, business status, registered address, business scope, and tax information from the enterprise information of the first enterprise.

[0036] The above-mentioned computer devices may include various handheld devices and computing devices with wireless communication functions, such as smart phones, tablet computers, desktop computers, laptop computers, etc.

[0037] S202, the computer device determines the preset rule in the policy information;

[0038] Among them, policy information can be preferential tax exemption policies for enterprises, or industry planning policies, or incentive policies for enterprises.

[0039] Among them, the number of preset rules in the policy information can be one or more, for example, the number of preset rules in the policy information can be 1, 2, 3, 4, 6, or 10, and no excessive restrictions are made here.

[0040] Among them, the rule condition information included in the preset rules includes: policy applicable location, policy implementation time, policy applicable industry, registered capital of policy applicable enterprises, enterprise type of policy applicable enterprises, administrative division of policy applicable enterprises, tax information of policy applicable enterprises, and business scope of policy applicable enterprises.

[0041] Optionally, the computer device determines the preset rules in the policy information, including but not limited to: extracting the preset rules in the policy information according to text features, extracting the policy applicable location, policy implementation time, policy applicable industry, industrial and commercial registered capital of the policy applicable enterprise, enterprise type of the policy applicable enterprise, administrative division of the policy applicable enterprise, tax information of the policy applicable enterprise, and business scope of the policy applicable enterprise from the filtered policy information.

[0042] Furthermore, policy information is extracted according to text features, including: extracting the filtered policy information according to one-hot encoding.

[0043] Optionally, before the computer device determines the preset rule in the policy information, the method includes: the computer device obtains the policy information.

[0044] Among them, it needs to be further explained that the computer device obtains policy information, including: the computer device filters the policy information related to the enterprise in a preset database according to text features, and numbers the filtered policy information.

[0045] Among them, what needs further explanation is that computer equipment obtains policy information, including: computer equipment obtains policy information related to the enterprise through a third-party platform and numbers the policy information.

[0046] Optionally, after the computer device determines the preset rules in the policy information, the step further includes: numbering the preset rules.

[0047] S203. The computer device matches the first information set with preset rules based on the Rete algorithm to obtain target rules that meet the nature of the enterprise.

[0048] Furthermore, before the computer device matches the first information set with the preset rule based on the Rete algorithm to obtain the target rule that meets the nature of the enterprise, it also includes: numbering the enterprise nature and the preset rule in the enterprise information respectively.

[0049] In a specific implementation, the Rete algorithm is used to match the first information set with the preset rules to obtain target rules that meet the nature of the enterprise, including: analyzing the preset rules through the Rete algorithm to generate a rule network; matching the first information set with the preset rules through the rule network, and calculating the matching rate of the preset rules with the first enterprise; and determining the target rules that meet the nature of the enterprise based on the matching rate.

[0050] Furthermore, analyzing the preset rules through the Rete algorithm to generate a rule network includes: creating a root node, a type node, an Alpha node, and a Beta node of the rule network according to the preset rules through the Rete algorithm; and constructing the rule network with the root node, the type node, the Alpha node, and the Beta node according to the preset rules in the Rete algorithm.

[0051] In a specific implementation, determining the target rule that conforms to the nature of the enterprise based on the matching rate includes: if the preset rule has a matching rate greater than or equal to a first threshold, determining the rule with a matching degree greater than a preset matching degree threshold as the target rule that conforms to the nature of the enterprise.

[0052] The first threshold is a preset value, and the first threshold may be 85%, 90%, 92%, 93%, 95%, or 98%, and no excessive restrictions are imposed here.

[0053] Furthermore, determining the target rule that meets the nature of the enterprise based on the matching rate includes: if the matching rates in the preset rules are all less than a first threshold, determining the preset rule with the maximum matching rate in the preset rules as the target rule that meets the nature of the enterprise.

[0054] The first threshold is a preset value, and the first threshold may be 85%, 90%, 92%, 93%, 95%, or 98%, and no excessive restrictions are imposed here.

[0055] Further, determining the target rule that meets the nature of the enterprise according to the matching rate includes: determining the preset rule with the maximum matching rate among the preset rules as the target rule that meets the nature of the enterprise.

[0056] Further, the determining the target rule that meets the nature of the enterprise according to the matching rate includes: screening the matching rate according to a screening algorithm to determine the target rule that meets the nature of the enterprise; the screening algorithm is:

[0057]

[0058] Wherein, M is the serial number of the policy information, N is the serial number of the preset rule, and R is the matching rate of the preset rule in the policy information in the matching result with the first enterprise; the calculation formula of the matching rate R of the preset rule with the first enterprise is:

[0059] R=C / N,

[0060] Among them, C is the number of matches between the enterprise information of the first enterprise and the conditions in a preset rule, and N is the total number of conditions in a preset rule.

[0061] It can be seen that in the embodiment of the present application, the computer device obtains the enterprise information of the first enterprise, extracts the first information set in the enterprise information, and the first information set is associated with the enterprise nature of the first enterprise; determines the preset rules in the policy information; matches the first information set with the preset rules based on the Rete algorithm to obtain the target rules that meet the nature of the enterprise. Improve the efficiency of matching enterprise information with policy information.

[0062] In one possible example, the Rete algorithm is used to match the first information set with the preset rules to obtain target rules that meet the nature of the enterprise, including: analyzing the preset rules through the Rete algorithm to generate a rule network; matching the first information set with the preset rules through the rule network, and calculating the matching rate of the preset rules with the first enterprise; and determining the target rules that meet the nature of the enterprise based on the matching rate.

[0063] Furthermore, the computer device analyzes the preset rules through the Rete algorithm to generate a rule network, including:

[0064] 1. Create a root node (Root Node) and a type node (typenode) of the rule network. The root node is the entrance of the rule network, and the type node stores the enterprise nature in the enterprise information of the first enterprise;

[0065] 2. Add the first preset rule in the policy information, where the Alpha node starts from the first Alpha node and the Beta node starts from the second Beta node;

[0066] a) Take out rule condition 1 from preset rule 1, determine whether the parameter type in rule condition 1 is a new type, and if so, add a type node to the rule network. The rule condition is the smallest original policy condition in the policy information, for example, the rule condition is that the enterprise registration period exceeds 10 years;

[0067] b) Determine whether the Alpha node corresponding to rule condition 1 exists. If the Alpha node exists, record the location of the Alpha node; if the Alpha node does not exist, add rule condition 1 as an Alpha node to the rule network, and establish the first Alpha memory table based on the newly added Alpha node.

[0068] c) Repeat step b) until all rule conditions in the policy information are processed.

[0069] d) Combine Beta nodes. The specific steps of combining Beta nodes can be as follows:

[0070] The left input node of Beta(2) is Alpha(1), the right input node is Alpha(2), Beta(2) is the second Beta node, Alpha(1) is the first Alpha node, and Alpha(2) is the second Alpha node;

[0071] The left input node of Beta(i) (the Beta node except the first Beta node and the second Beta node) is Beta(i-1), and the right input node is Alpha(i), i>2, and the memory tables of the two parent nodes are inlined into the memory table of Beta, where Beta(i) is the Beta node except the first Beta node and the second Beta node.

[0072] e) Repeat step d) until all Beta nodes are processed.

[0073] f) Encapsulate the action "Then" in the preset rule into a leaf node as the output node of Beta(n), where n is the number of nodes of Beta and the leaf node is the Action node.

[0074] 3. Repeat step 2 until all preset rules are processed and the rule condition matching results are obtained. The overall condition matching situation in the preset rules is judged according to each rule condition result, and the matching rate of each rule in each policy is output. The target rule that meets the nature of the enterprise is determined according to the matching rate.

[0075] It can be seen that in the embodiment of the present application, the computer device analyzes the preset rules through the Rete algorithm to generate a rule network; matches the first information set with the preset rules through the rule network, and calculates the matching rate of the preset rules with the first enterprise; determines the target rules that meet the nature of the enterprise according to the matching rate, thereby improving the efficiency of matching enterprise information with policy information.

[0076] In a possible example, analyzing the preset rules through the Rete algorithm to generate a rule network includes: creating a root node, a type node, an Alpha node, and a Beta node of the rule network according to the preset rules through the Rete algorithm; and constructing the rule network with the root node, the type node, the Alpha node, and the Beta node according to the preset rules in the Rete algorithm.

[0077] The type node is used to filter the parameter types in the rule conditions in the preset rules.

[0078] In a specific implementation, the root node, the type node, the Alpha node, and the Beta node are used to construct the rule network, including:

[0079] 1. Create a root node (Root Node) and a type node (typenode) of the rule network. The root node is the entrance of the rule network, and the type node stores the enterprise nature in the enterprise information of the first enterprise;

[0080] 2. Add the first preset rule in the policy information, where the Alpha node starts from the first Alpha node and the Beta node starts from the second Beta node;

[0081] a) Take out rule condition 1 from preset rule 1, determine whether the parameter type in rule condition 1 is a new type, and if so, add a type node to the rule network. The rule condition is the smallest original policy condition in the policy information, for example, the rule condition is that the enterprise registration period exceeds 10 years;

[0082] b) Determine whether the Alpha node corresponding to rule condition 1 exists. If the Alpha node exists, record the location of the Alpha node; if the Alpha node does not exist, add rule condition 1 as an Alpha node to the rule network, and establish the first Alpha memory table based on the newly added Alpha node.

[0083] c) Repeat step b) until all rule conditions in the policy information are processed.

[0084] d) Combine Beta nodes. The specific steps of combining Beta nodes can be as follows:

[0085] The left input node of Beta(2) is Alpha(1), the right input node is Alpha(2), Beta(2) is the second Beta node, Alpha(1) is the first Alpha node, and Alpha(2) is the second Alpha node;

[0086] The left input node of Beta(i) (the Beta node except the first Beta node and the second Beta node) is Beta(i-1), and the right input node is Alpha(i), i>2, and the memory tables of the two parent nodes are inlined into the memory table of Beta, where Beta(i) is the Beta node except the first Beta node and the second Beta node.

[0087] e) Repeat step d) until all Beta nodes are processed.

[0088] f) Encapsulate the action "Then" in the preset rule into a leaf node as the output node of Beta(n), where n is the number of nodes of Beta and the leaf node is the Action node.

[0089] 3. Repeat step 2 until all preset rules are processed.

[0090] It can be seen that in the embodiment of the present application, the computer device creates the root node, type node, Alpha node, and Beta node of the rule network according to the preset rules through the Rete algorithm; according to the preset rules in the Rete algorithm, the root node, the type node, the Alpha node, and the Beta node are constructed into the rule network to improve the efficiency of matching enterprise information with policy information.

[0091] In one possible example, determining the target rule that conforms to the nature of the enterprise based on the matching rate includes: if the preset rule has a matching rate greater than or equal to a first threshold, determining the rule with a matching degree greater than a preset matching degree threshold as the target rule that conforms to the nature of the enterprise.

[0092] Furthermore, the specific steps of determining the target rule that meets the nature of the enterprise according to the matching rate may be: judging whether the matching rate is greater than or equal to a first threshold, and if so, selecting a preset rule in the policy information corresponding to the policy matching rate as the target policy. The first threshold is a preset value, and the first threshold may be 85%, 90%, 92%, 93%, 95%, or 98%, and no excessive restrictions are imposed here.

[0093] It can be seen that in the embodiment of the present application, if the preset rule has a matching rate greater than or equal to the first threshold, the rule with a matching degree greater than the preset matching degree threshold is determined as the target rule that conforms to the nature of the enterprise, further improving the efficiency of matching enterprise information and policy information.

[0094] In one possible example, determining the target rule that conforms to the nature of the enterprise based on the matching rate includes: if the matching rates in the preset rules are all less than a first threshold, determining the preset rule with the maximum matching rate in the preset rules as the target rule that conforms to the nature of the enterprise.

[0095] Furthermore, the specific step of determining the target rule that meets the nature of the enterprise according to the matching rate may be: if the matching rates in the preset rules are all less than the first threshold, then the preset rule with the maximum matching rate in the preset rules is selected as the target rule that meets the nature of the enterprise. The first threshold is a preset value, and the first threshold may be 85%, 90%, 92%, 93%, 95%, or 98%, and no excessive restrictions are imposed here.

[0096] It can be seen that in the embodiment of the present application, if the matching rates in the preset rules are all less than the first threshold, the preset rule with the maximum matching rate in the preset rules is determined as the target rule that conforms to the nature of the enterprise, thereby further improving the efficiency of matching enterprise information and policy information.

[0097] In a possible example, determining the target rule that meets the nature of the enterprise according to the matching rate includes: screening the matching rate according to a screening algorithm to determine the target rule that meets the nature of the enterprise; the screening algorithm is:

[0098]

[0099] Wherein, M is the serial number of the policy information, N is the serial number of the preset rule, and R is the matching rate of the preset rule in the policy information in the matching result with the first enterprise; the calculation formula of the matching rate R of the preset rule with the first enterprise is:

[0100] R=C / N,

[0101] Among them, C is the number of matches between the enterprise information of the first enterprise and the conditions in a preset rule, and N is the total number of conditions in a preset rule.

[0102] In a possible example, the preset condition information in the preset rules includes any one of the following: the policy applicable location, the policy implementation time, the policy applicable industry, the industrial and commercial registration of the policy applicable enterprise can be the registered capital, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise; the preset rules in the policy information are determined, including: filtering the policy information in the database according to the policy category; determining the preset rules in the filtered policy information according to the policy applicable location, the policy implementation time, the policy applicable industry, the industrial and commercial registration of the policy applicable enterprise can be the registered capital, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise.

[0103] The following is a detailed description of the embodiments of the present application through a specific example.

[0104] With the above Figure 2 The embodiment shown is consistent with that shown in FIG. Figure 3 , Figure 3 : is a flowchart of an information matching method based on the Rete algorithm provided in an embodiment of the present application, the method comprising:

[0105] S301. A computer device obtains enterprise information of a first enterprise and extracts a first information set from the enterprise information; wherein the first information set is associated with the enterprise nature of the first enterprise.

[0106] S302, the computer device determines the preset rule in the policy information;

[0107] S303, the computer device analyzes the preset rules through the Rete algorithm to generate a rule network;

[0108] S304, the computer device matches the first information set with the preset rules through the rule network, and calculates the matching rate of the preset rules with the first enterprise;

[0109] S305. The computer device determines a target rule that matches the nature of the enterprise according to the matching rate.

[0110] It can be seen that in the embodiment of the present application, the computer device obtains the enterprise information of the first enterprise, extracts the first information set in the enterprise information, and the first information set is associated with the enterprise nature of the first enterprise; determines the preset rules in the policy information; generates a rule network by analyzing the preset rules through the Rete algorithm; matches the first information set with the preset rules through the rule network, calculates the matching rate of the preset rules with the first enterprise; and determines the target rule that meets the enterprise nature according to the matching rate. Improve the efficiency of matching enterprise information with policy information.

[0111] See also Figure 4 , Figure 4 4 is a structural diagram of a computer device 400 provided in an embodiment of the present application. As shown in the figure, the computer device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more computer programs 421, wherein the one or more computer programs 421 are stored in the memory 420 and are configured to be executed by the application processor 410, and the one or more computer programs 421 include commands for executing the following steps:

[0112] Acquire enterprise information of a first enterprise, and extract a first information set from the enterprise information, where the first information set is associated with the enterprise nature of the first enterprise;

[0113] Identify the pre-set rules in the policy information;

[0114] The first information set is matched with the preset rules based on the Rete algorithm to obtain target rules that meet the nature of the enterprise.

[0115] In one possible example, in terms of matching the first information set with the preset rules based on the Rete algorithm to obtain target rules that conform to the nature of the enterprise, the one or more computer programs 421 include specific steps for performing the following steps: analyzing the preset rules through the Rete algorithm to generate a rule network; matching the first information set with the preset rules through the rule network, and calculating the matching rate of the preset rules with the first enterprise; and determining the target rules that conform to the nature of the enterprise based on the matching rate.

[0116] In one possible example, in terms of generating a rule network by analyzing the preset rules through the Rete algorithm, the one or more computer programs 421 include specific steps for performing the following steps: creating a root node, a type node, an Alpha node, and a Beta node of the rule network according to the preset rules through the Rete algorithm; and constructing the rule network with the root node, the type node, the Alpha node, and the Beta node according to the preset rules in the Rete algorithm.

[0117] In one possible example, in terms of determining the target rule that conforms to the nature of the enterprise based on the matching rate, the one or more computer programs 421 include specifically for performing the following steps: if the preset rule has a matching rate greater than or equal to a first threshold, then determining the rule with a matching degree greater than a preset matching degree threshold as the target rule that conforms to the nature of the enterprise.

[0118] In one possible example, in terms of determining the target rule that conforms to the nature of the enterprise based on the matching rate, the one or more computer programs 421 include specifically for performing the following steps: if the matching rates in the preset rules are all less than a first threshold, then determining the preset rule with the maximum matching rate in the preset rules as the target rule that conforms to the nature of the enterprise.

[0119] In a possible example, in determining the target rule that meets the nature of the enterprise according to the matching rate, the one or more computer programs 421 include specific steps for performing the following steps: screening the matching rate according to a screening algorithm to determine the target rule that meets the nature of the enterprise; the screening algorithm is:

[0120]

[0121] Wherein, M is the serial number of the policy information, N is the serial number of the preset rule, and R is the matching rate of the preset rule in the policy information in the matching result with the first enterprise; the calculation formula of the matching rate R of the preset rule with the first enterprise is:

[0122] R=C / N,

[0123] Among them, C is the number of matches between the enterprise information of the first enterprise and the conditions in a preset rule, and N is the total number of conditions in a preset rule.

[0124] In a possible example, the preset condition information in the preset rules includes any one of the following: the policy applicable location, the policy implementation time, the policy applicable industry, the industrial and commercial registration capital of the policy applicable enterprise, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise; in terms of determining the preset rules in the policy information, the one or more computer programs 421 include specific steps for performing the following steps: filtering the policy information in the database according to the policy category; determining the preset rules in the filtered policy information according to the policy applicable location, the policy implementation time, the policy applicable industry, the industrial and commercial registration capital of the policy applicable enterprise, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise.

[0125] It can be seen that in the embodiment of the present application, the computer device obtains the enterprise information of the first enterprise, extracts the first information set in the enterprise information, and the first information set is associated with the enterprise nature of the first enterprise; determines the preset rules in the policy information; matches the first information set with the preset rules based on the Rete algorithm to obtain the target rules that meet the nature of the enterprise. Improve the efficiency of matching enterprise information with policy information.

[0126] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the computer device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0127] The embodiment of the present application can divide the computer device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0128] Figure 5 : is a functional unit composition block diagram of the information matching device 500 based on the Rete algorithm involved in the embodiment of the present application. The information matching device 500 based on the Rete algorithm includes:

[0129] An acquisition unit 501 is configured to acquire enterprise information of a first enterprise and extract a first information set from the enterprise information, wherein the first information set is associated with the enterprise nature of the first enterprise;

[0130] A determination unit 502, used to determine a preset rule in the policy information;

[0131] The matching unit 503 is used to match the first information set with the preset rules based on the Rete algorithm to obtain target rules that meet the nature of the enterprise.

[0132] The information matching device 500 based on the Rete algorithm may further include a storage unit 504 for storing program codes and data of a computer device. The acquisition unit 501 may be a touch screen or a transceiver processor, and the storage unit 503 may be a memory.

[0133] In one possible example, in matching the first information set with the preset rules based on the Rete algorithm to obtain the target rules that meet the nature of the enterprise, the matching unit 503 is specifically used to: analyze the preset rules through the Rete algorithm to generate a rule network; match the first information set with the preset rules through the rule network, and calculate the matching rate of the preset rules with the first enterprise; and determine the target rules that meet the nature of the enterprise based on the matching rate.

[0134] In a possible example, in terms of generating a rule network by analyzing the preset rules through the Rete algorithm, the matching unit 503 is specifically used to: create a root node, a type node, an Alpha node, and a Beta node of the rule network according to the preset rules through the Rete algorithm; and construct the rule network with the root node, the type node, the Alpha node, and the Beta node according to the preset rules in the Rete algorithm.

[0135] In one possible example, in terms of determining the target rule that conforms to the nature of the enterprise based on the matching rate, the matching unit 503 is specifically used to: if the preset rule has a matching rate greater than or equal to a first threshold, determine the rule with a matching degree greater than a preset matching degree threshold as the target rule that conforms to the nature of the enterprise.

[0136] In one possible example, in terms of determining the target rule that conforms to the nature of the enterprise based on the matching rate, the matching unit 503 is specifically used to: if the matching rates in the preset rules are all less than a first threshold, then determine the preset rule with the maximum matching rate in the preset rules as the target rule that conforms to the nature of the enterprise.

[0137] In a possible example, in determining the target rule that meets the nature of the enterprise according to the matching rate, the matching unit 503 is specifically configured to: screen the matching rate according to a screening algorithm to determine the target rule that meets the nature of the enterprise; the screening algorithm is:

[0138]

[0139] Wherein, M is the serial number of the policy information, N is the serial number of the preset rule, and R is the matching rate of the preset rule in the policy information in the matching result with the first enterprise; the calculation formula of the matching rate R of the preset rule with the first enterprise is:

[0140] R=C / N,

[0141] Among them, C is the number of matches between the enterprise information of the first enterprise and the conditions in a preset rule, and N is the total number of conditions in a preset rule.

[0142] In a possible example, the preset condition information in the preset rules includes any one of the following: the policy applicable place, the policy implementation time, the policy applicable industry, the industrial and commercial registered capital of the policy applicable enterprise, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise; in terms of determining the preset rules in the policy information, the determination unit 502 is specifically used to: filter the policy information in the database according to the policy category; determine the preset rules in the filtered policy information according to the policy applicable place, the policy implementation time, the policy applicable industry, the industrial and commercial registered capital of the policy applicable enterprise, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise.

[0143] It can be seen that in the embodiment of the present application, the computer device obtains the enterprise information of the first enterprise, extracts the first information set in the enterprise information, and the first information set is associated with the enterprise nature of the first enterprise; determines the preset rules in the policy information; matches the first information set with the preset rules based on the Rete algorithm to obtain the target rules that meet the nature of the enterprise. Improve the efficiency of matching enterprise information with policy information.

[0144] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes a computer device.

[0145] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a computer device.

[0146] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0147] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0148] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0149] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0151] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.

[0152] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.

[0153] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An information matching method based on Rete algorithm, characterized in that: Applied to a computer device, the method comprises: Acquire enterprise information of a first enterprise, extract a first information set from the enterprise information, the first information set being associated with the enterprise nature of the first enterprise, the enterprise information including the enterprise nature, the enterprise nature including the enterprise name, enterprise code, industrial and commercial registered capital, enterprise type, administrative division, business term, industry, business status, registered address, business scope and tax information, and the acquiring of the enterprise information of the first enterprise and extracting the first information set from the enterprise information comprises: searching and acquiring the enterprise information of the first enterprise in a database according to the enterprise name of the first enterprise or the enterprise code of the first enterprise; Determine the preset rules in the policy information, wherein the preset condition information in the preset rules includes any one of the following: the policy applicable location, the policy implementation time, the policy applicable industry, the industrial and commercial registered capital of the policy applicable enterprise, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise. The preset rules in the policy information include: filtering the policy information in the database according to the policy category; determining the preset rules in the filtered policy information according to the policy applicable location, the policy implementation time, the policy applicable industry, the industrial and commercial registered capital of the policy applicable enterprise, the enterprise type of the policy applicable enterprise, the administrative division of the policy applicable enterprise, the tax information of the policy applicable enterprise, and the business scope of the policy applicable enterprise; Based on the Rete algorithm, the first information set is matched with the preset rule to obtain a target rule that meets the nature of the enterprise, including: creating a root node and a type node of a rule network, wherein the root node is the entrance of the rule network, and the type node stores the enterprise nature in the enterprise information of the first enterprise; adding the first preset rule in the policy information, and the Alpha node is added from the first Alpha Node starts, Beta node starts from the second Beta node; take out rule condition 1 from preset rule 1, determine whether the parameter type in rule condition 1 is a new type, if so, add a type node in the rule network, where the rule condition is the smallest original policy condition in the policy information; determine whether the Alpha node corresponding to rule condition 1 exists, if the Alpha node corresponding to rule condition 1 exists, record the position of the Alpha node corresponding to the rule condition 1; if the Alpha node corresponding to rule condition 1 does not exist, add rule condition 1 as an Alpha node to the rule network, and establish the first Alphah memory table according to the newly added Alpha node; repeat the step of determining whether the Alpha node corresponding to rule condition 1 exists until all rule conditions in the policy information are processed; combine Beta nodes, the specific steps of combining Beta nodes are as follows: Beta(2) left input node is Alpha(1), right input node is Alpha(2), Beta(2 ) is the second Beta node, Alpha(1) is the first Alpha node, and Alpha(2) is the second Alpha node; the left input node of Beta(i) is Beta(i-1), the right input node is Alpha(i), i>2, and the memory tables of the two parent nodes are inlined to become the memory table of Beta, where Beta(i) is the Beta node other than the first Beta node and the second Beta node; repeat the step of combining Beta nodes until all Beta nodes are processed; encapsulate the action Then part in the preset rule into a leaf node as the output node of Beta(n), where n is the number of nodes of Beta, and the leaf node is the Action node; repeat the step of adding the first preset rule in the policy information until all preset rules are processed to construct a rule network; match the first information set with the preset rule through the rule network, and calculate the matching rate of the preset rule with the first enterprise; determine the target rule that meets the nature of the enterprise according to the matching rate; The determining the target rule that meets the nature of the enterprise according to the matching rate includes: Screening the matching rate according to a screening algorithm to determine the target rule that meets the nature of the enterprise; The screening algorithm is: F(M,N) , Wherein, M is the serial number of the policy information, N is the serial number of the preset rule, and R is the matching rate of the preset rule in the policy information in the matching result with the first enterprise; The calculation formula of the matching rate R of the preset rule with the first enterprise is: R=C / Y, Among them, C is the number of matches between the enterprise information of the first enterprise and the conditions in a preset rule, and Y is the total number of conditions in a preset rule.

2. The method according to claim 1, characterized in that: The matching of the first information set and the preset rule based on the Rete algorithm to obtain the target rule that meets the nature of the enterprise includes: Analyze the preset rules by the Rete algorithm to generate a rule network; Matching the first information set with the preset rule through the rule network, and calculating a matching rate between the preset rule and the first enterprise; The target rule that meets the nature of the enterprise is determined according to the matching rate.

3. The method according to claim 2, characterized in that The step of analyzing the preset rules by the Rete algorithm to generate a rule network includes: Creating the root node, type node, Alpha node, and Beta node of the rule network according to the preset rules through the Rete algorithm; According to the preset rules in the Rete algorithm, the root node, the type node, the Alpha node, and the Beta node are used to construct the rule network.

4. The method according to claim 2, characterized in that: The determining the target rule that meets the nature of the enterprise according to the matching rate includes: If the preset rule has a matching rate greater than or equal to a first threshold, the rule whose matching degree is greater than the preset matching degree threshold is determined to be the target rule that meets the nature of the enterprise.

5. The method according to claim 2, characterized in that: The determining the target rule that meets the nature of the enterprise according to the matching rate includes: If the matching rates in the preset rules are all less than the first threshold, the preset rule with the maximum matching rate in the preset rules is determined to be the target rule that meets the nature of the enterprise.

6. An information matching device based on Rete algorithm, the device is used to execute the method according to any one of claims 1 to 5, characterized in that: The device comprises: An acquisition unit, configured to acquire enterprise information of a first enterprise and extract a first information set from the enterprise information, wherein the first information set is associated with the enterprise nature of the first enterprise; A determination unit, used for determining a preset rule in the policy information; A matching unit is used to match the first information set with the preset rules based on the Rete algorithm to obtain target rules that meet the nature of the enterprise.

7. A computer device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: It stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 5.