paper-with-me

홈 › Papers

CodeNER: Code Prompting for Named Entity Recognition

2025-07-27 · Sungwoo Han, Hyeyeon Kim, Jingun Kwon, Hidetaka Kamigaito, Manabu Okumura arxiv

Recent studies have explored various approaches for treating candidate named entity spans as both source and target sequences in named entity recognition (NER) by leveraging large language models (LLMs). Although previous approaches have successfully generated candidate named entity spans with suitable labels, they rely solely on input context information when using LLMs, particularly, ChatGPT. However, NER inherently requires capturing detailed labeling requirements with input context information. To address this issue, we propose a novel method that leverages code-based prompting to improve the capabilities of LLMs in understanding and performing NER. By embedding code within prompts, we provide detailed BIO schema instructions for labeling, thereby exploiting the ability of LLMs to comprehend long-range scopes in programming languages. Experimental results demonstrate that the proposed code-based prompting method outperforms conventional text-based prompting on ten benchmarks across English, Arabic, Finnish, Danish, and German datasets, indicating the effectiveness of explicitly structuring NER instructions. We also verify that combining the proposed code-based prompting method with the chain-of-thought prompting further improves performance.

📄 PDF Abstract BibTeX arXiv:2507.20423

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

CodeNeRF: Disentangled Neural Radiance Fields for Object Categories

2021-09-03 · ICCV 2021 10 · Wonbong Jang, Lourdes Agapito

CodeNeRF is an implicit 3D neural representation that learns the variation of object shapes and textures across a category and can be trained, from a set of posed images, to synthesize novel views of unseen objects. Unli…

NeRFObject

Evaluating Named Entity Recognition Using Few-Shot Prompting with Large Language Models

2024-08-28 · Hédi Zeghidi, Ludovic Moncla

This paper evaluates Few-Shot Prompting with Large Language Models for Named Entity Recognition (NER). Traditional NER systems rely on extensive labeled datasets, which are costly and time-consuming to obtain. Few-Shot P…

In-Context Learningnamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+2

P-ICL: Point In-Context Learning for Named Entity Recognition with Large Language Models

2024-05-08 · Guochao Jiang, Zepeng Ding, Yuchen Shi, Deqing Yang

In recent years, the rise of large language models (LLMs) has made it possible to directly achieve named entity recognition (NER) without any demonstration samples or only using a few samples through in-context learning …

In-Context Learningnamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+1

CLLMFS: A Contrastive Learning enhanced Large Language Model Framework for Few-Shot Named Entity Recognition

2024-08-23 · Yafeng Zhang, Zilan Yu, Yuang Huang, Jing Tang

Few-shot Named Entity Recognition (NER), the task of identifying named entities with only a limited amount of labeled data, has gained increasing significance in natural language processing. While existing methodologies …

Contrastive Learningfew-shot-nerFew-shot NERLanguage Modeling+7

PromptNER: A Prompting Method for Few-shot Named Entity Recognition via k Nearest Neighbor Search

2023-05-20 · Mozhi Zhang, Hang Yan, Yaqian Zhou, Xipeng Qiu

Few-shot Named Entity Recognition (NER) is a task aiming to identify named entities via limited annotated samples. Recently, prototypical networks have shown promising performance in few-shot NER. Most of prototypical ne…

few-shot-nerFew-shot NERnamed-entity-recognitionNamed Entity Recognition+3