TWI674517B - Information interaction method and device - Google Patents

Information interaction method and device Download PDF

Info

Publication number
TWI674517B
TWI674517B TW107105644A TW107105644A TWI674517B TW I674517 B TWI674517 B TW I674517B TW 107105644 A TW107105644 A TW 107105644A TW 107105644 A TW107105644 A TW 107105644A TW I674517 B TWI674517 B TW I674517B
Authority
TW
Taiwan
Prior art keywords
target
parameter
answer
question
request
Prior art date
Application number
TW107105644A
Other languages
Chinese (zh)
Other versions
TW201833730A (en
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 TW201833730A publication Critical patent/TW201833730A/en
Application granted granted Critical
Publication of TWI674517B publication Critical patent/TWI674517B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/0005Manipulators having means for high-level communication with users, e.g. speech generator, face recognition means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/008Manipulators for service tasks

Abstract

一種資訊交互的方法及裝置,該方法包括:確定一第一目標回答參數;從一問題庫中獲取一目標問題集合,其中所述目標問題集合包括至少一請求參數,所述至少一請求參數用於請求一使用者發送與所述至少一請求參數對應之一回答參數;在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數;以及將所述目標請求參數發送給一終端設備。 A method and device for information interaction. The method includes: determining a first target answer parameter; obtaining a target question set from a question library, wherein the target question set includes at least one request parameter, and the at least one request parameter is used for Requesting a user to send one answer parameter corresponding to the at least one request parameter; obtaining at least one target request parameter corresponding to the first target response parameter in the target question set; and transferring the target request parameter Send to a terminal device.

Description

資訊交互的方法及裝置    Method and device for information interaction   

本揭示關於網際網路技術領域,特別是關於一種資訊交互的方法及裝置。 This disclosure relates to the field of Internet technology, and more particularly to a method and device for information interaction.

在服務對話領域,伺服器端在向使用者提供某些服務之前,需要自動向使用者提出一些問題,服務機器人可以從使用者的回答中提取與該提問對應的回答參數,最後向使用者提供相關服務。例如,向使用者提供訂購機票的服務時,首先需要向使用者提問,詢問使用者的出發地、目的地以及出發時間,從使用者對提問的回答中提取出出發地、目的地以及出發時間等回答參數,根據這些回答參數完成為使用者訂購機票的服務。 In the field of service dialogue, the server needs to automatically ask the user some questions before providing some services to the user. The service robot can extract the answer parameters corresponding to the question from the user's answer, and finally provide the user with the user Related Services. For example, when providing a service for ordering air tickets to users, they first need to ask the user questions about the user ’s departure place, destination, and departure time, and extract the departure place, destination, and departure time from the user ’s answers to the questions. Wait for the response parameters, and complete the service of ordering air tickets for users based on these response parameters.

在習知技術中,針對每個回答參數預先設定了固定的提問,在對話過程中若需要獲取某個回答參數,則自動向使用者發送與該回答參數對應的問題。但是,事先定義好的提問比較生硬,與自然語言差距較大,缺乏智慧感。 In the conventional technology, a fixed question is set in advance for each answer parameter, and if a certain answer parameter needs to be obtained during a conversation, a question corresponding to the answer parameter is automatically sent to the user. However, pre-defined questions are blunt, have a large gap with natural language, and lack a sense of wisdom.

有鑑於此,本揭示提供一種資訊交互的方法及裝置,以解決習知技術中生成提問的方式與自然語言差距較大,缺乏智慧感的技術問題。 In view of this, the present disclosure provides a method and device for information interaction to solve the technical problem that the method of generating questions in conventional technology is far from natural language and lacks a sense of wisdom.

為解決上述問題,本揭示提供的技術方案如下。 To solve the above problems, the technical solution provided by the present disclosure is as follows.

一種資訊交互的方法,包括:確定一第一目標回答參數,其中所述第一目標回答參數為未獲得與所述第一目標回答參數對應之一請求參數的參數;從一問題庫中獲取一目標問題集合,其中所述目標問題集合 為與所述第一目標回答參數對應的問題集合,所述目標問題集合包括至少一請求參數,所述至少一請求參數用於請求一使用者發送與所述至少一請求參數對應之一回答參數;在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數;以及將所述目標請求參數發送給一終端設備。 A method for information interaction includes: determining a first target answer parameter, wherein the first target answer parameter is a parameter that does not obtain a request parameter corresponding to the first target answer parameter; obtaining a A target question set, wherein the target question set is a question set corresponding to the first target answer parameter, the target question set includes at least one request parameter, and the at least one request parameter is used to request a user to send The answer parameter corresponding to the at least one request parameter is described; at least one target request parameter corresponding to the first target answer parameter is obtained in the target question set; and the target request parameter is sent to a terminal device.

一種資訊交互的裝置,包括:一確定單元,用於確定一第一目標回答參數,其中所述第一目標回答參數為未獲得與所述第一目標回答參數對應之一請求參數的參數;一第一獲取單元,用於從一問題庫中獲取一目標問題集合,其中所述目標問題集合為與所述第一目標回答參數對應的問題集合,所述目標問題集合包括至少一請求參數,所述至少一請求參數用於請求一使用者發送與所述至少一請求參數對應之一回答參數;一第二獲取單元,用於在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數;以及一發送單元,用於將所述目標請求參數發送給一終端設備。 An information interaction device includes: a determining unit for determining a first target answer parameter, wherein the first target answer parameter is a parameter that does not obtain a request parameter corresponding to the first target answer parameter; a A first obtaining unit is configured to obtain a target question set from a question library, wherein the target question set is a question set corresponding to the first target answer parameter, and the target question set includes at least one request parameter, so The at least one request parameter is used to request a user to send an answer parameter corresponding to the at least one request parameter; and a second acquisition unit is configured to acquire a response corresponding to the first target answer parameter in the target question set. At least one target request parameter; and a sending unit, configured to send the target request parameter to a terminal device.

本揭示實施例在確定出第一目標回答參數的情況下,從問題庫中獲取目標問題集合,在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數,將所述目標請求參數發送給終端設備。本揭示可以讓使用者接收到的作為問題的目標請求參數更為自然,貼近自然語言,提升了提問的智慧度。 In the embodiment of the present disclosure, when a first target answer parameter is determined, a target question set is obtained from a question library, and at least one target request parameter corresponding to the first target answer parameter is obtained from the target question set, and The target request parameter is sent to a terminal device. The disclosure can make the target request parameters received by the user as a question more natural, closer to natural language, and improve the wisdom of asking questions.

401‧‧‧確定單元 401‧‧‧ confirm unit

402‧‧‧第一獲取單元 402‧‧‧First Acquisition Unit

403‧‧‧第二獲取單元 403‧‧‧Second Acquisition Unit

404‧‧‧發送單元 404‧‧‧ sending unit

501‧‧‧處理器 501‧‧‧ processor

502‧‧‧記憶體 502‧‧‧Memory

503‧‧‧輸入裝置 503‧‧‧ input device

504‧‧‧輸出裝置 504‧‧‧Output device

505‧‧‧匯流排 505‧‧‧Bus

S101-S104、S201-S208、S301-S304‧‧‧步驟 S101-S104, S201-S208, S301-S304‧‧‧steps

第1圖為本揭示一實施例中提供的資訊交互的方法的流程圖。 FIG. 1 is a flowchart of a method for information interaction provided in an embodiment of the disclosure.

第2圖為本揭示另一實施例中提供的資訊交互的方法的流程圖。 FIG. 2 is a flowchart of a method for information interaction provided in another embodiment of the disclosure.

第3圖為本揭示又一實施例中提供的資訊交互的方法的流程圖。 FIG. 3 is a flowchart of a method for information interaction provided in another embodiment of the disclosure.

第4圖為本揭示一實施例中提供的資訊交互的裝置的示意圖。 FIG. 4 is a schematic diagram of an information interaction device provided in an embodiment of the disclosure.

第5圖為本揭示一實施例中提供的伺服器的示意圖。 FIG. 5 is a schematic diagram of a server provided in an embodiment of the disclosure.

為使本揭示的上述目的、特徵和優點能夠更加明顯易懂,下面結合附圖和具體實施方式對本揭示實施例作進一步詳細地說明。 In order to make the foregoing objectives, features, and advantages of the present disclosure more comprehensible, the embodiments of the present disclosure are described in further detail below with reference to the accompanying drawings and specific implementations.

在服務對話領域,伺服器端為了向使用者提供某些服務,需要獲知一些參數,為了獲知這些參數,則需要向使用者發送與這些參數對應的請求參數(即提問),讓使用者能夠根據請求參數進行回答,並向伺服器發送與請求參數對應的回答資訊,然後從使用者發送的回答資訊中提取出與提問對應的回答參數,最後向使用者提供相關服務。例如,向使用者提供訂購機票的服務時,所需的回答參數包括目的地資訊、出發地資訊以及出發時間資訊,則需要向使用者發送與這些回答參數對應的請求參數。在習知技術中,針對每個回答參數預先設定了固定的提問方式,在對話過程中若需要獲取某個回答參數,則自動向使用者發送與該回答參數對應的請求參數。但是,這樣對於使用者來說比較生硬,缺乏智慧和人性的感覺。另外,每次只針對一個回答參數提問,當需要獲取多個回答參數時,提問效率較低。為瞭解決習知技術中所存在的技術問題,本揭示實施例中提供了一種資訊交互的方法及裝置,從大量真實語料庫(一種大型結構化的文字組合,通常以電子形式儲存運作)的資料中學習得到各種回答參數的提問方法,藉此訓練得到問題庫,問題庫中包括了與各種回答參數對應的問題集合,在針對某個或某些回答參數進行提問時,從問題庫中獲取與該回答參數對應的請求參數發送給使用者,以提高提問的智慧程度,使每次提問的方式不同,更符合人類表達習慣。 In the field of service dialogues, in order to provide certain services to users, the server needs to know some parameters. In order to know these parameters, it is necessary to send the request parameters (that is, questions) corresponding to these parameters to the user, so that the user can Request parameters to answer, and send the answer information corresponding to the request parameters to the server, then extract the answer parameters corresponding to the question from the answer information sent by the user, and finally provide the user with related services. For example, when a user is provided with a service for ordering a flight ticket, the required response parameters include destination information, departure place information, and departure time information, and the request parameters corresponding to these response parameters need to be sent to the user. In the conventional technology, a fixed questioning method is set in advance for each answer parameter. If a certain answer parameter needs to be obtained during a conversation, a request parameter corresponding to the answer parameter is automatically sent to the user. However, this is relatively stiff for users, lacking the sense of wisdom and humanity. In addition, only one answer parameter is asked at a time, and when multiple answer parameters need to be obtained, the questioning efficiency is low. In order to solve the technical problems in the conventional technology, the embodiments of the present disclosure provide a method and device for information interaction, from a large number of real corpora (a large structured text combination, usually stored and operated in electronic form). You can learn the questioning methods of various answer parameters in training to obtain a question library. The question library includes a set of questions corresponding to various answer parameters. When you ask a question about one or some answer parameters, you obtain the answer from the question library. The request parameter corresponding to the answer parameter is sent to the user to improve the wisdom of the question, make the way of each question different, and conform more to human expression habits.

本揭示實施例將從資訊交互的裝置角度進行描述,該資訊交互的裝置具體可以裝載在伺服器中。參見第1圖所示,其示出了本揭示一實施例中提供的資訊交互的方法,包括以下步驟: The embodiment of the present disclosure will be described from the perspective of a device for information interaction, and the device for information interaction may be specifically loaded in a server. Referring to FIG. 1, which illustrates a method for information interaction provided in an embodiment of the present disclosure, including the following steps:

步驟S101:確定第一目標回答參數。 Step S101: Determine a first target answer parameter.

在向使用者提供服務時,需要向使用者發送一些請求參數以 獲得所需的回答參數。例如,在為使用者提供訂購機票服務時,則需要通過向使用者提問獲得目的地資訊、出發地資訊以及出發時間資訊等回答參數。在實際應用中,可以根據所需的回答參數以及第二目標回答參數,確定第一目標回答參數,所述第一目標回答參數為未獲得與所述第一目標回答參數對應的請求參數的參數。 When providing services to users, some request parameters need to be sent to the users to obtain the required response parameters. For example, when providing a user with a ticket booking service, answer parameters such as destination information, departure place information, and departure time information need to be obtained by asking the user questions. In practical applications, a first target answer parameter may be determined according to a required answer parameter and a second target answer parameter, and the first target answer parameter is a parameter for which no request parameter corresponding to the first target answer parameter is obtained. .

若是首次向使用者進行提問,則所需的回答參數均為所述第一目標回答參數,若使用者已經進行過回答,則將使用者回答過的回答參數均記錄為第二目標回答參數,所述第二目標回答參數為已獲得與所述第二目標回答參數對應的請求參數的參數。 If it is the first time asking a user a question, the required answer parameters are all the first target answer parameters. If the user has already answered, the answer parameters answered by the user are recorded as the second target answer parameters. The second target answer parameter is a parameter that has obtained a request parameter corresponding to the second target answer parameter.

根據所需的回答參數以及第二目標回答參數確定出第一目標回答參數。當前第一目標回答參數可以有一個,也可以有多個。 The first target answer parameter is determined according to the required answer parameter and the second target answer parameter. There can be one or more of the first target answer parameters.

步驟S102:從問題庫中獲取目標問題集合。 Step S102: Obtain a target question set from the question base.

本實施例所示的目標問題集合為與所述第一目標回答參數對應的問題集合。 The target question set shown in this embodiment is a question set corresponding to the first target answer parameter.

在一些可能的實現方式中,本揭示實施例中提供的資訊交互的方法還可以包括:根據輸入的真實語料資料訓練生成所述問題庫,所述問題庫包括回答參數,所述回答參數可為所述第一目標回答參數和/或所述第二目標回答參數。亦即問題庫中包括了與各種回答參數對應的問題集合。 In some possible implementation manners, the method for information interaction provided in the embodiments of the present disclosure may further include: training and generating the question database according to the input real corpus data, the question database includes answer parameters, and the answer parameters may be Answer parameters for the first target and / or answer parameters for the second target. That is, the question library includes a set of questions corresponding to various answer parameters.

例如問題庫中包括了與回答參數A對應的問題集合、與回答參數B對應的問題集合、與回答參數C對應的問題集合、與回答參數A以及B對應的問題集合、與回答參數A、B以及C對應的問題集合等等。每個問題集合中又包括了多個問題,例如,回答參數A為目的地資訊,則與回答參數A對應的問題集合中可以包括“你要去哪裡?”、“你要去哪兒?”、“你的目的地是哪兒?”等等問題。例如回答參數B為出發地資訊,則與回答參數A以及B對應的問題集合中可以包括“你要從哪裡去哪裡?”、“你的出發地以及目的地是哪裡?”等等問題。也就是說問題庫中包括多個問題集合,一個 問題集合可以是與一個回答參數對應的問題集合,也可以是與多個回答參數對應的問題集合。如何根據輸入的真實語料資料訓練生成問題庫將在後續實施例中詳細說明。 For example, the question library includes a question set corresponding to the answer parameter A, a question set corresponding to the answer parameter B, a question set corresponding to the answer parameter C, a question set corresponding to the answer parameters A and B, and answer parameters A and B. And the problem set corresponding to C and so on. Each question set includes multiple questions, for example, the answer parameter A is the destination information, and the question set corresponding to the answer parameter A may include "where are you going?", "Where are you going?", "Where is your destination?" And so on. For example, the answer parameter B is the starting point information. The question set corresponding to the answer parameters A and B may include questions such as "Where do you go from here?", "Where is your starting point and destination?" That is to say, the question library includes multiple question sets, and a question set may be a question set corresponding to one answer parameter, or a question set corresponding to multiple answer parameters. How to train and generate a question database based on the input real corpus data will be explained in detail in the subsequent embodiments.

在本實施例中,當第一目標回答參數僅有一個時,則可以從問題庫中直接獲取與該第一目標回答參數對應的目標問題集合。 In this embodiment, when there is only one first target answer parameter, a target question set corresponding to the first target answer parameter may be directly obtained from the question library.

在一些可能的實現方式中,當第一目標回答參數有n個時,從問題庫中獲取目標問題集合的步驟包括:從所述問題庫中獲取所述目標問題集合,所述目標問題集合與m個所述第一目標回答參數對應,其中n為大於或等於2的正整數,m為小於或等於n的正整數。 In some possible implementation manners, when there are n first target answer parameters, the step of obtaining the target question set from the question library includes: obtaining the target question set from the question library, the target question set and There are m corresponding first target answer parameters, where n is a positive integer greater than or equal to 2 and m is a positive integer less than or equal to n.

例如,假設n為3,代表第一目標回答參數有3個,分別為回答參數A、回答參數B以及回答參數C,則問題庫中有與1個回答參數對應的問題集合,即與回答參數A對應的問題集合、與回答參數B對應的問題集合、與回答參數C對應的問題集合。 For example, suppose n is 3, which means that there are 3 first target answer parameters, namely answer parameter A, answer parameter B, and answer parameter C. Then the question library has a question set corresponding to one answer parameter, that is, the answer parameter. A question set corresponding to A, a question set corresponding to the answer parameter B, and a question set corresponding to the answer parameter C.

問題庫中還有與2個回答參數對應的問題集合,即與回答參數A以及B對應的問題集合、與回答參數B以及C對應的問題集合、與回答參數A以及C對應的問題集合。同時,問題庫中還有與3個回答參數對應的問題集合,即與回答參數A、B以及C對應的問題集合,則在這些問題集合中獲取其中的一個問題集合作為與第一目標回答參數的問題集合。也就是說,在第一目標回答參數有多個時,可以針對其中的一個回答參數進行提問,也可以針對其中的多個回答參數進行提問。 There are also question sets corresponding to two answer parameters in the question library, that is, question sets corresponding to answer parameters A and B, question sets corresponding to answer parameters B and C, and question sets corresponding to answer parameters A and C. At the same time, the question library also has a question set corresponding to the three answer parameters, that is, a question set corresponding to the answer parameters A, B, and C. Then, one of these question sets is obtained as the first target answer parameter. Question collection. That is, when there are multiple first target answer parameters, a question may be asked for one of the answer parameters, or a question may be asked for a plurality of the answer parameters.

步驟S103:在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數。 Step S103: Acquire at least one target request parameter corresponding to the first target answer parameter in the target question set.

在一些可能的實現方式中,在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數的具體實現可以包括:從與第一目標回答參數對應的問題集合中隨機選擇一個請求參數作為所述目標請求參數。 In some possible implementation manners, the specific implementation of obtaining at least one target request parameter corresponding to the first target answer parameter in the target question set may include: randomly selecting from the question set corresponding to the first target answer parameter A request parameter is selected as the target request parameter.

在一種實現方式中,可以直接從上述步驟中獲得的一個與第一目標回答參數對應的目標問題集合中,隨機選擇一個請求參數作為目標請求參數,該目標請求參數選擇自目標問題集合,目標問題集合中包括了真實語境中可能會出現的與第一目標回答參數對應的各種請求參數,且目標問題集合中各種請求參數的出現頻率與真實語境中基本保持一致,所以所選擇的目標請求參數也更為接近真實語境。 In an implementation manner, a request parameter may be randomly selected as a target request parameter from a target problem set corresponding to the first target answer parameter obtained in the foregoing steps, and the target request parameter is selected from the target problem set and the target problem. The set includes various request parameters that may appear in the real context that correspond to the first target answer parameter, and the frequency of the various request parameters in the target question set is basically the same as in the real context, so the selected target request The parameters are also closer to the real context.

在一些可能的實現方式中,在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數的具體實現也可以包括:將所述目標請求參數輸入神經網路(neural network)模型,並獲取神經網路模型輸出的所述目標請求參數。 In some possible implementation manners, the specific implementation of obtaining at least one target request parameter corresponding to the first target answer parameter in the target question set may also include: inputting the target request parameter to a neural network (neural network) network) model, and obtain the target request parameters output by the neural network model.

