Utilize este identificador para referenciar este registo:
http://hdl.handle.net/10071/35761| Autoria: | Prendi, G. Sousa, H. Santos, A. L. Ribeiro, R. |
| Editor: | Luis Veiga Ricardo Rocha |
| Data: | 2015 |
| Título próprio: | Exploring APIs with N-gram language models |
| Título e volume do livro: | INFORUM 2015: Atas do 7º Simpósio Nacional de Informática |
| Paginação: | 296 - 310 |
| Título do evento: | INFORUM 2015 |
| Referência bibliográfica: | Prendi, 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 |
| ISBN: | 978-989-654-248-1 |
| Palavras-chave: | APIs Java -- Java Perplexity Source code mining Code completion N-gram language models |
| Resumo: | 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. |
| Arbitragem científica: | yes |
| Acesso: | Acesso Aberto |
| Aparece nas coleções: | ISTAR-CRN - Comunicações a conferências nacionais |
Ficheiros deste registo:
| Ficheiro | Tamanho | Formato | |
|---|---|---|---|
| conferenceObject_24695.pdf | 523,78 kB | Adobe PDF | Ver/Abrir |
Todos os registos no repositório estão protegidos por leis de copyright, com todos os direitos reservados.












