WO2020224448A1 - Interaction method and device, loudspeaker, electronic apparatus, and storage medium - Google Patents

Interaction method and device, loudspeaker, electronic apparatus, and storage medium Download PDF

Info

Publication number
WO2020224448A1
WO2020224448A1 PCT/CN2020/086627 CN2020086627W WO2020224448A1 WO 2020224448 A1 WO2020224448 A1 WO 2020224448A1 CN 2020086627 W CN2020086627 W CN 2020086627W WO 2020224448 A1 WO2020224448 A1 WO 2020224448A1
Authority
WO
WIPO (PCT)
Prior art keywords
round
decision
models
information
output information
Prior art date
Application number
PCT/CN2020/086627
Other languages
French (fr)
Chinese (zh)
Inventor
冯伟国
牛也
李双江
丁盘苹
金灿灿
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020224448A1 publication Critical patent/WO2020224448A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The present disclosure relates to an interaction method and device, a loudspeaker, an electronic apparatus, and a storage medium. The method comprises: acquiring the t-th round of user input information, wherein t is an integer greater than or equal to 1; determining a decision outcome of multiple decision-making models in the t-th round at least according to the t-th round of user input information and the (t-1)-th round of output information, wherein the (t-1)-th round of output information is determined according to a decision outcome of the multiple decision-making models in the (t-1)-th round; and determining the t-th round of output information according to the decision outcome of the multiple decision-making models in the t-th round. In the present disclosure, the previous round of decision-making is used to enable all decision-making models to make better decisions in the present round, and the respective decision-making models are integrated so as to reach a more accurate decision for each round of decision-making.

Description