在另一種實現方式中,當問題集合中有足夠多的請求參數時,可以訓練神經網路模型來生成一個與第一目標回答參數對應的目標請求參數,這樣提問的方式將更為豐富,不僅局限於問題庫中已有的問題,而是生成更加符合人類習慣的提問。 In another implementation, when there are enough request parameters in the question set, the neural network model can be trained to generate a target request parameter corresponding to the first target answer parameter, so that the way of asking questions will be richer, not only It is limited to the existing questions in the question bank, but generates questions more in line with human habits.

步驟S104:將目標請求參數發送給終端設備。 Step S104: Send the target request parameter to the terminal device.

將步驟S103中獲得的目標請求參數發送給終端設備,以使使用終端設備的使用者能夠對第一目標回答參數進行回答。 Send the target request parameters obtained in step S103 to the terminal device, so that the user using the terminal device can answer the first target answer parameter.

本揭示實施例在對第一目標回答參數進行提問時,從問題庫中獲取與第一目標回答參數對應的目標問題集合,該目標問題集合中包括有多個從真實語料資料中獲得的與第一目標回答參數的對應的目標請求參數,從問題庫中獲取與第一目標回答參數對應的目標問題集合,在所述目標問題集合中獲取一個與第一目標回答參數對應的目標請求參數發送給使用者,可以讓使用者接收到的目標請求參數更為自然,貼近自然語言,提升了提問的智慧度。 In the embodiment of the present disclosure, when a question is asked about the first target answer parameter, a target question set corresponding to the first target answer parameter is obtained from the question library, and the target question set includes a plurality of ANDs obtained from real corpus data. The corresponding target request parameter of the first target answer parameter is to obtain a target question set corresponding to the first target answer parameter from the question library, and obtain a target request parameter corresponding to the first target answer parameter from the target question set to send. To the user, the target request parameters received by the user can be more natural and close to natural language, which improves the wisdom of asking questions.

