English

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

Computation and Language 2024-06-10 v1

Abstract

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.

Keywords

Cite

@article{arxiv.2406.04528,
  title  = {llmNER: (Zero|Few)-Shot Named Entity Recognition, Exploiting the Power of Large Language Models},
  author = {Fabián Villena and Luis Miranda and Claudio Aracena},
  journal= {arXiv preprint arXiv:2406.04528},
  year   = {2024}
}
R2 v1 2026-06-28T16:56:38.536Z