API recommendation method and device based on information-enhanced call sequence
A technology of calling sequence and information enhancement, applied in the field of data processing, can solve the problems affecting the accuracy of recommendation, lack of information, etc., and achieve the effect of accurate new vector representation of API
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Embodiment 1 provides an API recommendation method based on information enhancement call sequence, such as figure 1 As shown, the method includes the following steps:
[0027] Data preprocessing: parse the source code to extract the original API call sequence, obtain the corresponding relationship between user-defined API and non-custom API according to the original API call sequence, and obtain the enhanced API call sequence;
[0028] In the specific implementation process, the data preprocessing part is used to parse the source code and obtain the three inputs required by the neural network, the original API call sequence and the original API call sequence to obtain the corresponding relationship between the user-defined API and the underlying non-custom API that implements functions And enhance the API call sequence, in which the static analysis tool Eclipse JDT is used to parse the source code, identify the function body in the source code, take the API call sequenc...
Embodiment 2
[0053] This embodiment describes an apparatus corresponding to the method according to Embodiment 1 of the present disclosure, an API recommendation apparatus based on information-enhanced call sequences. The apparatus 100 includes: a data preprocessing module 101, configured to parse the source code to extract the original API call sequence, The corresponding relationship between the user-defined API and the underlying non-custom API that implements the same function is obtained according to the original API calling sequence, and the enhanced API calling sequence is obtained; the API calling sequence represents the learning module 102, and the original API calling sequence and the The enhanced API call sequences are respectively put into the neural network embedding layer to obtain the original sequence representation vector and the first enhanced sequence representation vector, and the first enhanced sequence representation vector is input into the first encoder of the neural ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - 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



