arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.04528cs.CL
收藏

llmNER:利用大型语言模型的力量实现(零样本|少样本)命名实体识别

llmNER: (Zero|Few)-Shot Named Entity Recognition, Exploiting the Power of Large Language Models

University of Chile(智利大学);Millennium Institute for Foundational Research on Data(数据基础研究千年研究所);Catholic University of Chile(智利天主教大学);Faculty of Physical and Mathematical Sciences, University of Chile(智利大学物理与数学学院)

Fabián Villena, Luis Miranda, Claudio Aracena

AI总结:

本文提出 llmNER 库,通过简化提示构建与结果解析,支持基于大型语言模型的零样本和少样本命名实体识别,并在两个 NER 任务上验证其灵活性与有效性。

摘要:

大型语言模型(LLMs)使我们能够生成高质量的类人文本。自然语言处理(NLP)中一项有趣的任务是命名实体识别(NER),它旨在检测文档中相关信息的提及。本文介绍了 llmNER,一个用于利用 LLMs 实现零样本和少样本 NER 的 Python 库;通过提供易于使用的接口,llmNER 可以组合提示、查询模型并解析 LLM 返回的补全结果。此外,该库通过提供简单的接口来测试多个变量,使用户能够高效地进行提示工程。我们在两个 NER 任务上验证了我们的软件,以展示该库的灵活性。llmNER 旨在通过消除提示和解析步骤的障碍,推动上下文学习研究的边界。

英文摘要:

Large language models (LLMs) allow us to generate high-quality human-like text. One interesting task in natural language processing (NLP) is named entity recognition (NER), which seeks to detect mentions of relevant information in documents. This paper presents llmNER, a Python library for implementing zero-shot and few-shot NER with LLMs; by providing an easy-to-use interface, llmNER can compose prompts, query the model, and parse the completion returned by the LLM. Also, the library enables the user to perform prompt engineering efficiently by providing a simple interface to test multiple variables. We validated our software on two NER tasks to show the library's flexibility. llmNER aims to push the boundaries of in-context learning research by removing the barrier of the prompting and parsing steps.

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

↑