🏛️ SC Legal QA Model

This model is a legal question-answering model fine-tuned on Indian Supreme Court judgments. It is designed to answer law-related questions such as doctrines, legal principles, precedents, and statutory interpretation based on input context.


🧠 Model Details

  • Architecture: Transformer-based (e.g., bert-base-uncased or your base model)
  • Fine-tuned on: Curated and parsed Indian Supreme Court case texts
  • Task: Extractive Question Answering
  • Language: English
  • Domain: Indian Law, Constitutional Law, Civil & Criminal Judgments

🚀 How to Use

from transformers import pipeline

qa_pipeline = pipeline("question-answering", model="shivvamm/phi-1.5-mini-judgements-finetuned")

context = """
The basic structure doctrine is a judicial principle that certain fundamental features of the Constitution of India cannot be altered by amendments by the Parliament.
"""

question = "What is the basic structure doctrine?"

result = qa_pipeline(question=question, context=context)
print(result['answer'])
Downloads last month
22
Safetensors
Model size
1.42B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support