Code abstract generation method and system based on multi-modal feature fusion
The invention belongs to the technical field of software maintenance, and particularly relates to a code abstract generation method and system based on multi-modal feature fusion. Comprising the following steps: obtaining a code and carrying out preprocessing and embedding processing on the code to...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention belongs to the technical field of software maintenance, and particularly relates to a code abstract generation method and system based on multi-modal feature fusion. Comprising the following steps: obtaining a code and carrying out preprocessing and embedding processing on the code to obtain three kinds of embedding of tokens, statements and CFG; extracting a multi-scale matrix of the CFG and carrying out weighted fusion on the multi-scale matrix to obtain a multi-scale fusion matrix; processing the three kinds of embedded and multi-scale fusion matrixes to obtain tokens features, statement features and multi-modal features; processing the tokens features and the statement features to obtain a cross fusion feature vector; processing the natural language description and the word position information thereof to obtain code description features; inputting the code description feature, the cross fusion feature vector and the multi-modal feature into a decoder for processing to obtain a decoding feat |
---|