Microsoft Corporation
AUTOMATIC GENERATION OF CODE DOCUMENTATION

Last updated:

Abstract:

A code completion tool uses a neural transformer model with attention to generate code documentation for a method in a particular code documentation style. The neural transformer model is trained with source code programs and natural language text. The neural transformer model is pre-trained to learn the meaning of a method name, its corresponding method parameters and types from a large corpus of unsupervised dataset of source code methods. The neural transformer model is then fine-tuned on translation tasks where the model leans to translate a method signature/method body into a docstring of particular code documentation style.

Status:
Application
Type:

Utility

Filling date:

10 Jun 2020

Issue date:

18 Nov 2021