Download README.md from korakot/deka-bulk: direct link, hf CLI and curl.
- Browser
- Download file 8.23 kB
-
https://huggingface.co/datasets/korakot/deka-bulk/resolve/main/README.md
- Command line
-
hf download hf://datasets/korakot/deka-bulk/README.md
-
curl -L -o README.md https://huggingface.co/datasets/korakot/deka-bulk/resolve/main/README.md
license: cc0-1.0
language:
- th
pretty_name: Thai Supreme Court judgments (deka.supremecourt.or.th)
tags:
- legal
- thailand
- court-decisions
configs:
- config_name: default
data_files:
- split: train
path: data/*.parquet
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: 133,254, from 106 years (B.E. 2463 to 2569).
- Collected: 10 to 11 November 2026, last updated 11 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: complete. The site reported 133,258 records on 11 November 2026; this dataset holds all of them except four empty or unusable records (see Known gaps).
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 (corrected for five records, see below) |
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, notcase_no, as the key. lawsuses the site's own ids (ป05-01is ประมวลกฎหมายวิธีพิจารณาความอาญา). 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.
Related dataset
phoneee/thai-legal-corpus (CC-BY 4.0, built in
March 2026) holds the same court's judgments as plain text, one string per judgment, with citations found
by pattern matching. It is useful for training on text and as a cross-check. This dataset differs in
keeping each record's fields apart, the court's document id, the court's own links to law sections, the
raw pages, and the records added after March 2026.
How it was collected
The court's search site returns every record of a year when searched with an empty keyword and that
year as both start and end, 20 records a page. Each results page already carries every field of its
records, so the pages were saved as fetched (raw/) and parsed into the rows in data/. The number
of records found for each year equals the number the site itself reports for that year. Collection
ran from a Thai address, because the site does not answer from outside Thailand.
To re-parse or check a record against the source, untar raw/<year>.tar: each pNNNN.html.gz is one
results page, and a record starts at <li class="clear result">.
Known gaps and quirks
- Nine records have a mistyped year in their case number on the site, such as "2015/2015" or "7011/541". Five were matched to their real case by identical text or the same panel of judges; their
yearandcase_noare corrected andlabelis left as the site shows it (docids 98593, 98587, 98812 in 2542, 258665 in 2541, 102309 in 2526). Four are left out ofdata/: two empty records, one whose text says no such judgment exists, and one stub whose year could not be established. All nine are still inraw/0000.tar. Sodata/holds four fewer rows than the site's total. - B.E. 2476 has no records on the site.
long_textis empty for many older records. The site has only a headnote for them.remarkis empty in every record so far; the site may load it separately.department,black_noandlower_court_nosare empty in most records.- A few labels are not judgments: คำสั่งคำร้อง, คำวินิจฉัย and คำสั่งศาลฎีกา are orders and rulings.
- The same judgment text can appear under more than one
docidwhen two sources published it.
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,506 |
| 2541 | 2,281 |
| 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,761 |
| 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 |
| 2504 | 502 |
| 2503 | 837 |
| 2502 | 676 |
| 2501 | 734 |
| 2500 | 898 |
| 2499 | 883 |
| 2498 | 1,115 |
| 2497 | 1,030 |
| 2496 | 760 |
| 2495 | 642 |
| 2494 | 1,068 |
| 2493 | 1,335 |
| 2492 | 1,476 |
| 2491 | 980 |
| 2490 | 720 |
| 2489 | 412 |
| 2488 | 358 |
| 2487 | 584 |
| 2486 | 626 |
| 2485 | 838 |
| 2484 | 308 |
| 2483 | 778 |
| 2482 | 527 |
| 2481 | 471 |
| 2480 | 1,199 |
| 2479 | 999 |
| 2478 | 888 |
| 2477 | 1,083 |
| 2475 | 377 |
| 2474 | 379 |
| 2473 | 477 |
| 2472 | 522 |
| 2471 | 420 |
| 2470 | 409 |
| 2469 | 465 |
| 2468 | 1,077 |
| 2467 | 1,093 |
| 2466 | 975 |
| 2465 | 378 |
| 2464 | 995 |
| 2463 | 113 |