交互方法及装置、音箱、电子设备和存储介质Interactive method and device, sound box, electronic equipment and storage medium
本申请要求2019年05月07日递交的申请号为201910376459.4、发明名称为“交互方法及装置、音箱、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on May 07, 2019 with the application number 201910376459.4 and the invention title "Interaction method and device, speaker, electronic equipment and storage medium", the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种交互方法及装置、音箱、电子设备和存储介质。The present disclosure relates to the field of computer technology, and in particular to an interactive method and device, speakers, electronic equipment, and storage media.
背景技术Background technique
在语音交互场景中,用户输入的语音经过自然语言理解以及对话决策后,得到给用户的回复或者用户所请求的服务。工程人员和研究人员提供了各种类型的对话决策模型。目前,在对话决策系统中,不同的对话决策模型是割裂存在的。例如,用户输入的文本首先经过基于规则的对话决策模型,如果有结果则返回给用户,否则继续经过基于匹配的对话决策模型,如果有结果则返回给用户。不同的对话决策模型之间是完全割裂的,无法帮助彼此在下一步用户输入时做出更好的对话决策。In the voice interaction scenario, the voice input by the user undergoes natural language understanding and dialogue decision-making, and then a response to the user or the service requested by the user is obtained. Engineers and researchers provide various types of dialogue decision models. Currently, in the dialogue decision-making system, different dialogue decision-making models exist separately. For example, the text entered by the user first passes through a rule-based dialogue decision model, and if there is a result, it is returned to the user, otherwise it continues to pass through the matching-based dialogue decision model, and if there is a result, it is returned to the user. Different dialogue decision models are completely separated and cannot help each other to make better dialogue decisions during the next user input.
如何将各种对话决策模型融合起来进行更准确地对话决策,是亟待解决的问题。How to integrate various dialogue decision-making models for more accurate dialogue decision-making is an urgent problem to be solved.
发明内容Summary of the invention
本公开提出了一种交互技术方案。The present disclosure proposes an interactive technical solution.
根据本公开的一方面,提供了一种交互方法,包括:According to an aspect of the present disclosure, there is provided an interaction method including:
获取第t轮的用户输入信息,其中,t为大于或等于1的整数;Obtain the user input information for the t-th round, where t is an integer greater than or equal to 1;
至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,所述第t-1轮的输出信息根据所述多个决策模型在所述第t-1轮的决策结果确定;At least according to the user input information of the t-th round and the output information of the t-1 round, the decision results of multiple decision models in the t-th round are determined, wherein the output information of the t-1 round is based on the The decision results of multiple decision models in the t-1 round are determined;
根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息。According to the decision results of the multiple decision models in the t round, the output information of the t round is determined.
在一种可能的实现方式中,所述至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,包括:In a possible implementation manner, the determining the decision results of multiple decision models in the t round at least according to the user input information of the t round and the output information of the t-1 round includes:
根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,以及所述第t轮的状态信息,确定所述多个决策模型在所述第t轮的决策结果。According to the user input information of the t-th round, the output information of the t-1 round, and the state information of the t-th round, the decision results of the multiple decision models in the t-th round are determined.
在一种可能的实现方式中,所述多个决策模型包括循环神经网络模型;In a possible implementation manner, the multiple decision models include a recurrent neural network model;
所述至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,包括:The determining the decision results of multiple decision models in the t round at least according to the user input information of the t round and the output information of the t-1 round includes:
根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,所述第t轮的状态信息,以及所述循环神经网络模型在所述第t-1轮的隐层特征,确定所述多个决策模型在所述第t轮的决策结果。According to the user input information of the t-th round, the output information of the t-1 round, the state information of the t-th round, and the hidden layer feature of the recurrent neural network model in the t-1 round To determine the decision results of the multiple decision models in the t-th round.
在一种可能的实现方式中,所述第t轮的状态信息包括以下至少一种:与所述第t轮相关的实体信息、所述第t轮所属的时间信息以及所述第t轮的轮数信息。In a possible implementation manner, the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and information about the t-th round Round information.
在一种可能的实现方式中,所述根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息,包括:In a possible implementation manner, the determining the output information of the t round according to the decision results of the multiple decision models in the t round includes:
根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果;Voting according to the decision results of the multiple decision models in the t-th round to obtain a voting result;
根据所述投票结果,确定所述第t轮的输出信息。According to the voting result, the output information of the t-th round is determined.
在一种可能的实现方式中,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的决策类别;In a possible implementation manner, the decision result of the multiple decision models in the t round includes the decision category of each of the multiple decision models in the t round;
所述根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果,包括:The voting according to the decision results of the multiple decision models in the t-th round to obtain the voting result includes:
将所述各个决策模型在所述第t轮的决策类别分别确定为所述各个决策模型投票的类别;Determine the decision categories of the decision models in the t-th round as the categories voted by the decision models;
将投票数最高的类别确定为所述投票结果。The category with the highest number of votes is determined as the voting result.
在一种可能的实现方式中,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的备选决策类别以及所述备选决策类别的权重;In a possible implementation manner, the decision result of the multiple decision models in the t round includes the candidate decision category of each of the multiple decision models in the t round and the The weight of alternative decision categories;
所述根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果,包括:The voting according to the decision results of the multiple decision models in the t-th round to obtain the voting result includes:
根据所述各个决策模型在所述第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;Determine the sum of the weights corresponding to each candidate decision category according to the weights of the candidate decision categories of each decision model in the t round;
将权重之和最大的备选决策类别确定为所述投票结果。The candidate decision category with the largest sum of weights is determined as the voting result.
在一种可能的实现方式中,所述根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息,包括:In a possible implementation manner, the determining the output information of the t round according to the decision results of the multiple decision models in the t round includes:
将所述多个决策模型中的各个决策模型在所述第t轮的决策结果分别输入预设深度 学习模型中,经由所述预设深度学习模型输出所述第t轮的输出信息。The decision result of each of the multiple decision models in the t-th round is respectively input into a preset deep learning model, and the output information of the t-th round is output via the preset deep learning model.
在一种可能的实现方式中,所述用户输入信息为用户输入的语音。In a possible implementation manner, the user input information is voice input by the user.
根据本公开的另一方面,提供了一种交互装置,包括:According to another aspect of the present disclosure, there is provided an interactive device, including:
获取模块,用于获取第t轮的用户输入信息,其中,t为大于或等于1的整数;The obtaining module is used to obtain the user input information of the t-th round, where t is an integer greater than or equal to 1;
第一确定模块,用于至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,所述第t-1轮的输出信息根据所述多个决策模型在所述第t-1轮的决策结果确定;The first determining module is configured to determine the decision results of multiple decision models in the t round at least according to the user input information in the t-th round and the output information in the t-1 round, wherein the t-1 The output information of the round is determined according to the decision results of the multiple decision models in the t-1 round;
第二确定模块,用于根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息。The second determining module is configured to determine the output information of the t-th round according to the decision results of the multiple decision models in the t-th round.
在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used to:
根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,以及所述第t轮的状态信息,确定所述多个决策模型在所述第t轮的决策结果。According to the user input information of the t-th round, the output information of the t-1 round, and the state information of the t-th round, the decision results of the multiple decision models in the t-th round are determined.
在一种可能的实现方式中,所述多个决策模型包括循环神经网络模型;In a possible implementation manner, the multiple decision models include a recurrent neural network model;
所述第一确定模块用于:根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,所述第t轮的状态信息,以及所述循环神经网络模型在所述第t-1轮的隐层特征,确定所述多个决策模型在所述第t轮的决策结果。The first determining module is configured to: according to the user input information of the t round, the output information of the t-1 round, the state information of the t round, and the recurrent neural network model in the The hidden layer feature of the t-1 round determines the decision result of the multiple decision models in the t round.
在一种可能的实现方式中,所述第t轮的状态信息包括以下至少一种:与所述第t轮相关的实体信息、所述第t轮所属的时间信息以及所述第t轮的轮数信息。In a possible implementation manner, the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and information about the t-th round Round information.
在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used to:
根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果;Voting according to the decision results of the multiple decision models in the t-th round to obtain a voting result;
根据所述投票结果,确定所述第t轮的输出信息。According to the voting result, the output information of the t-th round is determined.
在一种可能的实现方式中,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的决策类别;In a possible implementation manner, the decision result of the multiple decision models in the t round includes the decision category of each of the multiple decision models in the t round;
所述第二确定模块用于:The second determining module is used for:
将所述各个决策模型在所述第t轮的决策类别分别确定为所述各个决策模型投票的类别;Determine the decision categories of the decision models in the t-th round as the categories voted by the decision models;
将投票数最高的类别确定为所述投票结果。The category with the highest number of votes is determined as the voting result.
在一种可能的实现方式中,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的备选决策类别以及所述备选决策类别的权重;In a possible implementation manner, the decision result of the multiple decision models in the t round includes the candidate decision category of each of the multiple decision models in the t round and the The weight of alternative decision categories;
所述第二确定模块用于:The second determining module is used for:
根据所述各个决策模型在所述第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;Determine the sum of the weights corresponding to each candidate decision category according to the weights of the candidate decision categories of each decision model in the t round;
将权重之和最大的备选决策类别确定为所述投票结果。The candidate decision category with the largest sum of weights is determined as the voting result.
在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used to:
将所述多个决策模型中的各个决策模型在所述第t轮的决策结果分别输入预设深度学习模型中,经由所述预设深度学习模型输出所述第t轮的输出信息。The decision result of each of the plurality of decision models in the t-th round is input into a preset deep learning model, and output information of the t-th round is output through the preset deep learning model.
在一种可能的实现方式中,所述用户输入信息为用户输入的语音。In a possible implementation manner, the user input information is voice input by the user.
根据本公开的另一方面,提供了一种音箱,包括:According to another aspect of the present disclosure, there is provided a sound box, including:
获取模块,用于获取第t轮的用户输入信息,其中,t为大于或等于1的整数;The obtaining module is used to obtain the user input information of the t-th round, where t is an integer greater than or equal to 1;
第一确定模块,用于至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,所述第t-1轮的输出信息根据所述多个决策模型在所述第t-1轮的决策结果确定;The first determining module is configured to determine the decision results of multiple decision models in the t round at least according to the user input information in the t-th round and the output information in the t-1 round, wherein the t-1 The output information of the round is determined according to the decision results of the multiple decision models in the t-1 round;
第二确定模块,用于根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息。The second determining module is configured to determine the output information of the t-th round according to the decision results of the multiple decision models in the t-th round.
在一种可能的实现方式中,所述第一确定模块用于:In a possible implementation manner, the first determining module is used to:
根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,以及所述第t轮的状态信息,确定所述多个决策模型在所述第t轮的决策结果。According to the user input information of the t-th round, the output information of the t-1 round, and the state information of the t-th round, the decision results of the multiple decision models in the t-th round are determined.
在一种可能的实现方式中,所述多个决策模型包括循环神经网络模型;In a possible implementation manner, the multiple decision models include a recurrent neural network model;
所述第一确定模块用于:根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,所述第t轮的状态信息,以及所述循环神经网络模型在所述第t-1轮的隐层特征,确定所述多个决策模型在所述第t轮的决策结果。The first determining module is configured to: according to the user input information of the t round, the output information of the t-1 round, the state information of the t round, and the recurrent neural network model in the The hidden layer feature of the t-1 round determines the decision result of the multiple decision models in the t round.
在一种可能的实现方式中,所述第t轮的状态信息包括以下至少一种:与所述第t轮相关的实体信息、所述第t轮所属的时间信息以及所述第t轮的轮数信息。In a possible implementation manner, the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and information about the t-th round Round information.
在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used to:
根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果;Voting according to the decision results of the multiple decision models in the t-th round to obtain a voting result;
根据所述投票结果,确定所述第t轮的输出信息。According to the voting result, the output information of the t-th round is determined.
在一种可能的实现方式中,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的决策类别;In a possible implementation manner, the decision result of the multiple decision models in the t round includes the decision category of each of the multiple decision models in the t round;
所述第二确定模块用于:The second determining module is used for:
将所述各个决策模型在所述第t轮的决策类别分别确定为所述各个决策模型投票的类别;Determine the decision categories of the decision models in the t-th round as the categories voted by the decision models;
将投票数最高的类别确定为所述投票结果。The category with the highest number of votes is determined as the voting result.
在一种可能的实现方式中,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的备选决策类别以及所述备选决策类别的权重;In a possible implementation manner, the decision result of the multiple decision models in the t round includes the candidate decision category of each of the multiple decision models in the t round and the The weight of alternative decision categories;
所述第二确定模块用于:The second determining module is used for:
根据所述各个决策模型在所述第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;Determine the sum of the weights corresponding to each candidate decision category according to the weights of the candidate decision categories of each decision model in the t round;
将权重之和最大的备选决策类别确定为所述投票结果。The candidate decision category with the largest sum of weights is determined as the voting result.
在一种可能的实现方式中,所述第二确定模块用于:In a possible implementation manner, the second determining module is used to:
将所述多个决策模型中的各个决策模型在所述第t轮的决策结果分别输入预设深度学习模型中,经由所述预设深度学习模型输出所述第t轮的输出信息。The decision result of each of the plurality of decision models in the t-th round is input into a preset deep learning model, and output information of the t-th round is output through the preset deep learning model.
在一种可能的实现方式中,所述用户输入信息为用户输入的语音。In a possible implementation manner, the user input information is voice input by the user.
根据本公开的另一方面,提供了一种电子设备,包括:According to another aspect of the present disclosure, there is provided an electronic device including:
处理器;processor;
用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述交互方法。Wherein, the processor is configured to call the instructions stored in the memory to execute the aforementioned interaction method.
根据本公开的另一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述交互方法。According to another aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the foregoing interaction method is implemented.
在本公开实施例中,通过获取第t轮的用户输入信息,至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,并根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息,由此上一轮的决策能够帮助所有决策模型在本轮做出更好的决策,且在每一轮做决策时能够融合各个决策模型进行更准确的决策。In the embodiment of the present disclosure, by obtaining the user input information of the t round, at least according to the user input information of the t round and the output information of the t-1 round, the decision results of multiple decision models in the t round are determined, And according to the decision results of multiple decision models in the t round, the output information of the t round is determined, so the decision in the previous round can help all the decision models make better decisions in this round, and do it in each round When making decisions, it can integrate various decision models to make more accurate decisions.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present disclosure.
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the disclosure and are used together with the specification to explain the technical solutions of the disclosure.
图1示出根据本公开实施例的交互方法的流程图;Fig. 1 shows a flowchart of an interaction method according to an embodiment of the present disclosure;
图2示出本公开实施例的交互方法的示意图;FIG. 2 shows a schematic diagram of an interaction method of an embodiment of the present disclosure;
图3示出根据本公开实施例的交互装置的框图;Figure 3 shows a block diagram of an interactive device according to an embodiment of the present disclosure;
图4示出根据本公开实施例的音箱的框图;Fig. 4 shows a block diagram of a sound box according to an embodiment of the present disclosure;
图5示出根据本公开实施例的一种电子设备800的框图;FIG. 5 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure;
图6示出根据本公开实施例的一种电子设备1900的框图。FIG. 6 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the drawings. The same reference numerals in the drawings indicate elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, unless otherwise noted, the drawings are not necessarily drawn to scale.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The dedicated word "exemplary" here means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" need not be construed as being superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations. In addition, the term "at least one" in this document means any one or any combination of at least two of the multiple, for example, including at least one of A, B, and C, may mean including A, Any one or more elements selected in the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present disclosure can also be implemented without some specific details. In some instances, the methods, means, elements, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the gist of the present disclosure.
图1示出根据本公开实施例的交互方法的流程图。该交互方法的执行主体可以是交互装置。例如,该交互方法可以由终端设备或服务器或其它处理设备执行。其中,终端设备可以是用户设备(User Equipment,UE)、移动设备、用户终端、终端、音箱、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备或者可穿戴设备等。在一些可能的实现方式中,该交互方法可以通 过处理器调用存储器中存储的计算机可读指令的方式来实现。如图1所示,该交互方法包括步骤S11至步骤S13。Fig. 1 shows a flowchart of an interaction method according to an embodiment of the present disclosure. The execution subject of the interactive method may be an interactive device. For example, the interaction method can be executed by a terminal device or a server or other processing device. Among them, the terminal equipment can be user equipment (UE), mobile equipment, user terminal, terminal, speaker, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, vehicle-mounted equipment Or wearable devices, etc. In some possible implementations, the interaction method can be implemented by a processor calling computer-readable instructions stored in the memory. As shown in Fig. 1, the interaction method includes steps S11 to S13.
在步骤S11中,获取第t轮的用户输入信息,其中,t为大于或等于1的整数。In step S11, the user input information of the t-th round is obtained, where t is an integer greater than or equal to 1.
在本公开实施例中,用户输入信息可以为用户输入的语音、文本或者其他信息。In the embodiments of the present disclosure, the user input information may be voice, text, or other information input by the user.
在一种可能的实现方式中,在语音交互的应用场景中,用户输入信息可以为用户输入的语音。采用ASR(Automatic Speech Recognition,自动语音识别)技术,可以将用户输入的语音转换为文本;采用NLU(Natural Language Understanding,自然语言理解)模型,可以基于转换得到的文本得到语义向量。In a possible implementation manner, in a voice interaction application scenario, the user input information may be voice input by the user. Using ASR (Automatic Speech Recognition, automatic speech recognition) technology, the speech input by the user can be converted into text; using NLU (Natural Language Understanding) model, semantic vectors can be obtained based on the converted text.
在步骤S12中,至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,第t-1轮的输出信息根据多个决策模型在第t-1轮的决策结果确定。In step S12, the decision results of multiple decision models in the t round are determined based on at least the user input information in the t round and the output information in the t-1 round. The decision result of each decision model in round t-1 is determined.
在本公开实施例中,决策模型的数量大于或等于2。例如,多个决策模型中包括LSTM(Long Short Term Memory,长短期记忆)模型和匹配(Matching)模型。In the embodiment of the present disclosure, the number of decision models is greater than or equal to two. For example, multiple decision models include LSTM (Long Short Term Memory) model and matching (Matching) model.
在一种可能的实现方式中,决策模型为端到端决策模型。例如,决策模型可以为端到端对话决策模型、基于门控循环单元(Gated Recurrent Unit,GRU)的端到端决策模型或者基于上下文匹配的端到端决策模型等。In one possible implementation, the decision model is an end-to-end decision model. For example, the decision model may be an end-to-end dialogue decision model, an end-to-end decision model based on a gated recurrent unit (Gated Recurrent Unit, GRU), or an end-to-end decision model based on context matching.
在一种可能的实现方式中,至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,包括:根据第t轮的用户输入信息,第t-1轮的输出信息,以及第t轮的状态信息,确定多个决策模型在第t轮的决策结果。In a possible implementation manner, the decision results of multiple decision models in the t round are determined based on at least the user input information in the t round and the output information in the t-1 round, including: according to the user in the t round The input information, the output information of the t-1 round, and the state information of the t round determine the decision results of multiple decision models in the t round.
在该实现方式中,第t轮的状态信息可以指第t轮交互时的上下文状态信息。In this implementation, the state information of the t-th round may refer to the context state information of the t-th interaction.
在一种可能的实现方式中,第t轮的状态信息包括以下至少一种:与第t轮相关的实体信息、第t轮所属的时间信息以及第t轮的轮数信息。In a possible implementation, the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and round number information of the t-th round.
在一个示例中,与第t轮相关的实体信息可以包括与第t轮相关的地点信息和人物信息。在另一个示例中,在购物场景中,与第t轮相关的实体信息可以包括品牌、产品、价格等实体的信息。在另一个示例中,在手机充值场景中,与第t轮相关的实体信息可以包括电话号码、昵称和价格等实体信息。In an example, the entity information related to the t-th round may include location information and person information related to the t-th round. In another example, in a shopping scenario, the entity information related to the t-th round may include entity information such as brand, product, and price. In another example, in a mobile phone recharge scenario, the entity information related to the t-th round may include entity information such as phone numbers, nicknames, and prices.
在一个示例中,第t轮所属的时间信息可以包括第t轮所属的时间为工作日或者假期等信息。In an example, the time information to which the t-th round belongs may include information such as whether the time to which the t-th round belongs is a working day or a holiday.
在一个示例中,第t轮的轮数信息可以为当天交互的次数信息。根据第t轮的轮数信息,可以确定是当天第几次交互。In an example, the round number information of the t-th round may be information on the number of interactions on the day. According to the round number information of the t-th round, it can be determined how many interactions are on the day.
在一种可能的实现方式中,多个决策模型包括循环神经网络(RNN,Recurrent Neural Network)模型;至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,包括:根据第t轮的用户输入信息,第t-1轮的输出信息,第t轮的状态信息,以及循环神经网络模型在第t-1轮的隐层特征,确定多个决策模型在第t轮的决策结果。In a possible implementation, multiple decision models include Recurrent Neural Network (RNN) models; determine multiple decisions based at least on user input information in round t and output information in round t-1 The decision results of the model in the t round include: according to the user input information of the t round, the output information of the t-1 round, the state information of the t round, and the hidden layer of the recurrent neural network model in the t-1 round Features, determine the decision results of multiple decision models in the t round.
例如,若循环神经网络模型为LSTM模型,则LSTM模型可以根据第t轮的用户输入信息,第t-1轮的输出信息,第t轮的状态信息,以及LSTM模型在第t-1轮的隐层特征,确定LSTM模型在第t轮的决策结果。For example, if the recurrent neural network model is an LSTM model, the LSTM model can be based on the user input information of the t round, the output information of the t-1 round, the state information of the t round, and the LSTM model in the t-1 round The hidden layer feature determines the decision result of the LSTM model in the t round.
在步骤S13中,根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息。In step S13, the output information of the t round is determined according to the decision results of the multiple decision models in the t round.
在本公开实施例中,根据多个决策模型在第t轮的决策结果确定第t轮的输出信息,由此能够结合多个决策模型的信息以及各自的优势,从而能够获得更准确的输出信息。In the embodiments of the present disclosure, the output information of the t-th round is determined according to the decision results of multiple decision models in the t-th round, which can combine the information of multiple decision models and their respective advantages, so as to obtain more accurate output information .
在本公开实施例中,在得到第t轮的输出信息之后,输出第t轮的输出信息。例如,第t轮的输出信息为对用户进行回复,或者向用户返回请求的服务。例如,用户输入信息为询问天气的语音,则给用户的回复为天气查询结果。In the embodiment of the present disclosure, after the output information of the t-th round is obtained, the output information of the t-th round is output. For example, the output information of the t-th round is to reply to the user or return the requested service to the user. For example, if the user input information is a voice asking about the weather, the reply to the user is the weather query result.
在一种可能的实现方式中,根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息,包括:根据多个决策模型在第t轮的决策结果进行投票,得到投票结果;根据投票结果,确定第t轮的输出信息。In a possible implementation, determining the output information of the t round according to the decision results of the multiple decision models in the t round includes: voting based on the decision results of the multiple decision models in the t round to obtain the voting result ; According to the voting results, determine the output information of the t round.
在一个示例中,多个决策模型在第t轮的决策结果包括多个决策模型中的各个决策模型在第t轮的决策类别;根据多个决策模型在第t轮的决策结果进行投票,得到投票结果,包括:将各个决策模型在第t轮的决策类别分别确定为各个决策模型投票的类别;将投票数最高的类别确定为投票结果。In one example, the decision results of multiple decision models in the t round include the decision category of each of the multiple decision models in the t round; vote according to the decision results of the multiple decision models in the t round, and get The voting results include: determining the decision category of each decision model in the t round as the category voted by each decision model; determining the category with the highest number of votes as the voting result.
例如,决策模型的数量为3个,分别是决策模型1、决策模型2和决策模型3。其中,决策模型1在第t轮的决策类别为类别A,决策模型2在第t轮的决策类别为类别A,决策模型3在第t轮的决策类别为类别C,则类别A的投票数为2,类别C的投票数为1,因此将类别A确定为投票结果。For example, the number of decision models is three, which are decision model 1, decision model 2, and decision model 3. Among them, the decision category of decision model 1 in round t is category A, the decision category of decision model 2 in round t is category A, and the decision category of decision model 3 in round t is category C, then the number of votes for category A The number of votes for category C is 1, so category A is determined as the voting result.
在另一个示例中,多个决策模型在第t轮的决策结果包括多个决策模型中的各个决策模型在第t轮的备选决策类别以及备选决策类别的权重;根据多个决策模型在第t轮的决策结果进行投票,得到投票结果,包括:根据各个决策模型在第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;将权重之和最大的备选决策类别确 定为投票结果。In another example, the decision results of the multiple decision models in the t round include the candidate decision category of each of the multiple decision models in the t round and the weight of the candidate decision category; The decision results of the tth round are voted, and the voting results are obtained, including: according to the weights of the alternative decision categories of each decision model in the t round, determine the sum of the weights corresponding to each alternative decision category; and reserve the largest sum of weights The selection decision category is determined as the voting result.
例如,决策模型的数量为3个,分别是决策模型1、决策模型2和决策模型3。其中,决策模型1在第t轮的决策结果为(A:0.3,B:0.4),即,决策模型1在第t轮的备选决策类别为A和B,其中,备选决策类别A的权重为0.3,备选决策类别B的权重为0.4;决策模型2在第t轮的决策结果为(A:0.3,B:0.4),即,决策模型2在第t轮的备选决策类别为A和B,其中,备选决策类别A的权重为0.3,备选决策类别B的权重为0.4;决策模型3在第t轮的决策结果为(A:0.9,B:0.1),即,决策模型3在第t轮的备选决策类别为A和B,其中,备选决策类别A的权重为0.9,备选决策类别B的权重为0.1。根据决策模型1、决策模型2和决策模型3在第t轮的备选决策类别以及备选决策类别的权重,可以确定备选决策类别A对应的权重之和为1.5,备选决策类别B对应的权重之和为0.9,因此将备选决策类别A确定为投票结果。For example, the number of decision models is three, which are decision model 1, decision model 2, and decision model 3. Among them, the decision result of decision model 1 in the t round is (A: 0.3, B: 0.4), that is, the alternative decision categories of decision model 1 in the t round are A and B. Among them, the alternative decision category A The weight is 0.3, and the weight of alternative decision category B is 0.4; the decision result of decision model 2 in round t is (A:0.3, B:0.4), that is, the alternative decision category of decision model 2 in round t is A and B, where the weight of alternative decision category A is 0.3, and the weight of alternative decision category B is 0.4; the decision result of decision model 3 in the t round is (A: 0.9, B: 0.1), that is, decision The candidate decision categories of Model 3 in round t are A and B, where the weight of candidate decision category A is 0.9, and the weight of candidate decision category B is 0.1. According to the decision model 1, decision model 2 and decision model 3 in the t round of the alternative decision category and the weight of the alternative decision category, it can be determined that the sum of the weights corresponding to the alternative decision category A is 1.5, and the alternative decision category B corresponds to The sum of the weights of is 0.9, so the alternative decision category A is determined as the voting result.
在一种可能的实现方式中,根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息,包括:将多个决策模型中的各个决策模型在第t轮的决策结果分别输入预设深度学习模型中,经由预设深度学习模型输出第t轮的输出信息。In a possible implementation manner, according to the decision results of multiple decision models in the t round, determining the output information of the t round includes: separate the decision results of each of the multiple decision models in the t round Input the preset deep learning model, and output the output information of the t-th round through the preset deep learning model.
在该实现方式中,预设深度学习模型可以为预先训练的用于根据多个决策模型的决策结果确定输出信息的深度学习模型。In this implementation manner, the preset deep learning model may be a pre-trained deep learning model for determining output information according to the decision results of multiple decision models.
例如,决策模型的数量为3个,分别是决策模型1、决策模型2和决策模型3。其中,决策模型1在第t轮的决策结果为(A:0.3,B:0.4),即,决策模型1在第t轮的备选决策类别为A和B,其中,备选决策类别A的权重为0.3,备选决策类别B的权重为0.4;决策模型2在第t轮的决策结果为(A:0.3,B:0.4),即,决策模型2在第t轮的备选决策类别为A和B,其中,备选决策类别A的权重为0.3,备选决策类别B的权重为0.4;决策模型3在第t轮的决策结果为(A:0.9,B:0.1),即,决策模型3在第t轮的备选决策类别为A和B,其中,备选决策类别A的权重为0.9,备选决策类别B的权重为0.1。将决策模型1、决策模型2和决策模型3在第t轮的决策结果分别输入预设深度学习模型中,经由预设深度学习模型输出第t轮的输出信息。For example, the number of decision models is three, which are decision model 1, decision model 2, and decision model 3. Among them, the decision result of decision model 1 in the t round is (A: 0.3, B: 0.4), that is, the alternative decision categories of decision model 1 in the t round are A and B. Among them, the alternative decision category A The weight is 0.3, and the weight of alternative decision category B is 0.4; the decision result of decision model 2 in round t is (A:0.3, B:0.4), that is, the alternative decision category of decision model 2 in round t is A and B, where the weight of alternative decision category A is 0.3, and the weight of alternative decision category B is 0.4; the decision result of decision model 3 in the t round is (A: 0.9, B: 0.1), that is, decision The candidate decision categories of Model 3 in round t are A and B, where the weight of candidate decision category A is 0.9, and the weight of candidate decision category B is 0.1. The decision results of the decision model 1, the decision model 2, and the decision model 3 in the t round are respectively input into the preset deep learning model, and the output information of the t round is output through the preset deep learning model.
在一种可能的实现方式中,第t轮的输出信息可以用于确定各个决策模型在第t+1轮的决策结果。例如,在第t+1轮中,根据第t+1轮的用户输入信息,以及第t轮的输出信息,确定多个决策模型中的各个决策模型在第t+1轮的决策结果。又如,在第t+1轮中,根据第t+1轮的用户输入信息,第t轮的输出信息,以及第t+1轮的状态信息,确定多个决策模型中的各个决策模型在第t+1轮的决策结果。In a possible implementation manner, the output information of the t-th round may be used to determine the decision result of each decision model in the t+1-th round. For example, in the t+1 round, according to the user input information of the t+1 round and the output information of the t round, the decision result of each of the multiple decision models in the t+1 round is determined. For another example, in the t+1 round, according to the user input information in the t+1 round, the output information in the t round, and the state information in the t+1 round, it is determined that each of the multiple decision models is The decision result of round t+1.
图2示出本公开实施例的交互方法的示意图。在图2所示的示例中,决策模型包括LSTM模型和Matching模型。在第t轮,LSTM模型根据第t轮的用户输入信息,第t-1轮的输出信息(Action’t-1),第t轮的状态信息(utterancet),以及LSTM模型在第t-1轮的隐层特征,确定LSTM模型在第t轮的决策结果(Actiont);Matching模型根据第t轮的用户输入信息,第t-1轮的输出信息(Action’t-1),以及第t轮的状态信息(utterancet),确定Matching模型在第t轮的决策结果(Actiont)。LSTM模型在第t轮的决策结果(Actiont)和Matching模型在第t轮的决策结果(Actiont)经由Decision(决策)模块得到第t轮的输出信息(Action’t)。类似地,在第t+1轮,LSTM模型根据第t+1轮的用户输入信息,第t轮的输出信息(Action’t),第t+1轮的状态信息(utterancet+1),以及LSTM模型在第t轮的隐层特征,确定LSTM模型在第t+1轮的决策结果(Actiont+1);Matching模型根据第t+1轮的用户输入信息,第t轮的输出信息(Action’t),以及第t+1轮的状态信息(utterancet+1),确定Matching模型在第t+1轮的决策结果(Actiont+1)。LSTM模型在第t+1轮的决策结果(Actiont+1)和Matching模型在第t+1轮的决策结果(Actiont+1)经由Decision模块得到第t+1轮的输出信息(Action’t+1)。Fig. 2 shows a schematic diagram of an interaction method of an embodiment of the present disclosure. In the example shown in Figure 2, the decision model includes an LSTM model and a Matching model. In the t round, the LSTM model is based on the user input information in the t round, the output information in the t-1 round (Action't-1), the state information in the t round (utterancet), and the LSTM model in the t-1 round The hidden layer feature of the round determines the decision result (Actiont) of the LSTM model in the t round; the Matching model is based on the user input information in the t round, the output information in the t-1 round (Action't-1), and the t-th round The round state information (utterancet) determines the decision result (Actiont) of the Matching model in round t. The decision result (Actiont) of the LSTM model in the t round and the decision result (Actiont) of the Matching model in the t round are obtained through the Decision module to obtain the output information (Action't) of the t round. Similarly, in round t+1, the LSTM model is based on user input information in round t+1, output information in round t (Action't), state information in round t+1 (utterancet+1), and The hidden layer feature of the LSTM model in the t round determines the decision result of the LSTM model in the t+1 round (Actiont+1); the Matching model is based on the user input information in the t+1 round and the output information in the t round (Action 't), and the state information of the t+1 round (utterancet+1), determine the decision result (Actiont+1) of the Matching model in the t+1 round. The decision result of the LSTM model in the t+1 round (Actiont+1) and the decision result of the Matching model in the t+1 round (Actiont+1) are obtained through the Decision module to obtain the output information of the t+1 round (Action't+ 1).
需要说明的是,尽管以两个决策模型介绍了交互方法如上,但本领域技术人员能够理解,本公开应不限于此。本公开提供的交互方法可以涉及更多的决策模型。It should be noted that although the interaction method is described above with two decision models, those skilled in the art can understand that the present disclosure should not be limited to this. The interaction method provided by the present disclosure may involve more decision models.
在本公开实施例中,通过获取第t轮的用户输入信息,至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,并根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息,由此上一轮的决策能够帮助所有决策模型在本轮做出更好的决策,且在每一轮做决策时能够融合各个决策模型进行更准确的决策。In the embodiment of the present disclosure, by obtaining the user input information of the t round, at least according to the user input information of the t round and the output information of the t-1 round, the decision results of multiple decision models in the t round are determined, And according to the decision results of multiple decision models in the t round, the output information of the t round is determined, so the decision in the previous round can help all the decision models make better decisions in this round, and do it in each round When making decisions, it can integrate various decision models to make more accurate decisions.
本公开实施例提供的交互方法提供了一种端到端的用户交互方案,能够降低维护难度。The interaction method provided by the embodiments of the present disclosure provides an end-to-end user interaction solution, which can reduce maintenance difficulty.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。It can be understood that, without violating the principle logic, the various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment, which is limited in length and will not be repeated in this disclosure.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
此外,本公开还提供了交互装置、音箱、电子设备、计算机可读存储介质、程序, 上述均可用来实现本公开提供的任一种交互方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides interactive devices, speakers, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any interactive method provided in the present disclosure. For the corresponding technical solutions and descriptions, refer to the corresponding records in the method section. ,No longer.
图3示出根据本公开实施例的交互装置的框图。如图3所示,该交互装置包括:获取模块31,用于获取第t轮的用户输入信息,其中,t为大于或等于1的整数;第一确定模块32,用于至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,第t-1轮的输出信息根据多个决策模型在第t-1轮的决策结果确定;第二确定模块33,用于根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息。Fig. 3 shows a block diagram of an interactive device according to an embodiment of the present disclosure. As shown in FIG. 3, the interaction device includes: an acquiring module 31, configured to acquire user input information of the t-th round, where t is an integer greater than or equal to 1; The user input information and the output information of the t-1 round determine the decision results of the multiple decision models in the t round, where the output information of the t-1 round is based on the multiple decision models in the t-1 round The decision result is determined; the second determining module 33 is used to determine the output information of the t round according to the decision results of the multiple decision models in the t round.
在一种可能的实现方式中,第一确定模块32用于:根据第t轮的用户输入信息,第t-1轮的输出信息,以及第t轮的状态信息,确定多个决策模型在第t轮的决策结果。In a possible implementation manner, the first determining module 32 is used to determine whether multiple decision models are in the tth round according to the user input information of the tth round, the output information of the t-1th round, and the state information of the tth round. The decision result of round t.
在一种可能的实现方式中,多个决策模型包括循环神经网络模型;第一确定模块32用于:根据第t轮的用户输入信息,第t-1轮的输出信息,第t轮的状态信息,以及循环神经网络模型在第t-1轮的隐层特征,确定多个决策模型在第t轮的决策结果。In a possible implementation, the multiple decision models include a recurrent neural network model; the first determining module 32 is used to: according to the user input information of the t round, the output information of the t-1 round, and the state of the t round Information, as well as the hidden layer characteristics of the recurrent neural network model in the t-1 round, determine the decision results of multiple decision models in the t round.
在一种可能的实现方式中,第t轮的状态信息包括以下至少一种:与第t轮相关的实体信息、第t轮所属的时间信息以及第t轮的轮数信息。In a possible implementation, the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and round number information of the t-th round.
在一种可能的实现方式中,第二确定模块33用于:根据多个决策模型在第t轮的决策结果进行投票,得到投票结果;根据投票结果,确定第t轮的输出信息。In a possible implementation manner, the second determination module 33 is configured to: vote according to the decision results of the multiple decision models in the t round to obtain the voting result; and determine the output information of the t round according to the voting result.
在一种可能的实现方式中,多个决策模型在第t轮的决策结果包括多个决策模型中的各个决策模型在第t轮的决策类别;第二确定模块33用于:将各个决策模型在第t轮的决策类别分别确定为各个决策模型投票的类别;将投票数最高的类别确定为投票结果。In a possible implementation manner, the decision result of the multiple decision models in the t round includes the decision category of each of the multiple decision models in the t round; the second determination module 33 is used to: use each decision model The decision category in the t round is determined as the category voted by each decision model; the category with the highest number of votes is determined as the voting result.
在一种可能的实现方式中,多个决策模型在第t轮的决策结果包括多个决策模型中的各个决策模型在第t轮的备选决策类别以及备选决策类别的权重;第二确定模块33用于:根据各个决策模型在第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;将权重之和最大的备选决策类别确定为投票结果。In a possible implementation, the decision results of the multiple decision models in the t round include the candidate decision category of each of the multiple decision models in the t round and the weight of the candidate decision category; the second determination The module 33 is used to: determine the sum of the weights corresponding to each candidate decision category according to the weights of the candidate decision categories of each decision model in the t round; determine the candidate decision category with the largest sum of weights as the voting result.
在一种可能的实现方式中,第二确定模块33用于:将多个决策模型中的各个决策模型在第t轮的决策结果分别输入预设深度学习模型中,经由预设深度学习模型输出第t轮的输出信息。In a possible implementation manner, the second determining module 33 is configured to: input the decision results of each of the multiple decision models in the t-th round into the preset deep learning model, and output through the preset deep learning model The output information of round t.
在本公开实施例中,通过获取第t轮的用户输入信息,至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,并根据多个 决策模型在第t轮的决策结果,确定第t轮的输出信息,由此上一轮的决策能够帮助所有决策模型在本轮做出更好的决策,且在每一轮做决策时能够融合各个决策模型进行更准确的决策。In the embodiment of the present disclosure, by obtaining the user input information of the t round, at least according to the user input information of the t round and the output information of the t-1 round, the decision results of multiple decision models in the t round are determined, And according to the decision results of multiple decision models in the t round, the output information of the t round is determined, so the decision in the previous round can help all the decision models make better decisions in this round, and do it in each round When making decisions, it can integrate various decision models to make more accurate decisions.
图4示出根据本公开实施例的音箱的框图。如图4所示,该音箱包括:获取模块41,用于获取第t轮的用户输入信息,其中,t为大于或等于1的整数;第一确定模块42,用于至少根据第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,第t-1轮的输出信息根据多个决策模型在第t-1轮的决策结果确定;第二确定模块43,用于根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息。Fig. 4 shows a block diagram of a sound box according to an embodiment of the present disclosure. As shown in FIG. 4, the sound box includes: an acquiring module 41, configured to acquire user input information of the t-th round, where t is an integer greater than or equal to 1; The user input information and the output information of the t-1 round determine the decision results of the multiple decision models in the t round, where the output information of the t-1 round is based on the decision of the multiple decision models in the t-1 round The result is determined; the second determining module 43 is used to determine the output information of the t-th round according to the decision results of the multiple decision-making models in the t-th round.
在一种可能的实现方式中,第一确定模块42用于:根据第t轮的用户输入信息,第t-1轮的输出信息,以及第t轮的状态信息,确定多个决策模型在第t轮的决策结果。In a possible implementation manner, the first determining module 42 is configured to determine whether multiple decision models are in the tth round according to the user input information of the t-th round, the output information of the t-1th round, and the state information of the t-th round. The decision result of round t.
在一种可能的实现方式中,多个决策模型包括循环神经网络模型;第一确定模块42用于:根据第t轮的用户输入信息,第t-1轮的输出信息,第t轮的状态信息,以及循环神经网络模型在第t-1轮的隐层特征,确定多个决策模型在第t轮的决策结果。In a possible implementation, the multiple decision models include a cyclic neural network model; the first determining module 42 is used to: according to the user input information of the t round, the output information of the t-1 round, and the state of the t round Information, as well as the hidden layer characteristics of the recurrent neural network model in the t-1 round, determine the decision results of multiple decision models in the t round.
在一种可能的实现方式中,第t轮的状态信息包括以下至少一种:与第t轮相关的实体信息、第t轮所属的时间信息以及第t轮的轮数信息。In a possible implementation, the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and round number information of the t-th round.
在一种可能的实现方式中,第二确定模块43用于:根据多个决策模型在第t轮的决策结果进行投票,得到投票结果;根据投票结果,确定第t轮的输出信息。In a possible implementation manner, the second determining module 43 is configured to: vote according to the decision results of multiple decision models in the t round to obtain the voting result; and determine the output information of the t round according to the voting result.
在一种可能的实现方式中,多个决策模型在第t轮的决策结果包括多个决策模型中的各个决策模型在第t轮的决策类别;第二确定模块43用于:将各个决策模型在第t轮的决策类别分别确定为各个决策模型投票的类别;将投票数最高的类别确定为投票结果。In a possible implementation, the decision result of the multiple decision models in the t round includes the decision category of each of the multiple decision models in the t round; the second determination module 43 is used to: The decision category in the t round is determined as the category voted by each decision model; the category with the highest number of votes is determined as the voting result.
在一种可能的实现方式中,多个决策模型在第t轮的决策结果包括多个决策模型中的各个决策模型在第t轮的备选决策类别以及备选决策类别的权重;第二确定模块43用于:根据各个决策模型在第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;将权重之和最大的备选决策类别确定为投票结果。In a possible implementation, the decision results of the multiple decision models in the t round include the candidate decision category of each of the multiple decision models in the t round and the weight of the candidate decision category; the second determination Module 43 is used to: determine the sum of weights corresponding to each candidate decision category according to the weights of the candidate decision categories of each decision model in the t round; determine the candidate decision category with the largest sum of weights as the voting result.
在一种可能的实现方式中,第二确定模块43用于:将多个决策模型中的各个决策模型在第t轮的决策结果分别输入预设深度学习模型中,经由预设深度学习模型输出第t轮的输出信息。In a possible implementation manner, the second determining module 43 is configured to: input the decision result of each of the multiple decision models in the t-th round into the preset deep learning model, and output the result via the preset deep learning model The output information of round t.
在本公开实施例中,通过获取第t轮的用户输入信息,至少根据第t轮的用户输入 信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,并根据多个决策模型在第t轮的决策结果,确定第t轮的输出信息,由此上一轮的决策能够帮助所有决策模型在本轮做出更好的决策,且在每一轮做决策时能够融合各个决策模型进行更准确的决策。In the embodiment of the present disclosure, by obtaining the user input information of the t round, at least according to the user input information of the t round and the output information of the t-1 round, the decision results of multiple decision models in the t round are determined, And according to the decision results of multiple decision models in the t round, the output information of the t round is determined, so the decision in the previous round can help all the decision models make better decisions in this round, and do it in each round When making decisions, it can integrate various decision models to make more accurate decisions.
在一些实施例中,本公开实施例提供的装置或音箱具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device or speaker provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments, for the sake of brevity , I won’t repeat it here.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是非易失性计算机可读存储介质。The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为上述方法。An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured as the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device can be provided as a terminal, server or other form of device.
图5示出根据本公开实施例的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 5 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
参照图5,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)接口812,传感器组件814,以及通信组件816。5, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, And the communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation. For example, the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or the electronic device 800. The position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。 电子设备800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
图6示出根据本公开实施例的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图6,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 6 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 6, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by the memory 1932, for storing instructions executable by the processing component 1922, such as application programs. The application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above-described methods.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线的网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to the network, and an input output (I/O) interface 1958. The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete the foregoing method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储 介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon The protruding structure in the hole card or the groove, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages. Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server carried out. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to access the Internet connection). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions. The computer-readable program instructions are executed to realize various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Herein, various aspects of the present disclosure are described with reference to flowcharts and/or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and/or block diagrams and combinations of blocks in the flowcharts and/or block diagrams can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据 处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions onto a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , So that the instructions executed on the computer, other programmable data processing apparatus, or other equipment realize the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the drawings show the possible implementation architecture, functions, and operations of the system, method, and computer program product according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more functions for implementing the specified logical function. Executable instructions. In some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Without departing from the scope and spirit of the described embodiments, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used herein is intended to best explain the principles, practical applications, or technical improvements of the technologies in the market, or to enable other ordinary skilled in the art to understand the embodiments disclosed herein.

