首个手绘UML图转PlantUML的公开数据集,支持可复现评估。
CAS2UML: A Handwritten Sketch-to-PlantUML Dataset for Class and Activity Diagrams

- 收集557张手绘类图与活动图,每张配手工验证的PlantUML代码。
- 提供校验工具与脚本,确保生成结果语法正确且可渲染。
- 适合做草图转UML的模型评估与可复现研究者使用。
随着大语言模型和多模态AI的发展,从草图或图像自动生成UML图正受到关注。然而,由于缺乏带有可执行真值模型的公开数据集,复现性评估仍困难。本文提出CAS2UML,一个包含557张手绘UML图的数据集,包括271张类图和286张活动图,每张均配有手动验证的PlantUML代码。我们还提供了基于PlantUML的验证工具和可复用脚本,用于检查生成的UML产物在语法上是否正确及是否可渲染,从而实现草图到UML方法的可复现基准测试。数据集、验证工具、处理脚本、文档及演示视频均已公开:数据集地址:https://huggingface.co/datasets/Seym0n/cas2uml_hand-drawn_to_plantuml_dataset;工具与脚本:https://github.com/Seym0n/handwritten-uml-dataset;视频:https://www.youtube.com/watch?v=KQrYeGgT3hs。
原文摘要 · Abstract (English)
Automated UML generation from sketches and images is gaining renewed attention with the rise of large language models and multimodal AI. However, reproducible evaluation remains difficult due to the lack of public datasets with executable groundtruth models. We present CAS2UML, a public dataset of 557 handdrawn UML diagrams, including 271 class diagrams and 286 activity diagrams, each paired with manually validated PlantUML code. We also provide a PlantUML-based validation tool and reusable scripts for checking the syntactic correctness and renderability of generated UML artifacts, enabling reproducible benchmarking of sketch-to-UML approaches. The dataset, validation tool, processing scripts, documentation, and demonstration video are publicly available at: Dataset: https://huggingface.co/datasets/Seym0n /cas2uml_hand-drawn_to_plantuml_dataset; Tool and Scripts: https://github.com/Seym0n/handwritten-uml-dataset; Video: https://www.youtube.com/watch?v=KQrYeGgT3hs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。