Skip to main content
QUICK REVIEW

[Paper Review] May I Check Again? -- A simple but efficient way to generate and use contextual dictionaries for Named Entity Recognition. Application to French Legal Texts

Valentin Barrière, Amaury Fouret|arXiv (Cornell University)|Sep 8, 2019
Natural Language Processing TechniquesComputer Science22 references6 citations
TL;DR

This paper proposes MICA, a context-aware method that enhances Named Entity Recognition (NER) in French legal texts by dynamically generating contextual entity dictionaries using Damerau-Levenshtein and longest common subsequence distances. By injecting similarity-based features into the final layer of a neural NER model, it improves robustness to typos and boosts F1-score by 1.67 percentage points (94.85% to 96.52%) and reduces relative recall error by 40.9%.

ABSTRACT

In this paper we present a new method to learn a model robust to typos for a Named Entity Recognition task. Our improvement over existing methods helps the model to take into account the context of the sentence inside a court decision in order to recognize an entity with a typo. We used state-of-the-art models and enriched the last layer of the neural network with high-level information linked with the potential of the word to be a certain type of entity. More precisely, we utilized the similarities between the word and the potential entity candidates in the tagged sentence context. The experiments on a dataset of French court decisions show a reduction of the relative F1-score error of 32%, upgrading the score obtained with the most competitive fine-tuned state-of-the-art system from 94.85% to 96.52%.

Motivation & Objective

  • Address the challenge of low NER performance on French legal texts due to typos and domain-specific language.
  • Improve robustness of state-of-the-art NER models to spelling variations and noisy input in legal documents.
  • Develop a domain-adaptive NER system using fine-tuned language embeddings and context-sensitive entity candidate generation.
  • Minimize false negatives in de-identification tasks by enhancing recall without sacrificing precision.
  • Create a language- and domain-agnostic method applicable to other NER settings beyond French legal texts.

Proposed method

  • Train a base BLSTM-CRF NER model using stacked embeddings: FastText, character-level BiLM, and character-level embeddings.
  • For each sentence, extract a context window (optimal size: 128) to collect potential named entities from the first model's predictions.
  • Compute similarity scores between each word and candidate entities using Damerau-Levenshtein distance and longest common subsequence (LCS) distance.
  • Generate a similarity vector per word representing its potential to be a specific entity type (e.g., PER, LOC).
  • Inject this similarity vector as a high-level feature into the final layer of a second NER model to refine predictions.
  • Fine-tune FastText and BiLM embeddings on a 660,000-document French legal corpus to improve domain adaptation.

Experimental results

Research questions

  • RQ1Can context-aware entity candidate generation improve NER robustness to typos in French legal texts?
  • RQ2How does the size of the context window affect the performance of the contextual dictionary method?
  • RQ3To what extent can similarity-based features derived from entity candidates enhance NER precision and recall?
  • RQ4Does injecting high-level contextual features into the final layer of a neural NER model outperform standard fine-tuning?
  • RQ5Can the method be generalized to other domains and languages beyond French legal documents?

Key findings

  • The MICA method reduces the relative F1-score error by 32% compared to the best fine-tuned baseline, improving F1 from 94.85% to 96.52%.
  • The optimal context window size for entity candidate generation is 128 tokens, beyond which performance degrades due to reduced precision.
  • The system reduces the relative recall error by 40.9% compared to the baseline, significantly improving de-identification completeness.
  • The method maintains stable false positive rates despite using predictions from the first model to build the dictionary.
  • Fine-tuning FastText and BiLM embeddings on legal text improves model performance, confirming the value of domain-adaptive representations.
  • The approach is effective even when applied to a CRF-based NER system, showing compatibility with non-deep learning models.

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.