首页> 外文会议>International joint conference on natural language processing;Conference on empirical methods in natural language processing >SoftRegex: Generating Regex from Natural Language Descriptions using Softened Regex Equivalence
【24h】

SoftRegex: Generating Regex from Natural Language Descriptions using Softened Regex Equivalence

机译:SoftRegex:使用软化的正则表达式等效项从自然语言描述生成正则表达式

获取原文

摘要

We continue the study of generating semanti-cally correct regular expressions from natural language descriptions (XL). The current state-of-the-art model, SemRegex. produces regular expressions from NLs by rewarding the reinforced learning based on the semantic (rather than syntactic) equivalence between two regular expressions. Since the regular expression equivalence problem is PSPACK-complete, we introduce the EQ_Reg model for computing the similarity of two regular expressions using deep neural networks. Our EQ_Reg model essentially softens the equivalence of two regular expressions when used as a reward function. We then propose a new regex generation model, SoftRegex, using the EQ_Reg model, and empirically demonstrate that SoftRegex substantially reduces the training time (by a factor of at least 3.6) and produces state-of-the-art results on three benchmark datasets.
机译:我们继续研究从自然语言描述(XL)生成语义正确的正则表达式。当前最先进的模型SemRegex。通过基于两个正则表达式之间的语义(而非句法)对等来奖励强化学习,从而从NL生成正则表达式。由于正则表达式等价问题是PSPACK完全问题,因此我们引入了EQ_Reg模型,用于使用深度神经网络来计算两个正则表达式的相似性。当用作奖励函数时,我们的EQ_Reg模型本质上软化了两个正则表达式的等价关系。然后,我们使用EQ_Reg模型提出一个新的正则表达式生成模型SoftRegex,并凭经验证明SoftRegex大大减少了训练时间(至少降低了3.6倍),并在三个基准数据集上产生了最新的结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号