arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.03987cs.SE
收藏

API基于动态调优语言模型的文本实体与关系联合抽取

API Entity and Relation Joint Extraction from Text via Dynamic Prompt-tuned Language Model

Qing Huang, Yanbang Sun, Zhenchang Xing, Min Yu, Xiwei Xu, Qinghua Lu

摘要:

从非结构化文本中提取应用编程接口(API)及其语义关系(例如,栈溢出)是软件工程任务的基础工作(例如,API建议)。然而,现有的方法是基于规则和序列标记的。他们必须手动枚举各种句型的规则或标签数据,这涉及大量的劳动力开销,并且由于形态和常用词的歧义而加剧。与匹配或标注API实体和关系不同,本文将异构API抽取和API关系抽取任务定义为序列到序列的生成任务,并提出了基于大型预训练语言模型的API实体-关系联合抽取模型AERJE。在对少量模糊但正确标记的数据进行训练后,AERJE构建了一个多任务架构,使用动态提示从非结构化文本中提取API实体和关系。我们在Stack Overflow的一组长而模糊的句子上系统地评估了AERJE。实验结果表明,AERJE在API实体-关系联合抽取中具有较高的准确率和区分能力,即使在零次或Few-Shot微调的情况下也能保持较高的准确率和区分能力。

英文摘要:

Extraction of Application Programming Interfaces (APIs) and their semantic relations from unstructured text (e.g., Stack Overflow) is a fundamental work for software engineering tasks (e.g., API recommendation). However, existing approaches are rule-based and sequence-labeling based. They must manually enumerate the rules or label data for a wide range of sentence patterns, which involves a significant amount of labor overhead and is exacerbated by morphological and common-word ambiguity. In contrast to matching or labeling API entities and relations, this paper formulates heterogeneous API extraction and API relation extraction task as a sequence-to-sequence generation task, and proposes AERJE, an API entity-relation joint extraction model based on the large pre-trained language model. After training on a small number of ambiguous but correctly labeled data, AERJE builds a multi-task architecture that extracts API entities and relations from unstructured text using dynamic prompts. We systematically evaluate AERJE on a set of long and ambiguous sentences from Stack Overflow. The experimental results show that AERJE achieves high accuracy and discrimination ability in API entity-relation joint extraction, even with zero or few-shot fine-tuning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