paper-with-me

Papers

CodeScholar: Growing Idiomatic Code Examples

2023-12-23 · Manish Shetty, Koushik Sen, Ion Stoica

Programmers often search for usage examples for API methods. A tool that could generate realistic, idiomatic, and contextual usage examples for one or more APIs would be immensely beneficial to developers. Such a tool would relieve the need for a deep understanding of the API landscape, augment existing documentation, and help discover interactions among APIs. We present CodeScholar, a tool that generates idiomatic code examples demonstrating the common usage of API methods. It includes a novel neural-guided search technique over graphs that grows the query APIs into idiomatic code examples. Our user study demonstrates that in 70% of cases, developers prefer CodeScholar generated examples over state-of-the-art large language models (LLM) like GPT3.5. We quantitatively evaluate 60 single and 25 multi-API queries from 6 popular Python libraries and show that across-the-board CodeScholar generates more realistic, diverse, and concise examples. In addition, we show that CodeScholar not only helps developers but also LLM-powered programming assistants generate correct code in a program synthesis setting.

📄 PDF Abstract BibTeX arXiv:2312.15157

Code (1)

tart-proj/codescholar 공식 구현 pytorch

Tasks

Program Synthesis

Similar Papers 제목 키워드 기반

A Hard Nut to Crack: Idiom Detection with Conversational Large Language Models

2024-05-17 · Francesca De Luca Fornaciari, Begoña Altuna, Itziar Gonzalez-Dios, Maite Melero

In this work, we explore idiomatic language processing with Large Language Models (LLMs). We introduce the Idiomatic language Test Suite IdioTS, a new dataset of difficult examples specifically designed by language exper…

Sentence

Towards an Automatic Classification of Illustrative Examples in a Large Japanese-French Dictionary Obtained by OCR

2018-08-01 · COLING 2018 8 · Christian Boitet, Mathieu Mangeot, Mutsuko Tomokiyo

We work on improving the Cesselin, a large and open source Japanese-French bilingual dictionary digitalized by OCR, available on the web, and contributively improvable online. Labelling its examples (about 226000) would …

General ClassificationMachine TranslationOptical Character Recognition (OCR)

Finding BERT’s Idiomatic Key

2021-08-01 · ACL (MWE) 2021 8 · Vasudevan Nedumpozhimana, John Kelleher

Sentence embeddings encode information relating to the usage of idioms in a sentence. This paper reports a set of experiments that combine a probing methodology with input masking to analyse where in a sentence this idio…

SentenceSentence Embeddings

Idioms, Probing and Dangerous Things: Towards Structural Probing for Idiomaticity in Vector Space

2023-04-27 · Filip Klubička, Vasudevan Nedumpozhimana, John D. Kelleher

The goal of this paper is to learn more about how idiomatic information is structurally encoded in embeddings, using a structural probing method. We repurpose an existing English verbal multi-word expression (MWE) datase…

Open-Ended Question Answering

Contextualized Embeddings Encode Monolingual and Cross-lingual Knowledge of Idiomaticity

2021-08-01 · ACL (MWE) 2021 8 · Samin Fakharian, Paul Cook

Potentially idiomatic expressions (PIEs) are ambiguous between non-compositional idiomatic interpretations and transparent literal interpretations. For example, “hit the road” can have an idiomatic meaning corresponding …