Code retrieval method and system based on graph neural network and computer readable storage medium
A neural network and code technology, applied in the field of neural networks, can solve the problems of incomplete feature extraction, poor accuracy, and no consideration of code semantics and structural information, so as to achieve complete feature extraction, improve accuracy, and shorten training time. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 As shown, the first aspect of the present invention provides a code retrieval method based on a graph neural network, comprising the following steps:
[0041] S1: Obtain code data and perform code integrity preprocessing;
[0042] It should be noted that the code integrity preprocessing completes incomplete code fragments by means of code instrumentation to obtain a complete code that can pass compilation. The code data may be java code.
[0043] S2: Extract sequence information, control flow graph information, and program dependency graph information of the preprocessed code respectively;
[0044] It should be noted that sequence information, control flow graph information, and program dependency graph information are respectively extracted from the preprocessed complete code.
[0045] S3: Use the sequence information of the code, the control flow graph information, and the program dependency graph information to construct the code graph of the code...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



