Pre-trained models (PTMs) have shown great promise in various software engineering tasks. In this work, we study the effectiveness of PTMs for API learning — specifically, how well they can learn and recommend API usage sequences from code and natural language. We evaluate multiple PTM variants across key tasks including API sequence completion and cross-lingual API mapping, comparing against non-PTM baselines on curated benchmarks.
Pre-trained language models (PTMs) such as BERT, CodeBERT, and GPT variants have transformed NLP and are increasingly applied to software engineering tasks. This paper presents a systematic empirical study of PTM effectiveness specifically for API learning — the task of understanding, completing, and recommending API usage sequences from mixed natural-language and code inputs.
Published at: IEEE/ACM International Conference on Program Comprehension (ICPC) 2022 · Citations: 19