arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.13972cs.CL
收藏

词汇和语法处理对从自然语言生成代码的影响

The impact of lexical and grammatical processing on generating code from natural language

Université de Paris(巴黎大学);CNRS(法国国家科学研究中心);onepoint

Nathanaël Beau, Benoît Crabbé

摘要:

考虑到用于自然语言代码翻译的TranX的seq2seq架构,我们确定了四个重要的关键组件:语法约束、词汇预处理、输入表示和复制机制。为了研究这些组件的影响,我们使用一个国家的最先进的架构,依赖于BERT编码器和基于语法的解码器,其中提供了一个形式化。本文强调了当前自然语言中词汇替换组件对代码系统的重要性。

英文摘要:

Considering the seq2seq architecture of TranX for natural language to code translation, we identify four key components of importance: grammatical constraints, lexical preprocessing, input representations, and copy mechanisms. To study the impact of these components, we use a state-of-the-art architecture that relies on BERT encoder and a grammar-based decoder for which a formalization is provided. The paper highlights the importance of the lexical substitution component in the current natural language to code systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