【24h】

Latent Predictor Networks for Code Generation

机译:用于代码生成的潜在预测器网络

获取原文

摘要

Many language generation tasks require the production of text conditioned on both structured and unstructured inputs. We present a novel neural network architecture which generates an output sequence conditioned on an arbitrary number of input functions. Crucially, our approach allows both the choice of conditioning context and the granularity of generation, for example characters or tokens, to be marginalised, thus permitting scalable and effective training. Using this framework, we address the problem of generating programming code from a mixed natural language and structured specification. We create two new data sets for this paradigm derived from the collectible trading card games Magic the Gathering and Hearthstone. On these, and a third preexisting corpus, we demonstrate that marginalising multiple predictors allows our model to outperform strong benchmarks.
机译:许多语言生成任务需要以结构化和非结构化输入为条件的文本生成。我们提出了一种新颖的神经网络体系结构,该体系结构生成以任意数量的输入函数为条件的输出序列。至关重要的是,我们的方法允许对条件上下文的选择和生成粒度(例如字符或令牌)进行边缘化,从而实现可扩展且有效的培训。使用此框架,我们解决了从混合的自然语言和结构化规范生成编程代码的问题。我们为此模型创建了两个新的数据集,这些数据集来自可收藏的交易卡牌游戏《魔法聚会》和《炉石传说》。在这些以及第三个现有的语料库上,我们证明了将多个预测变量边缘化可以使我们的模型胜过强大的基准。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号