Automatic Generation of Program Comments Based on Problem Statements for Computational Thinking
Akiyoshi Takahashi, Hiromitsu Shiina, Nobuyuki Kobayashi · 2019
To support the understanding of programs and understanding of procedures, we think need to automatically generate comments from source code. As a method, we learn the source code and comment pair by Encoder-Decoder translation model using LSTM, thereby generating comments of the source code that was the target of learning. Though, since it is difficult to increase the amount of learning data when generating comment for problem description, generated comments have some incorrect word for problem sentence. We use program problem sentence to generate comments for source code more suitable for users.