Automatic comment generation for source code using external information by neural networks for computational thinking

  • Shiina H
  • Onishi S
  • Takahashi A
  • et al.
N/ACitations
Citations of this article
5Readers
Mendeley users who have this article in their library.

Abstract

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. In the Encoder-Decoder translation model, the source code of a program and its pair of comments are learned. However, that method does not know the domain of the program being used, so the comments that can be generated automatically may not be appropriate. In the use of learning, such as programs and algorithms for the purpose of computational thinking, it is possible to obtain relate information, such as problem statements and explanations. Therefore, we propose some methods to improve generated comments by using relate external information, such as question sentences. Also, we generate comments for each line and each block.

Cite

CITATION STYLE

APA

Shiina, H., Onishi, S., Takahashi, A., & Kobayashi, N. (2020). Automatic comment generation for source code using external information by neural networks for computational thinking. International Journal of Smart Computing and Artificial Intelligence, 4(2), 39–61. https://doi.org/10.52731/ijscai.v4.i2.572

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free