Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
file_name: string
ground_truth: string
doc_type: string
category: string
currency: string
sample_id: string
ocr_boxes: list<item: struct<box: list<item: list<item: double>>, text: string, label: string>>
  child 0, item: struct<box: list<item: list<item: double>>, text: string, label: string>
      child 0, box: list<item: list<item: double>>
          child 0, item: list<item: double>
              child 0, item: double
      child 1, text: string
      child 2, label: string
total: double
invoice_number: string
items: list<item: struct<no: int64, name: string, qty: int64, unit_price: double, price: double, total: dou (... 5 chars omitted)
  child 0, item: struct<no: int64, name: string, qty: int64, unit_price: double, price: double, total: double>
      child 0, no: int64
      child 1, name: string
      child 2, qty: int64
      child 3, unit_price: double
      child 4, price: double
      child 5, total: double
vatable: double
code_type: string
lang: string
customer_address: string
subtotal: double
tax: double
date: string
vat_exempt: double
vat_7: double
image_height: int64
date_era: string
merchant_name: string
split: string
image_width: int64
merchant_tax_id: string
merchant_address: string
discount: double
merchant_phone: string
customer_tax_id: string
customer_name: string
time: string
is_original: bool
to
{'sample_id': Value('string'), 'split': Value('string'), 'category': Value('string'), 'doc_type': Value('string'), 'lang': Value('string'), 'merchant_name': Value('string'), 'merchant_tax_id': Value('string'), 'merchant_address': Value('string'), 'merchant_phone': Value('string'), 'date': Value('string'), 'time': Value('string'), 'date_era': Value('string'), 'items': List({'no': Value('int64'), 'name': Value('string'), 'qty': Value('int64'), 'unit_price': Value('float64'), 'price': Value('float64'), 'total': Value('float64')}), 'subtotal': Value('float64'), 'discount': Value('float64'), 'vatable': Value('float64'), 'tax': Value('float64'), 'vat_7': Value('float64'), 'vat_exempt': Value('float64'), 'total': Value('float64'), 'currency': Value('string'), 'is_original': Value('bool'), 'invoice_number': Value('string'), 'customer_name': Value('string'), 'customer_tax_id': Value('string'), 'customer_address': Value('string'), 'code_type': Value('string'), 'image_width': Value('int64'), 'image_height': Value('int64'), 'ocr_boxes': List({'box': List(List(Value('float64'))), 'text': Value('string'), 'label': Value('string')})}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
                  for key, table 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/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              file_name: string
              ground_truth: string
              doc_type: string
              category: string
              currency: string
              sample_id: string
              ocr_boxes: list<item: struct<box: list<item: list<item: double>>, text: string, label: string>>
                child 0, item: struct<box: list<item: list<item: double>>, text: string, label: string>
                    child 0, box: list<item: list<item: double>>
                        child 0, item: list<item: double>
                            child 0, item: double
                    child 1, text: string
                    child 2, label: string
              total: double
              invoice_number: string
              items: list<item: struct<no: int64, name: string, qty: int64, unit_price: double, price: double, total: dou (... 5 chars omitted)
                child 0, item: struct<no: int64, name: string, qty: int64, unit_price: double, price: double, total: double>
                    child 0, no: int64
                    child 1, name: string
                    child 2, qty: int64
                    child 3, unit_price: double
                    child 4, price: double
                    child 5, total: double
              vatable: double
              code_type: string
              lang: string
              customer_address: string
              subtotal: double
              tax: double
              date: string
              vat_exempt: double
              vat_7: double
              image_height: int64
              date_era: string
              merchant_name: string
              split: string
              image_width: int64
              merchant_tax_id: string
              merchant_address: string
              discount: double
              merchant_phone: string
              customer_tax_id: string
              customer_name: string
              time: string
              is_original: bool
              to
              {'sample_id': Value('string'), 'split': Value('string'), 'category': Value('string'), 'doc_type': Value('string'), 'lang': Value('string'), 'merchant_name': Value('string'), 'merchant_tax_id': Value('string'), 'merchant_address': Value('string'), 'merchant_phone': Value('string'), 'date': Value('string'), 'time': Value('string'), 'date_era': Value('string'), 'items': List({'no': Value('int64'), 'name': Value('string'), 'qty': Value('int64'), 'unit_price': Value('float64'), 'price': Value('float64'), 'total': Value('float64')}), 'subtotal': Value('float64'), 'discount': Value('float64'), 'vatable': Value('float64'), 'tax': Value('float64'), 'vat_7': Value('float64'), 'vat_exempt': Value('float64'), 'total': Value('float64'), 'currency': Value('string'), 'is_original': Value('bool'), 'invoice_number': Value('string'), 'customer_name': Value('string'), 'customer_tax_id': Value('string'), 'customer_address': Value('string'), 'code_type': Value('string'), 'image_width': Value('int64'), 'image_height': Value('int64'), 'ocr_boxes': List({'box': List(List(Value('float64'))), 'text': Value('string'), 'label': Value('string')})}
              because column names don't match
              
              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 1694, 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 1880, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

