| CPC G06F 8/33 (2013.01) [G06F 16/9027 (2019.01); G06F 17/16 (2013.01); G06F 17/18 (2013.01); G06N 3/088 (2013.01); G06N 5/04 (2013.01); G06F 8/35 (2013.01); G06F 8/71 (2013.01); G06F 8/75 (2013.01); G06N 3/045 (2023.01); G06N 3/084 (2013.01)] | 14 Claims |

|
1. A system comprising:
a processor; and
a memory that stores a program that is configured to be executed by the processor, wherein the program comprises instructions to perform actions that:
continuously track characters entered into a source code program during an editing process; and
at a position in a line of the source code program, detect a partially-formed line of source code;
search for at least one candidate sequence to complete the line of source code, wherein the at least one candidate sequence comprises a sequence of source code tokens, wherein the search generates the at least one candidate sequence to complete the line of source code based on a conditional probability generated by a neural transformer model with attention at each time step of the search, wherein the conditional probability indicates a likelihood of a next source code token to follow preceding source code tokens in a candidate sequence, wherein the neural transformer model with attention is given a context of the line of source code, wherein the neural transformer model with attention is trained to learn the syntax and relationships between code elements of different programming languages; and
output the at least one candidate sequence for user selection in a user interface of the editing process.
|