| CPC G06F 8/41 (2013.01) [G06N 20/00 (2019.01)] | 20 Claims |

|
1. A method for source code understanding using spatial representations, comprising:
receiving, by a source code understanding computer program, a source code snippet;
converting, by the source code understanding computer program, the source code snippet to a matrix representation using an encoding technique, wherein the matrix representation encodes structural and contextual information of the source code snippet;
encoding, by the source code understanding computer program, the matrix representation into a three-dimensional image representation using one hot encoding or trainable embeddings;
determining, by the source code understanding computer program, a discriminative task for the source code snippet using a deep learning network; and
providing, by the source code understanding computer program, the discriminative task for the source code snippet to a downstream system.
|