Code classification method based on neural network linguistic model
A language model, code classification technology, applied in the field of code classification based on neural network language model, can solve problems such as dimensional disaster
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0050] All the features disclosed in this specification, except mutually exclusive features and / or steps, can be combined in any way.
[0051] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0052] A code classification method based on a neural network language model, comprising the following steps:
[0053] Step 1: Use the tool pycparser to convert the code into an AST tree (Abstract Syntax Tree).
[0054] Step 2: Initialize AST tree node c i The vector vec(c i ), that is, assign a random value vector to each node in the AST tree; the node c i Central African leaf node p k The vector is vec(p k ) 1 , the non-leaf node p k child node t x The vector of vec(t x ), where vec(p k ) 1 ∈vec(c i ), vec(t x )∈vec(c i ), where i represents the sequence number of the node, k represents the sequence number of the non-leaf node, and x represents the sequence number of the child node.
[0055] Step 3: In order to make ...
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