The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
for key, record in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
for filename, f in tar_iterator:
^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
for x in self.generator(*self.args):
~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1400, in _iter_from_urlpath
with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 977, in xopen
file_obj = fs.open(paths[0], mode)
File "<string>", line 3, in open
File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
return self._mock_call(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
return self._execute_mock_call(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
result = effect(*args, **kwargs)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
~~~^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
bundle unknown | json dict | txt string | pdf unknown | __key__ string | __url__ string |
|---|---|---|---|---|---|
"eyJkb2NfaWQiOiAiMDAwODgzZTA3ODRkYzRkYjJmNGZmYTU4NGFlMzhhNDI3ZmVkZTg2NTdmZjA0NmM1ZWNmMmU5ZGNjNjc5OWZ(...TRUNCATED) | {"doc_id":"000883e0784dc4db2f4ffa584ae38a427fede8657ff046c5ecf2e9dcc6799fb3","split":"train","title"(...TRUNCATED) | "# ระเบียบ อส. ว่าด่วยการใช้จ่ายเงินง(...TRUNCATED) | "JVBERi0xLjQKJbC4upUKMyAwIG9iago8PC9QYXJlbnQgNCAwIFIvTWVkaWFCb3hbMCAwIDU5OCA4NDVdL0NvbnRlbnRzIDUgMCB(...TRUNCATED) | 000883e0784dc4db2f4ffa584ae38a427fede8657ff046c5ecf2e9dcc6799fb3 | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDAzMDJhMDljMDE4MTA4NzBkMzM0ZjgyMjQ2MDI3MDUwYTNmYjg3OWE2YjUxMGNiZjYxM2E4MzQ0ODk4NmJ(...TRUNCATED) | {"doc_id":"00302a09c01810870d334f82246027050a3fb879a6b510cbf613a83448986bc9","split":"train","title"(...TRUNCATED) | "# ร้านรับซื้อของเก่าที่มีใบอนุญาต\n\n(...TRUNCATED) | "JVBERi0xLjMKJcTl8uXrp/Og0MTGCjMgMCBvYmoKPDwgL0ZpbHRlciAvRmxhdGVEZWNvZGUgL0xlbmd0aCA2MTYyID4+CnN0cmV(...TRUNCATED) | 00302a09c01810870d334f82246027050a3fb879a6b510cbf613a83448986bc9 | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDA1NjJjMDEyZTdlZTQ5Nzc3Yzc4ZTFlNDA5MmFmN2RiNmQ2YWE3OTg0NGVmMjM5ZDE3YTY4MmFhMDk2Zjd(...TRUNCATED) | {"doc_id":"00562c012e7ee49777c78e1e4092af7db6d6aa79844ef239d17a682aa096f7f8","split":"train","title"(...TRUNCATED) | "# สถิติคดีฟื้นฟูฯ จําแนกช่วงอายุของ(...TRUNCATED) | "JVBERi0xLjUKJeLjz9MKMSAwIG9iago8PCAKICAgL1R5cGUgL0NhdGFsb2cKICAgL1BhZ2VzIDIgMCBSCiAgIC9QYWdlTGF5b3V(...TRUNCATED) | 00562c012e7ee49777c78e1e4092af7db6d6aa79844ef239d17a682aa096f7f8 | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDA2NzlkNTVhNTQ0MTY3OThiZDJkODVkYzc2ZWI2ZDIzYWRiM2Y4MWZiYzRlYTBhNjA0ZGY2YzNjYjUzNWY(...TRUNCATED) | {"doc_id":"00679d55a54416798bd2d85dc76eb6d23adb3f81fbc4ea0a604df6c3cb535f8e","split":"train","title"(...TRUNCATED) | "# ข้อมูลสถิติเรื่องร้องเรียนการทุจ(...TRUNCATED) | "JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyh0aCkgL1N0cnVjdFRyZWV(...TRUNCATED) | 00679d55a54416798bd2d85dc76eb6d23adb3f81fbc4ea0a604df6c3cb535f8e | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDA3OGE3ZjljN2EzNzJkMzk3YzM1ZmI5YjFkMzE1ZmE1MDI3NjRmN2YzYTdiYTc2NzNjODg4ZjBmYzNiYmR(...TRUNCATED) | {"doc_id":"0078a7f9c7a372d397c35fb9b1d315fa502764f7f3a7ba7673c888f0fc3bbddd","split":"train","title"(...TRUNCATED) | "# แผนการตรวจสอบภายใน ประจำปีงบประมา(...TRUNCATED) | "JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1VUykgL1N0cnVjdFR(...TRUNCATED) | 0078a7f9c7a372d397c35fb9b1d315fa502764f7f3a7ba7673c888f0fc3bbddd | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDBiNGE3MWFmYjlhODIzYWJkZWRiZjVlMGNiZWNmZGUwZGVhZmEyM2FjMjFkN2I1NjZkOWVkMjgzZGFkMTM(...TRUNCATED) | {"doc_id":"00b4a71afb9a823abdedbf5e0cbecfde0deafa23ac21d7b566d9ed283dad130a","split":"train","title"(...TRUNCATED) | "# มาตรการและแนวปฏิบัติเกี่ยวกับการ(...TRUNCATED) | "JVBERi0xLjcKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzCjw8Ci9YT2JqZWN0Cjw8IC9QQUdFMDAwMSA3IDAgUiA(...TRUNCATED) | 00b4a71afb9a823abdedbf5e0cbecfde0deafa23ac21d7b566d9ed283dad130a | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDBiZWJmNzNlODZjZGM0MjY2NWQxNmM3NGI2NjhmYTI3YTQzNTc5MzQzZTllZTY3MGEzOWU4ZDlmNDMxZWE(...TRUNCATED) | {"doc_id":"00bebf73e86cdc42665d16c74b668fa27a43579343e9ee670a39e8d9f431ea82","split":"train","title"(...TRUNCATED) | "# สถิติการเข้าดูข้อมูลข่าวสาร\n\n<!-- page 1 (...TRUNCATED) | "JVBERi0xLjcKJeDg4OAKCjMKIDAgb2JqClsvQ2FsUkdCPDwvR2FtbWFbMi4yMDAwMDAwNDc2ODM3MTU4IDIuMjAwMDAwMDQ3Njg(...TRUNCATED) | 00bebf73e86cdc42665d16c74b668fa27a43579343e9ee670a39e8d9f431ea82 | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDBkMzc0ZjlmZDIzMTBlNzY5MDMzMDg2MzRlYzJlZGYxMGM1NzdkMTZlZTNmYjY1ZjEzNDgyZmY1YzAyNDg(...TRUNCATED) | {"doc_id":"00d374f9fd2310e76903308634ec2edf10c577d16ee3fb65f13482ff5c02480d","split":"train","title"(...TRUNCATED) | "# PDF_แนวปฏิบัติการจัดการเรื่องร้องเร(...TRUNCATED) | "JVBERi0xLjQKJfbk/N8KMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovVmVyc2lvbiAvMS40Ci9QYWdlcyAyIDAgUgovTWV0YWR(...TRUNCATED) | 00d374f9fd2310e76903308634ec2edf10c577d16ee3fb65f13482ff5c02480d | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDExMDI4NzIxYmRhZjdlZDNkMTdmMTUwZTMxN2EzM2Q2M2E5YzVhM2VkMGZlNzE5OTBiZjllN2UxN2I0ODI(...TRUNCATED) | {"doc_id":"011028721bdaf7ed3d17f150e317a33d63a9c5a3ed0fe71990bf9e7e17b48217","split":"train","title"(...TRUNCATED) | "# ความรู้จากงานวิจัยเกี่ยวกับฝายต้(...TRUNCATED) | "JVBERi0xLjUNJeLjz9MNCjY0IDAgb2JqDTw8L0xpbmVhcml6ZWQgMS9MIDM5MDc3NC9PIDY2L0UgNzU3NDEvTiA5L1QgMzg5NDQ(...TRUNCATED) | 011028721bdaf7ed3d17f150e317a33d63a9c5a3ed0fe71990bf9e7e17b48217 | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
"eyJkb2NfaWQiOiAiMDEyYjc4ODJlMjRmZDdmOGFiZGVlMjllMzcyMzg5YjM4ZTFlNDhkNWQ4NmMyMmEyMTJkYWVjNjA3ZmFiNzY(...TRUNCATED) | {"doc_id":"012b7882e24fd7f8abdee29e372389b38e1e48d5d86c22a212daec607fab7669","split":"train","title"(...TRUNCATED) | "# แนวทางการให้บริการสำหรับหน่วยงาน(...TRUNCATED) | "JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgMjY2NjI5L08gOS9FIDI2MjUzOC9OIDEvVCAyNjYzMzg(...TRUNCATED) | 012b7882e24fd7f8abdee29e372389b38e1e48d5d86c22a212daec607fab7669 | "hf://datasets/SmartWhatt/thai_doc_parsing@fe5c6357a426b44f49350bb5ae1f991162d5234f/documents-train-(...TRUNCATED) |
Thai document parsing corpus (thai_doc_parsing v1)
Structured Thai documents for vision-language continued pretraining: page images, one canonical
annotation (thai-doc-ir/1), and deterministic Markdown / LaTeX / Typst / HTML views.
Sources
Government publications and forms from the data.go.th catalog and allowlisted agency hosts,
plus the sources recorded in sources.parquet. Every document keeps its source URL, landing
page snapshot hash, retrieval time, and the licence recorded with it.
Rights basis
Only documents whose item-level decision permits redistribution are packaged. Each row of
rights.parquet carries training_allowed, redistribution_allowed, the licence, the evidence
URL, the terms-snapshot hash, and the reviewer.
Laned counts in this release: {"green": 4939, "amber": 1028}.
Material with unresolved rights stays in local quarantine and is not uploaded.
Exclusions
Documents with personal data (national identifiers, contact details, signatures, filled forms),
unknown licences, non-commercial-only licences, or failing quality gates are excluded; the counts
and reasons are in release.json.
Intended use and limitations
Continued pretraining and evaluation of Thai document understanding. Known limitations: the first tranche is government-publication heavy ({"government": 8920, "academic": 100, "legal": 1} by family), historical scans are represented only where triage routed them to the OCR/VLM lanes, and complex tables and equations are serialized with declared transformations rather than a guaranteed lossless reconstruction.
Token counts
Measured with the pinned tokenizer and image processor (Qwen/Qwen3-VL-2B-Instruct@main), never estimated from
a pages-to-tokens multiplier. The four serializations are four views of one annotation: they are
listed separately and not summed, and only the selected view contributes a document's semantic
text tokens.
| Text view | Files | Text tokens |
|---|---|---|
html |
1,819 | 15,769,649 |
latex |
1,819 | 14,138,852 |
markdown |
1,819 | 13,774,911 |
typst |
1,819 | 13,456,507 |
| Tokens | |
|---|---|
| Text (selected view: Markdown) | 13,774,911 |
| Visual (page images, 15,240 pages) | 57,168,915 |
| Combined for one training pass | 70,943,826 |
Provenance and takedown
Code commit 3b3b3afa392f5f94c8cb3d1cc907edde43606f87, config hash 6c43ba7d42a75b8a, IR version thai-doc-ir/1.
Takedown or correction requests: open an issue on the dataset repository; every shard maps to
document ids through release.json, so an affected document can be located across all artifacts.
- Downloads last month
- 512