Claims (13)

  1. 一种交互方法,其特征在于,包括:An interactive method, characterized in that it includes:
    获取第t轮的用户输入信息,其中,t为大于或等于1的整数;Obtain the user input information for the t-th round, where t is an integer greater than or equal to 1;
    至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,所述第t-1轮的输出信息根据所述多个决策模型在所述第t-1轮的决策结果确定;At least according to the user input information of the t-th round and the output information of the t-1 round, the decision results of multiple decision models in the t-th round are determined, wherein the output information of the t-1 round is based on the The decision results of multiple decision models in the t-1 round are determined;
    根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息。According to the decision results of the multiple decision models in the t round, the output information of the t round is determined.
  2. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, wherein:
    根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,以及所述第t轮的状态信息,确定所述多个决策模型在所述第t轮的决策结果。According to the user input information of the t-th round, the output information of the t-1 round, and the state information of the t-th round, the decision results of the multiple decision models in the t-th round are determined.
  3. 根据权利要求1所述的方法,其特征在于,所述多个决策模型包括循环神经网络模型;The method according to claim 1, wherein the multiple decision models include a recurrent neural network model;
    所述至少根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,包括:The determining the decision results of multiple decision models in the t round at least according to the user input information of the t round and the output information of the t-1 round includes:
    根据所述第t轮的用户输入信息,所述第t-1轮的输出信息,所述第t轮的状态信息,以及所述循环神经网络模型在所述第t-1轮的隐层特征,确定所述多个决策模型在所述第t轮的决策结果。According to the user input information of the t-th round, the output information of the t-1 round, the state information of the t-th round, and the hidden layer feature of the recurrent neural network model in the t-1 round To determine the decision results of the multiple decision models in the t-th round.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第t轮的状态信息包括以下至少一种:与所述第t轮相关的实体信息、所述第t轮所属的时间信息以及所述第t轮的轮数信息。The method according to claim 2 or 3, wherein the state information of the t-th round includes at least one of the following: entity information related to the t-th round, time information to which the t-th round belongs, and The round number information of the t-th round.
  5. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, wherein:
    根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果;Voting according to the decision results of the multiple decision models in the t-th round to obtain a voting result;
    根据所述投票结果,确定所述第t轮的输出信息。According to the voting result, the output information of the t-th round is determined.
  6. 根据权利要求5所述的方法,其特征在于,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的决策类别;The method according to claim 5, wherein the decision result of the plurality of decision models in the t round includes the decision category of each of the plurality of decision models in the t round;
    所述根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果,包括:The voting according to the decision results of the multiple decision models in the t-th round to obtain the voting result includes:
    将所述各个决策模型在所述第t轮的决策类别分别确定为所述各个决策模型投票的类别;Determine the decision categories of the decision models in the t-th round as the categories voted by the decision models;
    将投票数最高的类别确定为所述投票结果。The category with the highest number of votes is determined as the voting result.
  7. 根据权利要求6所述的方法,其特征在于,所述多个决策模型在所述第t轮的决策结果包括所述多个决策模型中的各个决策模型在所述第t轮的备选决策类别以及所述备选决策类别的权重;The method according to claim 6, wherein the decision result of the plurality of decision models in the t-th round comprises a candidate decision of each of the plurality of decision models in the t-th round Category and the weight of the candidate decision category;
    所述根据所述多个决策模型在所述第t轮的决策结果进行投票,得到投票结果,包括:The voting according to the decision results of the multiple decision models in the t-th round to obtain the voting result includes:
    根据所述各个决策模型在所述第t轮的备选决策类别的权重,确定各个备选决策类别对应的权重之和;Determine the sum of the weights corresponding to each candidate decision category according to the weights of the candidate decision categories of each decision model in the t round;
    将权重之和最大的备选决策类别确定为所述投票结果。The candidate decision category with the largest sum of weights is determined as the voting result.
  8. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, wherein:
    将所述多个决策模型中的各个决策模型在所述第t轮的决策结果分别输入预设深度学习模型中,经由所述预设深度学习模型输出所述第t轮的输出信息。The decision result of each of the plurality of decision models in the t-th round is input into a preset deep learning model, and output information of the t-th round is output through the preset deep learning model.
  9. 根据权利要求1所述的方法,其特征在于,所述用户输入信息为用户输入的语音。The method according to claim 1, wherein the user input information is voice input by the user.
  10. 一种交互装置,其特征在于,包括:An interactive device, characterized in that it comprises:
    获取模块,用于获取第t轮的用户输入信息,其中,t为大于或等于1的整数;The obtaining module is used to obtain the user input information of the t-th round, where t is an integer greater than or equal to 1;
    第一确定模块,用于根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,所述第t-1轮的输出信息根据所述多个决策模型在所述第t-1轮的决策结果确定;The first determining module is configured to determine the decision results of multiple decision models in the t round according to the user input information of the t round and the output information of the t-1 round, wherein the t-1 round The output information of is determined according to the decision results of the multiple decision models in the t-1 round;
    第二确定模块,用于根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息。The second determining module is configured to determine the output information of the t-th round according to the decision results of the multiple decision models in the t-th round.
  11. 一种音箱,其特征在于,包括:A speaker, characterized in that it comprises:
    获取模块,用于获取第t轮的用户输入信息,其中,t为大于或等于1的整数;The obtaining module is used to obtain the user input information of the t-th round, where t is an integer greater than or equal to 1;
    第一确定模块,用于根据所述第t轮的用户输入信息,以及第t-1轮的输出信息,确定多个决策模型在第t轮的决策结果,其中,所述第t-1轮的输出信息根据所述多个决策模型在所述第t-1轮的决策结果确定;The first determining module is configured to determine the decision results of multiple decision models in the t round according to the user input information of the t round and the output information of the t-1 round, wherein the t-1 round The output information of is determined according to the decision results of the multiple decision models in the t-1 round;
    第二确定模块,用于根据所述多个决策模型在所述第t轮的决策结果,确定所述第t轮的输出信息。The second determining module is configured to determine the output information of the t-th round according to the decision results of the multiple decision models in the t-th round.
  12. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至9中 任意一项所述的方法。Wherein, the processor is configured to call an instruction stored in the memory to execute the method according to any one of claims 1-9.
  13. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至9中任意一项所述的方法。A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the method according to any one of claims 1 to 9 when executed by a processor.
