Robustness code summary generation method based on self-attention mechanism

The invention discloses a robustness code summary generation method based on a self-attention mechanism. The method comprises the steps that firstly, high-quality codes and description corpus pairs (query description texts and reply code texts) in a programming community are extracted; then redundan...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: PENG MIN, YUAN MENGTING, WANG QING, QU JINSHUAI, HU GANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a robustness code summary generation method based on a self-attention mechanism. The method comprises the steps that firstly, high-quality codes and description corpus pairs (query description texts and reply code texts) in a programming community are extracted; then redundant information of the codes and description corpus pairs is filtered out; then the query descriptiontexts corresponding to the codes are converted into declarative statements; lastly, a code summary of a sequential model based on the self-attention mechanism is generated. The robustness code summarygeneration method based on the self-attention mechanism has the advantages that the redundant information and noise content can be effectively removed, the automatic evaluation and artificial evaluation accuracy of the generated summary are both improved, and the evaluation result is superior to that of an existing baseline method. 本发明公开了种基于自注意力机制的鲁棒性代码摘要生成方法,首先是编程社区高质量的代码及其描述语料对(查询描述的文本,回复代码的文本)的抽取;然后是代码及其描述语料对的冗余信息滤除;接着