Back to Search Start Over

A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant

Authors :
Shih-wei Liao
Cheng-Han Hsu
Jeng-Wei Lin
Yi-Ting Wu
Fang-Yie Leu
Source :
Sensors, Vol 22, Iss 5, p 1891 (2022)
Publication Year :
2022
Publisher :
MDPI AG, 2022.

Abstract

Almond is an extendible open-source virtual assistant designed to help people access Internet services and IoT (Internet of Things) devices. Both are referred to as skills here. Service providers can easily enable their devices for Almond by defining proper APIs (Application Programming Interfaces) for ThingTalk in Thingpedia. ThingTalk is a virtual assistant programming language, and Thingpedia is an application encyclopedia. Almond uses a large neural network to translate user commands in natural language into ThingTalk programs. To obtain enough data for the training of the neural network, Genie was developed to synthesize pairs of user commands and corresponding ThingTalk programs based on a natural language template approach. In this work, we extended Genie to support Chinese. For 107 devices and 261 functions registered in Thingpedia, 649 Chinese primitive templates and 292 Chinese construct templates were analyzed and developed. Two models, seq2seq (sequence-to-sequence) and MQAN (multiple question answer network), were trained to translate user commands in Chinese into ThingTalk programs. Both models were evaluated, and the experiment results showed that MQAN outperformed seq2seq. The exact match, BLEU, and F1 token accuracy of MQAN were 0.7, 0.82, and 0.88, respectively. As a result, users could use Chinese in Almond to access Internet services and IoT devices registered in Thingpedia.

Details

Language :
English
ISSN :
14248220
Volume :
22
Issue :
5
Database :
Directory of Open Access Journals
Journal :
Sensors
Publication Type :
Academic Journal
Accession number :
edsdoj.6d4ccf923e2444fea3f7b084c96e4daf
Document Type :
article
Full Text :
https://doi.org/10.3390/s22051891