🤖 AI Summary
This study addresses the absence of a fine-grained legal topic taxonomy for UK summary judgment case texts. We propose the first domain-specific legal topic classification schema tailored to UK summary judgments and construct a manually annotated dataset. Methodologically, we integrate legal ontology modeling, domain-adapted prompt engineering, human-verified few-shot learning, and fine-tuning of LLaMA-3 and Phi-3 models to enhance large language models’ generalization capability in low-resource legal text classification. Experimental evaluation on real-world UK judgment data achieves 92.3% classification accuracy—outperforming a BERT-based baseline by 14.7 percentage points. This work fills a critical gap in automated semantic annotation of UK case law and delivers a scalable technical framework for intelligent judicial document archiving, retrieval, and analysis.