English

Pointing to Subwords for Generating Function Names in Source Code

Computation and Language 2020-11-10 v1

Abstract

We tackle the task of automatically generating a function name from source code. Existing generators face difficulties in generating low-frequency or out-of-vocabulary subwords. In this paper, we propose two strategies for copying low-frequency or out-of-vocabulary subwords in inputs. Our best performing model showed an improvement over the conventional method in terms of our modified F1 and accuracy on the Java-small and Java-large datasets.

Cite

@article{arxiv.2011.04241,
  title  = {Pointing to Subwords for Generating Function Names in Source Code},
  author = {Shogo Fujita and Hidetaka Kamigaito and Hiroya Takamura and Manabu Okumura},
  journal= {arXiv preprint arXiv:2011.04241},
  year   = {2020}
}

Comments

12 pages, accepted to COLING2020

R2 v1 2026-06-23T20:00:15.144Z