WO2019085075A1 - Information element set generation method and rule execution method based on rule engine - Google Patents
Information element set generation method and rule execution method based on rule engine Download PDFInfo
- Publication number
- WO2019085075A1 WO2019085075A1 PCT/CN2017/112514 CN2017112514W WO2019085075A1 WO 2019085075 A1 WO2019085075 A1 WO 2019085075A1 CN 2017112514 W CN2017112514 W CN 2017112514W WO 2019085075 A1 WO2019085075 A1 WO 2019085075A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information element
- original
- independent
- similarity
- queue
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000004364 calculation method Methods 0.000 claims abstract description 59
- 239000013598 vector Substances 0.000 claims description 72
- 230000011218 segmentation Effects 0.000 claims description 15
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000011524 similarity measure Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
Definitions
- the present invention relates to the field of computer information management technologies, and in particular, to a method, an apparatus, a storage medium, and a computer device for generating an information element set, and a rule execution method, apparatus, storage medium, and computer device based on a rule engine.
- the rules engine is developed by the inference engine and is a component embedded in the application. Implements the separation of business decisions from application code and uses predefined semantic modules to write business decisions. Accept data input, interpret business rules, and make business decisions based on business rules.
- An information element is the basic building block of the rules engine. It is an object that contains all the information about a particular event.
- the rule engine receives the information elements sequentially from the queue manager, and then executes the rules carried by the information elements in the order defined by the rules.
- an information element set generation method, apparatus, storage medium, and computer apparatus are provided.
- a rule execution method based on a rule engine is provided, and Storage, storage media, and computer equipment.
- An information element set generation method includes: acquiring an original information element in each original information element set; performing similarity calculation on each two original information elements to generate a corresponding original similarity; and extracting according to multiple original similarities An independent information element in the plurality of original information elements is generated, and an independent information element set is generated, and an original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
- a rule execution method based on a rule engine comprising: acquiring a set of independent information elements, wherein the set of independent information elements is generated according to the information element set generation method described in the foregoing embodiments; acquiring a queue of information elements to be matched, The to-be-matched information element queue includes a plurality of original information elements; and each original information element in the to-be-matched information element queue is matched with an independent information element in the independent information element set, and the to-be-executed information is generated according to the matching result.
- a meta-queue executing, by the rule engine, a rule included in the independent information element in the to-be-executed information element queue.
- An information element set generating apparatus comprising: an original information element acquiring module, configured to acquire an original information element in each original information element set; and a original similarity generating module, configured to The original information element performs similarity calculation to generate a corresponding original similarity; and the independent information element set generating module is configured to extract independent information elements in the plurality of original information elements according to the multiple original similarities, and generate an independent information element set.
- the original similarity of any two independent information elements in the set of independent information elements is less than a preset similarity threshold.
- a rule execution engine-based rule execution device comprising: an independent information element set acquisition module, configured to acquire an independent information element set, wherein the independent information element set is according to the information described in the foregoing embodiments.
- a meta-collection generating method is configured to obtain a to-be-matched information element queue, wherein the to-be-matched information element queue includes a plurality of original information elements; the to-be-executed information element queue generation module is used to Each of the original information elements in the matching information element queue is matched with the independent information element in the independent information element set, and the information element queue to be executed is generated according to the matching result; and the rule execution module is configured to execute the rule engine The rules contained in the independent information element in the execution information element queue are described.
- One or more non-volatile readable storage media storing computer readable instructions for said computing
- the machine readable instructions When executed by one or more processors, causing the one or more processors to perform the steps of: acquiring the original information elements in each of the original information element sets; performing similarity for each of the two original information elements Calculating, generating a corresponding original similarity; and extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, generating an independent information element set, and any two independent information elements in the independent information element set
- the original similarity is less than the preset similarity threshold.
- One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of: acquiring a set of independent information elements, the independent information element set is generated according to the information element set generation method described in the foregoing embodiments; and the information element queue to be matched is obtained, where the information element queue to be matched includes a plurality of original information elements; Each original information element in the to-be-matched information element queue is matched with an independent information element in the independent information element set, and a to-be-executed information element queue is generated according to the matching result; and the to-be-executed information element is executed by a rule engine The rules contained in the independent information element in the queue.
- a computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps: obtaining original information elements in each original information element set; performing similarity calculation on each of the two original information elements to generate corresponding original similarity; and extracting multiple original information elements according to multiple original similarities
- the independent information element generates an independent information element set, and the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
- a computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps: obtaining an independent information element set, the independent information element set is generated according to the information element set generation method described in the foregoing embodiments; acquiring a to-be-matched information element queue, where the to-be-matched information element queue includes multiple originals Information element; matching each original information element in the to-be-matched information element queue with an independent information element in the independent information element set, generating a to-be-executed information element queue according to the matching result; and performing the Pending information The rules contained in the independent information element in the meta-queue.
- 1 is an application environment diagram of a method for generating an information element set in an embodiment
- FIG. 2 is a flowchart of a method for generating an information element set in an embodiment
- FIG. 3 is a schematic diagram of information element generation and processing in an embodiment
- FIG. 5 is a flowchart of a rule execution method based on a rule engine in an embodiment
- FIG. 6 is a flow chart of a rule execution method based on a rule engine in another embodiment
- FIG. 7 is a flowchart of a rule execution method based on a rule engine in still another embodiment
- FIG. 8 is a structural block diagram of an information element set generating apparatus in an embodiment
- FIG. 9 is a structural block diagram of a rules execution apparatus based on a rule engine in an embodiment
- Figure 10 is a diagram showing the internal structure of a computer device in one embodiment.
- first, second and the like may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
- the first information element is referred to as a second information element, and similarly, the second information element may be referred to as a first information element. Both the first information element and the second information element are information elements, but they are not the same information element.
- the method for generating an information element set provided by the embodiment of the present application can be applied to an application environment as shown in FIG. 1 .
- the application environment includes a server 102 and a plurality of terminals 104.
- the server may be an independent physical server or a server cluster composed of multiple physical servers, and the terminal may be a mobile phone, a tablet computer, a personal digital assistant, or a smart device.
- the server 102 can be configured to execute the information element set generation method and the rule engine based rule execution method provided by the embodiments of the present application.
- the server device 102 can be connected to the network of the terminal 104, including but not limited to a wireless network, a wired network, and the like. For example, server 102 can obtain a collection of original information elements in terminal 104 over a network connection.
- an information element set generation method which can be used in the server 102 in the application environment as shown in FIG. 1, the method includes:
- Step S202 Acquire original information elements in each original information element set.
- the original information element refers to a pre-existing information element.
- the information element is an object that contains all the information of a specific event, including but not limited to: a message, an application identifier that generates an event, an event generation event, an information element type, a related rule set, a general method, a general attribute, and some System related information, etc.
- FIG. 3 is a schematic diagram of information element generation and processing. As shown in FIG. 3, each information element has a corresponding information service, and the information service generates a specific information element by using the rules stored in the facts and rules.
- the rule engine sequentially receives information elements from the queue manager, detects rules in the information elements, and implements the rules. Among them, the rule is a method of describing the business logic.
- the rule consists of two parts: the condition filter and the action. When the program runs, the action is executed when the condition filter is true.
- Rules can be defined by language and stored in a rule set.
- the rule engine is an engine that performs the actions specified in the rules based on the filtering conditions contained in the rules and determines whether they match the real-time conditions of the running time.
- the original information element set refers to a set composed of a plurality of original information elements.
- the server may obtain a corresponding set of original information elements from a plurality of terminals, respectively.
- Each of the original information element sets includes one or more original information elements.
- Step S204 performing similarity calculation on each of the two original information elements to generate a corresponding original similarity.
- the information included in the original information element is calculated according to a preset similarity algorithm.
- the similarity algorithm includes, but is not limited to, a distance-based calculation method and a calculation method based on a similarity measure, such as an Euclidean Distance, a Manhattan Distance, a Minkowski Distance, Chebyshev Distance and Cosine Similarity, Pearson Correlation Coefficient, etc.
- the information contained in the original information element includes, but is not limited to, information element types, rules, and general attributes.
- each original information element includes a rule
- the similarity calculation of the rules included in the two original information elements may be performed by using a preset similarity algorithm formula to generate original similarity of the two rules.
- Step S206 extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, and generating an independent information element set.
- the independent information element refers to an information element that is independent of any other independent information element, that is, the similarity between any two independent information elements is less than a preset threshold.
- a set of independent information elements refers to a set of independent information elements extracted. After calculating the original similarity between each two original information elements in all the original information elements, the original information element whose original similarity with any other original information element is less than the preset threshold may be used as the independent information element.
- two or more original information elements whose original similarity is greater than a preset similarity threshold may be combined to generate one combined information element, and the combined information element may be used as an independent information element.
- the information element including rule 1 may be extracted as an independent information element; for the similarity is greater than the preset similarity Rules 3 and 4 of the threshold, since the credits of 50 or more and 50 or less are not available for the specialists and the following users, a new independent information element can be combined, and the included rule 5 can be if the user qualification is a specialist. And below, you can not borrow.
- An independent set of information elements can be generated according to the independent information elements corresponding to rules 1 and 5.
- the similarity information in the original information element is filtered by performing similarity calculation on each of the two original information elements, and the independent information element set is regenerated according to the independent information element. .
- the redundant original information elements in the pre-existing original information element set are eliminated, which saves system resources.
- the independent information elements in the plurality of original information elements are extracted according to the plurality of original similarities, and after the independent information element set is generated, the independent information element set may also be divided into the general information element set and the special information element set. .
- each original information element has a original similarity corresponding to other original information elements.
- the original similarity corresponding to each independent information element may be counted, and the number of original similarities greater than the preset similarity threshold is generated, and the independent information element whose number is greater than the preset threshold generates a common information element set, and the quantity is less than the pre-predetermined
- the independent information element of the threshold is generated to generate a special information element set.
- the independent information element in the plurality of original information elements is extracted according to the plurality of original similarities, and after the generating the independent information element set, the method further includes: acquiring the newly added information element that needs to be added; Performing similarity calculation on each independent information element in the set of independent information elements, generating corresponding new similarity; determining whether there is new similarity greater than the preset similarity threshold; if yes, adding the new information element If not, the added information element is added as an independent information element to the independent information element set.
- step S204 includes:
- Step S402 extracting original keywords in each original information element.
- the original keyword refers to the vocabulary used in defining the rules in the information element. For example, age, gender, education, income, and property value.
- step S402 includes: segmenting each original information element according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and presetting each original information element with a preset keyword library The original words of the keyword match are used as the original keywords.
- the preset word segmentation algorithm includes, but is not limited to, a combination algorithm based on one or more of a word segmentation based segmentation method, an understanding based segmentation method, and a statistics based segmentation method.
- the original information element is segmented according to a preset word segmentation algorithm, and the continuous word sequence in the rule included in the original information element can be recombined into a word sequence according to a certain specification.
- the original words included in the word sequence can be matched with the preset keywords in the preset keyword library, and the matched original words are used as the original keywords.
- the method further includes removing the stop words in the original words.
- the original words are matched with the stop words in the preset stop word database, and the matched stop words are filtered from the recombined word sequence.
- stop words can be words such as "this", "", “such as”, and can also be punctuation and the like.
- the original keyword may also be determined according to the frequency corresponding to the original word filtered by the stop word.
- Step S404 acquiring preset keyword weights corresponding to each original keyword.
- the preset keyword weight is a weight that reflects the importance of the keyword. Since the more personalized keyword indicates that the keyword can reflect the business characteristics of the corresponding rule, the more important the keyword is, the more important the keyword is, the less important it is. Therefore, the keyword with higher popularity can be given correspondingly. Low default keyword weights.
- Step S406 Generate an original information element vector with each original information element according to a preset keyword weight corresponding to each original information element.
- each original information element may include one or more original keywords.
- Each original keyword corresponds to a preset keyword weight, and a vector space model may be constructed according to one or more preset keyword weights corresponding to each original information element, and a primitive corresponding to the original information element is generated.
- Information element vector may be constructed according to one or more preset keyword weights corresponding to each original information element, and a primitive corresponding to the original information element is generated.
- the rule R x can be expressed as an n-dimensional vector R x (R x1 , R x2 , R x3 ... ... R xn ), where R x1 to R xn are n eigenvalues.
- the rule R x may also be expressed as an n-dimensional vector R x (W 1 , W 2 , W 3 . . . W n ) of the predetermined keyword weight corresponding to each original keyword, wherein W 1 to W n is the preset keyword weight corresponding to each original keyword.
- Step S408 performing similarity calculation on the original information element vector corresponding to each of the two original information elements, and generating corresponding original similarity.
- the original similarity refers to the similarity calculated according to a preset similarity algorithm according to any two original information element vectors.
- the feature items in the two original information element vectors may be correspondingly matched, and the feature items that cannot be corresponding are marked as presets. Value, such as 0.
- the similarity calculation of two original information element vectors of R 1 (a, b, c, d) and R 2 (a, c, d, e) since there is no e in R 1 , R 2 Without b, the non-corresponding feature items can be marked as 0. Therefore, the two original information element vectors can be converted into R 1 (a, b, c, d, 0) and R 2 (a, 0, c, respectively). After d, e), the similarity calculation is performed.
- step S408 includes: a first information element vector corresponding to each two original information elements Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities
- W 0k is the first information element vector
- W Ak is the second information element vector The corresponding n preset keyword weights.
- the similarity algorithm used is an algorithm for calculating the cosine similarity of vector space. After generating the original information element vector corresponding to the plurality of original information elements, the similarity calculation is performed on any two original information element vectors. For example, for and Three information element vectors, need to be targeted versus versus versus The similarity calculation is performed separately to generate three corresponding original similarities.
- the original similarity value may be 0 to 1, and the closer the value of the original similarity is to 0, the lower the similarity between the two original information element vectors, and the closer the original similarity value is to 1, indicating the two original information element vectors. The higher the similarity.
- the method further includes: determining whether the original similarity is less than a preset similarity threshold. If yes, it may be determined that the two original information elements corresponding to the original similarity less than the preset similarity threshold are duplicate original information elements.
- One of the plurality of original information elements that are repeated may be extracted as an independent information element. For example, when the first information element vector Second information element vector Corresponding original similarity When the preset similarity threshold is greater than 0.9, the first information element vector may be extracted. Corresponding first information element or second information element vector The corresponding second information element is used as an independent information element.
- the original information element vector of the original information element is generated by extracting the original keyword in the original information element and according to the preset keyword weight corresponding to the original keyword. Any two original information element vectors are calculated according to a preset similarity algorithm, and corresponding original similarities are generated, and independent information elements are determined according to the original similarity, so that redundant information elements can be accurately eliminated.
- a rules engine-based rule execution method includes:
- Step S502 acquiring a set of independent information elements.
- the set of independent information elements may be a set of information elements generated by the information element set generation method provided according to the foregoing various embodiments.
- the independent information element set includes multiple independent information elements, and the original similarity of any two independent information elements is less than a preset similarity threshold.
- Step S504 obtaining a queue of information to be matched.
- the information element queue to be matched refers to an information element queue corresponding to the original information element set and including a plurality of original information elements.
- the information element in the information element queue has a preset execution order, and the queue management can be performed through the queue manager in FIG. 3 .
- a corresponding information element queue to be matched may be preset.
- a queue of information to be matched containing n original information elements may be preset, and R A1 , R A2 , R A3 , ... R An , R A1 to R An are original information elements in service A.
- Step S506 Match each original information element in the information element queue to be matched with the independent information element in the independent information element set, and generate a to-be-executed information element queue according to the matching result.
- the to-be-executed information element queue refers to an information element queue corresponding to the to-be-matched information element queue generated according to the independent information element in the independent information element set.
- the independent information element included in the to-be-executed queue has a one-to-one correspondence with the original information element in the information element queue to be matched.
- Step S508 executing, by the rule engine, a rule included in the independent information element in the information element queue to be executed.
- the rule engine is a component embedded in an application and is an environment in which rules are executed.
- the rules engine can receive information elements in turn from the queue manager.
- the information element may include one or more rules, and the rule engine may check the first rule included in the information element according to a preset order, and evaluate the condition filter. If the value is false, all the rules are related to the rule. The actions are ignored and continue to execute the next rule; if the value is true, the actions related to this rule are executed sequentially, and the next rule is executed after execution. After all the rules in the information element have been executed, the information element will be destroyed and the next information element will be received from the queue manager.
- the original information element in the information element queue to be matched is matched with the independent information element in the independent information element set, and the information element queue to be executed is regenerated, and the rule is introduced by rules.
- the engine executes the rules contained in the independent information element in the information element queue to be executed, thereby avoiding the repeated execution of the rules in the redundant information element, thereby improving the efficiency of the rule execution.
- step S506 includes:
- Step S602 Perform similarity calculation on each original information element in the queue of the information to be matched and the independent information element in the independent information element set to generate a corresponding matching similarity.
- the matching similarity is a similarity generated by the pointer to calculate the original information element and the independent information element according to a preset similarity algorithm.
- the information included in each of the original information element and the independent information element in the independent information element set may be calculated according to a preset similarity algorithm to generate a corresponding matching similarity.
- the similarity algorithm includes, but is not limited to, a distance-based calculation method and a similarity degree-based calculation method.
- First information element vector corresponding to the original information element Second information element vector corresponding to the independent information element Perform similarity calculation to generate corresponding matching similarity
- W 0k is the first information element vector
- W Ak is the second information element vector The corresponding n preset keyword weights.
- Step S604 the independent information element corresponding to the matching similarity greater than the preset similarity threshold is used as the independent information element matching the corresponding original information element.
- the independent information element corresponding to the matching similarity of the preset similarity threshold may be used as the The independent information element matched by the original information element, and stops the similarity calculation of the original information element and other independent information elements.
- each original information element may be similarly calculated with each independent information element to generate a matching similarity between the original information element and each independent information element, and the maximum matching similarity is independent.
- the information element acts as an independent information element that matches the corresponding original information element.
- Step S606 Generate, according to the independent information element matched with each original information element, a to-be-executed information element queue corresponding to the information element queue to be matched.
- the corresponding information source queue to be executed may be generated according to the matched independent information element.
- a queue of information to be matched containing n original information elements may be preset, and R A1 , R A2 , R A3 , ... R An , R A1 to R An are original information elements in service A. If it is detected that the independent information element matching R A1 in the independent information element set is R 1 , the independent information element matching R A2 is R 2 , and the independent information element matching R A3 is R 3 ... matching with R An
- the independent information element is R k , and R 1 , R 2 , R 3 . . . R k can be used as the to-be-executed information element queue corresponding to the information element queue to be matched.
- step S506 includes:
- Step S702 matching each original information element in the information element queue to be matched with the independent information element in the independent information element set.
- each original information element in the information element queue to be matched may be similarly calculated with the independent information element in the independent information element set, and the independent information element corresponding to the similarity of the similarity threshold may be used as An independent information element that matches the original information element.
- Step S704 the independent information element matching the original information element is marked with a matching identifier.
- the matching identifier is used to mark the identifier of the independent information element in the independent information element set, and the identified independent information element matches any one of the original information elements in the information element queue to be matched.
- the matching identifier can be a letter or data, for example, the matching identifier can be 1.
- the independent information element when it is detected that the first information element R A1 in the information element queue to be matched matches the independent information element R 1 , the independent information element may be marked as 1 and may not be matched with any original information element. The independent information element is marked as 0.
- Step S706 traverse the independent information element in the independent information element set according to a preset order, and queue the to-be-executed information element generated by the independent information element marked with the matching identifier.
- traversing refers to performing independent detection of the independent information elements in the independent information element set in a preset order and performing only one detection.
- An independent information element marked with a matching identifier will be detected to be executed Line information element queue.
- the independent information element set includes k independent information elements, R 1 , R 2 , R 3 , . . . R k , after each original information element in the information element queue to be matched is matched with the independent information element.
- the independent information element matched with the original information element is matched with the identifier 1 to traverse all the independent information elements in the independent information element set according to a preset order, and the independent information element marked with the matching identifier 1 is detected as R 2 , R 6 , R 11 ... R n , then R 2 , R 6 , R 11 ... R n can be used as a queue of information elements to be executed.
- an information element set generating apparatus 800 includes: an original information element obtaining module 802, configured to acquire an original information element in each original information element set;
- the similarity generation module 804 is configured to perform similarity calculation on each of the two original information elements to generate a corresponding original similarity.
- the independent information element set generation module 806 is configured to extract multiple original information elements according to the multiple original similarities. The independent information element in the generated information element set, and the original similarity of any two independent information elements in the independent information element set is less than the preset similarity threshold.
- the original similarity generation module 804 is further configured to extract original keywords in each original information element; acquire preset keyword weights corresponding to each original keyword; and corresponding according to each original information element
- the preset keyword weights are generated with the original information element vector of each original information element; the similarity calculation is performed on the original original information element vector corresponding to each of the two original information elements, and the corresponding original similarity is generated.
- the original similarity generation module 804 is further configured to perform segmentation of each original information element according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and each original information element and the preset keyword The original words in the library that match the preset keywords are used as the original keywords.
- the original similarity generation module 804 is further configured to use a first information element vector corresponding to each two original information elements. Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
- a rule engine-based rule execution apparatus 900 includes: an independent information element set acquisition module 902, configured to acquire an independent information element set, and the independent information element set is based on The information element set generation method 904 is configured to obtain the information element queue to be matched, and the information element queue to be matched includes a plurality of original information elements; the information element queue to be executed The generating module 906 is configured to match each original information element in the information element queue to be matched with the independent information element in the independent information element set, and generate a to-be-executed information element queue according to the matching result; the rule execution module 908 is configured to pass The rules engine executes the rules contained in the independent information elements in the information element queue to be executed.
- the to-be-executed information element queue generation module 906 is further configured to perform similarity calculation on each of the original information elements in the pair of matching information element queues and the independent information elements in the independent information element set, to generate corresponding matching similarities. And matching the independent information element corresponding to the similarity greater than the preset similarity threshold as the independent information element matching the corresponding original information element; generating and matching the information element according to the independent information element matched with each original information element The corresponding queue of information to be executed in the queue.
- Each of the above-described information element set generation means and the rules engine-based rule execution means may be implemented in whole or in part by software, hardware, and combinations thereof.
- the above modules may be embedded in the hardware of the terminal or may be stored in the memory of the terminal in a software form, so that the processor calls the execution of the operations corresponding to the above modules.
- the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
- the information element set generation means and the rule engine based rule execution means described above may be embodied in the form of a computer readable instruction executable on a computer device as shown in FIG.
- one or more non-volatile readable storage media having computer readable instructions stored by one or more processors are provided, such that one or more processors are Perform the following steps: obtain the original information element in each original information element set; Two original information elements are used for similarity calculation to generate corresponding original similarities; independent information elements in multiple original information elements are extracted according to multiple original similarities, and an independent information element set is generated, and any two of the independent information element sets are generated.
- the original similarity of the independent information elements is less than the preset similarity threshold.
- the step of performing similarity calculation on each of the two original information elements by the processor to generate a corresponding original similarity includes the following steps: extracting original keywords in each original information element; a preset keyword weight corresponding to each original keyword; generating an original information element vector for each original information element according to a corresponding preset keyword weight of each original information element; for each two original information elements The corresponding original information element vector is used for similarity calculation to generate corresponding original similarity.
- the step of extracting the original keyword in each original information element performed by the processor specifically includes the following steps: segmenting each original information element according to a preset word segmentation algorithm, and generating corresponding multiple words.
- the original word; the original word in each original information element that matches the preset keyword in the preset keyword library is used as the original keyword.
- the performing, by the processor, performing a similarity calculation on the original information element vector corresponding to each two original information elements, and generating a corresponding original similarity specifically includes the following steps: for each two original information elements Corresponding first information element vector Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
- one or more non-transitory readable storage mediums storing computer readable instructions that, when executed by one or more processors, cause one or more processes
- the device performs the following steps: acquiring an independent information element set, and the independent information element set is generated according to the information element set generation method in each of the foregoing embodiments; acquiring a to-be-matched information element queue, where the to-be-matched information element queue includes multiple original information elements; Each original letter in the queue of information to be matched The information element is matched with the independent information element in the set of independent information elements, and the information element queue to be executed is generated according to the matching result; the rules included in the independent information element in the information element queue to be executed are executed by the rule engine.
- the step of matching, by the processor, the original information element in the information element queue to be matched with the independent information element in the independent information element set, and generating the information element queue to be executed according to the matching result specifically includes the following steps: performing similarity calculation on each original information element in the matching information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity; the matching similarity is greater than the preset similarity threshold.
- the independent information element is an independent information element that matches the corresponding original information element; and the information element queue to be executed corresponding to the information element queue to be matched is generated according to the independent information element matched with each original information element.
- a computer apparatus comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by the processor, cause one or more The processor performs the following steps: acquiring the original information element in each original information element set; performing similarity calculation on each of the two original information elements to generate a corresponding original similarity; and extracting multiple original information according to the multiple original similarities
- the independent information element in the element generates an independent information element set, and the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
- the step of performing similarity calculation on each of the two original information elements by the processor to generate a corresponding original similarity includes the following steps: extracting original keywords in each original information element; a preset keyword weight corresponding to each original keyword; generating an original information element vector for each original information element according to a corresponding preset keyword weight of each original information element; for each two original information elements The corresponding original information element vector is used for similarity calculation to generate corresponding original similarity.
- the step of extracting the original keyword in each original information element performed by the processor specifically includes the following steps: segmenting each original information element according to a preset word segmentation algorithm, and generating corresponding multiple words.
- the original word; the original word in each original information element that matches the preset keyword in the preset keyword library is used as the original keyword.
- the performing, by the processor, performing a similarity calculation on the original information element vector corresponding to each two original information elements, and generating a corresponding original similarity specifically includes the following steps: for each two original information elements Corresponding first information element vector Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
- a memory and one or more processors having stored therein computer readable instructions that, when executed by the processor, cause one or more processors to perform the following Step: Acquire an independent information element set, and the independent information element set is generated according to the information element set generation method in each embodiment; obtain the information element queue to be matched, and the to-be-matched information element queue includes multiple original information elements; Each original information element in the meta-queue is matched with an independent information element in the independent information element set, and an information element queue to be executed is generated according to the matching result; the rule included in the independent information element in the information element queue to be executed is executed by the rule engine.
- the step of matching, by the processor, the original information element in the information element queue to be matched with the independent information element in the independent information element set, and generating the information element queue to be executed according to the matching result specifically includes the following steps: performing similarity calculation on each original information element in the matching information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity; the matching similarity is greater than the preset similarity threshold.
- the independent information element is an independent information element that matches the corresponding original information element; and the information element queue to be executed corresponding to the information element queue to be matched is generated according to the independent information element matched with each original information element.
- the computer device described above can be a server or a terminal.
- the server may be an independent physical server or a server cluster composed of multiple physical servers
- the terminal may be a mobile phone, a tablet computer, a personal digital assistant, or a smart device.
- FIG. 10 A schematic diagram of the internal structure of a computer device in one embodiment.
- the computer device is applicable to the server 102 in the application environment of FIG.
- the computer device includes a processor coupled through a system bus, a non-volatile storage medium, an internal memory, and a network interface.
- the processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device.
- a non-volatile storage medium of a computer device stores an operating system, a database, and computer readable instructions.
- the database may store data related to an information element set generation method and a rule engine-based rule execution method provided by the foregoing various embodiments, such as a set of independent information elements.
- the computer readable instructions are executable by a processor for implementing an information element set generation method and a rule engine based rule execution method provided by the above various embodiments.
- the internal memory in the computer device provides a cached operating environment for operating systems and computer readable instructions in a non-volatile storage medium.
- the network interface may be an Ethernet card or a wireless network card, etc., for network connection with an external terminal or server.
- the computer device can be networked through a network interface with a plurality of terminals 104 in the application environment of FIG.
- the structure of the computer device shown in FIG. 10 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
- the computer device may include more or fewer components than those shown in the figures, or some components may be combined, or have different component arrangements.
- the computer device in the figure may also include a display screen or the like.
- the readable storage medium which when executed, may include the flow of an embodiment of the methods as described above.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Databases & Information Systems (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
An information element set generation method. The method comprises: obtaining original information elements in each original information element set; performing similarity calculation on every two original information elements to generate corresponding original similarities; and extracting independent information elements in the multiple original information elements according to the multiple original similarities to generate an independent information element set, the original similarity between any two independent information elements in the independent information element set being less than a preset similarity threshold.
Description
本申请要求于2017年10月31日提交中国专利局,申请号为201711043201X,发明名称为“信息元集合生成方法及基于规则引擎的规则执行方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 31, 2017, the Chinese Patent Office, the application number is 201711043201X, and the invention name is "information element set generation method and rule engine based rule execution method". The citations are incorporated herein by reference.
本申请涉及计算机信息管理技术领域,特别是涉及一种信息元集合生成方法、装置、存储介质和计算机设备及一种基于规则引擎的规则执行方法、装置、存储介质和计算机设备。The present invention relates to the field of computer information management technologies, and in particular, to a method, an apparatus, a storage medium, and a computer device for generating an information element set, and a rule execution method, apparatus, storage medium, and computer device based on a rule engine.
规则引擎是由推理引擎发展而来的,是一种嵌在应用程序中的组件。实现了将业务决策从应用程序代码中分离出来,并使用预定义的语义模块编写业务决策。接受数据输入,解释业务规则,并根据业务规则做出业务决策。信息元是规则引擎的基本建筑块,它是一个包含了特定事件的所有信息的对象。规则引擎从队列管理器中依次接收信息元,然后依规则的定义顺序执行信息元所带的规则。The rules engine is developed by the inference engine and is a component embedded in the application. Implements the separation of business decisions from application code and uses predefined semantic modules to write business decisions. Accept data input, interpret business rules, and make business decisions based on business rules. An information element is the basic building block of the rules engine. It is an object that contains all the information about a particular event. The rule engine receives the information elements sequentially from the queue manager, and then executes the rules carried by the information elements in the order defined by the rules.
然而,传统的信息元集合中,当存在大量信息元时,可能会存在部分重复或全部重复的信息元,冗余信息元会浪费资源,导致通过规则引擎执行信息元所包含的规则时效率较低。However, in a traditional information element set, when there are a large number of information elements, there may be partially repeated or all repeated information elements, and the redundant information elements waste resources, resulting in more efficient execution of the rules contained in the information elements by the rules engine. low.
发明内容Summary of the invention
根据本申请的各种实施例,提供一种信息元集合生成方法、装置、存储介质和计算机设备。According to various embodiments of the present application, an information element set generation method, apparatus, storage medium, and computer apparatus are provided.
根据本申请的各种实施例,提供一种基于规则引擎的规则执行方法、装
置、存储介质和计算机设备。According to various embodiments of the present application, a rule execution method based on a rule engine is provided, and
Storage, storage media, and computer equipment.
一种信息元集合生成方法,包括:获取每个原始信息元集合中的原始信息元;对每两个原始信息元进行相似度计算,生成相应的原始相似度;及根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。An information element set generation method includes: acquiring an original information element in each original information element set; performing similarity calculation on each two original information elements to generate a corresponding original similarity; and extracting according to multiple original similarities An independent information element in the plurality of original information elements is generated, and an independent information element set is generated, and an original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
一种基于规则引擎的规则执行方法,包括:获取独立信息元集合,所述独立信息元集合根据上述各个实施例中所述的信息元集合生成方法所生成;获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;及将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。A rule execution method based on a rule engine, comprising: acquiring a set of independent information elements, wherein the set of independent information elements is generated according to the information element set generation method described in the foregoing embodiments; acquiring a queue of information elements to be matched, The to-be-matched information element queue includes a plurality of original information elements; and each original information element in the to-be-matched information element queue is matched with an independent information element in the independent information element set, and the to-be-executed information is generated according to the matching result. a meta-queue; executing, by the rule engine, a rule included in the independent information element in the to-be-executed information element queue.
一种信息元集合生成装置,其特征在于,所述装置包括:原始信息元获取模块,用于获取每个原始信息元集合中的原始信息元;原始相似度生成模块,用于对每两个原始信息元进行相似度计算,生成相应的原始相似度;及独立信息元集合生成模块,用于根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。An information element set generating apparatus, comprising: an original information element acquiring module, configured to acquire an original information element in each original information element set; and a original similarity generating module, configured to The original information element performs similarity calculation to generate a corresponding original similarity; and the independent information element set generating module is configured to extract independent information elements in the plurality of original information elements according to the multiple original similarities, and generate an independent information element set. The original similarity of any two independent information elements in the set of independent information elements is less than a preset similarity threshold.
一种基于规则引擎的规则执行装置,其特征在于,所述装置包括:独立信息元集合获取模块,用于获取独立信息元集合,所述独立信息元集合根据上述各个实施例中所述的信息元集合生成方法所生成;待匹配信息元队列获取模块,用于获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;待执行信息元队列生成模块,用于将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及规则执行模块,用于通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。A rule execution engine-based rule execution device, comprising: an independent information element set acquisition module, configured to acquire an independent information element set, wherein the independent information element set is according to the information described in the foregoing embodiments. a meta-collection generating method is configured to obtain a to-be-matched information element queue, wherein the to-be-matched information element queue includes a plurality of original information elements; the to-be-executed information element queue generation module is used to Each of the original information elements in the matching information element queue is matched with the independent information element in the independent information element set, and the information element queue to be executed is generated according to the matching result; and the rule execution module is configured to execute the rule engine The rules contained in the independent information element in the execution information element queue are described.
一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算
机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:获取每个原始信息元集合中的原始信息元;对每两个原始信息元进行相似度计算,生成相应的原始相似度;及根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。One or more non-volatile readable storage media storing computer readable instructions for said computing
When the machine readable instructions are executed by one or more processors, causing the one or more processors to perform the steps of: acquiring the original information elements in each of the original information element sets; performing similarity for each of the two original information elements Calculating, generating a corresponding original similarity; and extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, generating an independent information element set, and any two independent information elements in the independent information element set The original similarity is less than the preset similarity threshold.
一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:获取独立信息元集合,所述独立信息元集合根据上述各个实施例中所述的信息元集合生成方法所生成;获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of: acquiring a set of independent information elements, the independent information element set is generated according to the information element set generation method described in the foregoing embodiments; and the information element queue to be matched is obtained, where the information element queue to be matched includes a plurality of original information elements; Each original information element in the to-be-matched information element queue is matched with an independent information element in the independent information element set, and a to-be-executed information element queue is generated according to the matching result; and the to-be-executed information element is executed by a rule engine The rules contained in the independent information element in the queue.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:获取每个原始信息元集合中的原始信息元;对每两个原始信息元进行相似度计算,生成相应的原始相似度;及根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps: obtaining original information elements in each original information element set; performing similarity calculation on each of the two original information elements to generate corresponding original similarity; and extracting multiple original information elements according to multiple original similarities The independent information element generates an independent information element set, and the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:获取独立信息元集合,所述独立信息元集合根据上述各个实施例中所述的信息元集合生成方法所生成;获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及通过规则引擎执行所述待执行信息
元队列中独立信息元所包含的规则。A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps: obtaining an independent information element set, the independent information element set is generated according to the information element set generation method described in the foregoing embodiments; acquiring a to-be-matched information element queue, where the to-be-matched information element queue includes multiple originals Information element; matching each original information element in the to-be-matched information element queue with an independent information element in the independent information element set, generating a to-be-executed information element queue according to the matching result; and performing the Pending information
The rules contained in the independent information element in the meta-queue.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为一个实施例中信息元集合生成方法的应用环境图;1 is an application environment diagram of a method for generating an information element set in an embodiment;
图2为一个实施例中信息元集合生成方法的流程图;2 is a flowchart of a method for generating an information element set in an embodiment;
图3为一个实施例中信息元生成及处理的原理图;3 is a schematic diagram of information element generation and processing in an embodiment;
图4为另一个实施例中信息元集合生成方法的流程图;4 is a flowchart of a method for generating an information element set in another embodiment;
图5为一个实施例中基于规则引擎的规则执行方法的流程图;5 is a flowchart of a rule execution method based on a rule engine in an embodiment;
图6为另一个实施例中基于规则引擎的规则执行方法的流程图;6 is a flow chart of a rule execution method based on a rule engine in another embodiment;
图7为又一个实施例中基于规则引擎的规则执行方法的流程图;7 is a flowchart of a rule execution method based on a rule engine in still another embodiment;
图8为一个实施例中信息元集合生成装置的结构框图;FIG. 8 is a structural block diagram of an information element set generating apparatus in an embodiment; FIG.
图9为一个实施例中基于规则引擎的规则执行装置的结构框图;9 is a structural block diagram of a rules execution apparatus based on a rule engine in an embodiment;
图10为一个实施例中计算机设备的内部结构图。Figure 10 is a diagram showing the internal structure of a computer device in one embodiment.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语的限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将
第一信息元称为第二信息元,且类似地,可将第二信息元称为第一信息元。第一信息元和第二信息元两者都是信息元,但其不是同一信息元。It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the application,
The first information element is referred to as a second information element, and similarly, the second information element may be referred to as a first information element. Both the first information element and the second information element are information elements, but they are not the same information element.
本申请实施例所提供的信息元集合生成方法,可应用于如图1所示的应用环境中。参照图1,该应用环境包括服务器102和多个终端104。其中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群,终端可以是手机、平板电脑、个人数字助理或者智能设备等。服务器102可用于执行本申请实施例所提供的信息元集合生成方法和基于规则引擎的规则执行方法。服务器备102可与终端104网络连接,网络连接包括但不限于无线网络、有线网络等。比如说,服务器102可通过网络连接获取终端104中的原始信息元集合。The method for generating an information element set provided by the embodiment of the present application can be applied to an application environment as shown in FIG. 1 . Referring to FIG. 1, the application environment includes a server 102 and a plurality of terminals 104. The server may be an independent physical server or a server cluster composed of multiple physical servers, and the terminal may be a mobile phone, a tablet computer, a personal digital assistant, or a smart device. The server 102 can be configured to execute the information element set generation method and the rule engine based rule execution method provided by the embodiments of the present application. The server device 102 can be connected to the network of the terminal 104, including but not limited to a wireless network, a wired network, and the like. For example, server 102 can obtain a collection of original information elements in terminal 104 over a network connection.
在一个实施例中,如图2所示,提供了一种信息元集合生成方法,该方法可用于如图1所示的应用环境中的服务器102,该方法包括:In an embodiment, as shown in FIG. 2, an information element set generation method is provided, which can be used in the server 102 in the application environment as shown in FIG. 1, the method includes:
步骤S202,获取每个原始信息元集合中的原始信息元。Step S202: Acquire original information elements in each original information element set.
本实施例中,原始信息元是指预先存在的信息元。其中,信息元为一个包含了特定事件的所有信息的对象,信息包括但不限于:消息、产生事件的应用程序标识、事件产生事件、信息元类型、相关规则集、通用方法、通用属性以及一些系统相关信息等。图3为信息元生成及处理的原理图。如图3所示,每个信息元都有对应的信息服务,信息服务以事实和规则集中存储的规则为入参生成特定的信息元。规则引擎从队列管理器中依次接收信息元,检测信息元中的规则,实现规则的执行。其中,规则是描述业务逻辑的一种方法,规则由条件过滤器和动作两部分组成,在程序运行时,动作会在条件过滤器为真值的情况下执行。规则可通过语言来定义并且存储于规则集中。规则引擎是一种根据规则中包含的过滤条件,判断其能否匹配运行时刻的实时条件来执行规则中所规定的动作的引擎。原始信息元集合是指由多个原始信息元所构成的集合。In this embodiment, the original information element refers to a pre-existing information element. The information element is an object that contains all the information of a specific event, including but not limited to: a message, an application identifier that generates an event, an event generation event, an information element type, a related rule set, a general method, a general attribute, and some System related information, etc. FIG. 3 is a schematic diagram of information element generation and processing. As shown in FIG. 3, each information element has a corresponding information service, and the information service generates a specific information element by using the rules stored in the facts and rules. The rule engine sequentially receives information elements from the queue manager, detects rules in the information elements, and implements the rules. Among them, the rule is a method of describing the business logic. The rule consists of two parts: the condition filter and the action. When the program runs, the action is executed when the condition filter is true. Rules can be defined by language and stored in a rule set. The rule engine is an engine that performs the actions specified in the rules based on the filtering conditions contained in the rules and determines whether they match the real-time conditions of the running time. The original information element set refers to a set composed of a plurality of original information elements.
在一个实施例中,服务器可分别从多个终端中获取相应的原始信息元集合。其中,每个原始信息元集合都包括一个或多个原始信息元。
In one embodiment, the server may obtain a corresponding set of original information elements from a plurality of terminals, respectively. Each of the original information element sets includes one or more original information elements.
步骤S204,对每两个原始信息元进行相似度计算,生成相应的原始相似度。Step S204, performing similarity calculation on each of the two original information elements to generate a corresponding original similarity.
本实施例中,对原始信息元中包含的信息按照预设的相似度算法进行计算。其中,相似度算法包括但不限于基于距离的计算方法及基于相似度度量的计算方法,比如,欧式距离(Euclidean Distance)、曼哈顿距离(Manhattan Distance)、明可夫斯基距离(Minkowski Distance)、切比雪夫距离(Chebyshev Distance)及向量空间余弦相似度(Cosine Similarity)、皮尔森相关系数(Pearson Correlation Coefficient)等。原始信息元中包含的信息包括但不限于信息元类型、规则及通用属性等。In this embodiment, the information included in the original information element is calculated according to a preset similarity algorithm. The similarity algorithm includes, but is not limited to, a distance-based calculation method and a calculation method based on a similarity measure, such as an Euclidean Distance, a Manhattan Distance, a Minkowski Distance, Chebyshev Distance and Cosine Similarity, Pearson Correlation Coefficient, etc. The information contained in the original information element includes, but is not limited to, information element types, rules, and general attributes.
在一个实施例中,每个原始信息元都包含一项规则,可通过预设的相似度算法公式对两个原始信息元中包含的规则进行相似度计算,生成该两项规则的原始相似度。In one embodiment, each original information element includes a rule, and the similarity calculation of the rules included in the two original information elements may be performed by using a preset similarity algorithm formula to generate original similarity of the two rules. .
步骤S206,根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合。Step S206, extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, and generating an independent information element set.
本实施例中,独立信息元是指与其他任意一个独立信息元互为独立的信息元,即任意两个独立信息元之间的相似度小于预设阈值。独立信息元集合是指由提取出的独立信息元所构成的集合。计算出所有原始信息元中每两个原始信息元之间的原始相似度之后,可将与其他任意一个原始信息元的原始相似度小于预设阈值的原始信息元作为独立信息元。In this embodiment, the independent information element refers to an information element that is independent of any other independent information element, that is, the similarity between any two independent information elements is less than a preset threshold. A set of independent information elements refers to a set of independent information elements extracted. After calculating the original similarity between each two original information elements in all the original information elements, the original information element whose original similarity with any other original information element is less than the preset threshold may be used as the independent information element.
在一个实施例中,还可以将原始相似度大于预设相似度阈值的两个以上的原始信息元结合生成一个结合信息元,可将该结合信息元作为独立信息元。In an embodiment, two or more original information elements whose original similarity is greater than a preset similarity threshold may be combined to generate one combined information element, and the combined information element may be used as an independent information element.
举例来说,多个原始信息元中包含的规则如表1所示:For example, the rules contained in multiple original information elements are as shown in Table 1:
对于相似度大于预设相似度阈值的规则1和规则2,由于规则1种本科及以上包括了研究生,则可提取出包含规则1的信息元作为独立信息元;对于相似度大于预设相似度阈值的规则3和规则4,由于50以上和50以下的学历为专科及以下的用户都不可以贷款,则可结合生成一个新的独立信息元,包含的规则5可为,如果用户学历为专科及以下,则不可以贷款。可根据规则1和规则5所对应的独立信息元,生成独立信息元集合。For rules 1 and 2 with similarity greater than the preset similarity threshold, since the undergraduate and above of the rule includes graduate students, the information element including rule 1 may be extracted as an independent information element; for the similarity is greater than the preset similarity Rules 3 and 4 of the threshold, since the credits of 50 or more and 50 or less are not available for the specialists and the following users, a new independent information element can be combined, and the included rule 5 can be if the user qualification is a specialist. And below, you can not borrow. An independent set of information elements can be generated according to the independent information elements corresponding to rules 1 and 5.
上述实施例中,在获取预先存在的原始信息元之后,通过对每两个原始信息元进行相似度计算,筛选出原始信息元中的独立信息元,并根据独立信息元重新生成独立信息元集合。将预先存在的原始信息元集合中的冗余的原始信息元剔除,节约了系统资源。In the foregoing embodiment, after acquiring the pre-existing original information element, the similarity information in the original information element is filtered by performing similarity calculation on each of the two original information elements, and the independent information element set is regenerated according to the independent information element. . The redundant original information elements in the pre-existing original information element set are eliminated, which saves system resources.
在一个实施例中,根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合之后,还可将独立信息元集合划分成通用信息元集合和特殊信息元集合。对每两个原始信息元进行相似度计算,生成相应的原始相似度之后,每个原始信息元都有与其他原始信息元相应的原始相似度。可统计与每个独立信息元相应的原始相似度中,大于预设相似度阈值的原始相似度的数量,将该数量大于预设阈值的独立信息元生成通用信息元集合,将该数量小于预设阈值的独立信息元生成特殊信息元集合。In an embodiment, the independent information elements in the plurality of original information elements are extracted according to the plurality of original similarities, and after the independent information element set is generated, the independent information element set may also be divided into the general information element set and the special information element set. . After the similarity calculation is performed for each of the two original information elements, and the corresponding original similarities are generated, each original information element has a original similarity corresponding to other original information elements. The original similarity corresponding to each independent information element may be counted, and the number of original similarities greater than the preset similarity threshold is generated, and the independent information element whose number is greater than the preset threshold generates a common information element set, and the quantity is less than the pre-predetermined The independent information element of the threshold is generated to generate a special information element set.
在一个实施例中,根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合之后,还包括:获取需要新增的新增信息元;将该新增信息元与独立信息元集合中每个独立信息元进行相似度计算,生成相应的新增相似度;判断是否存在大于预设相似度阈值的新增相似度;若是,则不添加该新增信息元;若否,则将该新增信息元作为独立信息元添加至独立信息元集合。In an embodiment, the independent information element in the plurality of original information elements is extracted according to the plurality of original similarities, and after the generating the independent information element set, the method further includes: acquiring the newly added information element that needs to be added; Performing similarity calculation on each independent information element in the set of independent information elements, generating corresponding new similarity; determining whether there is new similarity greater than the preset similarity threshold; if yes, adding the new information element If not, the added information element is added as an independent information element to the independent information element set.
在一个实施例中,如图4所示,步骤S204包括:In one embodiment, as shown in FIG. 4, step S204 includes:
步骤S402,提取每个原始信息元中的原始关键词。Step S402, extracting original keywords in each original information element.
本实施例中,原始关键词是指在定义信息元中的规则时所使用到的词汇。比如说,年龄、性别、学历、收入及房产价值等。
In this embodiment, the original keyword refers to the vocabulary used in defining the rules in the information element. For example, age, gender, education, income, and property value.
在一个实施例中,步骤S402包括:按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。In an embodiment, step S402 includes: segmenting each original information element according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and presetting each original information element with a preset keyword library The original words of the keyword match are used as the original keywords.
其中,预设的分词算法包括但不限于基于字符串匹配的分词方法、基于理解的分词方法和基于统计的分词方法等其中一种或多种的组合算法。按照预设的分词算法将原始信息元进行分词,可为将原始信息元包含的规则中的连续字序列按照一定的规范重新组合成词序列。可将词序列中包含的原始词语与预设关键词库中的预设关键词进行匹配,将匹配的原始词语作为原始关键词。The preset word segmentation algorithm includes, but is not limited to, a combination algorithm based on one or more of a word segmentation based segmentation method, an understanding based segmentation method, and a statistics based segmentation method. The original information element is segmented according to a preset word segmentation algorithm, and the continuous word sequence in the rule included in the original information element can be recombined into a word sequence according to a certain specification. The original words included in the word sequence can be matched with the preset keywords in the preset keyword library, and the matched original words are used as the original keywords.
在一个实施例中,按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语之后,还包括去除原始词语中的停用词。将原始词语与预设的停用词数据库中的停用词进行匹配,将匹配的停用词从重新组合的词序列中过滤掉。比如说,停用词可为“这个”、“的”、“比如”等词汇,还可为标点符号等。进一步地,还可以根据停用词过滤后的原始词语所对应的频率来确定原始关键词。可根据公式:P=N/m进行计算,得到停用词过滤后每个原始词语的频率P,其中,N为原始词语出现的频度,m为词语数据库中词语的总数,将频率大于预设阈值的原始词语作为原始关键词。In one embodiment, after each original information element is segmented according to a preset word segmentation algorithm to generate a corresponding plurality of original words, the method further includes removing the stop words in the original words. The original words are matched with the stop words in the preset stop word database, and the matched stop words are filtered from the recombined word sequence. For example, stop words can be words such as "this", "", "such as", and can also be punctuation and the like. Further, the original keyword may also be determined according to the frequency corresponding to the original word filtered by the stop word. It can be calculated according to the formula: P=N/m, and the frequency P of each original word after the stop word filtering is obtained, where N is the frequency of occurrence of the original word, m is the total number of words in the word database, and the frequency is greater than the pre- Set the original word of the threshold as the original keyword.
步骤S404,获取与每个原始关键词相应的预设关键词权值。Step S404, acquiring preset keyword weights corresponding to each original keyword.
本实施例中,预设关键词权值为反映关键词重要程度的权值。由于越个性的关键词说明该关键词越能体现相应规则的业务特性,则该关键词越重要,而越普遍的关键词越不重要,因此,可以对普遍度较高的关键词赋予相应较低的预设关键词权值。In this embodiment, the preset keyword weight is a weight that reflects the importance of the keyword. Since the more personalized keyword indicates that the keyword can reflect the business characteristics of the corresponding rule, the more important the keyword is, the more important the keyword is, the less important it is. Therefore, the keyword with higher popularity can be given correspondingly. Low default keyword weights.
在一个实施例中,可根据公式:W=log(D/DW)进行计算,得到每个关键词的预设关键词权值,其中,W为预设关键词权值,D为所有原始信息元中包含的规则总数,DW为包含该关键词的规则数量。比如说,包含关键词“学历”的规则数量为100项,所有信息元包含的规则总数为1000项,则W=log(1000/100),预设关键词权值为1。
In an embodiment, the calculation may be performed according to the formula: W=log(D/D W ), and the preset keyword weights of each keyword are obtained, where W is a preset keyword weight, and D is all originals. The total number of rules contained in the information element, D W is the number of rules containing the keyword. For example, the number of rules containing the keyword "education" is 100, and the total number of rules included in all information elements is 1000, then W=log(1000/100), and the default keyword weight is 1.
步骤S406,根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量。Step S406: Generate an original information element vector with each original information element according to a preset keyword weight corresponding to each original information element.
本实施例中,每个原始信息元可包含一个或多个原始关键词。其中,每个原始关键词对应有预设关键词权值,可根据每个原始信息元对应的一个或多个预设关键词权值,构建向量空间模型,生成与该原始信息元对应的原始信息元向量。In this embodiment, each original information element may include one or more original keywords. Each original keyword corresponds to a preset keyword weight, and a vector space model may be constructed according to one or more preset keyword weights corresponding to each original information element, and a primitive corresponding to the original information element is generated. Information element vector.
举例来说,若规则R包含n个原始关键词,则规则Rx可表示为以每个原始关键词相应的特征值为分向量的n维向量Rx(Rx1,Rx2,Rx3……Rxn),其中,Rx1至Rxn为n个特征值。规则Rx还可表示为以每个原始关键词相应的预设关键词权值为分向量的n维向量Rx(W1,W2,W3……Wn),其中,W1至Wn为每个原始关键词相应的预设关键词权值。For example, if the rule R contains n original keywords, the rule R x can be expressed as an n-dimensional vector R x (R x1 , R x2 , R x3 ... ... R xn ), where R x1 to R xn are n eigenvalues. The rule R x may also be expressed as an n-dimensional vector R x (W 1 , W 2 , W 3 . . . W n ) of the predetermined keyword weight corresponding to each original keyword, wherein W 1 to W n is the preset keyword weight corresponding to each original keyword.
步骤S408,对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。Step S408, performing similarity calculation on the original information element vector corresponding to each of the two original information elements, and generating corresponding original similarity.
本实施例中,原始相似度是指根据任意两个原始信息元向量按照预设的相似度算法计算得到的相似度。In this embodiment, the original similarity refers to the similarity calculated according to a preset similarity algorithm according to any two original information element vectors.
在一个实施例中,对两个原始信息元相应的原始信息元向量进行相似度计算时,可将两个原始信息元向量中的特征项一一对应,将无法对应的特征项标记为预设数值,比如0。举例来说,针对将R1(a,b,c,d)与R2(a,c,d,e)两个原始信息元向量进行相似度计算,由于R1中没有e,R2中没有b,可将不对应的特征项标记为0,因此,可将两个原始信息元向量分别转换为R1(a,b,c,d,0)与R2(a,0,c,d,e)之后进行相似度计算。In an embodiment, when the similarity calculation is performed on the original information element vector corresponding to the two original information elements, the feature items in the two original information element vectors may be correspondingly matched, and the feature items that cannot be corresponding are marked as presets. Value, such as 0. For example, for the similarity calculation of two original information element vectors of R 1 (a, b, c, d) and R 2 (a, c, d, e), since there is no e in R 1 , R 2 Without b, the non-corresponding feature items can be marked as 0. Therefore, the two original information element vectors can be converted into R 1 (a, b, c, d, 0) and R 2 (a, 0, c, respectively). After d, e), the similarity calculation is performed.
在一个实施例中,步骤S408包括:对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似度其中,W0k为第一信息元向
量所对应的n个预设关键词权值,WAk为第二信息元向量所对应的n个预设关键词权值。In one embodiment, step S408 includes: a first information element vector corresponding to each two original information elements Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding n preset keyword weights, W Ak is the second information element vector The corresponding n preset keyword weights.
本实施例中,采用的相似度算法为计算向量空间余弦相似度的算法。生成多个原始信息元对应的原始信息元向量之后,对任意两个原始信息元向量进行相似度计算。比如说,针对及三个信息元向量,需要针对与
与与分别进行相似度计算,生成三个相应的原始相似度。其中,原始相似度取值可为0至1,原始相似度的值越接近0说明两个原始信息元向量的相似度越低,原始相似度的值越接近1说明两个原始信息元向量的相似度越高。In this embodiment, the similarity algorithm used is an algorithm for calculating the cosine similarity of vector space. After generating the original information element vector corresponding to the plurality of original information elements, the similarity calculation is performed on any two original information element vectors. For example, for and Three information element vectors, need to be targeted versus versus versus The similarity calculation is performed separately to generate three corresponding original similarities. Wherein, the original similarity value may be 0 to 1, and the closer the value of the original similarity is to 0, the lower the similarity between the two original information element vectors, and the closer the original similarity value is to 1, indicating the two original information element vectors. The higher the similarity.
在一个实施例中,对每两个原始信息元进行相似度计算,生成相应的原始相似度之后,还包括:判断原始相似度是否小于预设相似度阈值。若是,则可判定该小于预设相似度阈值的原始相似度所对应的两个原始信息元为重复的原始信息元。可提取重复的多个原始信息元中的一个原始信息元作为独立信息元。举例来说,当第一信息元向量与第二信息元向量所对应的原始相似度大于预设相似度阈值0.9时,可提取第一信息元向量所对应的第一信息元或第二信息元向量所对应的第二信息元作为独立信息元。In an embodiment, after performing the similarity calculation on each of the two original information elements to generate the corresponding original similarity, the method further includes: determining whether the original similarity is less than a preset similarity threshold. If yes, it may be determined that the two original information elements corresponding to the original similarity less than the preset similarity threshold are duplicate original information elements. One of the plurality of original information elements that are repeated may be extracted as an independent information element. For example, when the first information element vector Second information element vector Corresponding original similarity When the preset similarity threshold is greater than 0.9, the first information element vector may be extracted. Corresponding first information element or second information element vector The corresponding second information element is used as an independent information element.
上述实施例中,通过提取原始信息元中的原始关键词,并根据原始关键词对应的预设关键词权值生成与原始信息元的原始信息元向量。根据预设的相似度算法对任意两个原始信息元向量进行计算,生成相应的原始相似度,根据原始相似度确定独立信息元,从而能够精准地剔除冗余的信息元。In the above embodiment, the original information element vector of the original information element is generated by extracting the original keyword in the original information element and according to the preset keyword weight corresponding to the original keyword. Any two original information element vectors are calculated according to a preset similarity algorithm, and corresponding original similarities are generated, and independent information elements are determined according to the original similarity, so that redundant information elements can be accurately eliminated.
在一个实施例中,如图5所示,提供了一种基于规则引擎的规则执行方法,该方法包括:
In an embodiment, as shown in FIG. 5, a rules engine-based rule execution method is provided, and the method includes:
步骤S502,获取独立信息元集合。Step S502, acquiring a set of independent information elements.
本实施例中,独立信息元集合可为根据上述各个实施例提供的信息元集合生成方法所生成的信息元集合。其中,独立信息元集合中包含多个独立信息元,且任意两个独立信息元的原始相似度小于预设相似度阈值。In this embodiment, the set of independent information elements may be a set of information elements generated by the information element set generation method provided according to the foregoing various embodiments. The independent information element set includes multiple independent information elements, and the original similarity of any two independent information elements is less than a preset similarity threshold.
步骤S504,获取待匹配信息元队列。Step S504, obtaining a queue of information to be matched.
本实施例中,待匹配信息元队列是指与原始信息元集合对应的,包含多个原始信息元的信息元队列。其中,信息元队列中的多个信息元具有预设的执行顺序,可通过如图3中的队列管理器进行队列管理。In this embodiment, the information element queue to be matched refers to an information element queue corresponding to the original information element set and including a plurality of original information elements. The information element in the information element queue has a preset execution order, and the queue management can be performed through the queue manager in FIG. 3 .
在一个实施例中,针对每个业务,可预设对应的待匹配信息元队列。比如说,针对业务A,可预设包含n个原始信息元的待匹配信息元队列,RA1、RA2、RA3……RAn,RA1至RAn为业务A中的原始信息元。In an embodiment, for each service, a corresponding information element queue to be matched may be preset. For example, for service A, a queue of information to be matched containing n original information elements may be preset, and R A1 , R A2 , R A3 , ... R An , R A1 to R An are original information elements in service A.
步骤S506,将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列。Step S506: Match each original information element in the information element queue to be matched with the independent information element in the independent information element set, and generate a to-be-executed information element queue according to the matching result.
本实施例中,待执行信息元队列是指根据独立信息元集合中的独立信息元生成的与待匹配信息元队列相对应的信息元队列。其中,待执行队列中包含的独立信息元与待匹配信息元队列中原始信息元一一对应。In this embodiment, the to-be-executed information element queue refers to an information element queue corresponding to the to-be-matched information element queue generated according to the independent information element in the independent information element set. The independent information element included in the to-be-executed queue has a one-to-one correspondence with the original information element in the information element queue to be matched.
步骤S508,通过规则引擎执行待执行信息元队列中独立信息元所包含的规则。Step S508, executing, by the rule engine, a rule included in the independent information element in the information element queue to be executed.
本实施例中,规则引擎是一种嵌入在应用程序中的组件,是规则执行的环境。如图3所示,规则引擎可从队列管理器中依次接收信息元。其中,信息元可包含一个或多个规则,可通过规则引擎依据预设的顺序检查信息元中包含的第一个规则,对其条件过滤器求值,如果值为假,所有与此规则相关的动作皆被忽略并继续执行下一条规则;如果值为真,则与此规则相关的动作依次顺序执行,执行完后继续下一条规则。该信息元中的所有规则执行完毕后,信息元将被销毁,然后从队列管理器中接收下一个信息元。In this embodiment, the rule engine is a component embedded in an application and is an environment in which rules are executed. As shown in Figure 3, the rules engine can receive information elements in turn from the queue manager. The information element may include one or more rules, and the rule engine may check the first rule included in the information element according to a preset order, and evaluate the condition filter. If the value is false, all the rules are related to the rule. The actions are ignored and continue to execute the next rule; if the value is true, the actions related to this rule are executed sequentially, and the next rule is executed after execution. After all the rules in the information element have been executed, the information element will be destroyed and the next information element will be received from the queue manager.
上述实施例中,通过将待匹配信息元队列中的原始信息元与独立信息元集合中的独立信息元进行匹配,重新生成待执行信息元队列,并通过规则引
擎执行待执行信息元队列中独立信息元所包含的规则,避免了重复执行冗余信息元中的规则,从而提高了规则执行的效率。In the foregoing embodiment, the original information element in the information element queue to be matched is matched with the independent information element in the independent information element set, and the information element queue to be executed is regenerated, and the rule is introduced by rules.
The engine executes the rules contained in the independent information element in the information element queue to be executed, thereby avoiding the repeated execution of the rules in the redundant information element, thereby improving the efficiency of the rule execution.
在一个实施例中,如图6所示,步骤S506,包括:In an embodiment, as shown in FIG. 6, step S506 includes:
步骤S602,对待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度。Step S602: Perform similarity calculation on each original information element in the queue of the information to be matched and the independent information element in the independent information element set to generate a corresponding matching similarity.
本实施例中,匹配相似度是指针对原始信息元与独立信息元按照预设的相似度算法进行计算,生成的相似度。与步骤S204相应的,可对每个原始信息元与独立信息元集合中的独立信息元中包含的信息按照预设的相似度算法进行计算,生成相应的匹配相似度。其中,相似度算法包括但不限于基于距离的计算方法及基于相似度度量的计算方法。In this embodiment, the matching similarity is a similarity generated by the pointer to calculate the original information element and the independent information element according to a preset similarity algorithm. Corresponding to step S204, the information included in each of the original information element and the independent information element in the independent information element set may be calculated according to a preset similarity algorithm to generate a corresponding matching similarity. The similarity algorithm includes, but is not limited to, a distance-based calculation method and a similarity degree-based calculation method.
在一个实施例中,可根据公式对原始信息元相应的第一信息元向量与独立信息元相应的第二信息元向量进行相似度计算,生成相应的匹配相似度其中,W0k为第一信息元向量所对应的n个预设关键词权值,WAk为第二信息元向量所对应的n个预设关键词权值。In one embodiment, according to the formula First information element vector corresponding to the original information element Second information element vector corresponding to the independent information element Perform similarity calculation to generate corresponding matching similarity Where W 0k is the first information element vector Corresponding n preset keyword weights, W Ak is the second information element vector The corresponding n preset keyword weights.
步骤S604,将匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相应原始信息元相匹配的独立信息元。Step S604, the independent information element corresponding to the matching similarity greater than the preset similarity threshold is used as the independent information element matching the corresponding original information element.
本实施例中,可以在检测到与原始信息元的匹配相似度大于预设相似度阈值的独立信息元之后,将该大于预设相似度阈值的匹配相似度所对应的独立信息元作为与该原始信息元所匹配的独立信息元,并停止对该原始信息元与其他独立信息元的相似度计算。In this embodiment, after detecting the independent information element whose matching similarity with the original information element is greater than the preset similarity threshold, the independent information element corresponding to the matching similarity of the preset similarity threshold may be used as the The independent information element matched by the original information element, and stops the similarity calculation of the original information element and other independent information elements.
在一个实施例中,还可以将每个原始信息元与每个独立信息元进行相似度计算,生成原始信息元与每个独立信息元的匹配相似度,将最大的匹配相似度所对应的独立信息元作为与相应原始信息元所匹配的独立信息元。
In an embodiment, each original information element may be similarly calculated with each independent information element to generate a matching similarity between the original information element and each independent information element, and the maximum matching similarity is independent. The information element acts as an independent information element that matches the corresponding original information element.
步骤S606,根据与每个原始信息元匹配的独立信息元,生成与待匹配信息元队列相应的待执行信息元队列。Step S606: Generate, according to the independent information element matched with each original information element, a to-be-executed information element queue corresponding to the information element queue to be matched.
本实施例中,获取到独立信息元集合中与待匹配信息元队列中的原始信息元相匹配的独立信息元之后,可根据匹配的独立信息元生成相应的待执行信息源队列。In this embodiment, after obtaining the independent information element in the set of independent information elements that matches the original information element in the information element queue to be matched, the corresponding information source queue to be executed may be generated according to the matched independent information element.
举例来说,针对业务A,可预设包含n个原始信息元的待匹配信息元队列,RA1、RA2、RA3……RAn,RA1至RAn为业务A中的原始信息元,若检测到独立信息元集合中与RA1匹配的独立信息元为R1,与RA2匹配的独立信息元为R2,与RA3匹配的独立信息元为R3……与RAn匹配的独立信息元为Rk,则可将R1、R2、R3……Rk,作为与待匹配信息元队列相应的待执行信息元队列。For example, for service A, a queue of information to be matched containing n original information elements may be preset, and R A1 , R A2 , R A3 , ... R An , R A1 to R An are original information elements in service A. If it is detected that the independent information element matching R A1 in the independent information element set is R 1 , the independent information element matching R A2 is R 2 , and the independent information element matching R A3 is R 3 ... matching with R An The independent information element is R k , and R 1 , R 2 , R 3 . . . R k can be used as the to-be-executed information element queue corresponding to the information element queue to be matched.
在一个实施例中,如图7所示,步骤S506,包括:In an embodiment, as shown in FIG. 7, step S506 includes:
步骤S702,将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行匹配。Step S702, matching each original information element in the information element queue to be matched with the independent information element in the independent information element set.
本实施例中,可将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行相似度计算,将大于相似度阈值的相似度所对应的独立信息元作为与相应原始信息元匹配的独立信息元。In this embodiment, each original information element in the information element queue to be matched may be similarly calculated with the independent information element in the independent information element set, and the independent information element corresponding to the similarity of the similarity threshold may be used as An independent information element that matches the original information element.
步骤S704,将与原始信息元相匹配的独立信息元标记上匹配标识。Step S704, the independent information element matching the original information element is marked with a matching identifier.
本实施例中,匹配标识是用于标记独立信息元集合中独立信息元的标识,且被标识的独立信息元与待匹配信息元队列中任意一个原始信息元相匹配。匹配标识可为字母或数据,比如,匹配标识可为1。In this embodiment, the matching identifier is used to mark the identifier of the independent information element in the independent information element set, and the identified independent information element matches any one of the original information elements in the information element queue to be matched. The matching identifier can be a letter or data, for example, the matching identifier can be 1.
举例来说,当检测到待匹配信息元队列中的第一信息元RA1与独立信息元R1匹配时,可将该独立信息元标记为1,还可将不与任意原始信息元匹配的独立信息元标记为0。For example, when it is detected that the first information element R A1 in the information element queue to be matched matches the independent information element R 1 , the independent information element may be marked as 1 and may not be matched with any original information element. The independent information element is marked as 0.
步骤S706,按照预设次序遍历独立信息元集合中的独立信息元,将标记有匹配标识的独立信息元生成的待执行信息元队列。Step S706: traverse the independent information element in the independent information element set according to a preset order, and queue the to-be-executed information element generated by the independent information element marked with the matching identifier.
本实施例中,遍历是指按照预设次序对独立信息元集合中的独立信息元均做一次且仅做一次检测。将检测到标记有匹配标识的独立信息元生成待执
行信息元队列。In this embodiment, traversing refers to performing independent detection of the independent information elements in the independent information element set in a preset order and performing only one detection. An independent information element marked with a matching identifier will be detected to be executed
Line information element queue.
举例来说,独立信息元集合中包含k个独立信息元,R1、R2、R3……Rk,将待匹配信息元队列中的每个原始信息元与独立信息元进行匹配之后,将与原始信息元匹配的独立信息元标记上匹配标识1,按照预设次序遍历独立信息元集合中的所有独立信息元,检测到标记有匹配标识1的独立信息元为R2、R6、R11……Rn,则可将R2、R6、R11……Rn作为待执行信息元队列。For example, the independent information element set includes k independent information elements, R 1 , R 2 , R 3 , . . . R k , after each original information element in the information element queue to be matched is matched with the independent information element. The independent information element matched with the original information element is matched with the identifier 1 to traverse all the independent information elements in the independent information element set according to a preset order, and the independent information element marked with the matching identifier 1 is detected as R 2 , R 6 , R 11 ... R n , then R 2 , R 6 , R 11 ... R n can be used as a queue of information elements to be executed.
在一个实施例中,如图8所示,提供了一种信息元集合生成装置800,该装置包括:原始信息元获取模块802,用于获取每个原始信息元集合中的原始信息元;原始相似度生成模块804,用于对每两个原始信息元进行相似度计算,生成相应的原始相似度;独立信息元集合生成模块806,用于根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。In an embodiment, as shown in FIG. 8, an information element set generating apparatus 800 is provided. The apparatus includes: an original information element obtaining module 802, configured to acquire an original information element in each original information element set; The similarity generation module 804 is configured to perform similarity calculation on each of the two original information elements to generate a corresponding original similarity. The independent information element set generation module 806 is configured to extract multiple original information elements according to the multiple original similarities. The independent information element in the generated information element set, and the original similarity of any two independent information elements in the independent information element set is less than the preset similarity threshold.
在一个实施例中,原始相似度生成模块804还用于提取每个原始信息元中的原始关键词;获取与每个原始关键词相应的预设关键词权值;根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量;对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。In one embodiment, the original similarity generation module 804 is further configured to extract original keywords in each original information element; acquire preset keyword weights corresponding to each original keyword; and corresponding according to each original information element The preset keyword weights are generated with the original information element vector of each original information element; the similarity calculation is performed on the original original information element vector corresponding to each of the two original information elements, and the corresponding original similarity is generated.
在一个实施例中,原始相似度生成模块804还用于按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。In an embodiment, the original similarity generation module 804 is further configured to perform segmentation of each original information element according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and each original information element and the preset keyword The original words in the library that match the preset keywords are used as the original keywords.
在一个实施例中,原始相似度生成模块804还用于对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似度
其中,W0k为第一信息元向量所对应的预设关键词权值,WAk为第二信息元向量所对应的预设关键词权值。In one embodiment, the original similarity generation module 804 is further configured to use a first information element vector corresponding to each two original information elements. Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
在一个实施例中,如图9所示,提供了一种基于规则引擎的规则执行装置900,该装置包括:独立信息元集合获取模块902,用于获取独立信息元集合,独立信息元集合根据上述各个实施例所提供的信息元集合生成方法所生成;待匹配信息元队列获取模块904,用于获取待匹配信息元队列,待匹配信息元队列包含多个原始信息元;待执行信息元队列生成模块906,用于将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;规则执行模块908,用于通过规则引擎执行待执行信息元队列中独立信息元所包含的规则。In an embodiment, as shown in FIG. 9, a rule engine-based rule execution apparatus 900 is provided. The apparatus includes: an independent information element set acquisition module 902, configured to acquire an independent information element set, and the independent information element set is based on The information element set generation method 904 is configured to obtain the information element queue to be matched, and the information element queue to be matched includes a plurality of original information elements; the information element queue to be executed The generating module 906 is configured to match each original information element in the information element queue to be matched with the independent information element in the independent information element set, and generate a to-be-executed information element queue according to the matching result; the rule execution module 908 is configured to pass The rules engine executes the rules contained in the independent information elements in the information element queue to be executed.
在一个实施例中,待执行信息元队列生成模块906还用于对待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度;将匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相应原始信息元相匹配的独立信息元;根据与每个原始信息元匹配的独立信息元,生成与待匹配信息元队列相应的待执行信息元队列。In an embodiment, the to-be-executed information element queue generation module 906 is further configured to perform similarity calculation on each of the original information elements in the pair of matching information element queues and the independent information elements in the independent information element set, to generate corresponding matching similarities. And matching the independent information element corresponding to the similarity greater than the preset similarity threshold as the independent information element matching the corresponding original information element; generating and matching the information element according to the independent information element matched with each original information element The corresponding queue of information to be executed in the queue.
上述信息元集合生成装置及基于规则引擎的规则执行装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于终端的存储器中,也可以以软件形式存储于终端的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。Each of the above-described information element set generation means and the rules engine-based rule execution means may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in the hardware of the terminal or may be stored in the memory of the terminal in a software form, so that the processor calls the execution of the operations corresponding to the above modules. The processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
上述的信息元集合生成装置及基于规则引擎的规则执行装置可以实现为一种计算机可读指令的形式,计算机可读指令可在如图10所示的计算机设备上运行。The information element set generation means and the rule engine based rule execution means described above may be embodied in the form of a computer readable instruction executable on a computer device as shown in FIG.
在一个实施例中,提供了一个或多个存储有计算机可读指令的非易失性可读存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:获取每个原始信息元集合中的原始信息元;对每
两个原始信息元进行相似度计算,生成相应的原始相似度;根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。In one embodiment, one or more non-volatile readable storage media having computer readable instructions stored by one or more processors are provided, such that one or more processors are Perform the following steps: obtain the original information element in each original information element set;
Two original information elements are used for similarity calculation to generate corresponding original similarities; independent information elements in multiple original information elements are extracted according to multiple original similarities, and an independent information element set is generated, and any two of the independent information element sets are generated. The original similarity of the independent information elements is less than the preset similarity threshold.
在一个实施例中,处理器所执行的对每两个原始信息元进行相似度计算,生成相应的原始相似度的步骤,具体包括以下步骤:提取每个原始信息元中的原始关键词;获取与每个原始关键词相应的预设关键词权值;根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量;对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。In one embodiment, the step of performing similarity calculation on each of the two original information elements by the processor to generate a corresponding original similarity includes the following steps: extracting original keywords in each original information element; a preset keyword weight corresponding to each original keyword; generating an original information element vector for each original information element according to a corresponding preset keyword weight of each original information element; for each two original information elements The corresponding original information element vector is used for similarity calculation to generate corresponding original similarity.
在一个实施例中,处理器所执行的提取每个原始信息元中的原始关键词的步骤,具体包括以下步骤:按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。In one embodiment, the step of extracting the original keyword in each original information element performed by the processor specifically includes the following steps: segmenting each original information element according to a preset word segmentation algorithm, and generating corresponding multiple words. The original word; the original word in each original information element that matches the preset keyword in the preset keyword library is used as the original keyword.
在一个实施例中,处理器所执行的对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度的步骤,具体包括以下步骤:对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似度其中,W0k为第一信息元向量所对应的预设关键词权值,WAk为第二信息元向量所对应的预设关键词权值。In one embodiment, the performing, by the processor, performing a similarity calculation on the original information element vector corresponding to each two original information elements, and generating a corresponding original similarity, specifically includes the following steps: for each two original information elements Corresponding first information element vector Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
在一个实施例中,还提供了一个或多个存储有计算机可读指令的非易失性可读存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:获取独立信息元集合,独立信息元集合根据上述各个实施例中的信息元集合生成方法所生成;获取待匹配信息元队列,待匹配信息元队列包含多个原始信息元;将待匹配信息元队列中的每个原始信
息元与独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;通过规则引擎执行待执行信息元队列中独立信息元所包含的规则。In one embodiment, there is also provided one or more non-transitory readable storage mediums storing computer readable instructions that, when executed by one or more processors, cause one or more processes The device performs the following steps: acquiring an independent information element set, and the independent information element set is generated according to the information element set generation method in each of the foregoing embodiments; acquiring a to-be-matched information element queue, where the to-be-matched information element queue includes multiple original information elements; Each original letter in the queue of information to be matched
The information element is matched with the independent information element in the set of independent information elements, and the information element queue to be executed is generated according to the matching result; the rules included in the independent information element in the information element queue to be executed are executed by the rule engine.
在一个实施例中,处理器所执行的将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列的步骤,具体包括以下步骤:对待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度;将匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相应原始信息元相匹配的独立信息元;根据与每个原始信息元匹配的独立信息元,生成与待匹配信息元队列相应的待执行信息元队列。In an embodiment, the step of matching, by the processor, the original information element in the information element queue to be matched with the independent information element in the independent information element set, and generating the information element queue to be executed according to the matching result, specifically The method includes the following steps: performing similarity calculation on each original information element in the matching information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity; the matching similarity is greater than the preset similarity threshold. The independent information element is an independent information element that matches the corresponding original information element; and the information element queue to be executed corresponding to the information element queue to be matched is generated according to the independent information element matched with each original information element.
在一个实施例中,提供了一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,该计算机可读指令被所述处理器执行时,使得一个或多个处理器执行以下步骤:获取每个原始信息元集合中的原始信息元;对每两个原始信息元进行相似度计算,生成相应的原始相似度;根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。In one embodiment, a computer apparatus is provided comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by the processor, cause one or more The processor performs the following steps: acquiring the original information element in each original information element set; performing similarity calculation on each of the two original information elements to generate a corresponding original similarity; and extracting multiple original information according to the multiple original similarities The independent information element in the element generates an independent information element set, and the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
在一个实施例中,处理器所执行的对每两个原始信息元进行相似度计算,生成相应的原始相似度的步骤,具体包括以下步骤:提取每个原始信息元中的原始关键词;获取与每个原始关键词相应的预设关键词权值;根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量;对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。In one embodiment, the step of performing similarity calculation on each of the two original information elements by the processor to generate a corresponding original similarity includes the following steps: extracting original keywords in each original information element; a preset keyword weight corresponding to each original keyword; generating an original information element vector for each original information element according to a corresponding preset keyword weight of each original information element; for each two original information elements The corresponding original information element vector is used for similarity calculation to generate corresponding original similarity.
在一个实施例中,处理器所执行的提取每个原始信息元中的原始关键词的步骤,具体包括以下步骤:按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。
In one embodiment, the step of extracting the original keyword in each original information element performed by the processor specifically includes the following steps: segmenting each original information element according to a preset word segmentation algorithm, and generating corresponding multiple words. The original word; the original word in each original information element that matches the preset keyword in the preset keyword library is used as the original keyword.
在一个实施例中,处理器所执行的对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度的步骤,具体包括以下步骤:对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似度其中,W0k为第一信息元向量所对应的预设关键词权值,WAk为第二信息元向量所对应的预设关键词权值。In one embodiment, the performing, by the processor, performing a similarity calculation on the original information element vector corresponding to each two original information elements, and generating a corresponding original similarity, specifically includes the following steps: for each two original information elements Corresponding first information element vector Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
在一个实施例中,还提供了包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,该计算机可读指令被所述处理器执行时,使得一个或多个处理器执行以下步骤:获取独立信息元集合,独立信息元集合根据上述各个实施例中的信息元集合生成方法所生成;获取待匹配信息元队列,待匹配信息元队列包含多个原始信息元;将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;通过规则引擎执行待执行信息元队列中独立信息元所包含的规则。In one embodiment, there is also provided a memory and one or more processors having stored therein computer readable instructions that, when executed by the processor, cause one or more processors to perform the following Step: Acquire an independent information element set, and the independent information element set is generated according to the information element set generation method in each embodiment; obtain the information element queue to be matched, and the to-be-matched information element queue includes multiple original information elements; Each original information element in the meta-queue is matched with an independent information element in the independent information element set, and an information element queue to be executed is generated according to the matching result; the rule included in the independent information element in the information element queue to be executed is executed by the rule engine.
在一个实施例中,处理器所执行的将待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列的步骤,具体包括以下步骤:对待匹配信息元队列中的每个原始信息元与独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度;将匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相应原始信息元相匹配的独立信息元;根据与每个原始信息元匹配的独立信息元,生成与待匹配信息元队列相应的待执行信息元队列。In an embodiment, the step of matching, by the processor, the original information element in the information element queue to be matched with the independent information element in the independent information element set, and generating the information element queue to be executed according to the matching result, specifically The method includes the following steps: performing similarity calculation on each original information element in the matching information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity; the matching similarity is greater than the preset similarity threshold. The independent information element is an independent information element that matches the corresponding original information element; and the information element queue to be executed corresponding to the information element queue to be matched is generated according to the independent information element matched with each original information element.
在一个实施例中,上述的计算机设备可为服务器或终端。其中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群,终端可以是手机、平板电脑、个人数字助理或者智能设备等。如图10所示,为
一个实施例中计算机设备的内部结构示意图。该计算机设备可应用于图1的应用环境中的服务器102。该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。计算机设备的非易失性存储介质存储有操作系统、数据库和计算机可读指令。该数据库中可存储有用于实现上述各个实施例所提供的一种信息元集合生成方法和基于规则引擎的规则执行方法相关的数据,比如,独立信息元集合等。该计算机可读指令可被处理器所执行,以用于实现以上各个实施例所提供的一种信息元集合生成方法和基于规则引擎的规则执行方法。计算机设备中的内存储器为非易失性存储介质中的操作系统和计算机可读指令提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的终端或服务器进行网络连接。比如说该计算机设备可与图1的应用环境中的多个终端104通过网络接口进行网络连接。In one embodiment, the computer device described above can be a server or a terminal. The server may be an independent physical server or a server cluster composed of multiple physical servers, and the terminal may be a mobile phone, a tablet computer, a personal digital assistant, or a smart device. As shown in Figure 10,
A schematic diagram of the internal structure of a computer device in one embodiment. The computer device is applicable to the server 102 in the application environment of FIG. The computer device includes a processor coupled through a system bus, a non-volatile storage medium, an internal memory, and a network interface. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. A non-volatile storage medium of a computer device stores an operating system, a database, and computer readable instructions. The database may store data related to an information element set generation method and a rule engine-based rule execution method provided by the foregoing various embodiments, such as a set of independent information elements. The computer readable instructions are executable by a processor for implementing an information element set generation method and a rule engine based rule execution method provided by the above various embodiments. The internal memory in the computer device provides a cached operating environment for operating systems and computer readable instructions in a non-volatile storage medium. The network interface may be an Ethernet card or a wireless network card, etc., for network connection with an external terminal or server. For example, the computer device can be networked through a network interface with a plurality of terminals 104 in the application environment of FIG.
本领域技术人员可以理解,图10中示出的计算机设备的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。比如,该图中的计算机设备还可包括显示屏等。It will be understood by those skilled in the art that the structure of the computer device shown in FIG. 10 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The computer device may include more or fewer components than those shown in the figures, or some components may be combined, or have different component arrangements. For example, the computer device in the figure may also include a display screen or the like.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详
细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。
The above described embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed.
It is not to be construed as limiting the scope of the invention patent. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.
Claims (20)
- 一种信息元集合生成方法,包括:An information element set generation method includes:获取每个原始信息元集合中的原始信息元;Obtaining the original information element in each original information element set;对每两个原始信息元进行相似度计算,生成相应的原始相似度;及Performing a similarity calculation for each of the two original information elements to generate a corresponding original similarity;根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。And extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, and generating an independent information element set, where the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
- 根据权利要求1所述的方法,其特征在于,所述对每两个原始信息元进行相似度计算,生成相应的原始相似度,包括:The method according to claim 1, wherein the performing similarity calculation on each of the two original information elements to generate a corresponding original similarity comprises:提取每个原始信息元中的原始关键词;Extracting the original keywords in each original information element;获取与每个原始关键词相应的预设关键词权值;Obtaining preset keyword weights corresponding to each original keyword;根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量;及Generating an original information element vector with each original information element according to a corresponding preset keyword weight of each original information element;对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。The similarity calculation is performed on the original information element vector corresponding to each of the two original information elements, and the corresponding original similarity is generated.
- 根据权利要求2所述的方法,其特征在于,所述提取每个原始信息元中的原始关键词,包括:The method according to claim 2, wherein said extracting original keywords in each of the original information elements comprises:按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;及Each original information element is segmented according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。The original words in each original information element that match the preset keywords in the preset keyword library are used as original keywords.
- 根据权利要求2所述的方法,其特征在于,所述对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度,包括:The method according to claim 2, wherein the calculating the similarity of the original information element vector corresponding to each of the two original information elements to generate a corresponding original similarity comprises:对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似 度其中,W0k为第一信息元向量所对应的预设关键词权值,WAk为第二信息元向量所对应的预设关键词权值。First information element vector corresponding to every two original information elements Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
- 一种基于规则引擎的规则执行方法,包括:A rule execution method based on a rule engine, comprising:获取独立信息元集合,所述独立信息元集合根据权利要求1至4中任一项所述信息元集合生成方法所生成;Obtaining an independent information element set generated by the information element set generation method according to any one of claims 1 to 4;获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;Obtaining a message element queue to be matched, where the information element queue to be matched includes a plurality of original information elements;将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及Matching each original information element in the to-be-matched information element queue with an independent information element in the independent information element set, and generating a to-be-executed information element queue according to the matching result;通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。The rules included in the independent information element in the to-be-executed information element queue are executed by a rule engine.
- 根据权利要求5所述的方法,其特征在于,所述将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列,包括:The method according to claim 5, wherein the matching each original information element in the queue of information to be matched with the independent information element in the set of independent information elements, and generating a candidate according to the matching result Execute the information element queue, including:对所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度;Performing similarity calculation on each original information element in the to-be-matched information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity;将所述匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相应原始信息元相匹配的独立信息元;及And the independent information element corresponding to the matching similarity threshold is greater than the independent information element that matches the corresponding original information element; and根据与每个原始信息元匹配的独立信息元,生成与所述待匹配信息元队列相应的待执行信息元队列。And generating, according to the independent information element matched with each original information element, a to-be-executed information element queue corresponding to the to-be-matched information element queue.
- 一种信息元集合生成装置,其特征在于,所述装置包括:An information element set generating device, characterized in that the device comprises:原始信息元获取模块,用于获取每个原始信息元集合中的原始信息元;An original information element obtaining module, configured to acquire an original information element in each original information element set;原始相似度生成模块,用于对每两个原始信息元进行相似度计算,生成相应的原始相似度;及a raw similarity generating module, configured to perform similarity calculation on each of two original information elements to generate a corresponding original similarity; and独立信息元集合生成模块,用于根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。An independent information element set generating module, configured to extract independent information elements in the plurality of original information elements according to the plurality of original similarities, and generate an independent information element set, where the original two independent information elements are original The similarity is less than the preset similarity threshold.
- 一种基于规则引擎的规则执行装置,其特征在于,所述装置包括: A rule execution device based on a rule engine, characterized in that the device comprises:独立信息元集合获取模块,用于获取独立信息元集合,所述独立信息元集合根据权利要求1至4中任一项所述信息元集合生成方法所生成;An independent information element set obtaining module, configured to acquire an independent information element set, where the independent information element set is generated according to the information element set generating method according to any one of claims 1 to 4;待匹配信息元队列获取模块,用于获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;a to-be-matched information element queue obtaining module, configured to obtain a to-be-matched information element queue, where the to-be-matched information element queue includes a plurality of original information elements;待执行信息元队列生成模块,用于将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及The to-be-executed information element queue generating module is configured to match each original information element in the to-be-matched information element queue with an independent information element in the independent information element set, and generate a to-be-executed information element queue according to the matching result; and规则执行模块,用于通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。And a rule execution module, configured to execute, by using a rule engine, a rule included in the independent information element in the to-be-executed information element queue.
- 一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:获取每个原始信息元集合中的原始信息元;Obtaining the original information element in each original information element set;对每两个原始信息元进行相似度计算,生成相应的原始相似度;及Performing a similarity calculation for each of the two original information elements to generate a corresponding original similarity;根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。And extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, and generating an independent information element set, where the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
- 根据权利要求9所述的存储介质,其特征在于,所述处理器所执行的对每两个原始信息元进行相似度计算,生成相应的原始相似度的步骤,包括:The storage medium according to claim 9, wherein the step of performing similarity calculation on each of the two original information elements by the processor to generate a corresponding original similarity comprises:提取每个原始信息元中的原始关键词;Extracting the original keywords in each original information element;获取与每个原始关键词相应的预设关键词权值;Obtaining preset keyword weights corresponding to each original keyword;根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量;及Generating an original information element vector with each original information element according to a corresponding preset keyword weight of each original information element;对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。The similarity calculation is performed on the original information element vector corresponding to each of the two original information elements, and the corresponding original similarity is generated.
- 根据权利要求10所述的存储介质,其特征在于,所述处理器所执行 的提取每个原始信息元中的原始关键词的步骤,包括:A storage medium according to claim 10, wherein said processor executes The steps of extracting the original keywords in each of the original information elements, including:按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;及Each original information element is segmented according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。The original words in each original information element that match the preset keywords in the preset keyword library are used as original keywords.
- 根据权利要求10所述的存储介质,其特征在于,所述处理器所执行的对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度的步骤,包括:The storage medium according to claim 10, wherein the performing, by the processor, performing a similarity calculation on the original information element vector corresponding to each two original information elements, and generating a corresponding original similarity, comprises:对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似度其中,W0k为第一信息元向量所对应的预设关键词权值,WAk为第二信息元向量所对应的预设关键词权值。First information element vector corresponding to every two original information elements Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
- 一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:获取独立信息元集合,所述独立信息元集合根据权利要求1至4中任一项所述信息元集合生成方法所生成;Obtaining an independent information element set generated by the information element set generation method according to any one of claims 1 to 4;获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;Obtaining a message element queue to be matched, where the information element queue to be matched includes a plurality of original information elements;将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及Matching each original information element in the to-be-matched information element queue with an independent information element in the independent information element set, and generating a to-be-executed information element queue according to the matching result;通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。The rules included in the independent information element in the to-be-executed information element queue are executed by a rule engine.
- 根据权利要求13所述的存储介质,其特征在于,所述处理器所执行的将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列的步骤,包括: The storage medium according to claim 13, wherein each of the original information elements in the queue of information to be matched and the independent information elements in the set of independent information elements are matched by the processor. And generating, according to the matching result, the step of executing the information element queue, including:对所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度;Performing similarity calculation on each original information element in the to-be-matched information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity;将所述匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相应原始信息元相匹配的独立信息元;及And the independent information element corresponding to the matching similarity threshold is greater than the independent information element that matches the corresponding original information element; and根据与每个原始信息元匹配的独立信息元,生成与所述待匹配信息元队列相应的待执行信息元队列。And generating, according to the independent information element matched with each original information element, a to-be-executed information element queue corresponding to the to-be-matched information element queue.
- 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps:获取每个原始信息元集合中的原始信息元;Obtaining the original information element in each original information element set;对每两个原始信息元进行相似度计算,生成相应的原始相似度;及Performing a similarity calculation for each of the two original information elements to generate a corresponding original similarity;根据多个原始相似度提取出多个原始信息元中的独立信息元,生成独立信息元集合,所述独立信息元集合中的任意两个独立信息元的原始相似度小于预设相似度阈值。And extracting independent information elements in the plurality of original information elements according to the plurality of original similarities, and generating an independent information element set, where the original similarity of any two independent information elements in the independent information element set is less than a preset similarity threshold.
- 根据权利要求15所述的计算机设备,其特征在于,所述处理器所执行的对每两个原始信息元进行相似度计算,生成相应的原始相似度的步骤,包括:The computer device according to claim 15, wherein the step of performing similarity calculation on each of the two original information elements by the processor to generate a corresponding original similarity comprises:提取每个原始信息元中的原始关键词;Extracting the original keywords in each original information element;获取与每个原始关键词相应的预设关键词权值;Obtaining preset keyword weights corresponding to each original keyword;根据每个原始信息元相应的预设关键词权值,生成与每个原始信息元的原始信息元向量;及Generating an original information element vector with each original information element according to a corresponding preset keyword weight of each original information element;对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度。The similarity calculation is performed on the original information element vector corresponding to each of the two original information elements, and the corresponding original similarity is generated.
- 根据权利要求16所述的计算机设备,其特征在于,所述处理器所执行的提取每个原始信息元中的原始关键词的步骤,包括:The computer device according to claim 16, wherein the step of extracting the original keyword in each original information element performed by the processor comprises:按照预设的分词算法将每个原始信息元进行分词,生成对应的多个原始词语;及 Each original information element is segmented according to a preset word segmentation algorithm to generate a corresponding plurality of original words; and将每个原始信息元中与预设关键词库中的预设关键词匹配的原始词语,作为原始关键词。The original words in each original information element that match the preset keywords in the preset keyword library are used as original keywords.
- 根据权利要求16所述的计算机设备,其特征在于,所述处理器所执行的对每两个原始信息元相应的原始信息元向量进行相似度计算,生成相应的原始相似度的步骤,包括:The computer device according to claim 16, wherein the step of performing a similarity calculation on the original information element vector corresponding to each of the two original information elements, and generating a corresponding original similarity, comprising:对每两个原始信息元相应的第一信息元向量与第二信息元向量根据公式进行相似度计算,生成相应的原始相似度其中,W0k为第一信息元向量所对应的预设关键词权值,WAk为第二信息元向量所对应的预设关键词权值。First information element vector corresponding to every two original information elements Second information element vector According to the formula Perform similarity calculations to generate corresponding original similarities Where W 0k is the first information element vector Corresponding preset keyword weight, W Ak is the second information element vector The corresponding preset keyword weight.
- 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps:获取独立信息元集合,所述独立信息元集合根据权利要求1至4中任一项所述信息元集合生成方法所生成;Obtaining an independent information element set generated by the information element set generation method according to any one of claims 1 to 4;获取待匹配信息元队列,所述待匹配信息元队列包含多个原始信息元;Obtaining a message element queue to be matched, where the information element queue to be matched includes a plurality of original information elements;将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列;及Matching each original information element in the to-be-matched information element queue with an independent information element in the independent information element set, and generating a to-be-executed information element queue according to the matching result;通过规则引擎执行所述待执行信息元队列中独立信息元所包含的规则。The rules included in the independent information element in the to-be-executed information element queue are executed by a rule engine.
- 根据权利要求19所述的计算机设备,其特征在于,所述处理器所执行的将所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行匹配,根据匹配结果生成待执行信息元队列的步骤,包括:The computer device according to claim 19, wherein the processor performs matching to match each original information element in the to-be-matched information element queue with an independent information element in the independent information element set. And generating, according to the matching result, the step of executing the information element queue, including:对所述待匹配信息元队列中的每个原始信息元与所述独立信息元集合中的独立信息元进行相似度计算,生成相应的匹配相似度;Performing similarity calculation on each original information element in the to-be-matched information element queue and the independent information element in the independent information element set, and generating a corresponding matching similarity;将所述匹配相似度大于预设相似度阈值所对应的独立信息元,作为与相 应原始信息元相匹配的独立信息元;及And the matching similarity is greater than the independent information element corresponding to the preset similarity threshold, as the phase An independent information element that matches the original information element; and根据与每个原始信息元匹配的独立信息元,生成与所述待匹配信息元队列相应的待执行信息元队列。 And generating, according to the independent information element matched with each original information element, a to-be-executed information element queue corresponding to the to-be-matched information element queue.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711043201.X | 2017-10-31 | ||
CN201711043201.XA CN107862328A (en) | 2017-10-31 | 2017-10-31 | The regular execution method of information word set generation method and rule-based engine |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019085075A1 true WO2019085075A1 (en) | 2019-05-09 |
Family
ID=61696939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/112514 WO2019085075A1 (en) | 2017-10-31 | 2017-11-23 | Information element set generation method and rule execution method based on rule engine |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107862328A (en) |
WO (1) | WO2019085075A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115344776A (en) * | 2022-06-20 | 2022-11-15 | 广东艾矽易信息科技有限公司 | Social platform user violation wind control method and device and terminal equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114780592A (en) * | 2022-04-25 | 2022-07-22 | 中国银行股份有限公司 | Intelligent multidimensional data service method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239038A (en) * | 2014-08-26 | 2014-12-24 | 倪成胜 | EHK rule engine and realization method of EHK rule |
CN105740475A (en) * | 2016-03-16 | 2016-07-06 | 中山大学 | Web page transformation method and system |
CN106095913A (en) * | 2016-06-08 | 2016-11-09 | 广州同构医疗科技有限公司 | A kind of electronic health record text structure method |
CN107122382A (en) * | 2017-02-16 | 2017-09-01 | 江苏大学 | A kind of patent classification method based on specification |
-
2017
- 2017-10-31 CN CN201711043201.XA patent/CN107862328A/en active Pending
- 2017-11-23 WO PCT/CN2017/112514 patent/WO2019085075A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239038A (en) * | 2014-08-26 | 2014-12-24 | 倪成胜 | EHK rule engine and realization method of EHK rule |
CN105740475A (en) * | 2016-03-16 | 2016-07-06 | 中山大学 | Web page transformation method and system |
CN106095913A (en) * | 2016-06-08 | 2016-11-09 | 广州同构医疗科技有限公司 | A kind of electronic health record text structure method |
CN107122382A (en) * | 2017-02-16 | 2017-09-01 | 江苏大学 | A kind of patent classification method based on specification |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115344776A (en) * | 2022-06-20 | 2022-11-15 | 广东艾矽易信息科技有限公司 | Social platform user violation wind control method and device and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107862328A (en) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017215370A1 (en) | Method and apparatus for constructing decision model, computer device and storage device | |
US11727053B2 (en) | Entity recognition from an image | |
US10452702B2 (en) | Data clustering | |
CN111797210A (en) | User portrait-based information recommendation method, device, device and storage medium | |
WO2016180268A1 (en) | Text aggregate method and device | |
CN114780746A (en) | Knowledge graph-based document retrieval method and related equipment thereof | |
CN108304378A (en) | Text similarity computing method, apparatus, computer equipment and storage medium | |
JP2018518788A (en) | Web page training method and apparatus, search intention identification method and apparatus | |
US11301506B2 (en) | Automated digital asset tagging using multiple vocabulary sets | |
CN113657249B (en) | Training method, prediction method, device, electronic device and storage medium | |
CN110134965B (en) | Method, apparatus, device and computer readable storage medium for information processing | |
CN114444619B (en) | Sample generation method, training method, data processing method and electronic device | |
CN111507090A (en) | Abstract extraction method, apparatus, device, and computer-readable storage medium | |
CN111062431A (en) | Image clustering method, image clustering device, electronic device and storage medium | |
CN116933130A (en) | Enterprise industry classification method, system, equipment and medium based on big data | |
CN111651625A (en) | Image retrieval method, device, electronic device and storage medium | |
US11093447B2 (en) | Suggesting a destination folder for a file to be saved | |
CN114528588A (en) | Cross-modal privacy semantic representation method, device, equipment and storage medium | |
WO2019056496A1 (en) | Method for generating picture review probability interval and method for picture review determination | |
CN109213972B (en) | Method, device, equipment and computer storage medium for determining document similarity | |
WO2019085075A1 (en) | Information element set generation method and rule execution method based on rule engine | |
JP6563350B2 (en) | Data classification apparatus, data classification method, and program | |
CN110390011B (en) | Data classification method and device | |
CN114579580A (en) | Method for storing data, method and device for querying data | |
CN115169489B (en) | Data retrieval method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17930407 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25/09/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17930407 Country of ref document: EP Kind code of ref document: A1 |