COLING 2020main2 citations

Pointing to Subwords for Generating Function Names in Source Code

Shogo Fujita, Hidetaka Kamigaito, Hiroya Takamura, Manabu Okumura

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.

BibTeX
@inproceedings{fujita-etal-2020-pointing,
    title = "Pointing to Subwords for Generating Function Names in Source Code",
    author = "Fujita, Shogo  and
      Kamigaito, Hidetaka  and
      Takamura, Hiroya  and
      Okumura, Manabu",
    editor = "Scott, Donia  and
      Bel, Nuria  and
      Zong, Chengqing",
    booktitle = "Proceedings of the 28th International Conference on Computational Linguistics",
    month = dec,
    year = "2020",
    address = "Barcelona, Spain (Online)",
    publisher = "International Committee on Computational Linguistics",
    url = "https://aclanthology.org/2020.coling-main.28/",
    doi = "10.18653/v1/2020.coling-main.28",
    pages = "316--327"
}
Pointing to Subwords for Generating Function Names in Source Code · COLING 2020