T-NER: An All-Round Python Library for Transformer-based Named Entity Recognition

Asahi Ushio, Jose Camacho-Collados
9/9/2022
cs.CLcs.LG
transformer-attention

Official code: asahi417/tner (401 stars, Python, MIT, last commit 2023-05-11).

Abstract

Language model (LM) pretraining has led to consistent improvements in many NLP downstream tasks, including named entity recognition (NER). In this paper, we present T-NER (Transformer-based Named Entity Recognition), a Python library for NER LM finetuning.

Show full abstract

In addition to its practical utility, T-NER facilitates the study and investigation of the cross-domain and cross-lingual generalization ability of LMs finetuned on NER. Our library also provides a web app where users can get model predictions interactively for arbitrary text, which facilitates qualitative model evaluation for non-expert programmers. We show the potential of the library by compiling nine public NER datasets into a unified format and evaluating the cross-domain and cross-lingual performance across the datasets. The results from our initial experiments show that in-domain performance is generally competitive across datasets. However, cross-domain generalization is challenging even with a large pretrained LM, which has nevertheless capacity to learn domain-specific features if fine-tuned on a combined dataset. To facilitate future research, we also release all our LM checkpoints via the Hugging Face model hub.

View on arXivView PDF

Code Implementations(1)

asahi417/tnerOfficial100%
MIT

Language model fine-tuning on NER with an easy interface and cross-domain evaluation. "T-NER: An All-Round Python Library for Transformer-based Named Entity Recognition, EACL 2021"

40144Python, HTMLAug 27, 20203 years agoMIT
language-modelnamed-entity-recognitionnlptransformers

Similar Papers

Cite this paper

@article{ushio2022tner,
  title  = {T-NER: An All-Round Python Library for Transformer-based Named Entity Recognition},
  author = {Asahi Ushio and Jose Camacho-Collados},
  year   = {2022},
  eprint = {2209.12616},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.12616}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.12616.svg)](https://codeofpaper.com/paper/2209.12616)

Discussion