首页> 外国专利> DUAL BAYESIAN ENCODING-DECODING TECHNIQUE FOR TEXT TO CODE TRANSFORMATIONS

DUAL BAYESIAN ENCODING-DECODING TECHNIQUE FOR TEXT TO CODE TRANSFORMATIONS

机译:用于代码转换的文本的双贝叶斯编码解码技术

摘要

Methods, apparatus, and software for implementing dual Bayesian encoding-decoding for text-to-code transformations. In one aspect, a multi-model probabilistic source code model employing dual Bayesian encoder-decoder models is used to convert natural language (NL) inputs (aka requests) into source code. An NL input is processed to generate a Probabilistic Distribution (PD) of Source code (SC) tokens in an SC token sequence and a PD of Abstract Syntax Tree (AST) tokens in an AST token sequence, wherein each SC token is associated with a respective AST token, and each of the SC and AST tokens have a respective PD. One or more fixing rules are applied to one or more tokens SC tokens that are identified as needing fixing, wherein the fixing rule are selected in consideration of the PDs of the SC tokens and the PDs of their associated AST tokens.
机译:用于实现文本转换的双贝叶斯编码解码的方法,装置和软件。 在一个方面,使用采用双贝叶斯编码器 - 解码器模型的多模型概率源代码模型用于将自然语言(NL)输入(AKA请求)转换为源代码。 处理NL输入以在SC令牌序列中生成源代码(SC)令牌的概率分布(PD),以及AST令牌序列中的抽象语法树(AST)令牌的PD,其中每个SC令牌与A相关联 相应的AST令牌,以及每个SC和AST代币具有相应的PD。 将一个或多个修复规则应用于一个或多个令牌SC令牌,其被识别为需要定影,其中考虑到SC令牌的PD和其相关联的AST令牌的PDS的PDS选择定影规则。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号