Query selection method and system
AssigneeHithink Royalflush Information Network Co., Ltd.
InventorsZheng Yi, Wei Xia, Zhiwei TAO
Life of this patent
Estimating the term…
Abstract
A system and method for query selection are provided. The method may include acquiring a natural language sentence, pre-processing to obtain a standard node sequence, constructing a node tree based on the relationship between an index node and other nodes, generating a data query command based on the node tree, querying data using the data query command, and filtering the results. The standard node sequence may include at least an index node and a condition node. The node tree may be used to characterize the index-condition combination. The system may include an acquisition unit, a pre-processing unit, a node tree construction unit, a translation unit, and a querying and filtering unit.
Claims9
A query selection method comprising:
- obtaining a natural sentence provided by a user;
- pre-processing the natural sentence provided by the user and obtaining a standard node sequence, wherein the node comprises at least an index node and a condition node, wherein the condition node further comprises at least one of a number node, a date node, or a character string node;
- constructing a node tree according to the relationship between an index node and other nodes, wherein the node tree is configured to represent an index-condition combination;
- generating a data query command according to the node tree;
- and
- querying data using the data query command, and filtering the query result to obtain a filtered result.
A query selection system, comprising,
- an acquisition unit, configured to acquire a natural language sentence provided by a user;
- a pre-processing unit, configured to pre-process the natural sentence provided by the user, and obtain a standard node sequence, wherein the node comprises at least an index node and a condition node, wherein the condition node further comprises at least one of a number node, a date node, or a character string node;
- a node tree construction unit, configured to construct a node tree according to the relationship between an index node and other nodes, wherein the node tree is configured to represent an index-condition combination;
- a translation unit, configured to translate the node tree into a data query command;
- and
- a querying and filtering unit, configured to query data using the data query command, and filter the query result to obtain a filtered result.
Dependencies are inferred from the claim text.