參見第2圖所示,其示出了本揭示另一實施例中提供的資訊交互的方法,包括以下步驟: Referring to FIG. 2, which illustrates a method for information interaction provided in another embodiment of the present disclosure, including the following steps:

步驟S201:確定第一目標回答參數。 Step S201: Determine a first target answer parameter.

步驟S202:從問題庫中獲取目標問題集合。 Step S202: Obtain a target question set from the question base.

步驟S203:在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數。 Step S203: Acquire at least one target request parameter corresponding to the first target answer parameter in the target question set.

步驟S204:將目標請求參數發送給終端設備。 Step S204: Send the target request parameter to the terminal device.

步驟S201-S204與步驟S101-S104相同,相關說明可以參見上述實施例,在此不再贅述。 Steps S201-S204 are the same as steps S101-S104. For related description, refer to the foregoing embodiments, and details are not described herein again.

步驟S205:接收使用者發送的回答資訊。 Step S205: Receive the response information sent by the user.

在將目標請求參數發送給終端設備,以使使用終端設備的使用者獲取到目標請求參數後,使用者會對該目標請求參數進行回答以生成回答資訊,在使用者回答後可以接收使用者通過終端設備發送的回答資訊,所述回答資訊中會包括第二目標回答參數,第二目標回答參數為已獲得與所述第二目標回答參數對應的請求參數的參數。 After sending the target request parameter to the terminal device, so that the user using the terminal device obtains the target request parameter, the user will answer the target request parameter to generate answer information, and after the user answers, the user can receive The answer information sent by the terminal device includes a second target answer parameter, and the second target answer parameter is a parameter that has obtained a request parameter corresponding to the second target answer parameter.

步驟S206:從所述回答資訊中提取第二目標回答參數。 Step S206: Extract a second target answer parameter from the answer information.

在接收到回答資訊後提取出第二目標回答參數,可以理解的是,若已經進行了多次問答,則第二目標回答參數並不僅限於本次回答中提取的回答參數。 After receiving the answer information, the second target answer parameter is extracted. It can be understood that if multiple questions and answers have been performed, the second target answer parameter is not limited to the answer parameter extracted in this answer.

步驟S207:根據所述第二目標回答參數以及所需的回答參數,判斷是否存在所述第一目標回答參數,若存在,則返回步驟S201,若不存在,則進入步驟S208。 Step S207: Determine whether the first target answer parameter exists according to the second target answer parameter and the required answer parameter, and if it exists, return to step S201; if it does not exist, proceed to step S208.

