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

LLM-IE:一个用于大型语言模型生成式信息抽取的Python包

LLM-IE: A Python Package for Generative Information Extraction with Large Language Models

McWilliams School of Biomedical Informatics, University of Texas Health Science Center at Houston(德克萨斯大学休斯顿健康科学中心麦克威廉姆斯生物医学信息学院)

Enshuo Hsu, Kirk Roberts

AI总结:

针对生物医学信息抽取缺乏专用软件的问题,开发了支持命名实体识别等任务的Python包LLM-IE,其核心创新为交互式智能体,基准测试表明基于句子的提示算法性能最佳。

摘要:

目标:尽管近期大型语言模型(LLMs)已被用于生物医学信息抽取,但提示工程与算法方面的挑战依然存在,且缺乏专用软件。为此,我们开发了LLM-IE:一个用于构建完整信息抽取流水线的Python包。我们的核心创新是一个交互式LLM智能体,用于支持模式定义和提示设计。材料与方法:LLM-IE支持命名实体识别、实体属性抽取和关系抽取任务。我们在i2b2数据集上进行了基准测试,并开展了系统评估。结果:基于句子的提示算法取得了最佳性能,但需要更长的推理时间。系统评估提供了直观的可视化。讨论:LLM-IE基于医疗保健的实际NLP经验设计,已被内部项目采用。它对生物医学NLP社区应具有重要价值。结论:我们开发了Python包LLM-IE,为构建鲁棒的信息抽取流水线提供建模基础模块。

英文摘要:

Objectives: Despite the recent adoption of large language models (LLMs) for biomedical information extraction, challenges in prompt engineering and algorithms persist, with no dedicated software available. To address this, we developed LLM-IE: a Python package for building complete information extraction pipelines. Our key innovation is an interactive LLM agent to support schema definition and prompt design. Materials and Methods: The LLM-IE supports named entity recognition, entity attribute extraction, and relation extraction tasks. We benchmarked on the i2b2 datasets and conducted a system evaluation. Results: The sentence-based prompting algorithm resulted in the best performance while requiring a longer inference time. System evaluation provided intuitive visualization. Discussion: LLM-IE was designed from practical NLP experience in healthcare and has been adopted in internal projects. It should hold great value to the biomedical NLP community. Conclusion: We developed a Python package, LLM-IE, that provides building blocks for robust information extraction pipeline construction.

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

↑