Unlock instant, AI-driven research and patent intelligence for your innovation.

A rule processing method and device

A processing method and rule grammar technology, applied in the field of electronics, can solve problems such as matching paths that are difficult to reach the optimum, and achieve the effect of optimizing the operation effect, the best matching path, and reducing the number of matching times.

Active Publication Date: 2018-12-28
ADVANCED NEW TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Under the diverse input parameters, the matching paths of the syntax tree are also diversified, and it is difficult to reach the optimal matching path.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A rule processing method and device
  • A rule processing method and device
  • A rule processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] As described in the background, after a traditional rule engine parses a rule and generates a rule syntax tree, the syntax tree is static. Under the diverse input parameters, the matching paths of the syntax tree are also diversified, and it is difficult to reach the optimal matching path. The present invention uses the matching success rate of rule nodes to quantify the matching situation of the rules, and adjusts the rule syntax tree by using the quantization method, so as to reach the optimal matching path.

[0022] like figure 1 As shown, it is a schematic flow chart of a rule processing method proposed by the present invention, including the following steps:

[0023] S101. Obtain a rule syntax tree corresponding to the rule to be processed.

[0024] S102. Substitute the original data in the rule operation context into each rule node in the rule syntax tree, and determine a matching success rate corresponding to each rule node.

[0025] Specifically, in this step...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a rule processing method, after a matching success rate corresponding to each rule node in a rule syntax tree corresponding to a rule to be processed is determined, the matching success rates of a left rule node and a right rule node of each logic operation relationship in the rule syntax tree are compared, finally, the positions of the left rule node and the right rule node of the logic operation relationship are regulated according to the type of the logic operation relationship and a matching success rate comparison result so as to achieve an optimal matching path, the matching frequencies of the rule nodes in a subsequent process are lowered, and a rule engine operation effect is optimized.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to a rule processing method. The present invention also designs a rule processing device at the same time. Background technique [0002] A rule engine is a device that performs rule matching operations based on a set of rule sets and rule operation contexts. It is a component embedded in an application, which separates business decisions from application code and uses predefined semantic modules. Write business decisions. Accept data input, interpret business rules, and make business decisions based on business rules. [0003] To use the rule engine, the rule operation context and rules must be prepared in advance. The former is the original data used for rule operation, such as {A=0, B=6, C=10} such a data set; the latter is composed of multiple rule nodes The formed logical operation expression is in the form of (A=0&&B>5)||C! =10. Since a rule is a string of logical e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/30
Inventor 陈显铭
Owner ADVANCED NEW TECH CO LTD