thechancerylaneproject/legal-sustainability-ner
0
Legal Sustainability NER
A bespoke spaCy named entity recognition model fine-tuned on legal text from The Chancery Lane Project (TCLP) — a collection of climate-focused contract clauses and glossary terms.
Fine-tuned on top of nlpaueb/legal-bert-base-uncased.
Used as part of the TCLP Knowledge Graph pipeline.
Entity labels
Usage
import spacy
from huggingface_hub import snapshot_download
# Download model
model_path = snapshot_download("georgiaray/legal-sustainability-ner")
# Load
nlp = spacy.load(model_path + "/model-last")
# Run
doc = nlp("The Supplier must comply with the GHG Protocol and report Scope 1, 2 and 3 emissions.")
for ent in doc.ents:
print(ent.text, "->", ent.label_)Files
Performance
~73% accuracy on entity type classification, evaluated against a hand-labelled dataset of TCLP entities. This is a subjective multi-label task where reasonable disagreement exists between labels (e.g. a term may be both a Defined Term and a Party to Contract).
