HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Towards Making Flowchart Images Machine Interpretable

Shukla Shreya ; Gatti Prajwal ; Kumar Yogesh ; Yadav Vikash ; Mishra Anand

Towards Making Flowchart Images Machine Interpretable

Abstract

Computer programming textbooks and software documentations often containflowcharts to illustrate the flow of an algorithm or procedure. Modern OCRengines often tag these flowcharts as graphics and ignore them in furtherprocessing. In this paper, we work towards making flowchart imagesmachine-interpretable by converting them to executable Python codes. To thisend, inspired by the recent success in natural language to code generationliterature, 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 togenerate syntactically correct code. We also used a task-specific pre-trainingobjective to pre-train FloCo-T5 using a large number of logic-preservingaugmented code samples. Further, to perform a rigorous study of this problem,we introduce theFloCo dataset that contains 11,884 flowchart images and theircorresponding Python codes. Our experiments show promising results, andFloCo-T5 clearly outperforms related competitive baselines on code generationmetrics. We make our dataset and implementation publicly available.

Code Repositories

vl2g/floco
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
code-generation-on-flocoFloCo-T5
BLEU: 67.4
CodeBLEU: 75.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Towards Making Flowchart Images Machine Interpretable | Papers | HyperAI