根據第二目標回答參數以及所需的回答參數,則可以判斷出是否存在第一目標回答參數,例如所需的回答參數包括目的地資訊、出發地資訊以及出發時間,第二目標回答參數包括目的地資訊以及出發地資訊,則還存在第一目標回答參數未確定(出發時間),需要返回步驟S201重新確定第一目標回答參數,例如將出發時間確定為第一目標回答參數,則在後續步驟中需要針對出發時間再次進行提問。 According to the second target answer parameter and the required answer parameter, it can be determined whether the first target answer parameter exists. For example, the required answer parameter includes destination information, departure place information, and departure time. The second target answer parameter includes the purpose. Location information and departure location information, there is still a first target answer parameter that is not determined (departure time), and it is necessary to return to step S201 to re-determine the first target answer parameter. Questions need to be asked again during departure time.

步驟S208:根據所述第二目標回答參數提供相應的服務。 Step S208: Provide a corresponding service according to the second target answer parameter.

若已經獲得了全部所需的第二目標回答參數,則可以向使用者提供相應的服務,例如在獲取到目的地資訊、出發地資訊以及出發時間這些回答參數後可以向使用者提供訂購機票的服務。 If all required second-target answer parameters have been obtained, the user can be provided with corresponding services. For example, after obtaining the answer information such as destination information, departure location information, and departure time, the user can provide the user with the ticket booking order. service.

本揭示實施例通過更為貼近自然語言的提問,讓使用者在對話的過程中與機器交流的更加順暢、自然,從而讓使用者更快地回答出所需的回答參數,根據這些第二目標回答參數可以完成向使用者提供相應的服務。 In the embodiment of the present disclosure, by asking questions closer to the natural language, the user can communicate more smoothly and naturally with the machine during the conversation, so that the user can answer the required answer parameters more quickly. According to these second goals, The answer parameter can be completed to provide the corresponding service to the user.

參見第3圖所示,其示出了本揭示又一實施例中提供的資訊交互的方法,在本實施例中,根據輸入的真實語料資料訓練生成所述問題庫的具體實現可以包括以下步驟: Referring to FIG. 3, which illustrates a method for information interaction provided in another embodiment of the present disclosure. In this embodiment, the specific implementation of generating the question database according to the input real corpus data may include the following: Steps:

步驟S301:接收真實語料資料。 Step S301: Receive real corpus data.

真實語料資料包括語料資料以及對語料資料的批註資料,批註資料包括語料資料的類型以及語料資料所對應的回答參數。 The real corpus data includes the corpus data and annotated data on the corpus data. The annotated data includes the type of the corpus data and the response parameters corresponding to the corpus data.

在訓練生成問題庫的過程中,需要大量的真實語料資料,真實語料資料中的語料資料是從人工客服與使用者的真實對話中提取的,真實語料資料中對語料資料的批註資料可以在人工對語料資料進行批註後得到,也可以在通過半監督式機器學習的方式對語料資料進行批註後得到。所進行的對語料資料的批註需要逐條對語料資料進行批註,批註資料包括語料資料的類型,例如該條語料資料屬於問題,或者屬於回答,或者屬於其他(如與問答無關的問候、聊天等)。批註資料還包括語料資料所對應的回答參數,當語料資料為問題語料時,則語料資料所對應的回答參數代表該條問題語料所對應的回答參數,例如語料資料為“你要去哪裡”,則該條語料資料的批註資料為“問題,目的地資訊”,則代表“你要去哪裡”這條語料資料為與目的地資訊對應的問題語料。而當語料資料為回答語料時,則語料資料所對應的回答參數代表該條回答語料所包括的回答參數。 In the process of training to generate the problem database, a large amount of real corpus data is needed. The corpus data in the real corpus data is extracted from the real conversation between the artificial customer service and the user. Annotated data can be obtained after annotating the corpus manually, or after annotating the corpus through semi-supervised machine learning. The annotated corpus data needs to be annotated one by one. The annotated data includes the type of corpus data. For example, the corpus data is a question, or an answer, or other (such as unrelated to the question and answer Greetings, chats, etc.). The annotation data also includes the answer parameters corresponding to the corpus data. When the corpus data is a question corpus, the answer parameters corresponding to the corpus data represent the answer parameters corresponding to the question corpus. For example, the corpus data is " "Where are you going?", The annotated data of this corpus data is "problem, destination information", which means that "Where are you going?" This corpus data is a question corpus corresponding to the destination information. When the corpus data is the answer corpus, the answer parameters corresponding to the corpus data represent the answer parameters included in the answer corpus.

在實際應用中,每條真實語料資料可以封裝為一個結構體,逐條接收真實語料資料,並進行後續步驟的處理。 In practical applications, each piece of real corpus data can be encapsulated into a structure, and the real corpus data is received one by one, and the subsequent steps are processed.

步驟S302:根據語料資料的類型判斷語料資料是否為問題語料,若果是,進入步驟S303,若否,進入步驟S304。 Step S302: Determine whether the corpus data is a question corpus according to the type of the corpus data. If yes, go to step S303; if no, go to step S304.

在訓練生成問題庫的過程中,重點是需要各種回答參數的提問方式,將提問語料與相關的回答參數對接起來,因此需要從語料資料中獲得問題語料,在本實施例中可以通過讀取批註資料中的語料資料的類型來判斷語料資料是否為問題語料。 In the process of training to generate a question base, the emphasis is on the questioning methods that require various answer parameters. The question corpus is linked with the relevant answer parameters. Therefore, the question corpus needs to be obtained from the corpus data. In this embodiment, The type of the corpus data in the annotation data is read to determine whether the corpus data is a problem corpus.

步驟S303:獲得語料資料所對應的回答參數,將問題語料儲存至與語料資料所對應的問題集合中。 Step S303: Obtain answer parameters corresponding to the corpus data, and store the question corpus in a question set corresponding to the corpus data.

當語料資料為問題語料時,則可以獲得語料資料所對應的回答參數,即獲得該問題語料所對應的回答參數,並將該條問題語料儲存至與語料資料所對應的回答參數的問題集合中。當該條問題語料所對應的回答參數為一個時,則將該條問題語料儲存至與這一個回答參數對應的問題集合,例如,將“你要去哪裡”這條問題語料儲存至與“目的地資訊”對應的問題集合中。當該條問題語料所與對應的回答參數為多個時,則將該條問題語料儲存至與這些回答參數對應的問題集合,例如,將“你要從哪裡去哪裡”這條問題語料儲存至與“出發地資訊以及目的地資訊”對應的問題集合中。 When the corpus data is a question corpus, the answer parameters corresponding to the corpus data can be obtained, that is, the answer parameters corresponding to the question corpus are obtained, and the question corpus is stored to the corresponding corpus data. Answer parameter in question set. When the answer parameter corresponding to the question corpus is one, the question corpus is stored in the question set corresponding to the answer parameter, for example, the question corpus of "where are you going" is stored to In the question set corresponding to "Destination Information". When the question corpus has multiple corresponding answer parameters, the question corpus is stored in the question set corresponding to the answer parameters, for example, the question phrase "where are you going from?" The data is stored in the question set corresponding to the "departure point information and destination point information".

另外,即使問題語料重複出現也依然將問題語料儲存至相應的問題集合中,從而可以使問題集合中各個問題的出現頻率與真實語境中基本保持一致,例如,在提問目的地資訊時,80%的提問方式均為“你要去哪裡?”,則“你要去哪裡?”這個問題語料在與目的地資訊對應的問題集合中也占80%的比例,則在與目的地資訊對應的問題集合中選擇問題時,選中“你要去哪裡?”這個問題的可能性也為80%,使所選擇的問題也更為接近真實語境。 In addition, even if the question corpus appears repeatedly, the question corpus is still stored in the corresponding question set, so that the frequency of occurrence of each question in the question set is basically consistent with the real context, for example, when question destination information is asked 80% of the questions are "Where are you going?", Then "Where are you going?" The question corpus also accounts for 80% of the question set corresponding to the destination information, and it is related to the destination When selecting a question from the question set corresponding to the information, the probability of selecting the question "Where are you going?" Is also 80%, making the selected question closer to the real context.

步驟S304:判斷語料資料是否為回答語料,當語料資料為 回答語料,則儲存回答語料。 Step S304: Determine whether the corpus data is a response corpus, and when the corpus data is a response corpus, store the response corpus.

