Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ArrowInvalid
Message:      Failed to parse string: '2019-11-/' as a scalar of type timestamp[s]
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 489, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                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 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2303, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1852, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2059, in cast_array_to_feature
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                  ~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1854, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2059, in cast_array_to_feature
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                  ~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1854, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2143, in cast_array_to_feature
                  return array_cast(
                      array,
                  ...<2 lines>...
                      allow_decimal_to_str=allow_decimal_to_str,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1854, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2006, in array_cast
                  return array.cast(pa_type)
                         ~~~~~~~~~~^^^^^^^^^
                File "pyarrow/array.pxi", line 1147, in pyarrow.lib.Array.cast
                File "/usr/local/lib/python3.14/site-packages/pyarrow/compute.py", line 412, in cast
                  return call_function("cast", [arr], options, memory_pool)
                File "pyarrow/_compute.pyx", line 604, in pyarrow._compute.call_function
                File "pyarrow/_compute.pyx", line 399, in pyarrow._compute.Function.call
                  result = GetResultValue(
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: Failed to parse string: '2019-11-/' as a scalar of type timestamp[s]

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.

Dataset Card for StructBill-CN

StructBill-CN is a comprehensive benchmark dataset tailored for Schema-based Unified Extraction in Visual Document Understanding (VDU). It specifically targets the direct-ingestion extraction of complex, hierarchical information (both global Key-Value pairs and nested wireless tables) from high-resolution Chinese medical statement images, with a strong emphasis on evaluating structural accuracy and arithmetic logical consistency.

Dataset Details

Dataset Description

Automated transformation of complex statement images into queryable databases is a critical yet unresolved challenge. While Multimodal Large Language Models (MLLMs) excel in general perception, they struggle with precise direct-ingestion tasks, particularly when processing wireless tables where the absence of visual grid lines renders traditional Table Structure Recognition (TSR) ineffective.

StructBill-CN bridges the gap between visual cues and semantic structure. Unlike traditional datasets that focus heavily on physical bounding boxes, StructBill-CN features logical structure annotations for both global Key-Value pairs and complex line-item tables. It compels models to comprehend semantic layouts and business logic (such as deterministic arithmetic rules like Price * Quantity = Amount) rather than merely performing physical visual detection.

Dataset Sources

To strictly comply with original data distribution agreements, our repository explicitly separates our novel annotations from third-party raw images.

Uses

Direct Use

This dataset is designed for academic research in the field of Document AI, specifically for:

  • Evaluating and training Multimodal Large Language Models (MLLMs) on Visual Information Extraction (VIE).
  • Benchmarking models on parsing complex, wireless, and borderless tables.
  • Assessing the logical reasoning and arithmetic consistency capabilities of VDU systems.
  • Developing reinforcement learning algorithms (like SRPO) for document alignment and schema-following tasks.

Out-of-Scope Use

  • Commercial Use: Prohibited under the CC BY-NC-SA 4.0 license.
  • High-Risk Decision Making: Models trained on this dataset should not be deployed in real-world healthcare or financial automated auditing without a robust Human-in-the-loop (HITL) review system.

Dataset Structure

StructBill-CN comprises 2,300 high-resolution images covering 6 distinct business schemas.

Strict Compliance Distribution Policy (Decoupled Release):

To comply with data privacy policies and third-party distribution agreements, the dataset is structured as follows:

  • 1. What We Provide Here (Available Now):

    • Unified Annotations: Our curated, hierarchical JSON annotations for all 3,596 instances (CHIP-2022, SIBR-med, and Internal-Wild).

    • Internal-Wild Test Images: The original image files for the Out-of-Distribution (OOD) test set of our proprietary Internal-Wild data. These have been fully de-identified.

  • 2. Third-Party Source Images (Download Required):

    • For the CHIP-2022 and SIBR-med subsets, we only provide the annotations. Researchers must download the original raw images directly from their respective official platforms (linked in the Dataset Sources section above) to pair with our JSON files.

Dataset Creation

Curation Rationale

Existing benchmarks predominantly focus on simple KV extraction or ruled tables with relatively static layouts. They fail to expose model deficiencies in semantic alignment when dealing with borderless tables, structural ambiguity, and extreme visual density. StructBill-CN was created to establish an "Ingestion-Ready" benchmark that mimics real-world database schemas, forcing models to infer structure from content logic.

Source Data

Data Collection and Processing

The dataset aggregates data from three main sources:

  1. CHIP-2022 (1,700 items): Inpatient/Outpatient/Pharmacy invoices and Discharge records.
  2. SIBR-Med (600 items): Fee lists and Notification notes.

Annotations

Annotation process

The annotation protocol strictly prioritizes semantic attribution over physical location. Instead of traditional bounding box coordinates, annotations are formatted as a Hierarchical JSON standard. In the presence of printing offsets or wireless table layouts, labels are assigned based on the logical business context. Furthermore, all numerical fields (Price, Quantity, Amount) were cross-validated to ensure arithmetic consistency in the Ground Truth.

Recommendations

Users should be aware that while the dataset aims to benchmark arithmetic consistency, current MLLMs may still hallucinate numbers. It is highly recommended to implement deterministic rule-checkers on top of model outputs when using these systems in practical scenarios.

Citation

BibTeX:

@article{structbillcn2026,
  title={StructBill-CN: Benchmarking and Improving Logical Consistency in Visual Document Understanding with Schema-Reinforced Policy Optimization},
  author={Anonymous Authors},
  journal={Under Review at IJCAI},
  year={2026}
}

(Note: The citation will be updated with author names and official publication details upon acceptance.)

Dataset Card Contact

For questions regarding the dataset, data licensing, or to request the removal of source images based on copyright claims, please contact: vanvan6992@gamil.com

Downloads last month
14