paper-with-me

Papers

Code Generation for Unknown Libraries via Reading API Documentations

2022-02-16 · Koki Washio, Yusuke Miyao

Open-domain code generation is a challenging problem because the set of functions and classes that we use are frequently changed and extended in programming communities. We consider the challenge of code generation for unknown libraries without additional training. In this paper, we explore a framework of code generation that can refer to relevant API documentations like human programmers to handle unknown libraries. As a first step of this direction, we implement a model that can extract relevant code signatures from API documentations based on a natural language intent and copy primitives from the extracted signatures. Moreover, to evaluate code generation for unknown libraries and our framework, we extend an existing dataset of open-domain code generation and resplit it so that the evaluation data consist of only examples using the libraries that do not appear in the training data. Experiments on our new split show that baseline encoder-decoder models cannot generate code using primitives of unknown libraries as expected. In contrast, our model outperforms the baseline on the new split and can properly generate unknown primitives when extracted code signatures are noiseless.

📄 PDF Abstract BibTeX arXiv:2202.07806

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationDecoder

Similar Papers 제목 키워드 기반

API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentations

2021-03-19 · Ramin Shahbazi, Rishab Sharma, Fatemeh H. Fard

Code comments can help in program comprehension and are considered as important artifacts to help developers in software maintenance. However, the comments are mostly missing or are outdated, specially in complex softwar…

Comment GenerationMachine Translation

Doc2Agent: Scalable Generation of Tool-Using Agents from API Documentation

2025-06-24 · Xinyi Ni, Haonan Jian, Qiuyang Wang, Vedanshi Chetan Shah 외

REST APIs play important roles in enriching the action space of web agents, yet most API-based agents rely on curated and uniform toolsets that do not reflect the complexity of real-world APIs. Building tool-using agents…

Enhancing Canine Musculoskeletal Diagnoses: Leveraging Synthetic Image Data for Pre-Training AI-Models on Visual Documentations

2024-09-12 · Martin Thißen, Thi Ngoc Diep Tran, Ben Joel Schönbein, Ute Trapp 외

The examination of the musculoskeletal system in dogs is a challenging task in veterinary practice. In this work, a novel method has been developed that enables efficient documentation of a dog's condition through a visu…

Diagnostic

Documentation of Machine Learning Software

2020-01-30 · Yalda Hashemi, Maleknaz Nayebi, Giuliano Antoniol

Machine Learning software documentation is different from most of the documentations that were studied in software engineering research. Often, the users of these documentations are not software experts. The increasing i…

BIG-bench Machine Learning

Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries

2024-06-12 · Meiziniu Li, Dongze Li, Jianmeng Liu, Jialun Cao 외

Differential testing offers a promising strategy to alleviate the test oracle problem by comparing the test results between alternative implementations. However, existing differential testing techniques for deep learning…

Deep LearningLanguage ModellingLarge Language Model