DeepAI AI Chat
Log In Sign Up

Associating Natural Language Comment and Source Code Entities

by   Sheena Panthaplackel, et al.

Comments are an integral part of software development; they are natural language descriptions associated with source code elements. Understanding explicit associations can be useful in improving code comprehensibility and maintaining the consistency between code and comments. As an initial step towards this larger goal, we address the task of associating entities in Javadoc comments with elements in Java source code. We propose an approach for automatically extracting supervised data using revision histories of open source projects and present a manually annotated evaluation dataset for this task. We develop a binary classifier and a sequence labeling model by crafting a rich feature set which encompasses various aspects of code, comments, and the relationships between them. Experiments show that our systems outperform several baselines learning from the proposed supervision.


page 1

page 2

page 3

page 4


Learning to Update Natural Language Comments Based on Code Changes

We formulate the novel task of automatically updating an existing natura...

Topic modeling of public repositories at scale using names in source code

Programming languages themselves have a limited number of reserved keywo...

Executable Trigger-Action Comments

Natural language elements, e.g., todo comments, are frequently used to c...

CORAL: COde RepresentAtion Learning with Weakly-Supervised Transformers for Analyzing Data Analysis

Large scale analysis of source code, and in particular scientific source...

To Automatically Map Source Code Entities to Architectural Modules with Naive Bayes

Background: The process of mapping a source code entity onto an architec...

Splitting source code identifiers using Bidirectional LSTM Recurrent Neural Network

Programmers make rich use of natural language in the source code they wr...

DeepSumm – Deep Code Summaries using Neural Transformer Architecture

Source code summarizing is a task of writing short, natural language des...