Context-NER : Contextual Phrase Generation at Scale

Himanshu Gupta, Shreyas Verma, Santosh Mashetty, Swaroop Mishra
9/16/2021
cs.IRcs.CLcs.LG

Official code: him1411/edgar10q-dataset (17 stars, Python, MIT, last commit 2023-09-29).

Abstract

Named Entity Recognition (NER) has seen significant progress in recent years, with numerous state-of-the-art (SOTA) models achieving high performance. However, very few studies have focused on the generation of entities' context.

Show full abstract

In this paper, we introduce CONTEXT-NER, a task that aims to generate the relevant context for entities in a sentence, where the context is a phrase describing the entity but not necessarily present in the sentence. To facilitate research in this task, we also present the EDGAR10-Q dataset, which consists of annual and quarterly reports from the top 1500 publicly traded companies. The dataset is the largest of its kind, containing 1M sentences, 2.8M entities, and an average of 35 tokens per sentence, making it a challenging dataset. We propose a baseline approach that combines a phrase generation algorithm with inferencing using a 220M language model, achieving a ROUGE-L score of 27% on the test split. Additionally, we perform a one-shot inference with ChatGPT, which obtains a 30% ROUGE-L, highlighting the difficulty of the dataset. We also evaluate models such as T5 and BART, which achieve a maximum ROUGE-L of 49% after supervised finetuning on EDGAR10-Q. We also find that T5-large, when pre-finetuned on EDGAR10-Q, achieve SOTA results on downstream finance tasks such as Headline, FPB, and FiQA SA, outperforming vanilla version by 10.81 points. To our surprise, this 66x smaller pre-finetuned model also surpasses the finance-specific LLM BloombergGPT-50B by 15 points. We hope that our dataset and generated artifacts will encourage further research in this direction, leading to the development of more sophisticated language models for financial text analysis

View on arXivView PDF

Code Implementations(1)

MIT

EDGAR10-Q Dataset and implementation of the paper Context NER

177Python, Jupyter NotebookMay 10, 20213 years agoMIT
codebasedatasetfinancelarge-language-models

Similar Papers

Cite this paper

@article{gupta2021contextner,
  title  = {Context-NER : Contextual Phrase Generation at Scale},
  author = {Himanshu Gupta and Shreyas Verma and Santosh Mashetty and Swaroop Mishra},
  year   = {2021},
  eprint = {2109.08079},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.08079}
}

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/2109.08079.svg)](https://codeofpaper.com/paper/2109.08079)

Discussion