arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.04351cs.CLcs.AI
收藏

NER4all 或上下文即一切:利用 LLM 对历史文本进行低成本、高性能的命名实体识别——一种人文学科知情的方法

NER4all or Context is All You Need: Using LLMs for low-effort, high-performance NER on historical texts. A humanities informed approach

Humboldt-Universität zu Berlin(柏林洪堡大学);NFDI4Memory;AI-Skills;Kompetenzwerkstatt Digital Humanities(数字人文能力工坊)
Torsten Hiltmann, Martin Dröge, Nicole Dresselhaus, Till Grallert, Melanie Althage, Paul Bayer, Sophie Eckenstaler, Koray Mendi, Jascha Marijn Schmitz, Philipp … 展开作者

Torsten Hiltmann, Martin Dröge, Nicole Dresselhaus, Till Grallert, Melanie Althage, Paul Bayer, Sophie Eckenstaler, Koray Mendi, Jascha Marijn Schmitz, Philipp Schneider, Wiebke Sczeponik, Anica Skibba

AI总结:

本文提出利用现成大语言模型,通过历史上下文提示与人格建模,在历史文本命名实体识别上以低成本超越 spaCy 和 flair,并发现少样本示例超过 16-shot 后收益不再提升,从而降低历史学者使用 NER 的技术门槛。

摘要:

命名实体识别(NER)是历史研究中的一项核心任务,用于自动建立所有对人物、地点、事件等的引用。然而,由于来源在语言和体裁上的高度多样性、拼写规范化程度有限、所需历史领域知识水平较高,以及标注训练数据稀缺,既有的自然语言处理(NLP)方法不仅极其昂贵,而且在召回率和精确率方面结果不尽如人意。本文提出了一种新方法。我们展示了现成可用、最先进的大语言模型(LLM)在历史文档的命名实体识别中显著优于两个主流 NLP 框架 spaCy 和 flair,F1 分数高出 7 到 22 个百分点。我们的消融研究表明,为任务提供历史上下文,并进行一定程度的人格建模,使关注点从纯粹的语言学方法转移开,是成功提示策略的核心。我们还证明,与我们的预期相反,在少样本方法中提供越来越多的示例,在低于 16-shot 阈值时并不会提高召回率或精确率。因此,我们的方法通过消除既有 NLP 工具所需的脚本语言和计算技能障碍,转而利用自然语言提示以及消费级工具和前端,使所有历史学者都能民主化地获得命名实体识别能力。

英文摘要:

Named entity recognition (NER) is a core task for historical research in automatically establishing all references to people, places, events and the like. Yet, do to the high linguistic and genre diversity of sources, only limited canonisation of spellings, the level of required historical domain knowledge, and the scarcity of annotated training data, established approaches to natural language processing (NLP) have been both extremely expensive and yielded only unsatisfactory results in terms of recall and precision. Our paper introduces a new approach. We demonstrate how readily-available, state-of-the-art LLMs significantly outperform two leading NLP frameworks, spaCy and flair, for NER in historical documents by seven to twentytwo percent higher F1-Scores. Our ablation study shows how providing historical context to the task and a bit of persona modelling that turns focus away from a purely linguistic approach are core to a successful prompting strategy. We also demonstrate that, contrary to our expectations, providing increasing numbers of examples in few-shot approaches does not improve recall or precision below a threshold of 16-shot. In consequence, our approach democratises access to NER for all historians by removing the barrier of scripting languages and computational skills required for established NLP tools and instead leveraging natural language prompts and consumer-grade tools and frontends.

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

↑