CPC G06F 8/51 (2013.01) [G06F 8/42 (2013.01); G06F 11/3616 (2013.01); G06N 3/0455 (2023.01); G06N 3/08 (2013.01)] | 20 Claims |
1. A method implemented using one or more processors and comprising:
processing an original source code snippet in a first programming language using a translation machine learning model to generate a first translation of the original source code snippet in a second programming language;
evaluating the first translation of the original source code snippet to identify one or more errors in the first translation of the original source code snippet;
based on the one or more errors in the first translation of the original source code snippet, inserting one or more respective masks to generate a masked first translation of the original source code snippet in the second programming language; and
processing the masked first translation of the original source code snippet using the translation machine learning model to generate a second translation of the original source code snippet in the second language, wherein the second translation includes one or more infills of corrected source code in place of one or more of the masks.
|