Exportar Publicação
A publicação pode ser exportada nos seguintes formatos: referência da APA (American Psychological Association), referência do IEEE (Institute of Electrical and Electronics Engineers), BibTeX e RIS.
Prendi, G., Sousa, H., Santos, A. L. & Ribeiro, R. (2015). Exploring APIs with N-gram language models. In Luis Veiga, Ricardo Rocha (Ed.), INFORUM 2015: Atas do 7.o Simpósio Nacional de Informática. (pp. 296-310). Covilhã: UBI - Universidade da Beira Interior.
G. Q. Prendi et al., "Exploring APIs with N-gram language models", in INFORUM 2015: Atas do 7.o Simpósio Nacional de Informática, Luis Veiga, Ricardo Rocha, Ed., Covilhã, UBI - Universidade da Beira Interior, 2015, pp. 296-310
@inproceedings{prendi2015_1775753795899,
author = "Prendi, G. and Sousa, H. and Santos, A. L. and Ribeiro, R.",
title = "Exploring APIs with N-gram language models",
booktitle = "INFORUM 2015: Atas do 7.o Simpósio Nacional de Informática",
year = "2015",
editor = "Luis Veiga, Ricardo Rocha",
volume = "",
number = "",
series = "",
pages = "296-310",
publisher = "UBI - Universidade da Beira Interior",
address = "Covilhã",
organization = "UBI",
url = "https://www.dcc.fc.up.pt/~ricroc/homepage/publications/2015-INFORUM.pdf"
}
TY - CPAPER TI - Exploring APIs with N-gram language models T2 - INFORUM 2015: Atas do 7.o Simpósio Nacional de Informática AU - Prendi, G. AU - Sousa, H. AU - Santos, A. L. AU - Ribeiro, R. PY - 2015 SP - 296-310 CY - Covilhã UR - https://www.dcc.fc.up.pt/~ricroc/homepage/publications/2015-INFORUM.pdf AB - Software development requires the use of external Application Programming Interfaces (APIs) in order to reuse libraries and frameworks. Programmers often struggle with unfamiliar APIs. Such difficulties often lead to an incorrect sequence of API calls that may not produce the desired outcome. Language models have shown the ability to capture regularities in text as well as in code. In this paper we explore the use of n-gram language models and their ability to capture regularities in APIs. We explored some of the most widely used APIs with the Java programming language, training several language models over hundreds of GitHub Java projects that use these APIs. The evaluation shows perplexity values for these language models that hint the possibility of using them to produce a tool to assist developers with code completion when using an unfamiliar API. On the one hand, such a tool may help developers to write correct API call sequences more efficiently; and, on the other hand, allows them to explore the features offered by the API. ER -
English