Generating structured queries from natural language text
AssigneeInternational Business Machines Corporation
InventorsDhruv A. Bhatt, David B. Werts
Life of this patent
Estimating the term…
Abstract
Generating structured queries from natural language text may include receiving, using a processor, a natural language text input directed to a database management system and, using the processor, performing natural language processing on the natural language text input using an Unstructured Information Management Architecture. The natural language processing may annotate the natural language text input according to a structure of the database management system. A database operation and query elements may be determined using a processor from the annotated natural language text input. A structured query may be created, using the processor, for the database management system that implements the database operation using the query elements.
Claims21
1-20. (canceled)
A computer-implemented method, comprising:
- receiving a natural language text input directed to a database management system;
- performing natural language processing on the natural language text input by annotating the natural language text input with annotations that are based upon a query structure of the database management system;
- determining, from the annotations, a database operation;
- determining, from the annotations, query elements;
- and
- creating, using the query elements determined from the annotations, a structured query that implements the database operation on the database management system, wherein
- the query elements are directly included in the structured query.
A computer hardware system, comprising:
- a hardware processor programmed to initiate the following executable operations:
- receiving a natural language text input directed to a database management system;
- performing natural language processing on the natural language text input by annotating the natural language text input with annotations that are based upon a query structure of the database management system;
- determining, from the annotations, a database operation;
- determining, from the annotations, query elements;
- and
- creating, using the query elements determined from the annotations, a structured query that implements the database operation on the database management system, wherein
- the query elements are directly included in the structured query.
A computer program product, comprising:
- a computer readable storage medium having program code stored thereon,
- the program code executable by a computer hardware system to perform:
- receiving a natural language text input directed to a database management system;
- performing natural language processing on the natural language text input by annotating the natural language text input with annotations that are based upon a query structure of the database management system;
- determining, from the annotations, a database operation;
- determining, from the annotations, query elements;
- and
- creating, using the query elements determined from the annotations, a structured query that implements the database operation on the database management system, wherein
- the query elements are directly included in the structured query.
Dependencies are inferred from the claim text.