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.
Claims20
A query selection method specifically for querying data from one or more databases, implemented on a hardware which has at least one processor and a storage device, comprising:
- obtaining, by the at least one processor, a natural sentence;
- generating, by the at least one processor, a standard node sequence based on the natural sequence, the standard node sequence including multiple index nodes and at least one condition node, wherein each of the multiple index nodes corresponds to one of the one or more database, the at least one condition node including at least one of a number node, a date node, or a character string node;
- generating, by the at least one processor, a data query command based on the standard node sequence and a relationship between at least one index node of the multiple index nodes and the at least one condition node;
- and
- querying, by the at least one processor, data using the data query command from the one or more databases to obtain a query result.
A query selection system specifically configured to query data from one or more databases, including a storage device storing a set of instructions, and at least one processor when executing the instructions causing the system to:
- obtain a natural sentence;
- generate a standard node sequence based on the natural sequence, the standard node sequence including multiple index nodes and at least one condition node, wherein each of the multiple index nodes corresponds to one of the one or more database, the at least one condition node including at least one of a number node, a date node, or a character string node;
- generate a data query command based on the standard node sequence and a relationship between at least one index node of the multiple index nodes and the at least one condition node;
- and
- query data using the data query command from the one or more databases to obtain a query result.
A non-transitory computer readable medium, storing instructions compatible for querying data from one or more databases, wherein when executed by a processor, the instructions causes the processor to execute operations comprising:
- obtaining a natural sentence;
- generating a standard node sequence based on the natural sequence, the standard node sequence including multiple index nodes and at least one condition node, wherein each of the multiple index nodes corresponds to one of the one or more database, the at least one condition node including at least one of a number node, a date node, or a character string node;
- generating a data query command based on the standard node sequence and a relationship between at least one index node of the multiple index nodes and the at least one condition node;
- and
- querying data using the data query command from the one or more databases to obtain a query result.
Dependencies are inferred from the claim text.