设计语音控制的API
Designing Voice-Controllable APIs
摘要:
语音命令系统的主要目的是处理自然语言中的句子并执行相应的动作。虽然存在许多将语句映射到API(应用程序编程接口)调用的方法,但是这种映射通常在API已经实现之后执行,可能由其他程序员执行。在本文中,我们描述了API开发人员如何使用模式,通过利用句子和API中的名称和类型之间的相似性,将句子映射到API调用。在映射不直接的情况下,我们建议使用合适的注释(面向属性的编程)。
英文摘要:
The main purpose of a voice command system is to process a sentence in natural language and perform the corresponding action. Although there exist many approaches to map sentences to API (application programming interface) calls, this mapping is usually performed after the API is already implemented, possibly by other programmers. In this paper, we describe how the API developer can use patterns to map sentences to API calls by utilizing the similarities between names and types in the sentences and the API. In the cases when the mapping is not straightforward, we suggest the usage of suitable annotations (attribute-oriented programming).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。