當語料資料不為問題語料時,則該語料資料可能為回答語料,也可能為其他語料,則可以通過語料資料的類型判斷該語料資料是否為回答語料,當語料資料為回答語料,對該回答語料進行儲存。另外,需要注意的是,步驟S304並不屬於生成問題庫的過程,在根據語料資料的類型判斷語料資料不為問題語料時,也可以不進行任何處理。 When the corpus data is not a question corpus, the corpus data may be the answer corpus, or it may be another corpus, you can judge whether the corpus data is the answer corpus by the type of the corpus data. The data is the answer corpus, and the answer corpus is stored. In addition, it should be noted that step S304 does not belong to the process of generating the question base. When determining that the corpus data is not a question corpus according to the type of the corpus data, no processing may be performed.

本揭示實施例在接收到輸入的語料資料以及對語料資料的批註資料後,可以自動提取出問題語料以及所對應的回答參數,建立包括與回答參數的問題集合的問題庫,從而在聊天服務中使得提問顯得更加人性和智慧。 After receiving the input corpus data and the annotation data of the corpus data, the embodiment of the present disclosure can automatically extract the question corpus and the corresponding answer parameters, and establish a question library including a question set with the answer parameters, so that The chat service makes questions more human and intelligent.

參見第4圖所示,其示出了本揭示一實施例中提供的資訊交互的裝置,包括:一確定單元401、一第一獲取單元402、一第二獲取單元403、以及一發送單元404。 Referring to FIG. 4, which shows an information interaction device provided in an embodiment of the present disclosure, including: a determining unit 401, a first obtaining unit 402, a second obtaining unit 403, and a sending unit 404 .

所述確定單元401用於確定第一目標回答參數,所述第一目標回答參數為未獲得與所述第一目標回答參數對應的請求參數的參數。 The determining unit 401 is configured to determine a first target answer parameter, where the first target answer parameter is a parameter for which no request parameter corresponding to the first target answer parameter is obtained.

所述第一獲取單元402用於從問題庫中獲取目標問題集合,所述目標問題集合為與所述第一目標回答參數對應的問題集合,所述目標問題集合包括至少一個回答參數,且所述目標問題集合包括有至少一個請求參數,所述請求參數用於請求使用者發送與所述請求參數對應的回答參數。 The first obtaining unit 402 is configured to obtain a target question set from a question database. The target question set is a question set corresponding to the first target answer parameter. The target question set includes at least one answer parameter, and all The target question set includes at least one request parameter, and the request parameter is used to request a user to send an answer parameter corresponding to the request parameter.

所述第二獲取單元403用於在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數。 The second obtaining unit 403 is configured to obtain at least one target request parameter corresponding to the first target answer parameter in the target question set.

所述發送單元404用於將所述目標請求參數發送給終端設備。 The sending unit 404 is configured to send the target request parameter to a terminal device.

在本揭示一些可能的實現方式中,當所述第一目標回答參數有n個時,所述第一獲取單元402可以具體用於:從所述問題庫中獲取所述 目標問題集合,所述目標問題集合與m個所述第一目標回答參數對應,其中n為大於或等於2的正整數,m為小於或等於n的正整數。 In some possible implementation manners of the present disclosure, when there are n first target answer parameters, the first obtaining unit 402 may be specifically configured to: obtain the target question set from the question library, where The target question set corresponds to m of the first target answer parameters, where n is a positive integer greater than or equal to 2 and m is a positive integer less than or equal to n.

在本揭示一些可能的實現方式中,所述第二獲取單元403可以具體用於:從所述目標問題集合中隨機選擇一個請求參數作為所述目標請求參數。 In some possible implementation manners of the present disclosure, the second obtaining unit 403 may be specifically configured to randomly select a request parameter from the target problem set as the target request parameter.

在本揭示一些可能的實現方式中,所述第二獲取單元403還可以具體用於:將所述目標請求參數輸入神經網路模型。 In some possible implementation manners of the present disclosure, the second obtaining unit 403 may be further specifically configured to input the target request parameter into a neural network model.

所述發送單元404還具體用於:將所述神經網路模型輸出的所述目標請求參數發送給所述終端設備。 The sending unit 404 is further specifically configured to send the target request parameter output by the neural network model to the terminal device.

在本揭示一些可能的實現方式中,本揭示實施例中提供的資訊交互的裝置還可以包括:一接收單元、一記錄單元、以及一判斷單元。 In some possible implementations of the present disclosure, the information interaction device provided in the embodiments of the present disclosure may further include a receiving unit, a recording unit, and a determining unit.

所述接收單元用於接收使用者發送的所述回答資訊。 The receiving unit is configured to receive the answer information sent by a user.

所述記錄單元用於從所述回答資訊中提取第二目標回答參數,所述第二目標回答參數為已獲得與所述第二目標回答參數對應的請求參數的參數。 The recording unit is configured to extract a second target answer parameter from the answer information, and the second target answer parameter is a parameter that has obtained a request parameter corresponding to the second target answer parameter.

所述判斷單元根據所述第二目標回答參數以及所需的回答參數,判斷是否存在所述第一目標回答參數,若存在所述第一目標回答參數,則所述確定單元從問題庫中獲取目標問題集合,若不存在所述第一目標回答參數,則根據所述第二目標回答參數提供相應的服務。 The judging unit judges whether the first target answer parameter exists according to the second target answer parameter and the required answer parameter, and if the first target answer parameter exists, the determining unit obtains from the question database For a target question set, if the first target answer parameter does not exist, a corresponding service is provided according to the second target answer parameter.

在本揭示一些可能的實現方式中,本揭示實施例中提供的資訊交互的裝置還可以包括:一訓練單元,用於根據輸入的真實語料資料訓練生成所述問題庫,所述真實語料資料包括語料資料以及對所述真實語料資料的批註資料,所述批註資料包括所述真實語料資料的類型以及所述真實語料資料所對應的回答參數。 In some possible implementation manners of the present disclosure, the apparatus for information interaction provided in the embodiments of the present disclosure may further include: a training unit for training to generate the question database according to the input real corpus data, the real corpus The data includes corpus data and annotated data on the real corpus data, and the annotated data includes the type of the real corpus data and answer parameters corresponding to the real corpus data.

在本揭示一些可能的實現方式中,訓練單元可以包括:一接收子單元、一判斷子單元、以及一儲存子單元。 In some possible implementations of the present disclosure, the training unit may include: a receiving subunit, a judging subunit, and a storing subunit.

所述接收子單元用於接收真實語料資料。 The receiving subunit is configured to receive real corpus data.

所述判斷子單元用於根據所述語料資料的類型判斷所述語料資料是否為問題語料。 The judging subunit is configured to judge whether the corpus data is a problem corpus according to the type of the corpus data.

所述儲存子單元用於若所述語料資料為問題語料,則獲得所述語料資料所對應的回答參數,將所述問題語料儲存至與所述語料資料所對應的問題集合中。 The storage subunit is configured to obtain answer parameters corresponding to the corpus data if the corpus data is a question corpus, and store the question corpus into a question set corresponding to the corpus data. in.

本揭示實施例在對未獲得的回答參數進行提問時,從問題庫中獲取與未獲得的回答參數對應的目標問題集合,該目標問題集合中包括有多個從真實語料資料中獲得的與未獲得的回答參數的對應的請求參數,根據問題庫中與未獲得的回答參數的目標問題集合,獲取一個與未獲得的回答參數的目標請求參數發送給使用者,可以讓使用者接收到的問題更為自然,貼近自然語言,提升了提問的智慧度。 In the embodiment of the present disclosure, when a question is asked about an unobtained answer parameter, a target question set corresponding to the unobtained answer parameter is obtained from the question library, and the target question set includes multiple and obtained from real corpus data. The corresponding request parameters of the unobtained answer parameters, according to the target question set in the question library and the unobtained answer parameters, obtain a target request parameter with the unobtained answer parameters and send it to the user, so that the user can receive the Questions are more natural and closer to natural language, increasing the wisdom of asking questions.

相應地,本揭示實施例還提供一種伺服器,參見第5圖所示,包括:一處理器501、一記憶體502、一輸入裝置503、以及一輸出裝置504。 Accordingly, the embodiment of the present disclosure further provides a server, as shown in FIG. 5, including a processor 501, a memory 502, an input device 503, and an output device 504.

