| CPC G06F 40/30 (2020.01) [G06F 40/205 (2020.01); G06F 40/55 (2020.01); G06F 40/58 (2020.01)] | 20 Claims |

|
1. A computer-implemented method of automatically generating an instruction code based on a natural language utterance using a pre-trained natural language model, the method comprising:
receiving the natural language utterance;
identifying, based on relevance between the received natural language utterance and a pair of a query utterance and an answer utterance, the pair of the query utterance and the answer utterance, wherein the query utterance is distinct from the received natural language utterance;
generating, based at least on a combination of the received natural language utterance and the identified pair of the query utterance and the answer utterance as input to the pre-trained natural language model, a canonical utterance using the pre-trained natural language model, wherein the pre-trained natural language model performs prediction of words based on the received natural language utterance, the identified pair of the query utterance and the answer utterance represents an example of a natural language utterance input and output to influence predicting the words by the pre-trained natural language model without further training the pre-trained natural language model, the output is in canonical form and is previously generated at least in part by the pre-trained natural language model in response to the query utterance, and the canonical utterance includes, at least in part, a sequence of words based at least on the words predicted by the pre-trained natural language model and a constraint associated with the sequence of words;
generating, based on the generated canonical utterance, the instruction code, wherein the instruction code is executable by a processor;
executing, by the processor, the instruction code;
generating, based on a result of the executing the instruction code, a response; and
transmitting the response.
|