Patent · US Active

Using natural language latent representation in automated conversion of source code from base programming language to target programming language

US11693637B1 · kind B1 · utility

11Cited by
1References
20Claims
0Family size

Assignee

Inventors

Key dates

Filing dateMay 13, 2021
Grant dateJul 4, 2023
Priority date
Expiry dateDec 24, 2041

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06N7/01
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

Using a natural language (NL) latent presentation in the automated conversion of source code from a base programming language (e.g., C++) to a target programming language (e.g., Python). A base-to-NL model can be used to generate an NL latent representation by processing a base source code snippet in the base programming language. Further, an NL-to-target model can be used to generate a target source code snippet in the target programming language (that is functionally equivalent to the base source code snippet), by processing the NL latent representation. In some implementations, output(s) from the NL-to-target model indicate canonical representation(s) of variables, and in generating the target source code snippet, technique(s) are used to match those canonical representation(s) to variable(s) of the base source code snippet. In some implementations, multiple candidate target source code snippets are generated, and a subset (e.g., one) is selected based on evaluation(s).

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.