Code readability evaluation method based on multi-dimensional features and hybrid neural network
A hybrid neural network and readability technology, applied in the field of code readability evaluation based on multi-dimensional features and hybrid neural networks, can solve the problems of high cost, inability to guarantee accuracy, low efficiency, etc. Strong generalization ability, easy to use effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0028] The present invention will be further described in detail below in conjunction with specific implementation examples and with reference to the accompanying drawings.
[0029] The present invention takes the readability of predicting a Java code fragment (as shown in the table below) as an example, and the specific implementation is as follows:
[0030]
[0031] Step 1: Character-level representation.
[0032] Step 1.1: Parsing the shown code snippet as a sequence of characters yields:
[0033] {p,u,b,l,i,c,,i,n,t,...}
[0034] Among them, "" represents a space.
[0035] Step 1.2: Encode the character sequence obtained in Step 1.1 using ASCII values to obtain:
[0036] {112,117,98,108,105,99,32,105,110,116,…}
[0037] Step 1.3: Alignment, convert the numerical sequence obtained in step 1.2 into a 50×300 two-dimensional matrix to obtain:
[0038]
[0039] Step 2: Term-level representation.
[0040] Step 2.1: Use srcML and regular expressions to parse the sho...
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