伺服器中的處理器501的數量可以一個或多個,第5圖中以一個處理器為例。在本揭示的一些實施例中,處理器501、記憶體502、輸入裝置503和輸出裝置504可通過匯流排505或其它方式連接,第5圖中以通過匯流排505連接為例。 The number of processors 501 in the server may be one or more, and one processor is taken as an example in FIG. 5. In some embodiments of the present disclosure, the processor 501, the memory 502, the input device 503, and the output device 504 may be connected by using a bus 505 or other methods. In FIG.

記憶體502可用於儲存軟體程式以及模組。處理器501通過運行儲存在記憶體502的軟體程式以及模組,從而執行伺服器的各種功能應用以及資料處理。記憶體502可主要包括儲存程式區和儲存資料區,儲存程式區可儲存作業系統、至少一個功能所需的應用程式等。此外,記憶體502可以包括高速隨機存取記憶體(Random Access Memory,RAM),還可以包括非揮發性記憶體,例如至少一個磁碟記憶體件、快閃記憶體器件、或其他揮發性固態記憶體器件。輸入裝置503可用於接收輸入的數位或字元資訊,以及產生與伺服器的使用者設置以及功能控制有關的按鍵信號輸入。 The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing of the server by running software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, at least one application required by a function, and the like. In addition, the memory 502 may include high-speed random access memory (Random Access Memory, RAM), and may also include non-volatile memory, such as at least one magnetic disk memory device, flash memory device, or other volatile solid state memory. Memory device. The input device 503 can be used to receive inputted digital or character information, and generate key signal inputs related to user settings and function control of the server.

具體地,在本實施例中,處理器501會按照如下的指令將一個或一個以上的應用程式的進程所對應的可執行檔載入到記憶體502中,並由處理器501來運行儲存在記憶體502中的應用程式,從而實現各種功能:確定第一目標回答參數,所述第一目標回答參數為未獲得與所述第一目標回答參數對應的請求參數的參數;從問題庫中獲取目標問題集合,所述目標問題集合為與所述第一目標回答參數對應的問題集合,所述目標問題集合包括至少一個回答參數,且所述目標問題集合包括有至少一個請求參數,所述請求參數用於請求使用者發送與所述請求參數對應的回答參數;在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數;以及將所述目標請求參數發送給終端設備。 Specifically, in this embodiment, the processor 501 loads the executable files corresponding to one or more application processes into the memory 502 according to the following instructions, and the processor 501 runs and stores the executable files in the memory 502. An application in the memory 502 to implement various functions: determining a first target answer parameter, the first target answer parameter being a parameter for which no request parameter corresponding to the first target answer parameter has been obtained; obtained from the question base A target question set, the target question set being a question set corresponding to the first target answer parameter, the target question set including at least one answer parameter, and the target question set including at least one request parameter, the request The parameter is used to request the user to send an answer parameter corresponding to the request parameter; obtain at least one target request parameter corresponding to the first target answer parameter in the target question set; and send the target request parameter to Terminal Equipment.

相應地,當所述第一目標回答參數有n個時,所述從問題庫中獲取目標問題集合包括:從所述問題庫中獲取所述目標問題集合,所述目標問題集合與m個所述第一目標回答參數對應,其中n為大於或等於2的正整數,m為小於或等於n的正整數。 Correspondingly, when there are n first target answer parameters, the obtaining the target question set from the question library includes: obtaining the target question set from the question library, and the target question set is related to m The first target answer parameter corresponds, where n is a positive integer greater than or equal to 2 and m is a positive integer less than or equal to n.

相應地,所述在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數包括:從所述目標問題集合中隨機選擇一個請求參數作為所述目標請求參數。 Accordingly, the obtaining at least one target request parameter corresponding to the first target answer parameter in the target question set includes: randomly selecting a request parameter from the target question set as the target request parameter.

相應地,所述在所述目標問題集合中獲取至少一個與所述第一目標回答參數對應的目標請求參數包括:將所述目標請求參數輸入神經網路模型。 Accordingly, the obtaining at least one target request parameter corresponding to the first target answer parameter in the target question set includes: inputting the target request parameter into a neural network model.

相應地,所述將所述目標請求參數發送給終端設備包括:將所述神經網路模型輸出的所述目標請求參數發送給所述終端設備。 Accordingly, the sending the target request parameter to a terminal device includes: sending the target request parameter output by the neural network model to the terminal device.

相應地,所述指令還包括:接收使用者發送的所述回答資訊;從所述回答資訊中提取第二目標回答參數,所述第二目標回答參數為已獲得與所述第二目標回答參數對應的請求參數的參數;根據所述第二目標回答參數以及所需的回答參數,判斷是否存在所述第一目標回答參數; 若存在所述第一目標回答參數,則從問題庫中獲取目標問題集合;以及若不存在所述第一目標回答參數,則根據所述第二目標回答參數提供相應的服務。 Correspondingly, the instruction further includes: receiving the answer information sent by the user; extracting a second target answer parameter from the answer information, the second target answer parameter being obtained and the second target answer parameter Parameters of corresponding request parameters; determining whether the first target answer parameter exists according to the second target answer parameter and the required answer parameter; if the first target answer parameter exists, obtaining a target from the question base A set of questions; and if the first target answer parameter does not exist, a corresponding service is provided according to the second target answer parameter.

相應地,所述指令還包括:根據輸入的真實語料資料訓練生成所述問題庫,所述真實語料資料包括語料資料以及對所述真實語料資料的批註資料,所述批註資料包括所述真實語料資料的類型以及所述真實語料資料所對應的回答參數。 Correspondingly, the instruction further includes: generating the question database according to the input real corpus data training, the real corpus data including the corpus data and annotated data on the real corpus data, the annotated data includes The type of the real corpus material and the response parameters corresponding to the real corpus material.

相應地,所述根據輸入的真實語料資料訓練生成所述問題庫包括:接收真實語料資料;根據所述語料資料的類型判斷所述語料資料是否為問題語料;若所述語料資料為問題語料,則獲得所述語料資料所對應的回答參數;以及將所述問題語料儲存至與所述語料資料所對應的問題集合中。 Accordingly, the training to generate the question database based on the input real corpus data includes: receiving real corpus data; judging whether the corpus data is a question corpus according to the type of the corpus data; if the language If the data is a question corpus, the answer parameters corresponding to the corpus are obtained; and the question corpus is stored in a question set corresponding to the corpus.

本揭示實施例在對第一目標回答參數進行提問時,從問題庫中獲取與第一目標回答參數對應的目標問題集合,該目標問題集合中包括有多個從真實語料資料中獲得的與第一目標回答參數對應的目標請求參數,根據問題庫中與第一目標回答參數的目標問題集合,獲取一個與第一目標回答參數的目標請求參數發送給使用者,可以讓使用者接收到的目標請求參數更為自然,貼近自然語言,提升了提問的智慧度。 In the embodiment of the present disclosure, when a question is asked about the first target answer parameter, a target question set corresponding to the first target answer parameter is obtained from the question library, and the target question set includes multiple and obtained from real corpus data. According to the target request parameter corresponding to the first target answer parameter, according to the target question set in the question library and the first target answer parameter, obtain a target request parameter corresponding to the first target answer parameter and send it to the user. The target request parameters are more natural and close to natural language, which improves the wisdom of asking questions.

需要說明的是,本說明書中各個實施例採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似部分互相參見即可。對於實施例公開的系統或裝置而言,由於其與實施例公開的方法相對應,所以描述的比較簡單,相關之處參見方法部分說明即可。 It should be noted that each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may refer to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part may refer to the description of the method.

還需要說明的是,在本揭示中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順 序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、物品或者設備中還存在另外的相同要素。 It should also be noted that in this disclosure, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order between operations. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment including the elements.

結合本揭示中所公開的實施例描述的方法或演算法的步驟可以直接用硬體或處理器執行的軟體模組,或者二者的結合來實施。軟體模組可以置於隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read Only Memory,ROM)、可程式編碼唯讀記憶體(Programmable Read-Only Memory,PROM)、可電氣抹除可程式編碼唯讀記憶體(Electrically Erasable Programmable Read-Only Memory,EEPROM)、寄存器、硬碟、抽取式磁碟、唯讀光碟(Compact Disc Read-Only Memory,CD-ROM)、或本揭示所屬技術領域中所熟知的任意其它形式的儲存介質中。 The steps of the method or algorithm described in connection with the embodiments disclosed in this disclosure may be implemented directly by hardware or a software module executed by a processor, or a combination of the two. Software modules can be placed in Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), electrical Erase Electrically Erasable Programmable Read-Only Memory (EEPROM), registers, hard drives, removable disks, Compact Disc Read-Only Memory (CD-ROM), or this disclosure In any other form of storage medium known in the art.

