Downloads · 30 days
10
6% of all-time downloads
shivvamm/phi-1.5-mini-judgements-finetuned
phi-1.5-mini-judgements-finetuned is a question answering model from shivvamm. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
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…
Downloads · 30 days
10
6% of all-time downloads
All-time downloads
160
Public
Parameters
1.4B
2.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.8 GB · 100%
From the Hugging Face model README
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.
bert-base-uncased or your base model)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'])