JavaBERT: Training a transformer-based model for the Java programming language

Nelson Tavares de Sousa, Wilhelm Hasselbring
10/20/2021
cs.SEcs.LG
transformer-attention

Official code: cau-se/gh-archive-code-retrieval (3 stars, Python, last commit 2022-04-08).

Abstract

Code quality is and will be a crucial factor while developing new software code, requiring appropriate tools to ensure functional and reliable code. Machine learning techniques are still rarely used for software engineering tools, missing out the potential benefits of its application.

Show full abstract

Natural language processing has shown the potential to process text data regarding a variety of tasks. We argue, that such models can also show similar benefits for software code processing. In this paper, we investigate how models used for natural language processing can be trained upon software code. We introduce a data retrieval pipeline for software code and train a model upon Java software code. The resulting model, JavaBERT, shows a high accuracy on the masked language modeling task showing its potential for software engineering tools.

View on arXivView PDF

Code Implementations(1)

30Python, ShellOct 8, 20214 years ago

Similar Papers

Cite this paper

@article{sousa2021javabert,
  title  = {JavaBERT: Training a transformer-based model for the Java programming language},
  author = {Nelson Tavares de Sousa and Wilhelm Hasselbring},
  year   = {2021},
  eprint = {2110.10404},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.10404}
}

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/2110.10404.svg)](https://codeofpaper.com/paper/2110.10404)

Discussion