This is the implementation of the paper Learning from Language Description: Low-shot Named Entity Recognition via Decomposed Framework.
In this work we present SpanNER, which learns from natural language supervision to build Few-shot NER learner. At the same time, such a framework enables the identification of never-seen entity classes without using in-domain labeled data You can find more details of this work in our paper.
Release distantly-supervised checkpoint
- create a conda environment running Python 3.7:
conda create -n SpanNER python=3.7
conda activate SpanNER
- install the required dependencies:
pip install -r requirements.txt
Training on CoNLL03
> bash ./scripts/run.sh
The implementation is based on https://github.com/huggingface/transformers
We also used some code from: https://github.com/facebookresearch/BLINK
@inproceedings{wang2021learning,
title={Learning from Language Description: Low-shot Named Entity Recognition via Decomposed Framework},
author={Wang, Yaqing and Chu, Haoda and Zhang, Chao and Gao, Jing},
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2021},
pages={1618--1630},
year={2021}
}