雖然本揭示已用較佳實施例揭露如上,然其並非用以限定本揭示,本揭示所屬技術領域中具有通常知識者在不脫離本揭示之精神和範圍內,當可作各種之更動與潤飾,因此本揭示之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present disclosure has been disclosed as above with a preferred embodiment, it is not intended to limit the present disclosure. Those with ordinary knowledge in the technical field to which this disclosure belongs can make various changes and modifications without departing from the spirit and scope of this disclosure. Therefore, the scope of protection of this disclosure shall be determined by the scope of the appended patent application.

Claims (12)

一種資訊交互的方法,包括:確定一第一目標回答參數,其中所述第一目標回答參數未具有一請求參數,所述請求參數用於請求一使用者發送一回答參數;從一問題庫中獲取一目標問題集合,其中所述目標問題集合為與所述第一目標回答參數對應的問題集合,所述目標問題集合包括至少一請求參數;在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數;以及將所述目標請求參數發送給一終端設備,其中所述第一目標回答參數有n個,所述目標問題集合與m個所述第一目標回答參數對應,n為大於或等於2的正整數,m為小於或等於n的正整數,所述從所述問題庫中獲取所述目標問題集合的步驟包括:從所述問題庫中獲取與n個第一目標回答參數對應的目標問題集合。 A method for information interaction includes: determining a first target answer parameter, wherein the first target answer parameter does not have a request parameter, the request parameter is used to request a user to send an answer parameter; from a question database Obtaining a target question set, wherein the target question set is a question set corresponding to the first target answer parameter, the target question set includes at least one request parameter; and obtaining the target question set from the first question set At least one target request parameter corresponding to the target answer parameter; and sending the target request parameter to a terminal device, wherein there are n first target answer parameters, the target question set and m first target answers The parameters correspond to that n is a positive integer greater than or equal to 2 and m is a positive integer less than or equal to n. The step of obtaining the target question set from the question library includes: obtaining n from the question library and n A set of target questions corresponding to the first target answer parameters. 如申請專利範圍第1項所述之方法,其中所述在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數的步驟包括:從所述目標問題集合中隨機選擇一個請求參數作為所述目標請求參數。 The method of claim 1, wherein the step of obtaining at least one target request parameter corresponding to the first target response parameter in the target question set includes: randomly selecting from the target question set A request parameter is selected as the target request parameter. 如申請專利範圍第1項所述之方法,其中所述在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數的步驟包括:將所述目標請求參數輸入一神經網路模型,所述將所述目標請求參數發送給所述終端設備的步驟包括:將所述神經網路模型輸出的所述目標請求參數發送給所述終端設備。 The method of claim 1, wherein the step of obtaining at least one target request parameter corresponding to the first target answer parameter in the target question set includes: entering the target request parameter into a In a neural network model, the step of sending the target request parameter to the terminal device includes: sending the target request parameter output by the neural network model to the terminal device. 如申請專利範圍第1項所述之方法,還包括:接收所述使用者發送之所述回答資訊;從所述回答資訊中提取一第二目標回答參數,其中所述第二目標回答 參數為已獲得與所述第二目標回答參數對應之一請求參數的參數;根據所述第二目標回答參數以及所需的回答參數,判斷是否存在所述第一目標回答參數;若存在所述第一目標回答參數,則返回執行所述從所述問題庫中獲取所述目標問題集合的步驟;以及若不存在所述第一目標回答參數,則根據所述第二目標回答參數提供相應的服務。 The method according to item 1 of the scope of patent application, further comprising: receiving the answer information sent by the user; extracting a second target answer parameter from the answer information, wherein the second target answer The parameter is a parameter that has obtained one of the request parameters corresponding to the second target answer parameter; judging whether the first target answer parameter exists according to the second target answer parameter and the required answer parameter; if the first target answer parameter exists; A first target answer parameter, returning to performing the step of obtaining the target question set from the question library; and if the first target answer parameter does not exist, providing a corresponding one according to the second target answer parameter service. 如申請專利範圍第1項所述之方法,還包括:根據所輸入之真實語料資料訓練生成所述問題庫,其中所述真實語料資料包括一語料資料以及所述真實語料資料之一批註資料,所述批註資料包括所述真實語料資料的類型以及所述真實語料資料所對應的回答參數。 The method according to item 1 of the scope of patent application, further comprising: generating the question database according to the inputted real corpus data training, wherein the real corpus data includes a corpus data and the real corpus data. A batch of annotation data, the annotation data includes the type of the real corpus data and the answer parameters corresponding to the real corpus data. 如申請專利範圍第5項所述之方法,其中所述根據輸入的真實語料資料訓練生成所述問題庫的步驟包括:接收真實語料資料;根據所述語料資料的類型判斷所述語料資料是否為問題語料;若所述語料資料為問題語料,則獲得所述語料資料所對應的回答參數;以及將所述問題語料儲存至與所述語料資料所對應的問題集合中。 The method according to item 5 of the scope of patent application, wherein the step of generating the question database according to the input real corpus data includes: receiving real corpus data; judging the language according to the type of the corpus data Whether the corpus data is a question corpus; if the corpus data is a question corpus, obtaining answer parameters corresponding to the corpus data; and storing the question corpus to a corresponding corpus data Question collection. 一種資訊交互的裝置,包括:一確定單元,用於確定一第一目標回答參數,其中所述第一目標回答參數未具有一請求參數,所述請求參數用於請求一使用者發送一回答參數;一第一獲取單元,用於從一問題庫中獲取一目標問題集合,其中所述目標問題集合為與所述第一目標回答參數對應的問題集合,所述目標問題集合包括至少一請求參數;一第二獲取單元,用於在所述目標問題集合中獲取與所述第一目標回答參數對應之至少一目標請求參數;以及 一發送單元,用於將所述目標請求參數發送給一終端設備,其中所述第一目標回答參數有n個,所述目標問題集合與m個所述第一目標回答參數對應,n為大於或等於2的正整數,m為小於或等於n的正整數,所述第一獲取單元具體用於:從所述問題庫中獲取與n個第一目標回答參數對應的目標問題集合。 An information interaction device includes a determining unit for determining a first target response parameter, wherein the first target response parameter does not have a request parameter, and the request parameter is used to request a user to send a response parameter A first acquisition unit for acquiring a target question set from a question library, wherein the target question set is a question set corresponding to the first target answer parameter, and the target question set includes at least one request parameter A second obtaining unit, configured to obtain at least one target request parameter corresponding to the first target answer parameter in the target question set; and A sending unit, configured to send the target request parameter to a terminal device, wherein there are n first target response parameters, the target question set corresponds to m first target response parameters, and n is greater than Or a positive integer equal to 2, and m is a positive integer less than or equal to n, and the first obtaining unit is specifically configured to obtain a target question set corresponding to n first target answer parameters from the question database. 如申請專利範圍第7項所述之裝置,其中所述第二獲取單元具體用於:從所述目標問題集合中隨機選擇一個請求參數作為所述目標請求參數。 The device according to item 7 of the scope of patent application, wherein the second obtaining unit is specifically configured to randomly select a request parameter from the target problem set as the target request parameter. 如申請專利範圍第7項所述之裝置,其中所述第二獲取單元具體用於:將所述目標請求參數輸入一神經網路模型;所述發送單元具體用於:將所述神經網路模型輸出的所述目標請求參數發送給所述終端設備。 The device according to item 7 of the scope of patent application, wherein the second obtaining unit is specifically configured to: input the target request parameter into a neural network model; and the sending unit is specifically configured to: input the neural network The target request parameter output by the model is sent to the terminal device. 如申請專利範圍第7項所述之裝置,還包括:一接收單元,用於接收所述使用者發送之所述回答資訊;一記錄單元,用於從所述回答資訊中提取一第二目標回答參數,其中所述第二目標回答參數為已獲得與所述第二目標回答參數對應之一請求參數的參數;一判斷單元,根據所述第二目標回答參數以及所需的回答參數,判斷是否存在所述第一目標回答參數,若存在所述第一目標回答參數,所述確定單元從所述問題庫中獲取所數目標問題集合,若不存在所述第一目標回答參數,則根據所述第二目標回答參數提供相應的服務。 The device according to item 7 of the scope of patent application, further comprising: a receiving unit for receiving the answer information sent by the user; a recording unit for extracting a second target from the answer information Answer parameter, wherein the second target answer parameter is a parameter that has obtained one of the request parameters corresponding to the second target answer parameter; a judgment unit determines according to the second target answer parameter and the required answer parameter Whether the first target answer parameter exists, and if the first target answer parameter exists, the determining unit obtains the number of target question sets from the question library; if the first target answer parameter does not exist, The second target answer parameter provides a corresponding service. 如申請專利範圍第7項所述之裝置,還包括:一訓練單元,用於根據所輸入之真實語料資料訓練生成所述問題庫,其中所述真實語料資料包括一語料資料以及所述真實語料資料之一批註資 料,所述批註資料包括所述真實語料資料的類型以及所述真實語料資料所對應的回答參數。 The device according to item 7 of the scope of the patent application, further comprising: a training unit for generating the question database according to the input real corpus data, wherein the real corpus data includes a corpus data and the Capital injection The annotation data includes the type of the real corpus data and the answer parameters corresponding to the real corpus data. 如申請專利範圍第11項所述之裝置,其中所述訓練單元包括:一接收子單元,用於接收真實語料資料;一判斷子單元,用於根據所述語料資料的類型判斷所述語料資料是否為問題語料;以及一儲存子單元,用於若所述語料資料為問題語料,則獲得所述語料資料所對應的回答參數,將所述問題語料儲存至與所述語料資料所對應的問題集合中。 The device according to item 11 of the scope of patent application, wherein the training unit includes: a receiving sub-unit for receiving real corpus data; and a judging sub-unit for judging the type according to the type of the corpus data Whether the corpus data is a question corpus; and a storage sub-unit for obtaining the answer parameters corresponding to the corpus data if the corpus data is a question corpus, and storing the question corpus to and In the question set corresponding to the corpus data.
TW107105644A 2017-03-02 2018-02-14 Information interaction method and device TWI674517B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710120806.8A CN106909677B (en) 2017-03-02 2017-03-02 Method and device for generating question
??201710120806.8 2017-03-02

