Method for automatically generating Java code annotation based on Transformer and mixed code representation
An automatic generation and code representation technology, applied in code compilation, program code conversion, instruments, etc., can solve the problems of increased software development and maintenance costs, poor program readability, poor understandability, etc., to improve the quality of software products and facilitate the The effect of duplicating and speeding up the maintenance process
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] see Figure 1 to Figure 3 The technical solution provided by the present invention is a method for automatically generating Java code annotations based on Transformer and mixed code representation, which includes the following steps:
[0025] S1. Download the Java project and build the code library;
[0026] S2. In the serialization processing layer, based on AST traversal, it is converted into code token vector and SBT vector;
[0027] To address insufficient vocabulary, identifiers from code tokens and AST nodes are split into words based on camelCase;
[0028] S3. At the encoding layer, use a Code encoder and an SBT encoder, the Code encoder extracts lexical information from the source code, and uses the SBT encoder to obtain the structural information of the code;
[0029] S4. At the decoding layer, the semantic information is decoded to generate annotations.
[0030] As a further optimization scheme of the Java code annotation automatic generation...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com