S.17Machine learningApril – May 2025shipped

Legal Document Analysis

Hybrid NLP over Indian Supreme Court judgments

A tool for making sense of complex legal judgments — combining rule-based extraction with three transformer models to surface insights that would otherwise take a legal professional hours.

Summarization
BART-large-cnn
Classification
Legal-BERT
nlpaueb, legal corpus
Entities
BERT NER
dslim/bert-base-NER
Topics
LDA
clustering by theme

The system runs two analysis paths over the same document. The rule-based path extracts and cleans PDF text, then pattern-matches legal entities — judges, parties, statutes, sections and case citations — along with dates and metadata, keyword extraction and simple extractive summarisation. It is fast, deterministic and needs no GPU.

The ML path layers on three specific models: facebook/bart-large-cnn for abstractive summarisation, nlpaueb/legal-bert-base-uncased for document classification, and dslim/bert-base-NER for entity recognition, with LDA topic modelling for clustering documents by theme. The two paths are toggleable independently, so the tool degrades to something usable rather than failing when the models are unavailable.

Search only: every answer quotes this site and links its source. Nothing is generated.