PCT/CN2020/086627 2019-05-07 2020-04-24 Interaction method and device, loudspeaker, electronic apparatus, and storage medium WO2020224448A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910376459.4A CN111914983B (en) 2019-05-07 2019-05-07 Interaction method and device, sound box, electronic equipment and storage medium
CN201910376459.4 2019-05-07

Publications (1)

Publication Number Publication Date
WO2020224448A1 true WO2020224448A1 (en) 2020-11-12

Family

ID=73050583

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/086627 WO2020224448A1 (en) 2019-05-07 2020-04-24 Interaction method and device, loudspeaker, electronic apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN111914983B (en)
WO (1) WO2020224448A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429994A (en) * 2017-02-15 2018-08-21 阿里巴巴集团控股有限公司 Audio identification, echo cancel method, device and equipment
CN108509727A (en) * 2018-03-30 2018-09-07 深圳市智物联网络有限公司 Model in data modeling selects processing method and processing device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897478B (en) * 2016-04-12 2019-02-05 腾讯科技(深圳)有限公司 A kind of method and decision device of link decisions
CN106844741A (en) * 2017-02-13 2017-06-13 哈尔滨工业大学 A kind of answer method towards specific area
CN107221320A (en) * 2017-05-19 2017-09-29 百度在线网络技术(北京)有限公司 Train method, device, equipment and the computer-readable storage medium of acoustic feature extraction model
CN107240398B (en) * 2017-07-04 2020-11-17 科大讯飞股份有限公司 Intelligent voice interaction method and device
CN107766506A (en) * 2017-10-20 2018-03-06 哈尔滨工业大学 A kind of more wheel dialog model construction methods based on stratification notice mechanism
CN108121824A (en) * 2018-01-12 2018-06-05 北京融快线科技有限公司 A kind of chat robots and system towards financial service
CN108829667A (en) * 2018-05-28 2018-11-16 南京柯基数据科技有限公司 It is a kind of based on memory network more wheels dialogue under intension recognizing method
CN108874967B (en) * 2018-06-07 2023-06-23 腾讯科技(深圳)有限公司 Dialogue state determining method and device, dialogue system, terminal and storage medium
CN109686445B (en) * 2018-12-29 2023-07-21 成都睿码科技有限责任公司 Intelligent diagnosis guiding algorithm based on automatic label and multi-model fusion

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429994A (en) * 2017-02-15 2018-08-21 阿里巴巴集团控股有限公司 Audio identification, echo cancel method, device and equipment
CN108509727A (en) * 2018-03-30 2018-09-07 深圳市智物联网络有限公司 Model in data modeling selects processing method and processing device

