NER research paper using GPT models
Top 99.5% on sourcepulse
This repository provides code and results for GPT-NER, a method for Named Entity Recognition (NER) leveraging Large Language Models (LLMs). It targets researchers and practitioners in NLP seeking to apply LLMs to NER tasks, offering a framework for few-shot and zero-shot NER with GPT-3, demonstrating competitive performance against supervised baselines on standard datasets.
How It Works
GPT-NER utilizes GPT-3 for NER by framing the task as a generation problem. It explores different retrieval strategies for providing context to the LLM: random retrieval, sentence-level embeddings (using SimCSE), and entity-level embeddings. The approach aims to enhance NER performance by effectively guiding the LLM with relevant examples, particularly in few-shot scenarios.
Quick Start & Requirements
pip install openai==0.27.2 simcse==0.4
OPENAI_API_KEY
).sup-simcse-roberta-large
(link provided).openai_access/scripts/
. Refer to openai_access/get_results_mrc_knn.py
and openai_access/verify_results.py
for argument details.openai_access/scripts/compute_f1.sh
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 years ago
1 week