Exploring APIs with N-gram language models

dc.contributor.authorPrendi, G.
dc.contributor.authorSousa, H.
dc.contributor.authorSantos, A. L.
dc.contributor.authorRibeiro, R.
dc.contributor.editorLuis Veiga
dc.contributor.editorRicardo Rocha
dc.date.accessioned2025-12-16T17:10:53Z
dc.date.available2025-12-16T17:10:53Z
dc.date.issued2015
dc.date.updated2025-12-16T17:09:38Z
dc.description.abstractSoftware 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.eng
dc.description.versioninfo:eu-repo/semantics/publishedVersion
dc.event.date2015
dc.event.locationCovilhãeng
dc.event.titleINFORUM 2015
dc.event.typeConferênciapt
dc.identifier.citationPrendi, G., Sousa, H., Santos, A. L., & Ribeiro, R. (2015). Exploring APIs with N-gram language models. In L. Veiga, R. Rocha (Eds.), INFORUM 2015: Atas do 7º Simpósio Nacional de Informática (pp. 296-310) UBI. http://hdl.handle.net/10071/35761
dc.identifier.isbn978-989-654-248-1
dc.identifier.urihttp://hdl.handle.net/10071/35761
dc.language.isoeng
dc.pagination296 - 310
dc.peerreviewedyes
dc.publisherUBI - Universidade da Beira Interior
dc.relation.ispartofINFORUM 2015: Atas do 7º Simpósio Nacional de Informática
dc.rightsopen access
dc.subjectAPIseng
dc.subjectJava -- Javaeng
dc.subjectPerplexityeng
dc.subjectSource code miningeng
dc.subjectCode completioneng
dc.subjectN-gram language modelseng
dc.titleExploring APIs with N-gram language modelseng
dc.typeconferenceObject
dspace.entity.typePublicationen
iscte.identifier.cienciahttps://ciencia.iscte-iul.pt/id/ci-pub-24695

Ficheiros

Pacote original

A mostrar 1 - 1 de 1
A carregar...
Nome:
conferenceObject_24695.pdf
Tamanho:
523.78 KB
Formato:
Adobe Portable Document Format
Descrição:
Versão Editora