首页> 外文期刊>International journal of software engineering and knowledge engineering >SmartShell: Automated Shell Scripts Synthesis from Natural Language
【24h】

SmartShell: Automated Shell Scripts Synthesis from Natural Language

机译:SmartShell:从自然语言自动合成Shell脚本

获取原文
获取原文并翻译 | 示例
       

摘要

Modern shell scripts provide interfaces with rich functionality for system administration. However, it is not easy for end-users to write correct shell scripts; misusing commands may cause unpredictable results. In this paper, we present SmartShell, an automated function-based tool for shell script synthesis, which uses natural language descriptions as input. It can help the computer system to "understand" users' intentions. SmartShell is based on two insights: (1) natural language descriptions for system objects (such as files and processes) and operations can be recognized by natural language processing tools; (2) system-administration tasks are often completed by short shell scripts that can be automatically synthesized from natural language descriptions. SmartShell synthesizes shell scripts in three steps: (1) using natural language processing tools to convert the description of a system-administration task into a syntax tree; (2) using program-synthesis techniques to construct a SmartShell intermediate-language script from the syntax tree; (3) translating the intermediate-language script into a shell script. Experimental results show that SmartShell can successfully synthesize 53.7% of tasks collected from shell-script helping forums.
机译:现代的shell脚本为系统管理提供了具有丰富功能的接口。但是,最终用户编写正确的Shell脚本并不容易。错误使用命令可能会导致不可预测的结果。在本文中,我们介绍了SmartShell,这是一个基于功能的自动化Shell脚本合成工具,它使用自然语言描述作为输入。它可以帮助计算机系统“了解”用户的意图。 SmartShell基于以下两种见解:(1)系统对象(例如文件和进程)和操作的自然语言描述可以由自然语言处理工具识别; (2)系统管理任务通常由简短的shell脚本完成,这些脚本可以根据自然语言描述自动合成。 SmartShell通过三个步骤来合成Shell脚本:(1)使用自然语言处理工具将系统管理任务的描述转换为语法树; (2)使用程序综合技术从语法树构造SmartShell中间语言脚本; (3)将中间语言脚本转换为shell脚本。实验结果表明,SmartShell可以成功合成从shell脚本帮助论坛收集的任务的53.7%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号