hf_mirrors/bharat-government-documents
Datasets
Dataset viewer
Files & versions
You are visiting the mirror address of https://huggingface.co/datasets/ankitjh4/bharat-government-documents. The repo is synchronized in real-time and is only for mirror acceleration access.

Bharat Guide: screened Indian public information documents

This snapshot contains 64,964 distinct normalized text bodies and 77,526 source records. Generated 2026-10-03T01:10:02.179230+00:00.

Contents and provenance

One Parquet row represents one normalized source body, with original extracted text, source title, URL, extraction quality, observed retrieval time, rule version, topic labels and all current-body source aliases. Duplicate URLs/editions are preserved as provenance, not counted as additional distinct documents. The canonical record is the lexicographically smallest eligible document identifier. Topic labels overlap.

Selection requires an eligible assessment whose body checksum still matches the current document, with full_text or ocr_text extraction. This is heuristic screening, not manual factual validation. Older and newer screening versions coexist and are reported in manifest.json. PTI secondary news, directory-only entries, summary-only records, rejected text and OCR awaiting review are not qualifying rows. A reviewed alias can be retained inside an eligible row's provenance, explicitly labelled. The text exports contain no raw response bytes or account credentials. The combined CSV labels screened and review documents explicitly; failure records are separate. The separate SQLite backup retains original evidence and operational records; its manifest records its own snapshot date.

Limitations

This is not a complete census of Indian websites, laws, schemes or facilities. Government-adjacent institutional publications are labelled separately from government sources. Retrieval time is not publication time. Source validity, amendments, legal force, policy deadlines and numerical OCR accuracy require checking the original. Exact normalized-body deduplication does not establish semantic equivalence.

Rights and use

Rights remain with each original publisher. Government provenance does not establish that every source is public domain or has one common reuse licence. No blanket licence is granted over collected source text. Consult each source's terms and applicable rights before redistribution or other reuse. Publication does not change the rights retained by each original source.

Releases

manifest.json gives checksums and row counts. publication.json tracks confirmed publication content hashes and the additional-document threshold. Each update is committed atomically with its data and manifest; the next release is due after at least 10,000 newly qualifying distinct bodies, not 10,000 fetched URLs or chunks.

Download layout and CSV fields

documents.csv.gz is sorted by the full url value in ascending, case-sensitive order.

documents.csv.gz is the main download: one deduplicated, nonempty extracted text body per row, combining screened and review content. The status column is good or review. Only good rows count toward the screened-document milestone. Review rows may include thin text, directory entries, news or incomplete extraction; keep them separate when evaluating quality. Duplicate source aliases are preserved in provenance/sources.csv.gz without repeating their text in the main CSV.

The CSV contains: content_hash, document_id, title, text, url, host, kind, trust, quality, state, category, fetched_at, metadata, sha256, status, assessment_version, assessment_status, assessment_reasons, topics. text is the full stored extracted body, not a summary. metadata preserves the representative document's SQLite JSON metadata. topics is a JSON list, and labels may overlap; unclassified documents are explicitly labelled. Fetch time is not publication time. A row represents a document body, not every relational SQLite row.

topics/document_topics.csv.gz maps topics to content hashes and good/review status; topics/summary.json provides counts. This index avoids copying full text into many folders. Topic labels are heuristic, not manual factual or legal validation.

fails/urls.csv.gz contains failure, robots-blocked, retry and OCR-pending records with their exact statuses; not every entry is a permanent failure. fails/empty_documents.csv.gz lists records without usable text. Neither is counted as a distinct text document. Unattempted queued URLs and seed inventories are not exported. No crawler handoff package is included.

CSV files use UTF-8, gzip compression and standard quoting for multiline text. Decompress to obtain an ordinary CSV, or read directly:

import pandas as pd
df = pd.read_csv("documents.csv.gz")
good = df[df["status"] == "good"]

Optional data/train-*.parquet files contain screened text in larger batches for the Hugging Face viewer. The CSV contains additional review content, so its row count is higher than the qualifying-document count. Source values are preserved; treat spreadsheet formulas in source text as untrusted, not executable instructions.

SQLite reference

SQLITE_SCHEMA.md lists every table and field; sqlite_schema.sql contains the reference schema. documents stores text and metadata; document_assessments stores screening decisions; document_topics stores labels. Original PDFs and responses are in raw_blobs.payload, linked through fetch_receipts.raw_sha256, with codec describing zlib compression or raw bytes. ocr_pages stores page-level results. These binary files and operational tables are not embedded in the CSV.

The private recovery files backups/bharat.sqlite and backups/sqlite-manifest.json retain their own snapshot date and checksum, which may precede the text release. The full SQLite backup includes crawl queues and source inventories even though this CSV release excludes them. Keep that backup private when publishing text-only data.

Sources and subject coverage

Sources include Indian central, state and local government portals; courts and legislative institutions; regulators and public-sector bodies; universities and research institutions; and other government-adjacent institutional sources. Domain endings alone do not establish ownership or reliability. Secondary news reporting, including PTI, is distinguished from official statements such as PIB releases.

