arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.09766cs.SEcs.PL
收藏

借助DSL Assistant实现从自然语言到形式语言的转换

From a Natural to a Formal Language with DSL Assistant

My M. Mosthaf, Andrzej Wąsowski

AI总结:

本研究针对领域特定语言(DSL)开发繁琐迭代的问题,设计了集成GPT-4o的DSL Assistant工具,支持多交互模式与自动纠错,实验证实其可辅助DSL开发,但生成质量受领域和交互模式影响。

摘要:

领域特定语言(DSL)的开发是一个耗时且迭代的过程,这一特性似乎天然适合引入生成式人工智能。我们设计并打造了DSL Assistant原型,这是一款集成生成式语言模型以支持DSL开发的工具。DSL Assistant调用搭载GPT-4o的OpenAI助手API,用于生成DSL语法及示例实例。为贴合实际使用场景,DSL Assistant支持多种不同的交互模式以迭代完善DSL设计,还具备自动错误修复功能。我们的实验表明,DSL Assistant可帮助用户创建和修改DSL,但生成的DSL质量取决于具体领域及所采用的交互模式。

英文摘要:

The development of domain-specific languages (DSLs) is a laborious and iterative process that seems to naturally lean to the use of generative artificial intelligence. We design and prototype DSL Assistant, a tool that integrates generative language models to support the development of DSLs. DSL Assistant uses OpenAI's assistant API with GPT-4o to generate DSL grammars and example instances. To reflect real-world use, DSL Assistant supports several different interaction modes for evolving a DSL design, and includes automatic error repair. Our experiments show that DSL Assistant helps users to create and modify DSLs. However, the quality of the generated DSLs depends on the specific domain and the followed interaction patterns.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