Publications (2)

Publication Number Publication Date
TW201833730A TW201833730A (en) 2018-09-16
TWI674517B true TWI674517B (en) 2019-10-11

Family

ID=59186099

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107105644A TWI674517B (en) 2017-03-02 2018-02-14 Information interaction method and device

Country Status (3)

Country Link
CN (1) CN106909677B (en)
TW (1) TWI674517B (en)
WO (1) WO2018157695A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI784791B (en) * 2020-12-17 2022-11-21 日商樂天集團股份有限公司 Question management system, question management method and program product

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909677B (en) * 2017-03-02 2020-09-08 腾讯科技(深圳)有限公司 Method and device for generating question
TWI688873B (en) * 2019-01-09 2020-03-21 國立臺灣科技大學 Enviromental information question and answer system and method
CN110941696A (en) * 2019-11-12 2020-03-31 北京华宇信息技术有限公司 Query method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030216919A1 (en) * 2002-05-13 2003-11-20 Roushar Joseph C. Multi-dimensional method and apparatus for automated language interpretation
TW201003421A (en) * 2008-04-28 2010-01-16 Alexandria Invest Res And Technology Llc Adaptive knowledge platform
US20100070276A1 (en) * 2008-09-16 2010-03-18 Nice Systems Ltd. Method and apparatus for interaction or discourse analytics
CN101676909A (en) * 2008-09-16 2010-03-24 联想(北京)有限公司 Method and computer for providing self-service for users
CN105068661A (en) * 2015-09-07 2015-11-18 百度在线网络技术(北京)有限公司 Man-machine interaction method and system based on artificial intelligence
CN105744057A (en) * 2016-01-21 2016-07-06 平安科技(深圳)有限公司 Intelligent voice dialogue interaction method and intelligent voice dialogue interaction device
TW201703025A (en) * 2015-03-26 2017-01-16 英特爾股份有限公司 Method and system of environment-sensitive automatic speech recognition

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7043439B2 (en) * 2000-03-29 2006-05-09 Canon Kabushiki Kaisha Machine interface
CN102023995B (en) * 2009-09-22 2013-01-30 株式会社理光 Speech retrieval apparatus and speech retrieval method
CN104090907B (en) * 2014-05-28 2017-06-09 北京百度网讯科技有限公司 A kind of method and apparatus for providing a user with information
CN104657463B (en) * 2015-02-10 2018-04-27 乐娟 Question Classification method and device applied to automatically request-answering system
US10586156B2 (en) * 2015-06-25 2020-03-10 International Business Machines Corporation Knowledge canvassing using a knowledge graph and a question and answer system
CN105512228B (en) * 2015-11-30 2018-12-25 北京光年无限科技有限公司 A kind of two-way question and answer data processing method and system based on intelligent robot
CN106227740A (en) * 2016-07-12 2016-12-14 北京光年无限科技有限公司 A kind of data processing method towards conversational system and device
CN106909677B (en) * 2017-03-02 2020-09-08 腾讯科技(深圳)有限公司 Method and device for generating question

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030216919A1 (en) * 2002-05-13 2003-11-20 Roushar Joseph C. Multi-dimensional method and apparatus for automated language interpretation
TW201003421A (en) * 2008-04-28 2010-01-16 Alexandria Invest Res And Technology Llc Adaptive knowledge platform
US20100070276A1 (en) * 2008-09-16 2010-03-18 Nice Systems Ltd. Method and apparatus for interaction or discourse analytics
CN101676909A (en) * 2008-09-16 2010-03-24 联想(北京)有限公司 Method and computer for providing self-service for users
TW201703025A (en) * 2015-03-26 2017-01-16 英特爾股份有限公司 Method and system of environment-sensitive automatic speech recognition
CN105068661A (en) * 2015-09-07 2015-11-18 百度在线网络技术(北京)有限公司 Man-machine interaction method and system based on artificial intelligence
CN105744057A (en) * 2016-01-21 2016-07-06 平安科技(深圳)有限公司 Intelligent voice dialogue interaction method and intelligent voice dialogue interaction device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI784791B (en) * 2020-12-17 2022-11-21 日商樂天集團股份有限公司 Question management system, question management method and program product

Also Published As

Publication number Publication date
CN106909677A (en) 2017-06-30
CN106909677B (en) 2020-09-08
WO2018157695A1 (en) 2018-09-07
TW201833730A (en) 2018-09-16

Similar Documents

Publication Publication Date Title
TWI674517B (en) Information interaction method and device
JP6799574B2 (en) Method and device for determining satisfaction with voice dialogue
US10937413B2 (en) Techniques for model training for voice features
US9582757B1 (en) Scalable curation system
US11100934B2 (en) Method and apparatus for voiceprint creation and registration
US10803850B2 (en) Voice generation with predetermined emotion type
WO2019062001A1 (en) Intelligent robotic customer service method, electronic device and computer readable storage medium
WO2019084810A1 (en) Information processing method and terminal, and computer storage medium
CN110970021B (en) Question-answering control method, device and system
WO2018214895A1 (en) Data processing method, data processing apparatus, storage device and network device
CN109284502B (en) Text similarity calculation method and device, electronic equipment and storage medium
CN109165336B (en) Information output control method and family education equipment
US20120221656A1 (en) Tracking message topics in an interactive messaging environment
CN111078856B (en) Group chat conversation processing method and device and electronic equipment
CN111753075A (en) Method and device for creating question and answer data of customer service robot and computer equipment
CN109615009B (en) Learning content recommendation method and electronic equipment
US20190295199A1 (en) Intelligent legal simulator
CN109739969A (en) Answer generation method and intelligent conversational system
CN113486166B (en) Construction method, device and equipment of intelligent customer service robot and storage medium
CN112151034B (en) Voice control method and device of equipment, electronic equipment and storage medium
CN108351868A (en) The interactive content provided for document generates
CN112784022B (en) Government affair FAQ knowledge base automatic construction method and device and electronic equipment
CA3026936A1 (en) Systems and methods for performing automated interactive conversation with a user
US9547995B1 (en) Dynamic instructional course
CN117370512A (en) Method, device, equipment and storage medium for replying to dialogue