A Multi-Label Code Comment Classifier using BERT

Code comments play an essential role in software development by providing documentation, explanations, and clarifications for program logic and functionality. It is crucial to effectively classify code comments to improve software maintainability and collaboration in the face of a growing amount of code. Developers can easily identify and comprehend different code sections' purpose, behavior, and requirements by accurately classifying code comments. This paper presents a novel approach utilizing multi-label classification to enhance code comment classification in three programming languages: Python, Pharo, and Java. We employ BERT, a widely used language model, and achieve an F1 score of 0.64 through experimentation. Our proposed approach facilitates the understanding and managing code comments, making software development more efficient and productive. Additionally, our approach can be extended to other programming languages and serve as a foundation for further research in code comment classification.

Authors

Institutions

Publication Details

Journal
Journal of King Abdulaziz University-Computing and Information Technology Sciences
Published
2024-12-30
DOI
https://doi.org/10.4197/comp.13-2.5
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Multi-Label Code Comment Classifier using BERT

Emad Albassam, Zarah Shibli
Journal of King Abdulaziz University-Computing and Information Technology Sciences
Software Engineering Research
article

A Multi-Label Code Comment Classifier using BERT

Emad Albassam, Zarah Shibli
article en

Abstract

Code comments play an essential role in software development by providing documentation, explanations, and clarifications for program logic and functionality. It is crucial to effectively classify code comments to improve software maintainability and collaboration in the face of a growing amount of code. Developers can easily identify and comprehend different code sections' purpose, behavior, and requirements by accurately classifying code comments. This paper presents a novel approach utilizing multi-label classification to enhance code comment classification in three programming languages: Python, Pharo, and Java. We employ BERT, a widely used language model, and achieve an F1 score of 0.64 through experimentation. Our proposed approach facilitates the understanding and managing code comments, making software development more efficient and productive. Additionally, our approach can be extended to other programming languages and serve as a foundation for further research in code comment classification.

Journal of King Abdulaziz University-Computing and Information Technology SciencesVol. 13(2)
King Abdulaziz University (SA)
Industry, innovation and infrastructure
Openalex Percentile: Top 61%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Multi-Label Code Comment Classifier using BERT — Emad Albassam, Zarah Shibli · Journal of King Abdulaziz University-Computing and Information Technology Sciences (2024) | TGRS Research Map | TGRS