An Ensemble Approach for Annotating Source Code Identifiers with Part-of-speech Tags

Christian D. Newman, Michael J. Decker, Reem S. AlSuhaibani, Anthony Peruma, Satyajit Mohapatra +5 more
9/1/2021
cs.SEcs.CL

Official code: SCANL/ensemble_tagger (4 stars, Python, last commit 2024-11-27).

Abstract

This paper presents an ensemble part-of-speech tagging approach for source code identifiers. Ensemble tagging is a technique that uses machine-learning and the output from multiple part-of-speech taggers to annotate natural language text at a higher quality than the part-of-speech taggers are able to obtain independently.

Show full abstract

Our ensemble uses three state-of-the-art part-of-speech taggers: SWUM, POSSE, and Stanford. We study the quality of the ensemble's annotations on five different types of identifier names: function, class, attribute, parameter, and declaration statement at the level of both individual words and full identifier names. We also study and discuss the weaknesses of our tagger to promote the future amelioration of these problems through further research. Our results show that the ensemble achieves 75\% accuracy at the identifier level and 84-86\% accuracy at the word level. This is an increase of +17\% points at the identifier level from the closest independent part-of-speech tagger.

View on arXivView PDF

Code Implementations(1)

43Python, C++Dec 23, 20202 years ago

Similar Papers

Cite this paper

@article{newman2021ensemble,
  title  = {An Ensemble Approach for Annotating Source Code Identifiers with Part-of-speech Tags},
  author = {Christian D. Newman and Michael J. Decker and Reem S. AlSuhaibani and Anthony Peruma and Satyajit Mohapatra and Tejal Vishnoi and Marcos Zampieri and Mohamed W. Mkaouer and Timothy J. Sheldon and Emily Hill},
  year   = {2021},
  eprint = {2109.00629},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.00629}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.00629.svg)](https://codeofpaper.com/paper/2109.00629)

Discussion