This release has text provenance from 16,122 distinct website hostnames. Subdomains count separately. These are hosts represented in the released text, not a claim that every page of each website has been crawled. Failed-only, queued and seed-only hosts are excluded.

Website domain groupDistinct hosts
.gov.in11,598
.ac.in1,791
Other .in2,283
Other domain endings450

The current classifier defines 36 broad subject labels, with the finer areas described below. The finer subject areas are descriptive; subtopic coverage is not counted independently. A website/document may appear under multiple topics, so topic totals must not be added together.

Topic host counts include all released source aliases for labelled text, including review material. Labels are automated and may be inherited across identical-text aliases. good means passed extraction/source/subject heuristics, not manual fact-checking. Examples name institution types and subject areas, not a verified inventory of every named institution.

TopicWebsite hostsGood documentsReview documentsSource types and finer subject areas
Law and judiciary2,0098,90811,438Courts, tribunals and legal-services bodies; Supreme Court, High Courts, judgments and legal aid
Schemes and benefits3,47110,7554,590Central/state scheme portals; benefits, eligibility, applications and beneficiary guidance
Policy and regulation5,8918,3858,247Ministries, departments and regulators; policies, regulations, guidelines and gazette notifications
Government statements1,7392,0663,058Official information offices and PIB; press releases, cabinet decisions and public statements
Universities and research3,4109,8449,169Universities, colleges and research institutions; admissions, curricula, accreditation and research
Religion, heritage and endowments1,5741,3581,003Heritage and endowment bodies; religious institutions, pilgrimage, archaeology and endowments
Mining and natural resources2,4123,3673,623Mining, geology and resource departments; minerals, coal, petroleum, water and forests
Tourism1,4913,5673,417Tourism departments and public tourism bodies; destinations, visitor information and travel advisories
Public finance and accounts2,7752,9514,578Finance departments, treasuries and audit bodies; expenditure, accounts, audits and appropriations
Population and statistics1,0459721,008Census and statistics agencies; population, demographics, household surveys and vital statistics
Banking and monetary policy6251,5271,146Banks and financial authorities; monetary policy, deposits, interest rates and financial stability
Other public services3,7428,4637,448Citizen-service and sector departments; agriculture, public health, sanitation, drinking water and transport
Constitution209149125Legislative and legal-information portals; constitutional text, provisions and constitutional materials
Acts, amendments, rules and legal forms352365444Legislative departments and legal repositories; Acts, amendments, repeals, rules and statutory forms
Hospitals and health facilities1889951,435Health departments and facility portals; hospitals, medical colleges, facility directories and infrastructure
Income tax74783642Tax authorities; direct taxes, returns, deductions and taxpayer guidance
Roads and public contracts2389451,202Roads departments and procurement portals; highways, tenders, contracts and awards
Public infrastructure2,8843,5663,538Public works and infrastructure agencies; railways, urban development and public projects
Digital infrastructure3951,401744Digital-government agencies; e-governance, broadband, BharatNet and digital public infrastructure
ONDC41320Digital-commerce network information; ONDC and open-network participation
UPI and payment systems18513Payment-system institutions; UPI, NPCI and payment-system documentation
Prisons and correctional administration2907921,599Prison and corrections departments; administration, jail manuals and aggregate reports
Juvenile justice3514797Child-welfare and justice bodies; legislation, observation homes and institutional reports
Reproductive health and rights404925Health and rights-related public bodies; maternal health, family planning and pregnancy-termination frameworks
Minority rights73315936Minority-affairs departments and commissions; protections, programmes and public reports
Culture and arts6452,6762,963Culture departments and public cultural institutions; museums, arts and cultural programmes
Fire services and stations227374321Fire and emergency-service departments; stations, fire services and fire-safety guidance
Police services and stations6041,4731,241Police departments; stations, public services and departmental information
Credit and lending77167175Banks and credit-programme bodies; loans, guarantees, lending schemes and microfinance
Government grants and sponsorships301815612Grant-making and education departments; grants, scholarships and sponsorships
Government hospitality and hotels59647720Public tourism corporations and hospitality bodies; government hotels and state guest houses
Official contact directories513416232Official departmental directories; office contacts, telephone directories and who-is-who pages
International policy and statements128320403External-affairs and diplomatic institutions; bilateral relations, foreign policy and joint statements
Parliament and briefings5856581,420Parliamentary institutions; Lok Sabha, Rajya Sabha, briefings and parliamentary materials
Prime ministers: history and tenures1156Official historical and institutional collections; former prime ministers and their tenures
Budgets8757171,611Finance and budget portals; budgets, demands for grants and appropriation documents
News reporting1011Secondary news agencies, including PTI; news reporting kept distinct from official government statements
Unclassified13,1010253,560Extracted material without a subject label; retained for review, not assigned an invented topic

Agriculture currently sits within Other public services; it does not yet have a separately measured website count. Zero-count topics indicate tracked areas without labelled text in this snapshot, not completed coverage. Hospital records are not a reconciled national inventory; legal materials may include superseded versions.

For exact source URLs and titles, see provenance/sources.csv.gz. Document-level topics are in documents.csv.gz; the topic-to-document index and counts are in topics/. These files describe released material and do not include queued or seed-only website lists.