CoolFace
Datasetpublic

ThanniruVenkata/Indian_Laws_Structured_Legal_Dataset

๐Ÿ” Overview This dataset provides structured, machine-readable legal text from major Indian statutes, including: Bharatiya Nyaya Sanhita, 2023 (BNS) Code of Criminal Procedure, 1973 (CrPC) Code of Civil Procedure, 1908 (CPC) Indian Evidence Act, 1872 (IEA) Negotiable Instruments Act, 1881 (NIA) Motor Vehicles Act, 1988 (MVA) Indian Divorce Act, 1869 (IDA) Income-Tax Act, 2025 (ITA2025) (effective April 1, 2026) Each entry represents a section or chunk of aโ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/ThanniruVenkata/Indian_Laws_Structured_Legal_Dataset.

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes6downloads
Dataset Card

๐Ÿ” Overview

This dataset provides structured, machine-readable legal text from major Indian statutes, including:

  • โ€”Bharatiya Nyaya Sanhita, 2023 (BNS)
  • โ€”Code of Criminal Procedure, 1973 (CrPC)
  • โ€”Code of Civil Procedure, 1908 (CPC)
  • โ€”Indian Evidence Act, 1872 (IEA)
  • โ€”Negotiable Instruments Act, 1881 (NIA)
  • โ€”Motor Vehicles Act, 1988 (MVA)
  • โ€”Indian Divorce Act, 1869 (IDA)
  • โ€”Income-Tax Act, 2025 (ITA2025) (effective April 1, 2026)

Each entry represents a section or chunk of a section, enriched with metadata for efficient retrieval and AI/ML applications.


๐ŸŽฏ Intended Use

This dataset is designed for:

  • โ€”Legal question answering systems
  • โ€”Semantic search & document retrieval
  • โ€”Retrieval-Augmented Generation (RAG) pipelines
  • โ€”Tax and legal compliance systems
  • โ€”Legal document classification
  • โ€”Training domain-specific language models
  • โ€”Knowledge graph construction

๐Ÿ—๏ธ Data Structure

Each record contains:

๐Ÿ“Œ Core Fields

FieldTypeDescription
act_namestringName of the act
act_codestringCode identifier (e.g., ITA2025)
effective_fromstringEffective date (YYYY-MM-DD)
chapterstringChapter number
chapter_namestringChapter title
chapter_subtypestringSubcategory (if applicable)
sectionstringSection number
titlestringSection heading
contentstringFull legal text
search_textstringOptimized searchable text
doc_idstringUnique document ID
chunk_indexintChunk index (0-based)
total_chunksintTotal chunks

๐Ÿง  Key Features

  • โ€”โœ… Multi-act legal coverage
  • โ€”โœ… Structured hierarchy (Act โ†’ Chapter โ†’ Section)
  • โ€”โœ… Chunked for LLM compatibility
  • โ€”โœ… Optimized for semantic/vector search
  • โ€”โœ… High-quality statutory text
  • โ€”โœ… Unique identifiers for precise retrieval

๐Ÿ“˜ Income-Tax Act 2025 Coverage

Includes complete structured data for the Income-Tax Act, 2025:

Major Chapters:

  • โ€”Chapter 1โ€“4: Heads of Income
  • โ€”Chapter 5: Income of Other Persons Included
  • โ€”Chapter 6: Aggregation of Income
  • โ€”Chapter 7: Set-off & Carry Forward of Losses
  • โ€”Chapter 8+: Deductions, Allowances, Advanced Provisions

๐Ÿš€ Example Use Cases

โš–๏ธ Legal Systems

  • โ€”Legal chatbots
  • โ€”Legal research assistants
  • โ€”Court/legal analytics tools

๐Ÿ’ฐ Tax Applications

  • โ€”Tax advisory chatbots
  • โ€”Compliance automation systems
  • โ€”Income tax lookup tools

๐Ÿค– AI/ML Applications

  • โ€”RAG pipelines for law & taxation
  • โ€”Domain-specific LLM training
  • โ€”Semantic legal search engines

๐Ÿ“Š Research & Analytics

  • โ€”Policy analysis
  • โ€”Legal trend identification
  • โ€”Cross-act relationship mapping

๐Ÿงช How to Use

Load Dataset (Hugging Face)

python
from datasets import load_dataset
dataset = load_dataset("ThanniruVenkata/Income-Tax-Act-2025-Machine-Readable-Legal-Text")

โš ๏ธ Biases & Limitations

  • โ€”The dataset contains formal legal language, which may not reflect simplified or interpreted meanings.
  • โ€”No judicial interpretations, case law, or precedents are included.
  • โ€”Legal provisions may be context-dependent, requiring expert understanding.
  • โ€”The dataset reflects Indian legal framework only, and may not generalize globally.
  • โ€”Some sections are split into chunks, which may affect contextual continuity.

โš ๏ธ Risks & Responsible Use

  • โ€”This dataset should not be used as a sole source for legal or tax decisions.
  • โ€”Models trained on this data may generate legally incorrect or outdated interpretations.
  • โ€”Always verify outputs with official government sources or professionals.

Dataset Version: 1.0 Release Date: April 2026 Last Updated: April 20, 2026 Maintained by: Data Contributors & Hugging Face Community License: Public Domain (Government of India) Status: Active and maintained