sample_id
string
split
string
category
string
doc_type
string
lang
string
merchant_name
string
merchant_tax_id
string
merchant_address
string
merchant_phone
string
date
string
time
string
date_era
string
items
list
subtotal
float64
discount
float64
vatable
float64
tax
float64
vat_7
float64
vat_exempt
float64
total
float64
currency
string
is_original
bool
invoice_number
string
customer_name
string
customer_tax_id
string
customer_address
string
code_type
string
image_width
int64
image_height
int64
ocr_boxes
list
TH-INV-000001
train
it
tax_invoice
th
บริษัท บุญมี คอมพิวเตอร์ เซ็นเตอร์ จำกัด
0564240082548
548/2 ถนนสุขุมวิท สุราษฎร์ธานี 49270
08-917-5799
21/02/2023
11:14
gregorian
[ { "no": 1, "name": "จอคอมพิวเตอร์ 32 นิ้ว 4K", "qty": 9, "unit_price": 14978, "price": 14978, "total": 134802 }, { "no": 2, "name": "เครื่องอ่านการ์ด USB 3.0 Multi", "qty": 10, "unit_price": 217, "price": 217, "total": 2170 } ]
136,972
0
136,972
9,588.04
9,588.04
0
146,560.04
THB
true
INV-1488
บริษัท แหลมทอง แมนูแฟคเจอริ่ง จำกัด
0383465787133
347 ถนนสุขุมวิท พิษณุโลก 38864
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 552, 48 ], [ 552, 121 ], [ 158, 121 ] ], "text": "บริษัท บุญมี คอมพิวเตอร์ เซ็นเตอร์ จำกัด", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000003
train
it
tax_invoice
th
ห้างหุ้นส่วนจำกัด ยิ่งยง เทคโนโลยี
0853686632664
270/11 ถนนแจ้งสนิท ภูเก็ต 77713
06-764-9715
30/06/2024
13:07
gregorian
[ { "no": 1, "name": "หูฟัง Gaming Headset", "qty": 1, "unit_price": 2368, "price": 2368, "total": 2368 }, { "no": 2, "name": "พาวเวอร์แบงค์ 20000mAh ชาร์จเร็ว 22.5W", "qty": 5, "unit_price": 796, "price": 796, "total": 3980 }, { "no": 3, "name": "น้ำยาท...
6,714
0
6,714
469.98
469.98
0
7,183.98
THB
true
INV-5889
บริษัท เมืองไทย โฮลดิ้ง จำกัด
0706562729807
578 ถนนประชาอุทิศ เชียงราย 94246
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 560, 48 ], [ 560, 120 ], [ 158, 120 ] ], "text": "ห้างหุ้นส่วนจำกัด ยิ่งยง เทคโนโลยี", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000006
train
it
tax_invoice
th
ร้าน ฟ้า ไอที
04379918117
556/68 ถ.ลาดพร้าว ภูเก็ต 83000
02-145-8186
27/12/2023
19:33
gregorian
[ { "no": 1, "name": "คีย์บอร์ดแมคคานิคอล สวิตช์ Red", "qty": 8, "unit_price": 1587, "price": 1587, "total": 12696 }, { "no": 2, "name": "จอคอมพิวเตอร์ IPS 22 นิ้ว 75Hz", "qty": 8, "unit_price": 3052, "price": 3052, "total": 24416 }, { "no": 3, "name": "...
57,974
0
57,974
4,058.18
4,058.18
0
62,032.18
THB
true
INV-8305
ร้าน สหกิจ โฮลดิ้ง
0958498254494
922 ถนนพหลโยธิน ขอนแก่น 63948
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 313, 48 ], [ 313, 79 ], [ 158, 79 ] ], "text": "ร้าน ฟ้า ไอที", "label": "merchant_name" }, { "box": [ [ 551, 38 ], [ ...
TH-INV-000009
train
it
tax_invoice
th
บริษัท โชคดี ดิจิทัล
05741804787
668/23 ถ.รัชดาภิเษก กรุงเทพมหานคร 10110
08-289-6065
08/11/2567
15:17
buddhist
[ { "no": 1, "name": "แฟลชไดร์ฟ USB 3.0 64GB", "qty": 4, "unit_price": 349, "price": 349, "total": 1396 }, { "no": 2, "name": "HDD ภายนอกพกพา 2TB", "qty": 2, "unit_price": 2390, "price": 2390, "total": 4780 }, { "no": 3, "name": "แผ่นรองเมาส์ผ้าขนาดใหญ่ ...
8,288
0
8,288
580.16
580.16
0
8,868.16
THB
true
INV-5530
ห้างหุ้นส่วนจำกัด เกียรตินคร ซัพพลายเชน
0856218501632
620/99 ถนนแจ้งสนิท สมุทรปราการ 13883
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 405, 48 ], [ 405, 79 ], [ 158, 79 ] ], "text": "บริษัท โชคดี ดิจิทัล", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000015
train
it
tax_invoice
th
บมจ. พิม ไซเบอร์
03923302045
769/38 ถ.รัชดาภิเษก ภูเก็ต 83000
03-914-3012
19/01/2567
09:33
buddhist
[ { "no": 1, "name": "คีย์บอร์ดเมมเบรน สีดำ", "qty": 9, "unit_price": 884, "price": 884, "total": 7956 }, { "no": 2, "name": "Router Wi-Fi 6 AX1500", "qty": 9, "unit_price": 1520, "price": 1520, "total": 13680 }, { "no": 3, "name": "ตลับหมึกพิมพ์ สีดำ", ...
27,215
0
27,215
1,905.05
1,905.05
0
29,120.05
THB
true
INV-1713
บริษัท อรุณ ดีเวลลอปเมนท์ จำกัด
0182339845461
983/52 ถนนกาญจนวนิช พิษณุโลก 41877
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 382, 48 ], [ 382, 78 ], [ 158, 78 ] ], "text": "บมจ. พิม ไซเบอร์", "label": "merchant_name" }, { "box": [ [ 551, 38 ], [...
TH-INV-000018
train
it
tax_invoice
th
ห้างหุ้นส่วนจำกัด ทันสมัย เทคโนโลยี
0214656693801
942/12 ถนนศรีนครินทร์ อุดรธานี 86406
07-935-5530
15/05/2566
19:46
buddhist
[ { "no": 1, "name": "Router Wi-Fi 6 AX1500", "qty": 3, "unit_price": 2495, "price": 2495, "total": 7485 }, { "no": 2, "name": "ปลั๊กไฟกันไฟกระชาก 5 ช่อง", "qty": 6, "unit_price": 878, "price": 878, "total": 5268 }, { "no": 3, "name": "เมาส์ไร้สาย ขนาดพก...
18,123
0
18,123
1,268.61
1,268.61
0
19,391.61
THB
true
INV-3102
บริษัท ก้าวหน้า คอร์ปอเรชั่น จำกัด
0114678669126
76/58 ถนนรัตนาธิเบศร์ ระยอง 55156
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 562, 48 ], [ 562, 120 ], [ 158, 120 ] ], "text": "ห้างหุ้นส่วนจำกัด ทันสมัย เทคโนโลยี", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000021
train
it
tax_invoice
th
บริษัท ทองคำ ดิจิทัล โซลูชั่น จำกัด
0944869594637
566/72 ถนนเจริญราษฎร์ นครราชสีมา 58524
06-414-6641
12/12/2568
19:23
buddhist
[ { "no": 1, "name": "คีย์บอร์ดไร้สาย Bluetooth สำหรับแท็บเล็ต", "qty": 2, "unit_price": 665, "price": 665, "total": 1330 } ]
1,330
0
1,330
93.1
93.1
0
1,423.1
THB
true
INV-9281
ร้าน สหกิจ โฮลดิ้ง
0958498254494
922 ถนนพหลโยธิน ขอนแก่น 63948
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 561, 48 ], [ 561, 119 ], [ 158, 119 ] ], "text": "บริษัท ทองคำ ดิจิทัล โซลูชั่น จำกัด", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000028
train
construction
tax_invoice
th
บริษัท เจริญ ก่อสร้าง
03322983365
278/24 ถ.เพชรบุรี ภูเก็ต 83000
05-550-7023
10/10/2566
14:11
buddhist
[ { "no": 1, "name": "เต้ารับไฟฟ้า 3 ขา มีกราวด์", "qty": 3, "unit_price": 62, "price": 62, "total": 186 }, { "no": 2, "name": "ข้อต่อ PVC สามทาง 4 หุน", "qty": 3, "unit_price": 18, "price": 18, "total": 54 }, { "no": 3, "name": "บานพับประตูทองเหลือง คู่...
870
0
870
60.9
60.9
0
930.9
THB
true
INV-1878
ห้างหุ้นส่วนจำกัด ทิพย์ แมนูแฟคเจอริ่ง
0837354033174
721/27 ถนนบางนา-ตราด ภูเก็ต 82362
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 438, 48 ], [ 438, 82 ], [ 158, 82 ] ], "text": "บริษัท เจริญ ก่อสร้าง", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000029
train
construction
tax_invoice
th
บริษัท รุ่งเรือง ค้าวัสดุก่อสร้าง จำกัด
0686462252238
187 ถนนนิมมานเหมินทร์ นครสวรรค์ 84329
04-305-1966
20/10/2566
17:00
buddhist
[ { "no": 1, "name": "เบรกเกอร์ลูกย่อย 16A", "qty": 3, "unit_price": 98, "price": 98, "total": 294 }, { "no": 2, "name": "สายไฟ THW 2.5 มม. ม้วน 100 เมตร", "qty": 10, "unit_price": 960, "price": 960, "total": 9600 }, { "no": 3, "name": "สีทาภายนอก (ถัง 5...
28,123
0
28,123
1,968.61
1,968.61
0
30,091.61
THB
true
INV-7291
ห้างหุ้นส่วนจำกัด พัฒนา ซัพพลายเชน
0185067165727
752/67 ถนนเจริญราษฎร์ นครปฐม 80539
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 555, 48 ], [ 555, 120 ], [ 158, 120 ] ], "text": "บริษัท รุ่งเรือง ค้าวัสดุก่อสร้าง จำกัด", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000031
train
construction
tax_invoice
th
ร้าน เจริญเจริญ วัสดุก่อสร้าง
05267070632
932/87 ถ.บางนา-ตราด ขอนแก่น 40000
07-619-8672
13/10/2024
19:22
gregorian
[ { "no": 1, "name": "กระเบื้องแกรนิตโต้ 60x60 ซม. ลายหินอ่อน", "qty": 10, "unit_price": 387, "price": 387, "total": 3870 }, { "no": 2, "name": "มือจับประตูอลูมิเนียม", "qty": 8, "unit_price": 179, "price": 179, "total": 1432 }, { "no": 3, "name": "ท่อ P...
19,415
0
19,415
1,359.05
1,359.05
0
20,774.05
THB
true
INV-4584
ร้าน สยาม โลจิสติกส์
0617711592124
649/75 ถนนสันติสุข ลำปาง 88301
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 544, 48 ], [ 544, 88 ], [ 158, 88 ] ], "text": "ร้าน เจริญเจริญ วัสดุก่อสร้าง", "label": "merchant_name" }, { "box": [ [ 551, 38 ...
TH-INV-000032
train
it
tax_invoice
th
บริษัท ไซเบอร์ โซลูชั่น
08569453682
697/1 ถ.บางนา-ตราด เชียงใหม่ 50000
06-545-7622
09/06/2024
19:00
gregorian
[ { "no": 1, "name": "External HDD 1TB", "qty": 8, "unit_price": 1775, "price": 1775, "total": 14200 } ]
14,200
0
14,200
994
994
0
15,194
THB
true
INV-3725
ห้างหุ้นส่วนจำกัด ทิพย์ โฮลดิ้ง
0918785191089
587 ถนนห้วยแก้ว นครราชสีมา 53007
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 441, 48 ], [ 441, 87 ], [ 158, 87 ] ], "text": "บริษัท ไซเบอร์ โซลูชั่น", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000033
train
construction
tax_invoice
th
บริษัท สหกิจ วัสดุภัณฑ์ จำกัด
0537030453194
828 ถนนศรีนครินทร์ ภูเก็ต 74724
02-387-9074
25/05/2567
08:58
buddhist
[ { "no": 1, "name": "น็อตสกรูสแตนเลส เบอร์ 8 ถุง 1 กก.", "qty": 8, "unit_price": 130, "price": 130, "total": 1040 }, { "no": 2, "name": "เหล็กข้ออ้อย SD40 16มม. (เส้น)", "qty": 2, "unit_price": 323, "price": 323, "total": 646 }, { "no": 3, "name": "ข้อต...
1,766
0
1,766
123.62
123.62
0
1,889.62
THB
true
INV-8308
บริษัท ทันสมัย กรุ๊ป จำกัด
0475412126788
418 ถนนมิตรภาพ เชียงราย 56388
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 542, 48 ], [ 542, 88 ], [ 158, 88 ] ], "text": "บริษัท สหกิจ วัสดุภัณฑ์ จำกัด", "label": "merchant_name" }, { "box": [ [ 551, 38 ...
TH-INV-000034
train
construction
tax_invoice
th
บมจ. เจริญ สตีล
06669245494
29/24 ถ.สุขุมวิท กรุงเทพมหานคร 10310
09-611-2122
27/04/2025
17:14
gregorian
[ { "no": 1, "name": "เหล็กฉาก 1 นิ้ว ยาว 6 เมตร", "qty": 8, "unit_price": 222, "price": 222, "total": 1776 }, { "no": 2, "name": "กาวทาท่อ PVC (กระป๋อง)", "qty": 4, "unit_price": 75, "price": 75, "total": 300 }, { "no": 3, "name": "ท่อ PVC สีฟ้า ขนาด 1 ...
3,664
0
3,664
256.48
256.48
0
3,920.48
THB
true
INV-9467
บริษัท ยิ่งยง ดีเวลลอปเมนท์ จำกัด
0326973112197
987/55 ถนนแจ้งสนิท ขอนแก่น 42477
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 377, 48 ], [ 377, 82 ], [ 158, 82 ] ], "text": "บมจ. เจริญ สตีล", "label": "merchant_name" }, { "box": [ [ 551, 38 ], [ ...
TH-INV-000036
train
it
tax_invoice
th
บริษัท ทวีทรัพย์ เทคโนโลยี จำกัด
0608680347645
473/22 ถนนพหลโยธิน ปทุมธานี 90364
04-574-8400
05/10/2568
19:47
buddhist
[ { "no": 1, "name": "ปลั๊กไฟกันไฟกระชาก 5 ช่อง", "qty": 2, "unit_price": 751, "price": 751, "total": 1502 }, { "no": 2, "name": "จอคอมพิวเตอร์ 32 นิ้ว 4K", "qty": 4, "unit_price": 15736, "price": 15736, "total": 62944 }, { "no": 3, "name": "แฟลชไดร์ฟ US...
84,356
0
84,356
5,904.92
5,904.92
0
90,260.92
THB
true
INV-8493
ห้างหุ้นส่วนจำกัด ทิพย์ แมนูแฟคเจอริ่ง
0837354033174
721/27 ถนนบางนา-ตราด ภูเก็ต 82362
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 543, 48 ], [ 543, 110 ], [ 158, 110 ] ], "text": "บริษัท ทวีทรัพย์ เทคโนโลยี จำกัด", "label": "merchant_name" }, { "box": [ [ 551, 3...
TH-INV-000042
train
construction
tax_invoice
th
บริษัท ทรัพย์ สตีล
04138486802
178/71 ถ.พหลโยธิน ชลบุรี 20000
02-986-7536
05/03/2568
15:56
buddhist
[ { "no": 1, "name": "เหล็กเส้นกลม 6 มม. ยาว 10 เมตร", "qty": 6, "unit_price": 89, "price": 89, "total": 534 } ]
534
0
534
37.38
37.38
0
571.38
THB
true
INV-5480
ร้าน สุขสันต์ เทรดดิ้ง
0105123828259
982 ถนนช้างเผือก ลำปาง 92543
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 394, 48 ], [ 394, 79 ], [ 158, 79 ] ], "text": "บริษัท ทรัพย์ สตีล", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000044
train
construction
tax_invoice
th
ร้าน สยาม วัสดุภัณฑ์
0942007494653
600/66 ถนนมิตรภาพ เชียงใหม่ 31157
06-191-7476
26/11/2566
18:00
buddhist
[ { "no": 1, "name": "ท่อ PVC สีฟ้า ขนาด 4 หุน ยาว 4 เมตร", "qty": 4, "unit_price": 81, "price": 81, "total": 324 }, { "no": 2, "name": "ยาแนวกันเชื้อรา หลอด 300 กรัม", "qty": 2, "unit_price": 102, "price": 102, "total": 204 }, { "no": 3, "name": "กระเบื...
20,162
0
20,162
1,411.34
1,411.34
0
21,573.34
THB
true
INV-8192
ห้างหุ้นส่วนจำกัด ยิ่งยง แมนูแฟคเจอริ่ง
0604661839827
143/35 ถนนรัตนาธิเบศร์ นนทบุรี 74634
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 430, 48 ], [ 430, 88 ], [ 158, 88 ] ], "text": "ร้าน สยาม วัสดุภัณฑ์", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000050
train
construction
tax_invoice
th
บมจ. มงคล สตีล
03978840982
414/12 ถ.รามคำแหง กรุงเทพมหานคร 10310
06-607-8133
06/12/2566
14:11
buddhist
[ { "no": 1, "name": "ตะปูตอกไม้ 3 นิ้ว กล่อง 1 กก.", "qty": 7, "unit_price": 64, "price": 64, "total": 448 }, { "no": 2, "name": "ทรายหยาบ (คิว)", "qty": 8, "unit_price": 510, "price": 510, "total": 4080 }, { "no": 3, "name": "ทรายละเอียด (คิว)", "q...
11,024
0
11,024
771.68
771.68
0
11,795.68
THB
true
INV-2838
บริษัท พัฒนา ซัพพลายเชน จำกัด
0171274846774
565/19 ถนนรัตนาธิเบศร์ สงขลา 88561
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 380, 48 ], [ 380, 79 ], [ 158, 79 ] ], "text": "บมจ. มงคล สตีล", "label": "merchant_name" }, { "box": [ [ 551, 38 ], [ ...
TH-INV-000051
train
it
tax_invoice
th
ห้างหุ้นส่วนจำกัด เอก อินโนเวชั่น
08624237631
229/71 ถ.รามคำแหง ขอนแก่น 40000
04-705-2160
19/04/2566
08:04
buddhist
[ { "no": 1, "name": "กระเป๋าใส่โน้ตบุ๊ก 15.6 นิ้ว", "qty": 1, "unit_price": 487, "price": 487, "total": 487 }, { "no": 2, "name": "อะแดปเตอร์ชาร์จเร็ว 65W USB-C", "qty": 7, "unit_price": 564, "price": 564, "total": 3948 }, { "no": 3, "name": "สาย HDMI 2...
37,287
0
37,287
2,610.09
2,610.09
0
39,897.09
THB
true
INV-9709
บริษัท อรุณ โลจิสติกส์ จำกัด
0586629619431
275/20 ถนนบางนา-ตราด ขอนแก่น 61068
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 547, 48 ], [ 547, 119 ], [ 158, 119 ] ], "text": "ห้างหุ้นส่วนจำกัด เอก อินโนเวชั่น", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000054
train
construction
tax_invoice
th
บมจ. เจริญ ก่อสร้าง
04936542424
254/31 ถ.พระราม 9 กรุงเทพมหานคร 10110
04-799-7059
16/05/2023
12:53
gregorian
[ { "no": 1, "name": "อิฐมวลเบา 7.5ซม. (ก้อน)", "qty": 7, "unit_price": 27, "price": 27, "total": 189 } ]
189
0
189
13.23
13.23
0
202.23
THB
true
INV-3719
ห้างหุ้นส่วนจำกัด ทวี เอ็นเตอร์ไพรส์
0866929662783
171/63 ถนนบางนา-ตราด ขอนแก่น 34523
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 425, 48 ], [ 425, 82 ], [ 158, 82 ] ], "text": "บมจ. เจริญ ก่อสร้าง", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000056
train
construction
tax_invoice
th
ห้างหุ้นส่วนจำกัด แหลมทอง ฮาร์ดแวร์
0831030324329
222/76 ถนนประชาอุทิศ นนทบุรี 26841
03-663-5177
19/07/2567
10:31
buddhist
[ { "no": 1, "name": "ลูกกลิ้งทาสี 10 นิ้ว", "qty": 1, "unit_price": 98, "price": 98, "total": 98 }, { "no": 2, "name": "ท่อ PVC สีฟ้า ขนาด 1 นิ้ว ยาว 4 เมตร", "qty": 7, "unit_price": 67, "price": 67, "total": 469 } ]
567
0
567
39.69
39.69
0
606.69
THB
true
INV-6680
ห้างหุ้นส่วนจำกัด สุขสันต์ กรุ๊ป
0016668700218
661 ถนนกาญจนวนิช ระยอง 15577
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 555, 48 ], [ 555, 119 ], [ 158, 119 ] ], "text": "ห้างหุ้นส่วนจำกัด แหลมทอง ฮาร์ดแวร์", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000063
train
it
tax_invoice
th
บริษัท ทวีทรัพย์ ไอที เทรดดิ้ง จำกัด
0117298068650
715/68 ถนนรามคำแหง ภูเก็ต 73192
07-703-2600
19/05/2024
18:06
gregorian
[ { "no": 1, "name": "เมาส์ออฟฟิศแบบมีสาย สีดำ", "qty": 2, "unit_price": 306, "price": 306, "total": 612 }, { "no": 2, "name": "สายชาร์จ USB-C ความยาว 1 เมตร", "qty": 6, "unit_price": 176, "price": 176, "total": 1056 }, { "no": 3, "name": "จอยสติ๊กเกมมิ่...
3,612
0
3,612
252.84
252.84
0
3,864.84
THB
true
INV-1473
ห้างหุ้นส่วนจำกัด สุขสันต์ อินดัสตรี
0713493618325
74 ถนนสันติสุข ปทุมธานี 87993
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 560, 48 ], [ 560, 111 ], [ 158, 111 ] ], "text": "บริษัท ทวีทรัพย์ ไอที เทรดดิ้ง จำกัด", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000068
train
construction
tax_invoice
th
บริษัท ทันสมัย วัสดุภัณฑ์ จำกัด
0081247395003
203 ถนนช้างเผือก ภูเก็ต 44340
07-967-5029
05/03/2023
18:28
gregorian
[ { "no": 1, "name": "กระเบื้องหลังคาคอนกรีต สีดินเผา แผ่น", "qty": 1, "unit_price": 36, "price": 36, "total": 36 }, { "no": 2, "name": "ท่อ PVC 8.5 2นิ้ว (ท่อน)", "qty": 8, "unit_price": 143, "price": 143, "total": 1144 }, { "no": 3, "name": "ข้อต่อสามท...
8,540
0
8,540
597.8
597.8
0
9,137.8
THB
true
INV-2474
บริษัท เกียรตินคร ดีเวลลอปเมนท์ จำกัด
0196937923748
683/2 ถนนช้างเผือก ปทุมธานี 98815
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 545, 48 ], [ 545, 111 ], [ 158, 111 ] ], "text": "บริษัท ทันสมัย วัสดุภัณฑ์ จำกัด", "label": "merchant_name" }, { "box": [ [ 551, 38...
TH-INV-000069
train
construction
tax_invoice
th
บริษัท เอเชีย สโตร์วัสดุ จำกัด (มหาชน)
0412182097024
72/50 ถนนสันติสุข สงขลา 40544
03-565-1941
27/02/2566
20:01
buddhist
[ { "no": 1, "name": "สายไฟ VCT 2x1.5 มม. ม้วน 100 เมตร", "qty": 8, "unit_price": 1211, "price": 1211, "total": 9688 }, { "no": 2, "name": "อิฐมอญแดง (ก้อน)", "qty": 6, "unit_price": 1, "price": 1, "total": 6 }, { "no": 3, "name": "ปูนกาวซีเมนต์ 20กก.", ...
11,952
0
11,952
836.64
836.64
0
12,788.64
THB
true
INV-8184
ร้าน นครา กรุ๊ป
0445187053495
249/60 ถนนนิมมานเหมินทร์ พิษณุโลก 74665
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 560, 48 ], [ 560, 118 ], [ 158, 118 ] ], "text": "บริษัท เอเชีย สโตร์วัสดุ จำกัด (มหาชน)", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000084
train
it
tax_invoice
th
ร้าน สยาม เทคโนโลยี
0717545588450
422/16 ถนนช้างเผือก นครปฐม 36077
06-463-6326
25/10/2568
11:54
buddhist
[ { "no": 1, "name": "ฮับ USB-C 7-in-1 พร้อม HDMI", "qty": 3, "unit_price": 992, "price": 992, "total": 2976 }, { "no": 2, "name": "เมาส์แพดขนาด XL เต็มโต๊ะ", "qty": 1, "unit_price": 385, "price": 385, "total": 385 }, { "no": 3, "name": "พาวเวอร์แบงค์ 10...
28,002
0
28,002
1,960.14
1,960.14
0
29,962.14
THB
true
INV-1834
บริษัท มงคล เทรดดิ้ง จำกัด
0791769367632
705 ถนนช้างเผือก ลำพูน 38683
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 433, 48 ], [ 433, 79 ], [ 158, 79 ] ], "text": "ร้าน สยาม เทคโนโลยี", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000094
train
it
tax_invoice
th
บริษัท ยิ่งยง ไอที เทรดดิ้ง จำกัด
0579913662103
536/65 ถนนเพชรเกษม ขอนแก่น 89365
04-587-1639
13/05/2568
14:20
buddhist
[ { "no": 1, "name": "เมาส์ไร้สาย Wireless Mouse", "qty": 2, "unit_price": 417, "price": 417, "total": 834 }, { "no": 2, "name": "เคสคอมพิวเตอร์ ATX กระจกใส", "qty": 8, "unit_price": 2228, "price": 2228, "total": 17824 }, { "no": 3, "name": "คีย์บอร์ดแมค...
61,004
0
61,004
4,270.28
4,270.28
0
65,274.28
THB
true
INV-1076
บริษัท ฟ้าใส อินดัสตรี จำกัด
0983640376137
609 ถนนรัตนาธิเบศร์ อุบลราชธานี 51480
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 557, 48 ], [ 557, 102 ], [ 158, 102 ] ], "text": "บริษัท ยิ่งยง ไอที เทรดดิ้ง จำกัด", "label": "merchant_name" }, { "box": [ [ 551, ...
TH-INV-000103
train
it
tax_invoice
th
ร้าน สมบูรณ์ คอมพิวเตอร์
02752771143
100/16 ถ.สุขุมวิท เชียงใหม่ 50000
05-731-8538
05/11/2568
20:26
buddhist
[ { "no": 1, "name": "จอคอมพิวเตอร์ IPS 22 นิ้ว 75Hz", "qty": 6, "unit_price": 3023, "price": 3023, "total": 18138 } ]
18,138
0
18,138
1,269.66
1,269.66
0
19,407.66
THB
true
INV-6203
ร้าน สยาม ซัพพลายเชน
0687937416088
694 ถนนช้างเผือก ชลบุรี 68856
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 502, 48 ], [ 502, 88 ], [ 158, 88 ] ], "text": "ร้าน สมบูรณ์ คอมพิวเตอร์", "label": "merchant_name" }, { "box": [ [ 551, 38 ],...
TH-INV-000115
train
it
tax_invoice
th
บริษัท บอย เน็ตเวิร์ค
09677518170
874/52 ถ.สีลม กรุงเทพมหานคร 10310
04-487-4950
18/12/2567
12:08
buddhist
[ { "no": 1, "name": "แผ่นรองเมาส์ผ้าขนาดใหญ่ มีไฟ RGB", "qty": 4, "unit_price": 543, "price": 543, "total": 2172 }, { "no": 2, "name": "หูฟังไร้สายครอบหู ตัดเสียงรบกวน", "qty": 3, "unit_price": 3544, "price": 3544, "total": 10632 }, { "no": 3, "name": "...
14,656
0
14,656
1,025.92
1,025.92
0
15,681.92
THB
true
INV-6098
ร้าน สุขสันต์ เทรดดิ้ง
0105123828259
982 ถนนช้างเผือก ลำปาง 92543
none
800
1,050
[ { "box": [ [ 158, 48 ], [ 431, 48 ], [ 431, 80 ], [ 158, 80 ] ], "text": "บริษัท บอย เน็ตเวิร์ค", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000118
train
it
tax_invoice
th
ร้าน ศิริ คอมพิวเตอร์
03536079153
640/97 ถ.รามคำแหง ชลบุรี 20000
02-191-6449
23/03/2024
09:55
gregorian
[ { "no": 1, "name": "พาวเวอร์แบงค์ 10000mAh", "qty": 3, "unit_price": 901, "price": 901, "total": 2703 }, { "no": 2, "name": "ไมโครโฟนไลท์ Lavalier ไร้สาย", "qty": 3, "unit_price": 1658, "price": 1658, "total": 4974 }, { "no": 3, "name": "สาย DisplayPor...
16,186
0
16,186
1,133.02
1,133.02
0
17,319.02
THB
true
INV-2765
บริษัท มงคล กรุ๊ป จำกัด
0188805929622
852 ถนนประชาอุทิศ นครสวรรค์ 15726
barcode
800
1,050
[ { "box": [ [ 158, 48 ], [ 432, 48 ], [ 432, 79 ], [ 158, 79 ] ], "text": "ร้าน ศิริ คอมพิวเตอร์", "label": "merchant_name" }, { "box": [ [ 551, 38 ], ...
TH-INV-000128
train
construction
tax_invoice
th
ห้างหุ้นส่วนจำกัด พัฒนา สตีล
01051220489
882/86 ถ.บางนา-ตราด ภูเก็ต 83000
04-455-7355
30/09/2568
14:35
buddhist
[ { "no": 1, "name": "สายไฟ THW 1.5 (ม้วน 100ม.)", "qty": 6, "unit_price": 597, "price": 597, "total": 3582 }, { "no": 2, "name": "ท่อ HDPE ขนาด 1 นิ้ว ม้วน 100 เมตร", "qty": 7, "unit_price": 2042, "price": 2042, "total": 14294 }, { "no": 3, "name": "กระ...
20,724
0
20,724
1,450.68
1,450.68
0
22,174.68
THB
true
INV-1596
ร้าน ก้าวหน้า ซัพพลายเชน
0945314737997
30/64 ถนนนิมมานเหมินทร์ นครราชสีมา 73904
qr
800
1,050
[ { "box": [ [ 158, 48 ], [ 549, 48 ], [ 549, 88 ], [ 158, 88 ] ], "text": "ห้างหุ้นส่วนจำกัด พัฒนา สตีล", "label": "merchant_name" }, { "box": [ [ 551, 38 ...
End of preview.

Thai-Synth-Receipts

Thai-Synth-Receipts is a large-scale, highly robust synthetic dataset of Thai commercial documents designed specifically for training and evaluating state-of-the-art Document AI and Optical Character Recognition (OCR) models. The dataset consists of 14,976 high-resolution document images (Receipts, Tax Invoices, Thermal Slips, and Quotations) across three distinct degradation variants, representing challenging environmental and hardware-induced noise found in real-world document processing.

Dataset Overview

  • Language: Thai (with standard English headers)
  • Domain: Commercial documents (Supermarket, Cafe, IT Equipment, Construction)
  • Samples: 14,976 images (from 4,992 unique documents)
  • Task: Optical Character Recognition (OCR), Key Information Extraction (KIE), Document Layout Analysis
  • License: MIT
  • Source: Procedurally generated via synthetic data engine

Dataset Structure

The dataset is strictly partitioned to prevent data leakage and ensure true zero-shot evaluation capabilities.

Splits

  • train: 11,964 images (80%)
  • validation: 1,482 images (10%)
  • test: 1,530 images (10%)

Data Fields

Each split contains a Hugging Face compatible metadata.jsonl file with the following structure:

  • file_name (string): Relative path to the image file
  • sample_id (string): Unique identifier for the document
  • doc_type (string): Type of document (e.g., tax_invoice, receipt, thermal_slip)
  • merchant_name (string): Ground truth store/company name
  • items (list): Array of purchased items including name, quantity, and price
  • total (float): Total transaction amount
  • ocr_boxes (list): Precise polygon coordinates [[x1,y1], [x2,y1], [x2,y2], [x1,y2]] and text transcriptions for every word on the page

Data Statistics

  • Total Unique Documents: 4,992
  • Variants per Document: 3 (clean, error, photo)
  • Total Images: 14,976
  • Layout Templates: 6 distinct templates (ranging from structured formal grids to unstructured handwritten lists)

Example

from datasets import load_dataset

dataset = load_dataset("DuckerMaster/Thai-Synth-Receipts")

# Access the train split
train_data = dataset['train']

# View a sample's metadata
print(train_data[0]['merchant_name'])
print(train_data[0]['total'])
print(train_data[0]['ocr_boxes'][0]) # Bounding box and text

Dataset Characteristics

Robustness Evaluation Design

Thai-Synth-Receipts is specifically designed to measure and improve Document AI performance in "in-the-wild" conditions that challenge both optical recognition and layout understanding. Every document is generated in three parallel variants:

  1. Clean: Perfect digital baseline with no artifacts.
  2. Error (Printer Degradation): Simulates hardware defects including faded ink, vertical streaks, folded paper, ghosting, and ink blobs.
  3. Photo (Camera Degradation): Simulates smartphone captures with motion blur, uneven lighting, non-linear gamma curves, and perspective warping.

Zero-Shot Generalization Strategy

Unlike standard random-split datasets, the validation and test sets were curated using an Unseen Dictionary Strategy:

  • 100% Disjoint Entities: All merchant names, customer names, addresses, and product items in the validation and test splits are entirely absent from the train split.
  • True OCR Evaluation: This forces the model to actually read the Thai text rather than memorizing common vocabulary or exploiting language model hallucinations.

Key Evaluation Aspects

This dataset evaluates Document AI models on:

  1. Visual Robustness: Performance on noisy, degraded, and warped document images.
  2. Layout Diversity: Ability to parse information across 6 radically different structures (formal grids vs. minimalist POS vs. handwritten formats).
  3. Zero-shot Entity Extraction: Accurate transcription of unseen proper nouns and technical terms (e.g., construction materials, IT jargon).

Usage

Loading the Dataset

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("DuckerMaster/Thai-Synth-Receipts")

# Iterate through images and bounding boxes
for sample in dataset['train']:
    image = sample['image'] # PIL Image object
    ocr_boxes = sample['ocr_boxes']
    
    # Your training/evaluation code here

Dataset Creation

Source and Generation

The dataset was generated using a custom procedural synthesis engine in Python. All text entities (names, addresses, tax IDs, phone numbers) were procedurally combined from a large, custom-built Thai vocabulary catalog.

Privacy and Safety

This dataset contains zero Personally Identifiable Information (PII). All companies, individuals, and contact details are 100% fictional. It is completely safe for commercial and academic use without privacy compliance risks.

Limitations

  • Synthetic Nature: While visually robust, the dataset is synthetic and may lack certain microscopic textures or artifacts found exclusively in authentic scanned paper.
  • Font Diversity: The generation relies on a curated subset of Thai fonts; it may not cover extremely rare or heavily stylized legacy fonts.
  • Table Complexity: The dataset focuses on standard commercial transactions and does not include highly complex nested tables or multi-page documents.
Downloads last month
842