LExiMinD Legal T5 Summarizer
A T5-based model fine-tuned for summarizing legal documents, designed to produce concise and accurate summaries of contracts, agreements, and other legal texts.
Model Details
- Architecture: T5 (Text-to-Text Transfer Transformer)
- Training Data: Fine-tuned on a dataset of legal documents (e.g., contracts, case law) [replace with specific dataset details if available].
- Language: English
- License: Apache 2.0
Usage
This model can be used for summarizing legal texts via the Hugging Face Inference API or locally with the Transformers library.
Using the Hugging Face Inference API
To use the model via the Inference API, you need a Hugging Face API token. Get one from your Hugging Face account settings.
Example with Python huggingface_hub
:
from huggingface_hub import InferenceClient
client = InferenceClient(model="Ruthwik/LExiMinD_legal_t5_summarizer", token="YOUR_HF_TOKEN")
text = "This agreement, entered into on January 1, 2025, between Party A and Party B, outlines the terms for the provision of services..."
summary = client.summarization(text, max_length=200, min_length=75)
print(summary)
- Downloads last month
- 22
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support