How akash-r-m/cs781-legal-llm-capstone works
This repository is a notebook-driven legal NLP research pipeline, not a deployed service. Its main workflow trains a byte-level tokenizer and legal-language-model backbone, then adapts that backbone for six IL-TUR tasks and produces Codabench submissions. The README documents the phase relationships and major task methods; Phase 4 also has a sampled script implementation. Other task internals are represented at their existing notebook-directory paths because their source was not sampled.
Main entry points: phase1_decoder.ipynb Legal LM · phase2_ner/notebooks NER tagging · phase3_rhetorical_roles/notebooks Rhetorical roles · phase4_cjpe_arch1_zoo.py Judgment prediction
Components 10
Model foundation
- Byte-level BPE
phase1_pretraining/notebooks/phase1_decoder.ipynb - Legal LM
phase1_pretraining/notebooks/phase1_decoder.ipynb
Legal classification
- NER tagging
phase2_ner/notebooks - Rhetorical roles
phase3_rhetorical_roles/notebooks - Judgment prediction
phase4_judgment_prediction/phase4_cjpe_arch1_zoo.py - Statute identification
phase5_statute_id/notebooks
Legal text tasks
- Legal summarization
phase6_summarization/notebooks
Case retrieval
- Prior-case retrieval
phase7_retrieval/notebooks
Other components
- Course dataset
- Codabench
Connections 14
- Course dataset → Byte-level BPE: trains from
README.md - Byte-level BPE → Legal LM: tokenizes training text
README.md - Legal LM → NER tagging: adapts for NER
README.md - Legal LM → Rhetorical roles: adapts for roles
README.md - Legal LM → Judgment prediction: adapts for prediction
README.md - Legal LM → Statute identification: adapts for statutes
README.md - Legal LM → Legal summarization: adapts for summarization
README.md - Legal LM → Prior-case retrieval: provides features
README.md - NER tagging → Codabench: submits results
README.md - Rhetorical roles → Codabench: submits results
README.md - Judgment prediction → Codabench: submits results
README.md - Statute identification → Codabench: submits results
README.md - Legal summarization → Codabench: submits results
README.md - Prior-case retrieval → Codabench: submits results
README.md