Home Knowledge Base Legal-BERT

Legal-BERT is a family of BERT models pre-trained on large legal corpora including legislation, court cases, and contracts, designed to understand the specialized vocabulary and reasoning patterns of legal language ("legalese") — outperforming general-purpose BERT on legal NLP tasks such as contract clause identification, legal judgment prediction, court opinion classification, and Named Entity Recognition for legal entities, by learning that terms like "suit" refer to lawsuits rather than clothing and that "consideration" means contractual exchange of value.

What Is Legal-BERT?

Performance on Legal NLP Tasks

TaskLegal-BERTBERT-baseImprovement
Contract Clause Classification88.2%82.7%+5.5%
Legal Judgment Prediction (ECtHR)80.4%75.8%+4.6%
Statutory Reasoning71.3%65.1%+6.2%
Legal NER (case names, statutes)91.7% F186.3% F1+5.4%
Case Topic Classification86.9%82.4%+4.5%

Key Applications

Legal-BERT vs. General Models

ModelLegal NLP ScorePre-Training DataBest For
Legal-BERTHighest12GB+ legal corporaAll legal NLP tasks
BERT-baseBaselineWikipedia + BookCorpusGeneral NLP
GPT-4 (zero-shot)GoodInternet-scaleGeneral legal QA
SciBERTPoor on legalScientific papersScientific NLP

Legal-BERT is the standard domain language model for legal text processing — demonstrating that the specialized vocabulary, reasoning patterns, and semantic conventions of legal language require dedicated pre-training to achieve high performance on practical legal NLP applications from contract review to judgment prediction.

legal bertlawdomain

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.