The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Aug. 26, 2025

Filed:

Jan. 28, 2022
Applicant:

Salesforce, Inc., San Francisco, CA (US);

Inventors:

Akhilesh Deepak Gotmare, Singapore, SG;

Junnan Li, Singapore, SG;

Chu Hong Hoi, Singapore, SG;

Assignee:

Salesforce, Inc., San Francisco, CA (US);

Attorney:
Primary Examiner:
Assistant Examiner:
Int. Cl.
CPC ...
G06F 40/151 (2020.01); G06F 40/30 (2020.01); G06F 40/40 (2020.01); G06N 3/04 (2023.01);
U.S. Cl.
CPC ...
G06F 40/151 (2020.01); G06F 40/30 (2020.01); G06F 40/40 (2020.01); G06N 3/04 (2013.01);
Abstract

Embodiments are directed to translating a natural language query into a code snippet in a programing language that semantically represents the query. The embodiments include a cascading neural network that includes an encoder network and a classifier network. The encoder network being faster but less accurate than the classifier network. The encoder network is trained using a contrastive learning framework to identify code candidates from a large set of code snippets. The classifier network is trained using a binary classifier to identify the code snippet that semantically represents the query from the code candidates.


Find Patent Forward Citations

Loading…