Dataset Viewer

The dataset viewer should be available soon. Please retry later.

deka-bulk

Judgments and orders of the Supreme Court of Thailand (คำพิพากษาศาลฎีกา), as published on the court's search site deka.supremecourt.or.th. Working dataset of the korakot/deka project.

  • Records: 102,842 across 65 years (B.E. 2505 to 2569).
  • Collected: 10 November 2026, by searching each year with an empty keyword and saving every results page. Each year's record count was checked against the count the site itself reports.
  • Status: collection in progress; older years are still being added.

Loading

from datasets import load_dataset
ds = load_dataset("korakot/deka-bulk", split="train")          # everything
ds = load_dataset("korakot/deka-bulk", data_files="data/2567.parquet", split="train")   # one year

or with pandas:

import pandas as pd
df = pd.read_parquet("hf://datasets/korakot/deka-bulk/data/2567.parquet")

If the dataset is set to private, sign in first (hf auth login) with an account that has access.

Files

Path Content
data/<year>.parquet one row per record, the fields below
raw/<year>.tar the results pages of that year exactly as fetched (gzipped HTML, 20 records a page)
ids/<year>.tsv docid, label, page and position in the search results

Fields

Field Type Meaning
docid int the site's document id; the key of a record
year int Buddhist-era year of the case number
label string as shown on the site, e.g. "คำพิพากษาศาลฎีกาที่ 6511/2567"
doc_type string คำพิพากษาศาลฎีกา, คำสั่งคำร้อง, คำวินิจฉัย, ...
case_no string e.g. "6511/2567"; can be a range such as "8122 - 8123/2567"
short_text string the headnote (ย่อสั้น); paragraphs separated by newlines
long_text string the full text (ย่อยาว); empty for many older records, which have only a headnote
laws list sections the site links the record to: law_id, law_name, law_abbr, section, paragraph, sub, display
litigants list role (โจทก์, จำเลย, ...) and name
judges list names of the panel
lower_courts list first-instance and appeal courts with their judges, as shown
source string แหล่งที่มา, e.g. กองผู้ช่วยผู้พิพากษาศาลฎีกา
department string แผนก, e.g. ภาษีอากร, แรงงาน; mostly empty
black_no list Supreme Court case-file numbers
lower_court_nos list first-instance case-file numbers
remark string หมายเหตุ
page, pos int where the record sat in the year's search results

Things to know

  • One case number can have several records. They come from different sources and differ in content. Use docid, not case_no, as the key.
  • laws uses the site's own ids (ป05-01 is ประมวลกฎหมายวิธีพิจารณาความอาญา). They are not the Council of State's law codes.
  • Names of private persons are mostly reduced to initials by the court in recent years, but not in older records. Treat the texts as containing personal data.
  • Licence: public domain (CC0 1.0). Judicial decisions are not copyright works under Section 7 of the Thai Copyright Act B.E. 2537, and whatever rights exist in this compilation and its added structure are waived under CC0 1.0. This says nothing about personal data, which stays the user's responsibility.

Records per year

Year (B.E.) Records
2569 120
2568 374
2567 675
2566 451
2565 528
2564 459
2563 1,187
2562 442
2561 626
2560 690
2559 856
2558 1,574
2557 977
2556 832
2555 1,067
2554 739
2553 1,330
2552 1,119
2551 1,373
2550 1,303
2549 1,335
2548 1,664
2547 1,317
2546 1,042
2545 1,958
2544 1,828
2543 2,214
2542 2,503
2541 2,280
2540 3,532
2539 3,051
2538 4,817
2537 3,840
2536 2,967
2535 2,908
2534 2,182
2533 4,313
2532 3,985
2531 3,444
2530 3,362
2529 2,825
2528 1,218
2527 1,600
2526 1,760
2525 1,843
2524 1,656
2523 1,625
2522 1,705
2521 1,030
2520 1,221
2519 1,291
2518 1,211
2517 1,039
2516 913
2515 782
2514 910
2513 858
2512 1,067
2511 1,519
2510 1,007
2509 1,061
2508 995
2507 544
2506 1,178
2505 720
Downloads last month
-