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

Rule matching method and device

A matching method and technology of rules, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as low matching efficiency, and achieve the effect of speeding up rule matching speed, improving rule matching efficiency, and solving low matching efficiency.

Inactive Publication Date: 2017-06-20
BEIJING GRIDSUM TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a rule matching method and device to at least solve the technical problem of low matching efficiency caused by the fixed order of each rule in the related art

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
  • Rule matching method and device
  • Rule matching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] According to an embodiment of the present invention, a method embodiment of a rule matching method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0025] figure 1 is a flowchart of an optional rule matching method according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0026] Step S102, obtain the current rule set during the current rule matching process, wherein the current rule set is obtained by sorting the rules according to the matching times of each rule in the previous rule set within a preset time period, and in A collection of rules used in this rule matching process;

[0027] St...

Embodiment 2

[0051] According to an embodiment of the present invention, a device embodiment of a rule matching device is provided.

[0052] figure 2 is a schematic diagram of an optional rule matching device according to an embodiment of the present invention, such as figure 2 As shown, the device includes: a first acquisition unit 202, configured to acquire the current rule set during the current rule matching process, wherein the current rule set is the number of matches within a preset time period according to each rule in the previous rule set , the set of rules obtained by sorting the rules and used in this rule matching process; the second acquisition unit 204 is used to acquire the corpus that needs to perform the rule matching operation; the matching unit 206 is used to use the current rule The set performs rule matching on the corpus that needs to perform rule matching operations.

[0053] A rule set is a collection of rules. Usually, each rule set can include several rules a...

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 matching method and device. The method includes: acquiring a current rule set during rule matching, wherein the current rule set is the matching time of rules of a previous rule set in the preset time period and the set for the rules used in rule matching is acquired from sorting of the rules; acquiring the languages for executing rule matching operation; performing rule matching on the languages for executing the rule matching operation with the current rule set. By the arrangement, the technical problem about low matching efficiency due to fixed sequence of the rules in relevant technologies is solved.

Description

technical field [0001] The present invention relates to the field of natural language processing, in particular to a rule matching method and device. Background technique [0002] In structured data, using rules to extract or mark information has the advantages of speed and simplicity. Therefore, modules using rules still occupy a large market share. Rule matching is usually performed according to the order in which the rules are listed. But if the corpus is different, different rules need to match different times, so the matching speed is limited by the order of the rules. [0003] In related technologies, the rule matching mechanism needs to fix the order of the rules in advance, and then adopts a dictionary matching mode for new sentences. The entire matching process needs to traverse all the rules in the rule set. For example, assuming that N is the size of the rule set, each sentence needs to be traversed N times during matching, where the size of the rule set is repr...

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 Applications(China)
IPC IPC(8): G06F17/27
CPCG06F40/211
Inventor 徐文斌何鑫
Owner BEIJING GRIDSUM TECH CO LTD