• Home
  • Search
  • Stepwise API usage assistance using n -gram language models
  • Cite Icon19
  • https://doi.org/10.1016/j.jss.2016.06.063Copy DOI Icon

Stepwise API usage assistance using n -gram language models

Show More
  • Abstract
  • Highlights & Summary
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

An IDE code completion mechanism for stepwise API exploration.A method for building a language model for supporting (1).a detailed evaluation of (2), showing how n-grams perform against existing client code.Results of (3) revealing a 90% chance of getting the expected result in the 10-top-most code completion proposals. Reusing software involves learning third-party APIs, a process that is often time-consuming and error-prone. Recommendation systems for API usage assistance based on statistical models built from source code corpora are capable of assisting API users through code completion mechanisms in IDEs. A valid sequence of API calls involving different types may be regarded as a well-formed sentence of tokens from the API vocabulary. In this article we describe an approach for recommending subsequent tokens to complete API sentences using n-gram language models built from source code corpora. The provided system was integrated in the code completion facilities of the Eclipse IDE, providing contextualized completion proposals for Java taking into account the nearest lines of code. The approach was evaluated against existing client code of four widely used APIs, revealing that in more than 90% of the cases the expected subsequent token is within the 10-top-most proposals of our models. The high score provides evidence that the recommendations could help on API learning and exploration, namely through the assistance on writing valid API sentences.

Similar Papers
  • PDF
  • Conference Article
  • Citations60

Federated Learning of N-Gram Language Models

  • Jan 01, 2019
  • Mingqing Chen +6
  • Conference Article
  • Citations169

Multi-task learning based pre-trained language model for code completion

  • Dec 21, 2020
  • Fang Liu +3
  • Research Article
  • Citations3

Exploring the Impact of Vocabulary Techniques on Code Completion: A Comparative Approach

  • Jan 13, 2024
  • International Journal of Software Engineering and Knowledge Engineering
  • Yasir Hussain +3
  • Research Article
  • Citations9

A Learning-Based Approach to Static Program Slicing

  • Apr 29, 2024
  • Proceedings of the ACM on Programming Languages
  • Aashish Yadavally +3
  • Research Article
  • Citations48

A study of n-gram and decision tree letter language modeling methods

  • Jun 01, 1998
  • Speech Communication
  • Gerasimos Potamianos +1
  • Book Chapter

Overcoming the Sparseness Problem of Spoken Language Corpora Using Other Large Corpora of Distinct Characteristics

  • Jan 01, 2004
  • Sehyeong Cho +3
  • Conference Article
  • Citations84

A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learning

  • Jul 13, 2020
  • Fang Liu +5
  • Conference Article
  • Citations71

Improved topic-dependent language modeling using information retrieval techniques

  • Jan 01, 1999
  • M Mahajan +2
  • Conference Article
  • Citations4

Mixture of mixture n-gram language models

  • Dec 01, 2013
  • Hasim Sak +3
  • Preprint Article

Modelling Implicit Bias in Gender–Career Associations: A systematic comparison of language models

  • May 22, 2025
  • Alexander Porshnev +5
  • Research Article

Bidirectional Recurrent Neural Network Language Model: Cross Entropy Churn Metrics for Defect Prediction Modeling

  • Dec 10, 2020
  • International Journal of Data Mining Techniques and Applications
  • Nivetha R +1
  • Conference Article
  • Citations3

A hierarchical approach for better estimation of unseen event likelihood in speech recognition

  • Oct 26, 2003
  • I Zitouni +2
  • Conference Article
  • Citations82

CodeFill

  • May 21, 2022
  • Maliheh Izadi +2
  • Book Chapter
  • Citations4

Dynamic Bayesian Networks for Language Modeling

  • Jan 01, 2006
  • Pascal Wiggers +1
  • Research Article
  • Citations18

A fast and memory-efficient N-gram language model lookup method for large vocabulary continuous speech recognition

  • Dec 19, 2005
  • Computer Speech & Language
  • Xiaolong Li +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.