Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
document_id: string
document_type: string
image_path: string
html_source_path: string
pdf_source_path: string
qa_source_path: string
source_record_path: string
num_questions: int64
split: string
answer: string
question_id: string
field: string
question: string
to
{'question_id': Value('string'), 'document_id': Value('string'), 'document_type': Value('string'), 'image_path': Value('string'), 'question': Value('string'), 'answer': Value('string'), 'field': Value('string'), 'split': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1779, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 609, in wrapped
for item in generator(*args, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
document_id: string
document_type: string
image_path: string
html_source_path: string
pdf_source_path: string
qa_source_path: string
source_record_path: string
num_questions: int64
split: string
answer: string
question_id: string
field: string
question: string
to
{'question_id': Value('string'), 'document_id': Value('string'), 'document_type': Value('string'), 'image_path': Value('string'), 'question': Value('string'), 'answer': Value('string'), 'field': Value('string'), 'split': 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 1343, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 907, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1832, 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.
question_id string | document_id string | document_type string | image_path string | question string | answer string | field string | split string |
|---|---|---|---|---|---|---|---|
contract_000003_q001 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme numarası nedir? | SOZ202500000003 | contract_no | train |
contract_000003_q002 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme tarihi nedir? | 04.09.2025 | contract_date | train |
contract_000003_q003 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme türü nedir? | Kira Sözleşmesi | contract_type | train |
contract_000003_q004 | contract_000003 | contract | images/contract/contract_000003.png | Birinci tarafın adı nedir? | Sarı Tarım Ürünleri San. ve Tic. A.Ş. | party_a.name | train |
contract_000003_q005 | contract_000003 | contract | images/contract/contract_000003.png | İkinci tarafın adı nedir? | Kahverengi İnşaat Malzemeleri A.Ş. | party_b.name | train |
contract_000003_q006 | contract_000003 | contract | images/contract/contract_000003.png | Birinci tarafın VKN numarası nedir? | 8600000003 | party_a.vkn | train |
contract_000003_q007 | contract_000003 | contract | images/contract/contract_000003.png | İkinci tarafın VKN numarası nedir? | 8610000003 | party_b.vkn | train |
contract_000003_q008 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşmenin konusu nedir? | Veri analizi ve raporlama hizmetleri | subject | train |
contract_000003_q009 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme bedeli kaç TL’dir? | ₺1.091.897,32 | contract_amount | train |
contract_000003_q010 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme başlangıç tarihi nedir? | 12.09.2025 | start_date | train |
contract_000003_q011 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme bitiş tarihi nedir? | 12.12.2025 | end_date | train |
contract_000003_q012 | contract_000003 | contract | images/contract/contract_000003.png | Sözleşme süresi kaç aydır? | 3 | duration_months | train |
contract_000003_q013 | contract_000003 | contract | images/contract/contract_000003.png | Ödeme süresi kaç gündür? | 15 | payment_due_days | train |
contract_000003_q014 | contract_000003 | contract | images/contract/contract_000003.png | Yetkili mahkeme neresidir? | Şanlıurfa Mahkemeleri ve İcra Daireleri | jurisdiction | train |
contract_000003_q015 | contract_000003 | contract | images/contract/contract_000003.png | Fesih bildirimi kaç gün önceden yapılmalıdır? | 15 | termination_notice_days | train |
contract_000003_q016 | contract_000003 | contract | images/contract/contract_000003.png | Cezai şart tutarı kaç TL’dir? | ₺10.918,97 | penalty_amount | train |
contract_000003_q017 | contract_000003 | contract | images/contract/contract_000003.png | Kiraya veren tarafın adı nedir? | Sarı Tarım Ürünleri San. ve Tic. A.Ş. | party_a.name | train |
contract_000003_q018 | contract_000003 | contract | images/contract/contract_000003.png | Kiracı tarafın adı nedir? | Kahverengi İnşaat Malzemeleri A.Ş. | party_b.name | train |
contract_000006_q001 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme numarası nedir? | SOZ202400000006 | contract_no | train |
contract_000006_q002 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme tarihi nedir? | 22.04.2024 | contract_date | train |
contract_000006_q003 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme türü nedir? | Danışmanlık Sözleşmesi | contract_type | train |
contract_000006_q004 | contract_000006 | contract | images/contract/contract_000006.png | Birinci tarafın adı nedir? | Kahverengi İnşaat Malzemeleri A.Ş. | party_a.name | train |
contract_000006_q005 | contract_000006 | contract | images/contract/contract_000006.png | İkinci tarafın adı nedir? | Lacivert Eğitim Kurumları Ltd. Şti. | party_b.name | train |
contract_000006_q006 | contract_000006 | contract | images/contract/contract_000006.png | Birinci tarafın VKN numarası nedir? | 8600000006 | party_a.vkn | train |
contract_000006_q007 | contract_000006 | contract | images/contract/contract_000006.png | İkinci tarafın VKN numarası nedir? | 8610000006 | party_b.vkn | train |
contract_000006_q008 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşmenin konusu nedir? | Yiyecek ve içecek hizmetleri | subject | train |
contract_000006_q009 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme bedeli kaç TL’dir? | ₺1.481.975,82 | contract_amount | train |
contract_000006_q010 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme başlangıç tarihi nedir? | 03.06.2024 | start_date | train |
contract_000006_q011 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme bitiş tarihi nedir? | 03.09.2024 | end_date | train |
contract_000006_q012 | contract_000006 | contract | images/contract/contract_000006.png | Sözleşme süresi kaç aydır? | 3 | duration_months | train |
contract_000006_q013 | contract_000006 | contract | images/contract/contract_000006.png | Ödeme süresi kaç gündür? | 15 | payment_due_days | train |
contract_000006_q014 | contract_000006 | contract | images/contract/contract_000006.png | Yetkili mahkeme neresidir? | Malatya Mahkemeleri ve İcra Daireleri | jurisdiction | train |
contract_000006_q015 | contract_000006 | contract | images/contract/contract_000006.png | Fesih bildirimi kaç gün önceden yapılmalıdır? | 45 | termination_notice_days | train |
contract_000006_q016 | contract_000006 | contract | images/contract/contract_000006.png | Cezai şart tutarı kaç TL’dir? | ₺59.279,03 | penalty_amount | train |
contract_000007_q001 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme numarası nedir? | SOZ202300000007 | contract_no | train |
contract_000007_q002 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme tarihi nedir? | 30.05.2023 | contract_date | train |
contract_000007_q003 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme türü nedir? | Gizlilik Sözleşmesi | contract_type | train |
contract_000007_q004 | contract_000007 | contract | images/contract/contract_000007.png | Birinci tarafın adı nedir? | Gri Danışmanlık Hizmetleri Ltd. Şti. | party_a.name | train |
contract_000007_q005 | contract_000007 | contract | images/contract/contract_000007.png | İkinci tarafın adı nedir? | Pembe Gıda Ürünleri A.Ş. | party_b.name | train |
contract_000007_q006 | contract_000007 | contract | images/contract/contract_000007.png | Birinci tarafın VKN numarası nedir? | 8600000007 | party_a.vkn | train |
contract_000007_q007 | contract_000007 | contract | images/contract/contract_000007.png | İkinci tarafın VKN numarası nedir? | 8610000007 | party_b.vkn | train |
contract_000007_q008 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşmenin konusu nedir? | Gümrükleme ve dış ticaret işlemleri | subject | train |
contract_000007_q009 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme bedeli kaç TL’dir? | ₺1.728.342,54 | contract_amount | train |
contract_000007_q010 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme başlangıç tarihi nedir? | 03.06.2023 | start_date | train |
contract_000007_q011 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme bitiş tarihi nedir? | 03.09.2023 | end_date | train |
contract_000007_q012 | contract_000007 | contract | images/contract/contract_000007.png | Sözleşme süresi kaç aydır? | 3 | duration_months | train |
contract_000007_q013 | contract_000007 | contract | images/contract/contract_000007.png | Ödeme süresi kaç gündür? | 30 | payment_due_days | train |
contract_000007_q014 | contract_000007 | contract | images/contract/contract_000007.png | Yetkili mahkeme neresidir? | Sakarya Mahkemeleri ve İcra Daireleri | jurisdiction | train |
contract_000007_q015 | contract_000007 | contract | images/contract/contract_000007.png | Fesih bildirimi kaç gün önceden yapılmalıdır? | 15 | termination_notice_days | train |
contract_000007_q016 | contract_000007 | contract | images/contract/contract_000007.png | Cezai şart tutarı kaç TL’dir? | ₺17.283,43 | penalty_amount | train |
contract_000008_q001 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme numarası nedir? | SOZ202300000008 | contract_no | train |
contract_000008_q002 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme tarihi nedir? | 12.08.2023 | contract_date | train |
contract_000008_q003 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme türü nedir? | Tedarik Sözleşmesi | contract_type | train |
contract_000008_q004 | contract_000008 | contract | images/contract/contract_000008.png | Birinci tarafın adı nedir? | Beyaz Tekstil Ürünleri A.Ş. | party_a.name | train |
contract_000008_q005 | contract_000008 | contract | images/contract/contract_000008.png | İkinci tarafın adı nedir? | Altın Finansal Hizmetler Ltd. Şti. | party_b.name | train |
contract_000008_q006 | contract_000008 | contract | images/contract/contract_000008.png | Birinci tarafın VKN numarası nedir? | 8600000008 | party_a.vkn | train |
contract_000008_q007 | contract_000008 | contract | images/contract/contract_000008.png | İkinci tarafın VKN numarası nedir? | 8610000008 | party_b.vkn | train |
contract_000008_q008 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşmenin konusu nedir? | Araç kiralama ve filo yönetimi | subject | train |
contract_000008_q009 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme bedeli kaç TL’dir? | ₺1.947.497,20 | contract_amount | train |
contract_000008_q010 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme başlangıç tarihi nedir? | 10.09.2023 | start_date | train |
contract_000008_q011 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme bitiş tarihi nedir? | 10.09.2024 | end_date | train |
contract_000008_q012 | contract_000008 | contract | images/contract/contract_000008.png | Sözleşme süresi kaç aydır? | 12 | duration_months | train |
contract_000008_q013 | contract_000008 | contract | images/contract/contract_000008.png | Ödeme süresi kaç gündür? | 10 | payment_due_days | train |
contract_000008_q014 | contract_000008 | contract | images/contract/contract_000008.png | Yetkili mahkeme neresidir? | Mersin Mahkemeleri ve İcra Daireleri | jurisdiction | train |
contract_000008_q015 | contract_000008 | contract | images/contract/contract_000008.png | Fesih bildirimi kaç gün önceden yapılmalıdır? | 10 | termination_notice_days | train |
contract_000008_q016 | contract_000008 | contract | images/contract/contract_000008.png | Cezai şart tutarı kaç TL’dir? | ₺77.899,89 | penalty_amount | train |
contract_000009_q001 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme numarası nedir? | SOZ202300000009 | contract_no | train |
contract_000009_q002 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme tarihi nedir? | 03.01.2023 | contract_date | train |
contract_000009_q003 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme türü nedir? | Abonelik Sözleşmesi | contract_type | train |
contract_000009_q004 | contract_000009 | contract | images/contract/contract_000009.png | Birinci tarafın adı nedir? | Lacivert Eğitim Kurumları Ltd. Şti. | party_a.name | train |
contract_000009_q005 | contract_000009 | contract | images/contract/contract_000009.png | İkinci tarafın adı nedir? | Bronz Otomotiv Yedek Parça A.Ş. | party_b.name | train |
contract_000009_q006 | contract_000009 | contract | images/contract/contract_000009.png | Birinci tarafın VKN numarası nedir? | 8600000009 | party_a.vkn | train |
contract_000009_q007 | contract_000009 | contract | images/contract/contract_000009.png | İkinci tarafın VKN numarası nedir? | 8610000009 | party_b.vkn | train |
contract_000009_q008 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşmenin konusu nedir? | Enerji tüketim analizi ve raporlaması | subject | train |
contract_000009_q009 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme bedeli kaç TL’dir? | ₺1.067.649,34 | contract_amount | train |
contract_000009_q010 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme başlangıç tarihi nedir? | 11.02.2023 | start_date | train |
contract_000009_q011 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme bitiş tarihi nedir? | 11.02.2025 | end_date | train |
contract_000009_q012 | contract_000009 | contract | images/contract/contract_000009.png | Sözleşme süresi kaç aydır? | 24 | duration_months | train |
contract_000009_q013 | contract_000009 | contract | images/contract/contract_000009.png | Ödeme süresi kaç gündür? | 45 | payment_due_days | train |
contract_000009_q014 | contract_000009 | contract | images/contract/contract_000009.png | Yetkili mahkeme neresidir? | Afyonkarahisar Mahkemeleri ve İcra Daireleri | jurisdiction | train |
contract_000009_q015 | contract_000009 | contract | images/contract/contract_000009.png | Fesih bildirimi kaç gün önceden yapılmalıdır? | 10 | termination_notice_days | train |
contract_000009_q016 | contract_000009 | contract | images/contract/contract_000009.png | Cezai şart tutarı kaç TL’dir? | ₺42.705,97 | penalty_amount | train |
contract_000011_q001 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme numarası nedir? | SOZ202500000011 | contract_no | train |
contract_000011_q002 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme tarihi nedir? | 30.04.2025 | contract_date | train |
contract_000011_q003 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme türü nedir? | Hizmet Sözleşmesi | contract_type | train |
contract_000011_q004 | contract_000011 | contract | images/contract/contract_000011.png | Birinci tarafın adı nedir? | Altın Finansal Hizmetler Ltd. Şti. | party_a.name | train |
contract_000011_q005 | contract_000011 | contract | images/contract/contract_000011.png | İkinci tarafın adı nedir? | Platin Teknoloji Danışmanlık A.Ş. | party_b.name | train |
contract_000011_q006 | contract_000011 | contract | images/contract/contract_000011.png | Birinci tarafın VKN numarası nedir? | 8600000011 | party_a.vkn | train |
contract_000011_q007 | contract_000011 | contract | images/contract/contract_000011.png | İkinci tarafın VKN numarası nedir? | 8610000011 | party_b.vkn | train |
contract_000011_q008 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşmenin konusu nedir? | Sosyal medya yönetimi | subject | train |
contract_000011_q009 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme bedeli kaç TL’dir? | ₺1.741.961,88 | contract_amount | train |
contract_000011_q010 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme başlangıç tarihi nedir? | 07.06.2025 | start_date | train |
contract_000011_q011 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme bitiş tarihi nedir? | 07.12.2025 | end_date | train |
contract_000011_q012 | contract_000011 | contract | images/contract/contract_000011.png | Sözleşme süresi kaç aydır? | 6 | duration_months | train |
contract_000011_q013 | contract_000011 | contract | images/contract/contract_000011.png | Ödeme süresi kaç gündür? | 15 | payment_due_days | train |
contract_000011_q014 | contract_000011 | contract | images/contract/contract_000011.png | Yetkili mahkeme neresidir? | Van Mahkemeleri ve İcra Daireleri | jurisdiction | train |
contract_000011_q015 | contract_000011 | contract | images/contract/contract_000011.png | Fesih bildirimi kaç gün önceden yapılmalıdır? | 45 | termination_notice_days | train |
contract_000011_q016 | contract_000011 | contract | images/contract/contract_000011.png | Cezai şart tutarı kaç TL’dir? | ₺69.678,48 | penalty_amount | train |
contract_000012_q001 | contract_000012 | contract | images/contract/contract_000012.png | Sözleşme numarası nedir? | SOZ202300000012 | contract_no | train |
contract_000012_q002 | contract_000012 | contract | images/contract/contract_000012.png | Sözleşme tarihi nedir? | 14.01.2023 | contract_date | train |
- Dataset Summary
- Dataset Size
- Document Types
- Dataset Structure
- Annotation Format
- Document Metadata Format
- Source Records
- Generation Process
- Templates and Layout Diversity
- Task Description
- Intended Uses
- Out-of-Scope Uses
- Data Splits
- Why Turkish Document VQA?
- Synthetic Data Notice
- Ethical Considerations
- Limitations
- Recommended Evaluation Practice
- Loading Example
- Example Annotation
- Dataset Strengths
- Suggested Model Input Format
- Version
- Citation
- License
- Contact
- Final Note
TR-DocVQA-Synth: A Large-Scale Synthetic Turkish Document Visual Question Answering Dataset
Dataset Summary
TR-DocVQA-Synth is a large-scale synthetic Turkish Document Visual Question Answering dataset designed for training and evaluating multimodal models on Turkish business documents. The dataset contains 15,000 document images and 235,000 question-answer pairs generated from structured ground-truth records.
The dataset focuses on realistic Turkish document layouts and field-oriented reasoning. It includes three major document families:
- e-Fatura / e-Arşiv style invoices
- Commercial contracts
- Offers, proforma invoices, and purchase/order documents
Each document is provided as a PNG image, together with structured source metadata and question-answer annotations. The dataset is built to support models that need to read Turkish text from document images, understand document layout, locate key fields, reason over tables, and answer questions using visually grounded document evidence.
At the time of release, TR-DocVQA-Synth is the first large-scale Turkish-focused Document VQA dataset built specifically around Turkish business documents. While Turkish text QA and general visual QA datasets exist, TR-DocVQA-Synth targets the underrepresented task of Turkish document image understanding with document-level visual question answering.
Dataset Size
| Split | Documents | QA Pairs |
|---|---|---|
| Train | 12,000 | 188,026 |
| Validation | 1,500 | 23,504 |
| Test | 1,500 | 23,470 |
| Total | 15,000 | 235,000 |
Document Types
TR-DocVQA-Synth contains three high-level document families.
1. Invoice Documents
Synthetic Turkish e-Fatura / e-Arşiv style invoice documents.
Typical fields include:
- Invoice number
- Invoice date
- Seller company
- Buyer company
- Seller VKN
- Buyer VKN/TCKN
- Item table
- Quantity
- Unit price
- VAT rate
- VAT amount
- Subtotal
- Payable amount
2. Contract Documents
Synthetic Turkish commercial contracts with multiple contract templates and contract types.
Supported contract styles include:
- Service Agreement
- Goods Purchase Agreement
- Rental Agreement
- Software License Agreement
- Maintenance and Support Agreement
- Consultancy Agreement
- Confidentiality Agreement
- Supply Agreement
- Subscription Agreement
- Training Service Agreement
Typical fields include:
- Contract number
- Contract date
- Contract type
- Party A
- Party B
- Party VKN values
- Contract subject
- Contract amount
- Start date
- End date
- Duration
- Payment terms
- Penalty clause
- Jurisdiction
- Termination notice period
3. Offer / Proforma / Purchase Order Documents
Synthetic Turkish commercial offer and order documents.
Supported document types include:
- Fiyat Teklifi
- Proforma Fatura
- Satın Alma Siparişi
- Sipariş Onay Formu
- Malzeme Talep Formu
- Hizmet Teklifi
- Bakım Hizmeti Teklifi
- Yazılım Lisans Teklifi
- Tedarik Teklifi
- Eğitim Hizmeti Teklifi
Typical fields include:
- Document number
- Document date
- Validity date
- Seller company
- Buyer company
- Product/service table
- Discount
- VAT
- Net total
- Grand total
- Delivery terms
- Payment terms
Dataset Structure
The released dataset is organized as follows:
tr-docvqa-synth/
images/
invoice/
contract/
offer/
annotations/
train.jsonl
val.jsonl
test.jsonl
all.jsonl
documents/
documents.jsonl
train_documents.jsonl
val_documents.jsonl
test_documents.jsonl
source_records/
invoices.jsonl
contracts.jsonl
offers.jsonl
manifests/
invoices_manifest.csv
contracts_manifest.csv
offers_manifest.csv
all_manifest.csv
reports/
dataset_stats.json
dataset_stats.md
validation_report.json
validation_report.md
README.md
dataset_card.md
Annotation Format
Each line in annotations/*.jsonl represents one question-answer pair.
Example:
{
"question_id": "contract_000001_q001",
"document_id": "contract_000001",
"document_type": "contract",
"image_path": "images/contract/contract_000001.png",
"question": "Sözleşme numarası nedir?",
"answer": "SOZ202300000001",
"field": "contract_no",
"split": "val"
}
Fields
| Field | Description |
|---|---|
question_id |
Unique ID for the QA pair |
document_id |
Unique ID of the document |
document_type |
One of invoice, contract, or offer |
image_path |
Relative path to the document image |
question |
Turkish natural-language question |
answer |
Ground-truth answer |
field |
Source field used to derive the answer |
split |
Dataset split: train, val, or test |
Document Metadata Format
Each line in documents/documents.jsonl represents one document.
Example:
{
"document_id": "invoice_000001",
"document_type": "invoice",
"image_path": "images/invoice/invoice_000001.png",
"html_source_path": "generated/html/invoice_000001.html",
"pdf_source_path": "generated/pdf/invoice_000001.pdf",
"qa_source_path": "generated/qa/invoice_000001.json",
"source_record_path": "source_records/invoices.jsonl",
"num_questions": 10,
"split": "train"
}
Source Records
Unlike many purely image-level datasets, TR-DocVQA-Synth preserves the structured source records used to generate each document. These records are stored under:
source_records/
invoices.jsonl
contracts.jsonl
offers.jsonl
These source records make the dataset reproducible and auditable. They also allow researchers to inspect the exact structured fields behind each rendered document and each QA pair.
This is useful for:
- debugging model failures,
- checking answer consistency,
- generating new question types,
- rendering the same records with new templates,
- creating OCR or information extraction tasks,
- extending the dataset with additional document families.
Generation Process
TR-DocVQA-Synth was generated using a two-stage synthetic data pipeline.
Stage 1: Structured Source Data Generation
For each document family, structured source records were generated first. These records contain all ground-truth fields such as company names, dates, document numbers, monetary values, contract terms, item tables, totals, and answerable fields.
Synthetic content generation was designed to avoid real personal or corporate data. Textual variety such as company names, sectors, product descriptions, contract subjects, and document terms was generated synthetically, while numerical fields and calculations were handled deterministically by code.
Stage 2: Document Rendering and QA Generation
The structured source records were then rendered into document templates.
For each record, the pipeline generated:
- HTML document
- PDF document
- PNG document image
- QA JSON annotation
- Manifest entry
The QA pairs were generated directly from the structured source records, not by OCR or model guessing. This ensures that the answers are known exactly and remain consistent with the document content.
Templates and Layout Diversity
The dataset uses multiple templates for each document family.
Template variation includes:
- formal invoice layouts,
- contract-style long-form documents,
- compact contract layouts,
- table-heavy offer documents,
- modern commercial offer layouts,
- proforma invoice layouts,
- purchase order forms,
- official-looking document styles.
This variation is intended to reduce overfitting to a single visual structure and encourage models to learn layout-aware document understanding.
Task Description
TR-DocVQA-Synth is intended for Document Visual Question Answering in Turkish.
Given a document image and a Turkish question, the model must produce the correct answer.
Example:
Image: images/invoice/invoice_000001.png
Question: Fatura tarihi nedir?
Answer: 22.02.2024
The task requires a combination of:
- OCR-like text recognition,
- Turkish language understanding,
- document layout understanding,
- table reading,
- key-value extraction,
- numerical field recognition,
- field-level reasoning.
Intended Uses
TR-DocVQA-Synth can be used for:
- training Turkish Document VQA models,
- evaluating vision-language models on Turkish document understanding,
- fine-tuning multimodal LLMs,
- benchmarking OCR + QA pipelines,
- testing layout-aware document parsers,
- developing Turkish business document understanding systems,
- studying synthetic data generation for low-resource Document AI.
Out-of-Scope Uses
This dataset should not be used as evidence of real commercial activity, legal agreements, financial transactions, tax documents, or binding contractual relations.
The documents are synthetic and should not be treated as real invoices, real contracts, real offers, or legally valid records.
Data Splits
The dataset uses document-level train/validation/test splits.
This means all QA pairs belonging to the same document are assigned to the same split. No document appears in more than one split.
| Split | Documents | QA Pairs |
|---|---|---|
| Train | 12,000 | 188,026 |
| Validation | 1,500 | 23,504 |
| Test | 1,500 | 23,470 |
Why Turkish Document VQA?
Most Document VQA resources have historically focused on English or high-resource multilingual settings. Turkish introduces its own linguistic and formatting characteristics, including:
- Turkish field labels,
- Turkish date and currency formats,
- Turkish business terminology,
- Turkish tax identifiers such as VKN/TCKN-style fields,
- agglutinative language structure,
- document layouts common in Turkish commercial workflows.
TR-DocVQA-Synth is designed to help close this gap by providing a large, structured, and visually grounded Turkish dataset for document question answering.
Synthetic Data Notice
All documents in this dataset are synthetic.
The dataset was designed to avoid real personal, corporate, financial, or legal records. Names, addresses, document numbers, tax-like identifiers, contract terms, products, and monetary values are synthetically generated.
Although some generated company names or addresses may appear realistic, they are not intended to represent real entities.
Ethical Considerations
TR-DocVQA-Synth is synthetic and was created to reduce privacy and licensing risks associated with collecting real invoices, contracts, and business documents.
However, users should still be careful when applying models trained on this dataset to real-world documents. Real documents may contain sensitive personal, legal, financial, or commercial information. Systems built using this dataset should include proper privacy, security, and human review mechanisms when deployed in real settings.
Limitations
TR-DocVQA-Synth is intentionally synthetic and therefore does not fully capture all challenges of real-world document understanding.
Known limitations include:
- It may not include real scanning artifacts such as blur, skew, stains, handwriting, folds, stamps, or low-light photos.
- It may not represent all Turkish document layouts used in real institutions or companies.
- It may underrepresent rare legal, financial, or sector-specific wording.
- It may not fully capture noisy OCR conditions.
- It may contain repetitive patterns due to template-based rendering.
- It should not be used as the only benchmark for real-world Turkish document understanding.
- The generated VKN/TCKN-like identifiers are synthetic and should not be interpreted as real identifiers.
- The dataset does not prove real-world legal, tax, or accounting validity.
Recommended Evaluation Practice
For robust evaluation, models trained on TR-DocVQA-Synth should also be tested on manually reviewed real or semi-real Turkish document samples when legally and ethically possible.
Recommended metrics include:
- Exact Match
- ANLS
- Normalized string match
- Field-level accuracy
- Document-type-specific accuracy
- Table-field accuracy
- Numeric answer accuracy
For Turkish currency and date fields, evaluation should consider normalized formats as well as exact displayed formats.
Loading Example
import json
from pathlib import Path
from PIL import Image
dataset_root = Path("tr-docvqa-synth")
with open(dataset_root / "annotations" / "train.jsonl", "r", encoding="utf-8") as f:
row = json.loads(next(f))
image = Image.open(dataset_root / row["image_path"])
print("Document:", row["document_id"])
print("Type:", row["document_type"])
print("Question:", row["question"])
print("Answer:", row["answer"])
print("Image size:", image.size)
Example Annotation
{
"question_id": "contract_000001_q001",
"document_id": "contract_000001",
"document_type": "contract",
"image_path": "images/contract/contract_000001.png",
"question": "Sözleşme numarası nedir?",
"answer": "SOZ202300000001",
"field": "contract_no",
"split": "val"
}
Dataset Strengths
TR-DocVQA-Synth provides several practical advantages:
- Large-scale Turkish Document VQA coverage
- Structured ground truth for every rendered document
- Multiple document families
- Multiple layouts and templates
- Document-level train/val/test split
- Field-level annotation provenance
- PNG images ready for multimodal training
- JSONL annotations suitable for modern ML pipelines
- Synthetic data design that avoids real private business records
Suggested Model Input Format
A typical training sample can be constructed as:
{
"image": "images/invoice/invoice_000001.png",
"question": "Fatura tarihi nedir?",
"answer": "22.02.2024"
}
For instruction-tuned multimodal models, a sample prompt may be:
Aşağıdaki Türkçe belge görseline bakarak soruyu cevapla.
Soru: Fatura tarihi nedir?
Cevap:
Version
Current release: v1.0
This release contains 15,000 synthetic Turkish document images and 235,000 QA pairs across invoice, contract, and offer document families.
Citation
If you use this dataset, please cite it as:
@dataset{tr_docvqa_synth,
title = {TR-DocVQA-Synth: A Large-Scale Synthetic Turkish Document Visual Question Answering Dataset},
author = {Neuronauts},
year = {2026},
note = {Synthetic Turkish Document VQA dataset}
}
License
Data License: CC BY 4.0 Code License: MIT
Contact
Maintainer: Ethosoft Project: TR-DocVQA-Synth
Final Note
TR-DocVQA-Synth was created to support Turkish Document AI research. Its goal is to provide a strong, reproducible, privacy-conscious foundation for visual question answering on Turkish business documents.
The dataset is not a replacement for real-world evaluation, but it is designed as a scalable starting point for building and benchmarking Turkish document understanding systems.
- Downloads last month
- 19