Towards Making Flowchart Images Machine Interpretable

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shukla, Shreya, Gatti, Prajwal, Kumar, Yogesh, Yadav, Vikash, Mishra, Anand
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929690514554880
author Shukla, Shreya
Gatti, Prajwal
Kumar, Yogesh
Yadav, Vikash
Mishra, Anand
author_facet Shukla, Shreya
Gatti, Prajwal
Kumar, Yogesh
Yadav, Vikash
Mishra, Anand
contents Computer programming textbooks and software documentations often contain flowcharts to illustrate the flow of an algorithm or procedure. Modern OCR engines often tag these flowcharts as graphics and ignore them in further processing. In this paper, we work towards making flowchart images machine-interpretable by converting them to executable Python codes. To this end, inspired by the recent success in natural language to code generation literature, we present a novel transformer-based framework, namely FloCo-T5. Our model is well-suited for this task,as it can effectively learn semantics, structure, and patterns of programming languages, which it leverages to generate syntactically correct code. We also used a task-specific pre-training objective to pre-train FloCo-T5 using a large number of logic-preserving augmented code samples. Further, to perform a rigorous study of this problem, we introduce theFloCo dataset that contains 11,884 flowchart images and their corresponding Python codes. Our experiments show promising results, and FloCo-T5 clearly outperforms related competitive baselines on code generation metrics. We make our dataset and implementation publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2501_17441
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards Making Flowchart Images Machine Interpretable
Shukla, Shreya
Gatti, Prajwal
Kumar, Yogesh
Yadav, Vikash
Mishra, Anand
Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Digital Libraries
Software Engineering
Computer programming textbooks and software documentations often contain flowcharts to illustrate the flow of an algorithm or procedure. Modern OCR engines often tag these flowcharts as graphics and ignore them in further processing. In this paper, we work towards making flowchart images machine-interpretable by converting them to executable Python codes. To this end, inspired by the recent success in natural language to code generation literature, we present a novel transformer-based framework, namely FloCo-T5. Our model is well-suited for this task,as it can effectively learn semantics, structure, and patterns of programming languages, which it leverages to generate syntactically correct code. We also used a task-specific pre-training objective to pre-train FloCo-T5 using a large number of logic-preserving augmented code samples. Further, to perform a rigorous study of this problem, we introduce theFloCo dataset that contains 11,884 flowchart images and their corresponding Python codes. Our experiments show promising results, and FloCo-T5 clearly outperforms related competitive baselines on code generation metrics. We make our dataset and implementation publicly available.
title Towards Making Flowchart Images Machine Interpretable
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Digital Libraries
Software Engineering
url https://arxiv.org/abs/2501.17441