Views
No views yet
transformers library.1from transformers import AutoTokenizer, LEDForConditionalGeneration
2
3# Load the tokenizer and model
4tokenizer = AutoTokenizer.from_pretrained("Rak-shit/legal-summeriser-led")
5model = LEDForConditionalGeneration.from_pretrained("Rak-shit/legal-summeriser-led")
6
7# Sample Indian Legal Text
8legal_text = "---
9license: cc-by-4.0
10task_categories:
11- text-classification
12- token-classification
13language:
14- en
15tags:
16- legal
17- india
18- high-court
19- judicial-judgment
20pretty_name: High Court of Judicature Judgment Sample
21---
22
23# Dataset Card: Indian Judicial Judgment (High Court)
24
25## Technical Overview
26This is a synthetic reproduction of a standard Indian High Court civil judgment. It is formatted to test **NER** (Lawyers, Judges, Acts, Sections), **Citation Extraction**, and **Summarization** of legal reasoning.
27
28## Legal Text: Civil Writ Petition
29
30**IN THE HIGH COURT OF JUDICATURE AT BOMBAY**
31**ORDINARY ORIGINAL CIVIL JURISDICTION**
32
33**WRIT PETITION NO. 1402 OF 2026**
34
35**M/s. Bharat Infrastructure Pvt. Ltd.**
36A Company incorporated under the Companies Act, 2013,
37having its registered office at Nariman Point, Mumbai. ... **Petitioner**
38
39*Versus*
40
41**The Municipal Corporation of Greater Mumbai**
42Through the Municipal Commissioner,
43Mahapalika Marg, Mumbai. ... **Respondent**
44
45---
46
47**CORAM:** HON’BLE MR. JUSTICE ARVIND S. DESAI &
48HON’BLE MS. JUSTICE PRIYANKA K. MEHTA
49
50**DATE:** FEBRUARY 27, 2026
51
52---
53
54### JUDGMENT (Per: Arvind S. Desai, J.):
55
561. **Rule.** Respondents waive service. By consent of the parties, the Writ Petition is taken up for final hearing and disposal at the admission stage itself.
57
582. **The Facts:** The Petitioner, a construction firm, seeks a Writ of Mandamus directing the Respondent-Corporation to issue a Full Occupation Certificate (OC) for the project situated at Plot No. 88, Worli Division. Despite the issuance of a Part-OC on October 12, 2024, the Respondent has withheld the final certificate citing an alleged violation of the *Development Control and Promotion Regulations for Greater Mumbai, 2034* (DCPR 2034).
59
603. **Submissions:** Mr. Rajesh Sharma, learned Senior Counsel appearing for the Petitioner, submits that all requisite premiums and development charges have been paid in full. He relies upon the decision of the Apex Court in *State of Maharashtra v. Reliance Industries Ltd. (2022) 10 SCC 45*, wherein it was held that once a building is completed as per sanctioned plans, the authority cannot withhold an OC on grounds not explicitly stated in the initial Intimation of Disapproval (IOD).
61
624. **Respondent's Contention:** Mr. Sanjay Gupta, learned counsel for the Municipal Corporation, vehemently opposes the petition. He contends that an unauthorized mezzanine floor was constructed in the 'B-Wing' of the subject building, which attracts penalty under Section 53(1) of the *Maharashtra Regional and Town Planning Act, 1966* (MRTP Act).
63
645. **Analysis:** We have perused the records and the site inspection report dated January 15, 2026. It is evident that the alleged violation pertains to a minor internal modification that is regularizable under the prevailing compounding policy of the State Government. The Respondent's refusal to grant a Full OC for the entire project due to a localized issue in one wing is, in our view, disproportionate and contrary to the principles of administrative law.
65
666. **Order:** (a) The Respondent-Corporation is directed to process the Petitioner's application for a Full Occupation Certificate within a period of four (4) weeks from the date of this order.
67 (b) The Petitioner is directed to pay the compounding charges as per the demand note dated February 5, 2026, within one week.
68 (c) Rule is made absolute in the above terms. No order as to costs.
69
70**[ARVIND S. DESAI, J.]** **[PRIYANKA K. MEHTA, J.]**
71
72---
73
74## Metadata for NLP Tasks
75| Entity Type | Example Value |
76| :--- | :--- |
77| **Court** | High Court of Judicature at Bombay |
78| **Statute** | MRTP Act, 1966 |
79| **Section** | Section 53(1) |
80| **Case Citation** | (2022) 10 SCC 45 |
81| **Petitioner** | M/s. Bharat Infrastructure Pvt. Ltd. |
82| **Judges** | A. S. Desai, P. K. Mehta |
83
84# Tokenize and Generate Summary
85inputs = tokenizer(legal_text, return_tensors="pt", max_length=4096, truncation=True)
86summary_ids = model.generate(inputs["input_ids"], max_length=250, min_length=100, length_penalty=2.0, num_beams=4)
87
88summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
89print("Generated Summary:", summary)