Skip to content
naulon

No noticeNo retraction, correction or concern found when last checked on Dec 6, 2026.

A Multi-Module Based Method for Generating Natural Language Descriptions of Code Fragments

Xuejian Gao, Xue Jiang, Qiong Wu and 3 more

IEEE Access · 2021

doi:10.1109/access.2021.3055955 (opens in a new tab)

We email you when a new notice or a question about this paper appears.

Abstract

Code fragment natural language description generation, also known as code summarization, refers to obtaining a natural language sequence describing a given code fragment's functionality. It is broadly agreed that applying code summarization into production can significantly improve the efficiency of software development and maintenance. In recent years, syntactic analysis (SA) technology and Latent Dirichlet Allocation (LDA) has been widely used in code summarization and has achieved good results. However, most of the existing techniques focus on core code statements, and thus their generated code summarization lacks a logical description of the code fragment's holistic information. To this end, we propose a code summarization method based on multiple modules to generate natural language for each code statement by constructing a new type of natural language template. Meanwhile, to utilize the code fragment's holistic information, we adopt the code statement partition rules and cosine similarity measure to rank and optimize the weight of the overall information of the code fragment, and finally generate the holistic natural language description of the code fragment. The experimental results demonstrate that our method can generate more concise and logical natural language descriptions than existing models.

Abstract licence: CC BY-NC-ND

References 49

    40 more references, whose wording the paper’s licence keeps private.

    All 49 references

    Reads

    Read by people on this page

    None yet.

    Checked or read by AI through naulon

    None yet.

    A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

    Are you an author?

    Is this your paper?

    Claim it to add your note and be paid when agents cite it. Free.