Method for learning function hierarchy embedding representation in source codes in hyperbolic space

A technology that embeds representation and source code, applied in the field of network research, to solve problems such as lack of hierarchical information and space

Active Publication Date: 2019-06-07
CENT SOUTH UNIV
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the deficiencies of existing research methods, the present invention provides a method for learning the hierarchical embedding representation of functions in source codes in hyperbolic space, which solves the problems of lack of hierarchical information and insufficient space in existing research methods

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for learning function hierarchy embedding representation in source codes in hyperbolic space
  • Method for learning function hierarchy embedding representation in source codes in hyperbolic space
  • Method for learning function hierarchy embedding representation in source codes in hyperbolic space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0062] The present invention is mainly based on the function call graph we constructed, which is a graph data structure with hierarchical information. Combining the Ridge curvature that can contain structural information as a weight, we can learn an effective function embedding representation in a hyperbolic space, which is the source The field of code research pioneered a new approach. At the same time, it improves the time and space efficiency ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for learning function hierarchy embedding representation in a source code in a hyperbolic space. The method comprises the following steps: S1, data collection and construction stage, S2, a Richi curvature analysis stage; S3, a Poincare model learning function embedding representation stage., The latest data mining technology, dimension reduction technology, deep learning processing technology and visualization technology are applied to hyperbolic space function embedded learning, and mass data, such as source code data can be effectively contained; data dimension reduction is efficiently and accurately achieved, and then hierarchical information is visually analyzed..

Description

technical field [0001] The invention relates to the technical field of network research, in particular to a function-level embedding representation method for learning source codes in a hyperbolic space. Background technique [0002] The successful application of distributed representations in natural language processing and the naturalness assumption have inspired researchers to apply distributed representations to source code mining. Most existing work on learning distributed representations from source code typically treats programs as sequences of symbols or bags of words. Some of them first parse the program to obtain the corresponding Abstract Syntax Tree (AST), which is suitable for tree-based neural networks or expand the AST to a graph for further processing. According to these underlying neural network models, existing works can generally be classified into the following categories: feed-forward neural networks, recurrent neural networks, convolutional neural netw...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/75G06K9/62
Inventor 刘燕鲁鸣鸣何小贤毕文杰刘海英
Owner CENT SOUTH UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products