Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Invalid string class label PGDP5K@34afc805fb5230e478bf2054a1fa1dcf4584cbc5
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
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 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2567, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2102, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2134, in _iter_arrow
pa_table = cast_table_to_features(pa_table, self.features)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2197, in cast_table_to_features
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1795, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1995, in cast_array_to_feature
return feature.cast_storage(array)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1172, in cast_storage
[self._strval2int(label) if label is not None else None for label in storage.to_pylist()]
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1101, in _strval2int
raise ValueError(f"Invalid string class label {value}")
ValueError: Invalid string class label PGDP5K@34afc805fb5230e478bf2054a1fa1dcf4584cbc5Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
PGDP5K: Plane Geometry Diagram Parsing Dataset
[π Homepage] [π» Github][π Paper]
1. Introduction
The Plane Geometry Diagram Parsing Dataset (PGDP5K) was constructed by the National Laboratory of Pattern Recognition (NLPR), Institute of Automation of Chinese Academy of Sciences (CASIA). Our dataset consists of 5000 diagram samples composed of 16 shapes, covering 5 positional relations, 22 symbol types and 6 text types, labeled with more fine-grained annotations at primitive level, including primitive classes, locations and relationships, where 1,813 non-duplicated images are selected from the Geometry3K dataset and other 3,187 images are collected from three popular textbooks across grades 6-12 on mathematics curriculum websites by taking screenshots from PDF books. Combined with above annotations and geometric prior knowledge, it can generate intelligible geometric propositions automatically and uniquely.
2. Annotations
2.1 Geometric Primitives
We divided geometric primitives into 3 classes: point, line and circle, and we annotated their parsing positions and uniform pixel widths.
Point: The point covers inter-section point, tangent point, endpoint and independent point.
Line: The line consists of solid line, dash line and mixture of solid and dash. It is worth noting that we only label the longest line segment of all collinear lines.
Circle: The circle includes complete circle and arc.
2.2 Non-geometric Primitives
For non-geometric primitives, we annotated the bounding box, symbol class and text class, and recorded corresponding text contents.
Text: We divided texts into 6 classes. We divided the texts into line, point, angle, length, degree and area, making fine-grained text classification as a new sub-task of diagram parsing.
Symbol: We divided symbols into 6 super-classes and 16 sub-classes: perpendicular, angle, bar, parallel, arrow and head, where classes of angle, bar and parallel have multiple forms. We subdivided the heads into 2 classes to distinguish different indication relations of different arrows.
2.3 Relationships
As to primitive relations, we constructed a relation graph of elementary relations among primitives in Fig. 4. We divided primitive relations into 4 classes: geo2geo, text2geo, sym2geo and sym2text. For relations of geometric primitives, we only construct relations between point and line, point and circle, because other high-level relations among geometric primitives could be derived from these two basic relations. We defined a two-tuple with multiple entities to represent the relation between primitives. We take points, symbols and texts as subjects, and set other primitives related as objects. Some relation tuples are shown in Fig. 5.
2.4 Geometric Description Language
We formed the high-level and comprehensible specifications of geometric description language (GDL), which mainly consists of a list of geometric propositions formatted by proposition templates. As shown in Tab. 1, we defined 4 types of proposition templates about basic relations: Geometry Shape, Geo2Geo, Text2Geo and Sym2Geo.
Geometry Shape: Geometry shapes are basic elements of high-level propositions. We give proposition templates of 5 types of fundamental geometry shapes: point, line, circle, angle and arc, where line, angle and arc have several equivalent expressions. Geo2Geo: 3 types of proposition templates are defined for relations among geometric primitives: point lies on line, point lies on circle and point is center of circle. Text2Geo: The relations of text with geometric primitives are divided into 6 types according to text class. Among the these proposition templates, the ones of degree and length are not unique. Sym2Geo: The propositions of symbol with geometric primitive are divided into 4 groups according to symbol class, and there are 2 proposition templates of symbol bar.
2.5 Dataset Distributions
Fig. 6 displays class distributions of geometry shape, symbol, text and relation. They are all subject to the long-tailed distribution evidently. Note that text is seen as a special symbol recorded in the symbol distribution.
Citation
If you find this work useful, welcome to cite/star us.
@inproceedings{Zhang2022,
title = {Plane Geometry Diagram Parsing},
author = {Zhang, Ming-Liang and Yin, Fei and Hao, Yi-Han and Liu, Cheng-Lin},
booktitle = {Proceedings of the Thirty-First International Joint Conference on
Artificial Intelligence, {IJCAI-22}},
pages = {1636--1643},
year = {2022},
month = {7},
doi = {10.24963/ijcai.2022/228},
}
@article{Hao2022PGDP5KAD,
title={PGDP5K: A Diagram Parsing Dataset for Plane Geometry Problems},
author={Yihan Hao and Mingliang Zhang and Fei Yin and Linlin Huang},
journal={2022 26th International Conference on Pattern Recognition (ICPR)},
year={2022},
pages={1763-1769}
}
- Downloads last month
- 53





