2021

Exploring Dynamic Selection of Branch Expansion Orders for Code Generation

Jiang, Hui, Zhou, Chulun, Meng, Fandong et al.

Understand

Due to the great potential in facilitating software development, code generation has attracted increasing attention recently.

  • Generally, dominant models are Seq2Tree models, which convert the input natural language description into a sequence of tree-construction actions corresponding to the pre-order traversal of an Abstract Syntax Tree (AST).
  • However, such a traversal order may not be suitable for handling all multi-branch nodes.
  • In this paper, we propose to equip the Seq2Tree model with a context-based Branch Selector, which is able to dynamically determine optimal expansion orders of branches for multi-branch nodes.

Reading the bibliography…