首页> 外国专利> Code reusability

Code reusability

机译:代码可重用性

摘要

Disclosed is a system for facilitating reusability of a code snippet during development of a software application. Initially, a plurality of tokens is extracted, by using an Artificial Intelligence (AI) based syntactic analysis, from a sequence of lines of code entered by a developer. Further, each token of the plurality of tokens is converted into a vector by using a neural word embedding technique. Subsequently, a context of the plurality of tokens is determined by using a deep autoencoder neural network technique. Furthermore, at least one code snippet is recommended from a plurality of code snippets corresponding to the context. To do so, the context is compared with a plurality of contexts by using a Deep Recurrent Neural Network (Deep RNN) technique. Upon comparison, a confidence score is computed for each code snippet. Finally, the at least one code snippet is selected based on the confidence score.
机译:公开了一种用于在软件应用的开发期间促进代码片段的可重用性的系统。最初,通过使用基于人工智能(AI)的语法分析,从开发人员输入的一系列代码行中提取多个令牌。此外,通过使用神经词嵌入技术将多个令牌中的每个令牌转换为向量。随后,通过使用深度自动编码器神经网络技术确定多个令牌的上下文。此外,从对应于上下文的多个代码片段中推荐至少一个代码片段。为此,通过使用深度递归神经网络(Deep RNN)技术将上下文与多个上下文进行比较。比较后,将为每个代码段计算置信度得分。最终,基于置信度得分选择至少一个代码片段。

著录项

  • 公开/公告号US10545733B2

    专利类型

  • 公开/公告日2020-01-28

    原文格式PDF

  • 申请/专利权人 HCL TECHNOLOGIES LIMITED;

    申请/专利号US201816017406

  • 发明设计人 NAVIN SABHARWAL;AMIT AGRAWAL;

    申请日2018-06-25

  • 分类号G06F8/36;G06N3/08;

  • 国家 US

  • 入库时间 2022-08-21 11:26:23

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号