A Code Classification Method Based on Neural Network Language Model
A technology of language model and code classification, which is applied in the field of code classification based on neural network language model, and can solve problems such as the curse of dimensionality
- 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
- 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