Skip to main content
QUICK REVIEW

[Paper Review] Named Entity Recognition in the Legal Domain using a Pointer Generator Network

Stavroula Skylaki, Ali Oskooei|arXiv (Cornell University)|Dec 17, 2020
Topic ModelingComputer Science22 references9 citations
TL;DR

This paper proposes reformulating legal Named Entity Recognition (NER) as a text-to-text sequence generation task using a pointer generator network to handle noisy, OCR-corrupted legal documents where exact entity locations are unknown. The approach outperforms traditional sequence labeling models, especially on long documents and rare/unknown identifiers like case numbers, with character-level tokenization improving accuracy by 50% on OOV case numbers.

ABSTRACT

Named Entity Recognition (NER) is the task of identifying and classifying named entities in unstructured text. In the legal domain, named entities of interest may include the case parties, judges, names of courts, case numbers, references to laws etc. We study the problem of legal NER with noisy text extracted from PDF files of filed court cases from US courts. The "gold standard" training data for NER systems provide annotation for each token of the text with the corresponding entity or non-entity label. We work with only partially complete training data, which differ from the gold standard NER data in that the exact location of the entities in the text is unknown and the entities may contain typos and/or OCR mistakes. To overcome the challenges of our noisy training data, e.g. text extraction errors and/or typos and unknown label indices, we formulate the NER task as a text-to-text sequence generation task and train a pointer generator network to generate the entities in the document rather than label them. We show that the pointer generator can be effective for NER in the absence of gold standard data and outperforms the common NER neural network architectures in long legal documents.

Motivation & Objective

  • To address the challenge of training legal NER models when only the named entities are known, but not their precise locations in OCR-extracted text.
  • To overcome the limitations of traditional sequence labeling NER models in handling noisy, long-form legal documents with OCR errors and typos.
  • To improve extraction of rare and out-of-vocabulary (OOV) entities such as unique case numbers, which are often corrupted or unrecognized by standard models.
  • To evaluate the effectiveness of pointer generator networks in generating accurate named entities from noisy, incomplete training data.
  • To investigate whether character-level sequence generation can significantly improve performance on OOV legal identifiers like case numbers.

Proposed method

  • Reformulate the NER task as a text-to-text sequence generation problem instead of sequence labeling, enabling training without exact entity span annotations.
  • Use a pointer generator network with both copy (pointer) and generate (generator) mechanisms to handle OOV words and preserve entity integrity despite OCR errors.
  • Apply global and copying attention mechanisms to allow the model to attend to relevant parts of the input document and copy rare or corrupted words directly.
  • Train the model using a hybrid extractive-abstractive architecture that dynamically selects between copying words from the input or generating new tokens from the vocabulary.
  • Experiment with both word-level and character-level tokenization, where character-level input reduces OOV issues by enabling generation of any character sequence.
  • Evaluate model performance using Levenshtein distance to measure similarity between predicted and true entity strings, especially for case numbers.

Experimental results

Research questions

  • RQ1Can a pointer generator network effectively perform legal NER when only the named entities are available, but not their locations in the text?
  • RQ2How does the pointer generator model perform compared to standard sequence labeling NER architectures on long, noisy legal documents with OCR errors?
  • RQ3To what extent can character-level tokenization improve the extraction of OOV legal identifiers such as case numbers?
  • RQ4Does the combination of copying and generation mechanisms in the pointer generator reduce errors caused by OCR corruption and typos in legal text?
  • RQ5Can the proposed text-to-text generation approach be generalized to extract other types of rare or unique legal entities beyond party names and case numbers?

Key findings

  • The pointer generator network outperforms standard sequence labeling NER models on long legal documents, especially when entity locations are unknown.
  • The model achieves a 50% improvement in accuracy for case number extraction when using character-level tokenization compared to word-level tokenization.
  • With character-level input, over 80% of predictions have fewer than one character error, compared to only 50% for word-level models.
  • The pointer generator model effectively handles OCR errors and typos by copying from the input text, reducing reliance on generating rare or corrupted words.
  • The hybrid extractive-abstractive architecture enables robust performance on OOV entities such as unique case numbers, which are typically misclassified by conventional models.
  • The reformulation of NER as text-to-text generation eliminates the need for gold-standard span-labeled data, making it feasible to train on partially annotated legal datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.