Cargando…
A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant
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)...
Autores principales: | , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8915006/ https://www.ncbi.nlm.nih.gov/pubmed/35271038 http://dx.doi.org/10.3390/s22051891 |
_version_ | 1784667900809838592 |
---|---|
author | Liao, Shih-wei Hsu, Cheng-Han Lin, Jeng-Wei Wu, Yi-Ting Leu, Fang-Yie |
author_facet | Liao, Shih-wei Hsu, Cheng-Han Lin, Jeng-Wei Wu, Yi-Ting Leu, Fang-Yie |
author_sort | Liao, Shih-wei |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-8915006 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-89150062022-03-12 A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant Liao, Shih-wei Hsu, Cheng-Han Lin, Jeng-Wei Wu, Yi-Ting Leu, Fang-Yie Sensors (Basel) Article 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. MDPI 2022-02-28 /pmc/articles/PMC8915006/ /pubmed/35271038 http://dx.doi.org/10.3390/s22051891 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Liao, Shih-wei Hsu, Cheng-Han Lin, Jeng-Wei Wu, Yi-Ting Leu, Fang-Yie A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant |
title | A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant |
title_full | A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant |
title_fullStr | A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant |
title_full_unstemmed | A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant |
title_short | A Deep Learning-Based Chinese Semantic Parser for the Almond Virtual Assistant |
title_sort | deep learning-based chinese semantic parser for the almond virtual assistant |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8915006/ https://www.ncbi.nlm.nih.gov/pubmed/35271038 http://dx.doi.org/10.3390/s22051891 |
work_keys_str_mv | AT liaoshihwei adeeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT hsuchenghan adeeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT linjengwei adeeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT wuyiting adeeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT leufangyie adeeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT liaoshihwei deeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT hsuchenghan deeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT linjengwei deeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT wuyiting deeplearningbasedchinesesemanticparserforthealmondvirtualassistant AT leufangyie deeplearningbasedchinesesemanticparserforthealmondvirtualassistant |