Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
RULE MATCHING METHOD, RULE MATCHING APPARATUS, STORAGE MEDIUM AND ELECTRONIC DEVICE
Document Type and Number:
WIPO Patent Application WO/2021/063089
Kind Code:
A1
Abstract:
A rule matching method, a rule matching apparatus, a storage medium and an electronic device (50). The method comprises: performing, using matching text information, iterative rule matching in a rule library, wherein each round of rule matching is used for the matching of a rule in the rule library, and each rule is configured with a corresponding first wildcard; if a matching result of the ith round of rule matching satisfies a preset condition, selecting at least one first rule from rules matched during the ith round of rule matching, and replacing part of text information, successfully matched with each first rule, in corresponding matched text information with the first wildcard corresponding to the first rule, so as to generate matching text information required for the (i+1)th round of rule matching; if a matching result of the ith round of rule matching meets a preset condition, selecting at least one first rule from rules matched by the ith round of rule matching, and replacing part of text information, in corresponding matched text information, successfully matched with each first rule with the first wildcard corresponding to the first rule, so as to generate matching text information required for the (i+1)th round of rule matching; and if a matching result of the ith round of rule matching meets a preset condition, selecting at least one first rule from rules matched by the ith round of rule matching, and replacing part of text information, in corresponding matched text information, successfully matched with each first rule with the first wildcard corresponding to the first rule, so as to generate matching text information required for the (i+1)th round of rule matching; and if the matching result of the ith round of rule matching does not satisfy the preset condition, stopping iteration, and respectively determining, on the basis of a preset scoring mechanism, a target rule from the rules matched after each round of rule matching. By means of the method, the number of rules that need to be written into a question and answer rule library can be reduced.

Inventors:
CHEN KAIJI (CN)
WANG JIAKAI (CN)
SUN ZHONG (CN)
DING YONG (CN)
Application Number:
PCT/CN2020/103843
Publication Date:
April 08, 2021
Filing Date:
July 23, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HUAWEI TECH CO LTD (CN)
International Classes:
G06F16/33
Foreign References:
US20050043942A12005-02-24
CN101286988A2008-10-15
CN102377690A2012-03-14
CN106446230A2017-02-22
CN109918676A2019-06-21
US20090119584A12009-05-07
Attorney, Agent or Firm:
UNI-INTEL PATENT AND TRADEMARK LAW FIRM (CN)
Download PDF: