Method for automatically generating submission demand abstract based on strategy gradient algorithm

A gradient algorithm and automatic generation technology, applied in neural learning methods, biological neural network models, unstructured text data retrieval, etc., can solve the problem of not considering the word reward situation, the gap with the target sequence, and not meeting human evaluation standards and other problems, to achieve the effect of accurate description of submitted requirements and increased logical structure

A gradient algorithm and automatic generation technology, applied in neural learning methods, biological neural network models, unstructured text data retrieval, etc., can solve the problem of not considering the word reward situation, the gap with the target sequence, and not meeting human evaluation standards and other problems, to achieve the effect of accurate description of submitted requirements and increased logical structure

CN111291175AActive Publication Date: 2020-06-16DALIAN MARITIME UNIVERSITY

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically generating submission demand abstract based on strategy gradient algorithm
  • Method for automatically generating submission demand abstract based on strategy gradient algorithm
  • Method for automatically generating submission demand abstract based on strategy gradient algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the embodiments of the present invention:

[0014] Such as figure 1 A method for automatically generating a summary of submission requirements based on a strategy gradient algorithm is shown, which specifically includes the following steps:

[0015] S1: Collect submission requirements data from GitHub, for each submission requirement, retrieve its submission requirement summary and submission information, and analyze its submitted patches, extract the comments added in each patch, and build the source sequence and target Sequence, the source sequence is a combination of submission information and source code comments and its text semantic tree, and the target sequence is a summary of submission requirements. Filter out trivial and te...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for automatically generating a submission demand abstract based on a strategy gradient algorithm. The method comprises the steps of extracting submission information and source code annotation in a submission demand relationship and a text semantic tree structure corresponding to the submission information and the source code annotation; encoding into a hidden state through a bidirectional recurrent neural network encoder; mapping into a vector sequence with a fixed length; and carrying out soft control between a word selected from a vocabulary table and a wordcopied from a source sequence through the generation probability of the vocabulary by using a pointer generator to obtain final vocabulary distribution. A strategy gradient algorithm with a base lineis combined with N times of Monte Carlo search; the method comprises the following steps: calculating an average reward containing a sequence of an action through N times of Monte Carlo search, finding out an action sequence with the maximum average reward, taking the action as an action to be selected, performing the action according to the action to obtain a complete sequence, updating a strategy gradient by utilizing a difference value between the sequence searched by Monte Carlo search and a baseline sequence, and finally generating a submission demand abstract.

Description

technical field [0001] The invention relates to the technical field of information data processing, in particular to a method for automatically generating a summary of submission requirements based on a strategy gradient algorithm. Background technique [0002] A commit-based development model, popular on modern collaborative coding platforms, eases the developer's contribution to the project. In this model, the developer does not need to directly access the central repository to contribute to the project. He only needs to Clone the central repository by yourself, make changes independently in the central repository of personal clones, such as fixing bugs or implementing functions, and then submit the changes to the central repository by submitting requirements, and then the reviewers of the central repository review the submitted requirements Review, and if the review passes, the developer has made a contribution to the project. So developers can easily contribute to the m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
16 Jun 2020
Publication
CN111291175A
IPC
G06F16/34; G06N3/04; G06N3/08
CPC
G06F16/345; G06N3/08; G06N3/045
Inventors
李辉; 王思文