paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Complementing global and local contexts in representing API descriptions to improve API retrieval tasks

互补全局与局部上下文以表示 API 描述来改进 API 检索任务
FSE Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2018匹配度 2/10 · 论文关注基于 Word2vec 的 API 描述表示与 API 检索,属于机器学习与软件工程/开发者工具交叉,但未涉及静态分析、LLM/Agentic 程序、浮点程序分析或贝叶斯程序分析,与用户核心研究方向匹配度较低。引用 21 inbox
Thanh Nguyen, Ngoc Tran, Hung Phan, Trong Nguyen, Linh Truong, Anh Tuan Nguyen, Hoan Anh Nguyen, Tien N. Nguyen
crossref: 2026-09-12

AI 速览

一句话:提出互补全局与局部上下文来表示 API 描述,以改进基于 Word2vec 的 API 检索任务。

该论文关注 API 检索中 API 描述与代码片段的语义表示问题。现有基于 Word2vec 的方法通常将单个词或 API 的向量独立聚合为文档表示,未充分考虑词语或 API 之间的上下文依赖,因而难以准确刻画 API 描述和代码片段的语义。标题表明,论文提出在 API 描述表示中互补全局上下文与局部上下文,以更完整地编码文档语义,并服务于 API 检索任务。摘要未给出具体模型结构、数据集与实验指标,因此无法确认其相对基线的量化提升;其核心贡献在于指出独立聚合词向量的局限,并给出结合两类上下文的表示思路。

问题
现有基于 Word2vec 的 API 相似度方法将词或 API 向量独立聚合为文档表示,导致 API 描述与代码片段的语义表示不充分。
方法
论文提出在 API 描述表示中互补全局与局部上下文,以改进 API 检索任务中的文本-API 相关性估计。
评估
摘要未说明具体数据集、基线与指标;从标题看,评估面向 API 检索任务。
原文摘要(Abstract)

When being trained on API documentation and tutorials, Word2vec produces vector representations to estimate the relevance between texts and API elements. However, existing Word2vec-based approaches to measure document similarities aggregate Word2vec vectors of individual words or APIs to build the representation of a document as if the words are independent. Thus, the semantics of API descriptions or code fragments are not well represented.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4661,
  title = {Complementing global and local contexts in representing API descriptions to improve API retrieval tasks},
  author = {Thanh Nguyen and Ngoc Tran and Hung Phan and Trong Nguyen and Linh Truong and Anh Tuan Nguyen and Hoan Anh Nguyen and Tien N. Nguyen},
  booktitle = {FSE},
  year = {2018},
  doi = {10.1145/3236024.3236036}
}