Aligning natural language to linking code snippets to perform a complicated task
First Claim
Patent Images
1. A system comprising:
- a processor;
a data bus coupled to the processor;
and a computer-usable medium embodying computer program code, the computer-usable medium being coupled to the data bus, the computer program code used for analyzing and deducing criteria-related content for evaluation in a system capable of answering questions and comprising instructions executable by the processor and configured for;
decomposing a natural language statement into a plurality of decomposed natural language components, the natural language statement relating to a complicated task, the complicated task comprising a plurality of sub-tasks, each of the plurality of sub-tasks corresponding to a respective decomposed natural language component, the decomposing comprising parsing the natural language statement into terms and parts of speech;
searching a repository of code snippets to identify code snippets corresponding to each of the plurality of sub-tasks corresponding to the respective decomposed natural language components;
ordering execution of the code snippets based upon the sub-tasks corresponding to the plurality of decomposed natural language components to perform the complex task, the complex task being performed using a computer executable algorithm, the computer executable algorithm comprising the code snippets identified as corresponding to each of the plurality of sub-tasks;
analyzing the plurality of decomposed natural language components for variables and values; and
,associating any identified variables and values with a particular code snippet based upon the analyzing; and
wherein the associating includes matching data types to input types for code snippets, matching outcome types to output types, matching data types to a particular programming language of a code snippet and determining parameters to associate with the code snippet.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, system and computer-usable medium for linking a set of executable code snippets to perform a complicated task, comprising: decomposing a natural language statement into a plurality of decomposed natural language components; searching a repository of code snippets to identify code snippets corresponding to each of the decomposed natural language components; ordering execution of the code snippets based upon the plurality of decomposed natural language components; and, executing the code snippets in order of the natural language statement requests until a final outcome is achieved.
22 Citations
12 Claims
-
1. A system comprising:
-
a processor; a data bus coupled to the processor; and a computer-usable medium embodying computer program code, the computer-usable medium being coupled to the data bus, the computer program code used for analyzing and deducing criteria-related content for evaluation in a system capable of answering questions and comprising instructions executable by the processor and configured for; decomposing a natural language statement into a plurality of decomposed natural language components, the natural language statement relating to a complicated task, the complicated task comprising a plurality of sub-tasks, each of the plurality of sub-tasks corresponding to a respective decomposed natural language component, the decomposing comprising parsing the natural language statement into terms and parts of speech; searching a repository of code snippets to identify code snippets corresponding to each of the plurality of sub-tasks corresponding to the respective decomposed natural language components; ordering execution of the code snippets based upon the sub-tasks corresponding to the plurality of decomposed natural language components to perform the complex task, the complex task being performed using a computer executable algorithm, the computer executable algorithm comprising the code snippets identified as corresponding to each of the plurality of sub-tasks; analyzing the plurality of decomposed natural language components for variables and values; and
,associating any identified variables and values with a particular code snippet based upon the analyzing; and
wherein the associating includes matching data types to input types for code snippets, matching outcome types to output types, matching data types to a particular programming language of a code snippet and determining parameters to associate with the code snippet. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A non-transitory, computer-readable storage medium embodying computer program code, the computer program code comprising computer executable instructions configured for:
-
decomposing a natural language statement into a plurality of decomposed natural language components, the natural language statement relating to a complicated task, the complicated task comprising a plurality of sub-tasks, each of the plurality of sub-tasks corresponding to a respective decomposed natural language component, the decomposing comprising parsing the natural language statement and the plurality of decomposed natural language components comprise terms and parts of speech; searching a repository of code snippets to identify code snippets corresponding to each of the plurality of sub-tasks corresponding to the respective decomposed natural language components; ordering execution of the code snippets based the sub-tasks corresponding to upon the plurality of decomposed natural language components to perform the complex task, the complex task being performed using a computer executable algorithm, the computer executable algorithm comprising the code snippets identified as corresponding to each of the plurality of sub-tasks; analyzing the plurality of decomposed natural language components for variables and values; and
,associating any identified variables and values with a particular code snippet based upon the analyzing; and
wherein the associating includes matching data types to input types for code snippets, matching outcome types to output types, matching data types to a particular programming language of a code snippet and determining parameters to associate with the code snippet. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
Specification