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:
May. 17, 2022

Filed:

May. 03, 2019
Applicant:

International Business Machines Corporation, Armonk, NY (US);

Inventors:

David Wehr, Sigourney, IA (US);

Eleanor Pence, Cambridge, MA (US);

Halley Fede, Cambridge, MA (US);

Isabella Yamin, San Francisco, CA (US);

Alexander Sobran, Sunnyvale, CA (US);

Bo Zhang, Cary, NC (US);

Attorneys:
Primary Examiner:
Int. Cl.
CPC ...
G06F 11/00 (2006.01); G06F 11/36 (2006.01); G06N 3/08 (2006.01); G06F 8/41 (2018.01);
U.S. Cl.
CPC ...
G06F 11/3608 (2013.01); G06F 8/427 (2013.01); G06N 3/08 (2013.01);
Abstract

A computer-implemented method, system and computer program product for representing source code in vector space. The source code is parsed into an abstract syntax tree, which is then traversed to produce a sequence of tokens. Token embeddings may then be constructed for a subset of the sequence of tokens, which are inputted into an encoder artificial neural network ('encoder') for encoding the token embeddings. A decoder artificial neural network ('decoder') is initialized with a final internal cell state of the encoder. The decoder is run the same number of steps as the encoding performed by the encoder. After running the decoder and completing the training of the decoder to learn the inputted token embeddings, the final internal cell state of the encoder is used as the code representation vector which may be used to detect errors in the source code.


Find Patent Forward Citations

Loading…