Also Published As

Publication number Publication date
CN111914983A (en) 2020-11-10
CN111914983B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
TWI781359B (en) Face and hand association detection method and device, electronic device and computer-readable storage medium
US20200387795A1 (en) Super network training method and device
WO2017031875A1 (en) Method and apparatus for changing emotion icon in chat interface, and terminal device
CN110909815B (en) Neural network training method, neural network training device, neural network processing device, neural network training device, image processing device and electronic equipment
CN105489220B (en) Voice recognition method and device
CN107944447B (en) Image classification method and device
CN111612070B (en) Image description generation method and device based on scene graph
CN111242303B (en) Network training method and device, and image processing method and device
US10248855B2 (en) Method and apparatus for identifying gesture
CN109165738B (en) Neural network model optimization method and device, electronic device and storage medium
CN111259967B (en) Image classification and neural network training method, device, equipment and storage medium
WO2018157630A1 (en) Method and device for recommending associated user
US11335348B2 (en) Input method, device, apparatus, and storage medium
WO2021031308A1 (en) Audio processing method and device, and storage medium
WO2020103353A1 (en) Multi-beam selection method and device
CN111210844B (en) Method, device and equipment for determining speech emotion recognition model and storage medium
US20160314164A1 (en) Methods and devices for sharing cloud-based business card
CN109685041B (en) Image analysis method and device, electronic equipment and storage medium
US10764418B2 (en) Method, device and medium for application switching
CN109447258B (en) Neural network model optimization method and device, electronic device and storage medium
CN112445906A (en) Method and device for generating reply message
CN106960026B (en) Search method, search engine and electronic equipment
WO2020224448A1 (en) Interaction method and device, loudspeaker, electronic apparatus, and storage medium
WO2021027709A1 (en) Page sharing method and apparatus, and electronic device
CN110019928B (en) Video title optimization method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20802049

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20802049

Country of ref document: EP

Kind code of ref document: A1