论文标题

设计可控制的API

Designing Voice-Controllable APIs

论文作者

Sulír, Matúš, Porubän, Jaroslav

论文摘要

语音命令系统的主要目的是用自然语言处理句子并执行相应的动作。尽管存在许多将句子映射到API(应用程序编程接口)调用的方法,但是通常在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).

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源