A novel syntax-aware automatic graphics code generation with attention-based deep neural network. (1st July 2020)
- Record Type:
- Journal Article
- Title:
- A novel syntax-aware automatic graphics code generation with attention-based deep neural network. (1st July 2020)
- Main Title:
- A novel syntax-aware automatic graphics code generation with attention-based deep neural network
- Authors:
- Pang, Xiongwen
Zhou, Yanqiang
Li, Pengcheng
Lin, Weiwei
Wu, Wentai
Wang, James Z. - Abstract:
- Abstract: Recent advances in deep learning have made it possible to automatically translate graphical user interface (GUI) into code by an encoder-decoder framework. This framework generally uses deep convolutional neural network (CNN) to extract image features, which are then translated into hundreds of code tokens by a code generator based on a recurrent neural network (RNN). However, there are two challenges in the implementation of this framework: one is how to make full use of the information contained in the GUI and domain specified language (DSL) code, the other is how to make generated DSL code conform to syntax rules. To fully leverage the information in GUI and DSL code, we first propose a model named HGui2Code that integrates visual attention-enabled GUI features (extracted by CNN) with DSL attention-enabled semantic features (extracted by LSTM). Besides, we propose SGui2Code, a novel model that makes use of a ON-LSTM network to generate DSL code that is correct in syntax. HGui2code pays more attention to semantic information, while SGui2code focuses on grammar rules. Extensive experimental results show that our models outperform state-of-the-art methods on the web dataset, yielding 5.5% higher accuracy with the HGui2Code model and 1.5% using the SGui2Code model respectively. Although our models do not have huge boost on IOS and Android dataset, DSL code generated by our models are very close to the layout of components in corresponding GUI.
- Is Part Of:
- Journal of network and computer applications. Volume 161(2020)
- Journal:
- Journal of network and computer applications
- Issue:
- Volume 161(2020)
- Issue Display:
- Volume 161, Issue 2020 (2020)
- Year:
- 2020
- Volume:
- 161
- Issue:
- 2020
- Issue Sort Value:
- 2020-0161-2020-0000
- Page Start:
- Page End:
- Publication Date:
- 2020-07-01
- Subjects:
- Convolution neural network -- Long-short term memory neural network (LSTM neural Network) -- Automatic code generation -- Attention mechanism -- Syntax awareness
Microcomputers -- Periodicals
Computer networks -- Periodicals
Application software -- Periodicals
Micro-ordinateurs -- Périodiques
Réseaux d'ordinateurs -- Périodiques
Logiciels d'application -- Périodiques
Application software
Computer networks
Microcomputers
Periodicals
004.05
004 - Journal URLs:
- http://www.sciencedirect.com/science/journal/10848045 ↗
http://www.elsevier.com/journals ↗ - DOI:
- 10.1016/j.jnca.2020.102636 ↗
- Languages:
- English
- ISSNs:
- 1084-8045
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 5021.410600
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 13486.xml