Interactive API code snippet recommendation method based on deep learning
A code snippet, deep learning technology, applied in the field of interactive API code snippet recommendation, which can solve problems such as difficulty in being familiar with usage patterns
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0035] A specific embodiment for the Java program and the JDK API is as follows.
[0036] (1) The implementation of code representation parsing is to use JavaParser to parse the Java code with the statement as the basic unit to obtain AST (Abstract Syntax Tree), use the visitor mode to traverse the nodes of the AST corresponding to each statement, and use the Java reflection mechanism to obtain the API The complete list to extract the API, so as to get the complete method signature of the API. According to the control flow and data flow relationship between APIs, the graph structure representation of the code can be obtained. Based on the graph structure representation of the code and following a certain traversal order, the serialized representation of the code can be obtained.
[0037] (2) Heuristic beam search is implemented based on the Java language. The API obtained by decoding at each step will be judged by heuristic rules 1 and 2, and the API code fragments in the can...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap