JP6731513B1 - Chat management method, chat system, future intention prediction server device, answer generation server device, and program - Google Patents
Chat management method, chat system, future intention prediction server device, answer generation server device, and program Download PDFInfo
- Publication number
- JP6731513B1 JP6731513B1 JP2019083266A JP2019083266A JP6731513B1 JP 6731513 B1 JP6731513 B1 JP 6731513B1 JP 2019083266 A JP2019083266 A JP 2019083266A JP 2019083266 A JP2019083266 A JP 2019083266A JP 6731513 B1 JP6731513 B1 JP 6731513B1
- Authority
- JP
- Japan
- Prior art keywords
- intention
- future
- answer
- server device
- history
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 56
- 238000000034 method Methods 0.000 claims abstract description 34
- 230000008569 process Effects 0.000 claims abstract description 9
- 238000013523 data management Methods 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 40
- 230000006870 function Effects 0.000 claims description 25
- 230000007704 transition Effects 0.000 claims description 20
- 238000010801 machine learning Methods 0.000 claims description 17
- 238000010586 diagram Methods 0.000 abstract description 27
- 238000012545 processing Methods 0.000 description 24
- 230000005540 biological transmission Effects 0.000 description 20
- 238000013500 data storage Methods 0.000 description 13
- 230000004048 modification Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 239000012634 fragment Substances 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000877 morphologic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
【課題】例えば一連の複数の質問が投げかけられるような状況において、ユーザーの未来の意図に応じた答弁を自動的に生成することのできるチャット管理方法を提供する。【解決手段】第1過程において、端末装置側で質問を受け付ける。第2過程において、装置が、前記質問に対応する現在意図を推論する。第3過程において、装置が、前記端末装置に関連付けられる過去の意図の履歴を予め記憶しておき、過去の意図の履歴と未来意図との関係とを参照することによって、前記現在意図と記憶しておいた前記過去の履歴とに基づいて、未来意図を予測する。第4過程において、装置が、前記現在意図と、予測された前記未来意図とに基づいて答弁を生成する。第5過程において、前記端末装置が、生成された前記答弁を出力する。【選択図】図1PROBLEM TO BE SOLVED: To provide a chat management method capable of automatically generating an answer according to a user's future intention in a situation where a series of plural questions are asked. SOLUTION: In a first process, a terminal device side accepts a question. In the second step, the device infers the current intent corresponding to the question. In the third step, the device stores in advance a history of past intentions associated with the terminal device, and stores the current intention by referring to a history of past intentions and a relationship between future intentions. The future intention is predicted based on the saved past history. In the fourth step, the device generates an answer based on the present intention and the predicted future intention. In a fifth step, the terminal device outputs the generated reply. [Selection diagram] Figure 1
Description
本発明は、チャット管理方法、チャットシステム、未来意図予測サーバー装置、答弁生成サーバー装置、およびプログラムに関する。 The present invention relates to a chat management method, a chat system, a future intention prediction server device, an answer generation server device, and a program.
いわゆるチャットボットを用いた自動応答のシステムが広く利用され始めている。チャットボットシステムは、ユーザー等が操作する端末装置からの質問に応じて、その質問への答弁を自動的に生成し、端末装置に返すものである。ここで、質問や答弁は、例えばテキストデータの形態をとる。チャットボットシステムは、様々な質問に対応するためのデータを予め記憶している。一例として、チャットボットシステムは、機械学習の技術を用いて予め構築した学習モデルを備えている。このようなチャットボットシステムは、端末装置から送られた質問に対して、機械学習済みの学習モデルを適用することによって、答弁を生成する。 An automatic response system using a so-called chatbot has begun to be widely used. The chatbot system automatically generates a reply to a question in response to a question from a terminal device operated by a user or the like and returns the answer to the terminal device. Here, the question and the answer take the form of text data, for example. The chatbot system stores in advance data for responding to various questions. As an example, the chatbot system includes a learning model pre-built using a machine learning technique. Such a chatbot system generates an answer by applying a machine-learned learning model to a question sent from a terminal device.
例えば、特許文献1には、次のような推論エンジン部を備える自動応答サーバー装置が記載されている。即ち、推論エンジン部は、端末装置から送信された入力解釈用知識データを用いて、応答断片を推定し、推定された応答断片に対応する応答用知識データを記憶部から読み出すことによって、応答を出力する。
For example,
また、特許文献1の段落0060から0063には、分野ツリーの構成について記載されている。即ち、特許文献1では、階層構成を有する分野ツリーについて述べられている。この技術では、機械学習のためのデータ(チャットパターンのプロトタイプ)を、分野ツリー上のノードに関連付けている。
Further, paragraphs 0060 to 0063 of
以上のような従来技術では、チャットボットシステムは、必ずしもユーザーが望む最適な答弁を生成できるわけではない。一般的に、チャットボットシステムは、端末装置等から送られる質問に対して、応答を生成する。即ち、「質問→応答」のシーケンスが実行される。このシーケンスは、複数回繰り返されてもよい。その結果、「質問→応答→質問→応答→質問→応答→・・・」といったシーケンスが実行される。 In the above-described conventional techniques, the chatbot system cannot always generate the optimum answer desired by the user. Generally, a chatbot system generates a response to a question sent from a terminal device or the like. That is, the sequence of “question→answer” is executed. This sequence may be repeated multiple times. As a result, the sequence of “question→response→question→response→question→response→...” Is executed.
しかしながら、従来技術では、チャットボットシステムは、直近の質問のみに応じた答弁を生成する。つまり、従来技術では、チャットボットシステムは、一連のシーケンスにおける質問の意図の連鎖(推移)に応じた答弁を生成することはない。また、従来技術では、チャットボットシステムは、ユーザーの未来の意図(現在投げかけられている質問よりも時間的に後の質問の意図)に応じた答弁を生成することはない。しかしながら、このようなユーザーの未来の意図に応じた答弁をチャットボットシステムが生成するようにしたほうが、ユーザーにとっては便利である。 However, in the prior art, the chatbot system generates an answer only for the most recent question. That is, in the related art, the chatbot system does not generate an answer according to the chain (transition) of the intention of the question in the series of sequences. Further, in the related art, the chatbot system does not generate a reply according to the user's future intention (the intention of the question that is later in time than the question currently being posed). However, it is more convenient for the user to have the chatbot system generate an answer according to the user's future intention.
この発明は、上記のような事情を考慮して為されたものである。即ち、この発明は、例えば一連の複数の質問が投げかけられるような状況において、ユーザーの未来の意図に応じた答弁を自動的に生成することのできるチャット管理方法、チャットシステム、未来意図予測サーバー装置、答弁生成サーバー装置、およびプログラムを提供しようとするものである。 The present invention has been made in consideration of the above circumstances. That is, the present invention is, for example, a chat management method, a chat system, and a future intention prediction server device capable of automatically generating an answer according to a user's future intention in a situation where a series of multiple questions are posed. , An answer generation server device, and a program.
[1]上記の課題を解決するため、本発明の一態様によるチャット管理方法は、端末装置側で質問を受け付ける第1過程と、装置が、前記質問に対応する現在意図を推論する第2過程と、装置が、前記端末装置に関連付けられる過去の意図の履歴を予め記憶しておき、過去の意図の履歴と未来意図との関係とを参照することによって、前記現在意図と記憶しておいた前記過去の履歴とに基づいて、未来意図を予測する第3過程と、装置が、前記現在意図と、予測された前記未来意図とに基づいて答弁を生成する第4過程と、前記端末装置が、生成された前記答弁を出力する第5過程と、を含む。 [1] To solve the above problems, a chat management method according to an aspect of the present invention includes a first step of accepting a question on a terminal device side and a second step of allowing the device to infer a current intention corresponding to the question. And a device previously stores a history of past intentions associated with the terminal device, and stores the current intention by referring to a history of past intentions and a relationship between future intentions. A third step of predicting a future intention based on the past history; a fourth step in which the device generates an answer based on the present intention and the predicted future intention; and the terminal device. And a fifth step of outputting the generated answer valve.
[2]また、本発明の一態様は、上記のチャット管理方法において、前記第3過程において、前記未来意図を予測する際に、複数の系統の未来意図を予測し、前記第4過程において、答弁を生成する際に、前記複数の系統の未来意図のうちの1つまたは複数を選択して選択された系統の未来意図についての答弁を生成し、または、前記複数の系統の未来意図のそれぞれについての答弁を生成する、ことを特徴とするものである。 [2] Further, according to an aspect of the present invention, in the chat management method described above, when predicting the future intention in the third step, future intentions of a plurality of systems are predicted, and in the fourth step, When generating an answer, one or more of the future intentions of the plurality of systems is selected to generate an answer about the future intention of the selected system, or each of the future intentions of the plurality of systems is generated. It is characterized by generating an answer for.
[3]また、本発明の一態様は、上記のチャット管理方法において、前記第3過程において、前記未来意図を予測する際に、当該未来意図の確率値をも算出し、前記第4過程において、前記複数の系統の未来意図のうちの1つまたは複数を選択する際に、算出された前記確率値に基づく選択を行う、ことを特徴とするものである。 [3] Further, according to an aspect of the present invention, in the chat management method, in the third step, when predicting the future intention, a probability value of the future intention is also calculated, and in the fourth step. When selecting one or more of the future intentions of the plurality of systems, selection based on the calculated probability value is performed.
[4]また、本発明の一態様は、上記のチャット管理方法において、前記第1過程において、前記端末装置は、テキストデータによる質問の入力を受け付けるものであり、前記第5過程において、前記端末装置は、テキストデータを画面に表示する形で前記答弁を出力するものである、ことを特徴とする。 [4] Another aspect of the present invention is the chat management method described above, wherein in the first step, the terminal device receives an input of a question by text data, and in the fifth step, the terminal device. The device is characterized by outputting the answer in the form of displaying text data on a screen.
[5]また、本発明の一態様は、上記のチャット管理方法において、前記第1過程において、前記端末装置は、音声データによる質問の入力を受け付けるものであり、前記第5過程において、前記端末装置は、音声データを音声として出力する形で前記答弁を出力するものである、ことを特徴とする。 [5] Another aspect of the present invention is the chat management method described above, wherein in the first step, the terminal device receives an input of a question by voice data, and in the fifth step, the terminal is used. The device is characterized by outputting the answer in the form of outputting voice data as voice.
[6]また、本発明の一態様は、上記のチャット管理方法において、前記第3過程において、前記現在意図を、前記端末装置に関連付けられる過去の意図の履歴の一部として記憶手段に書き込む、ことを特徴とするものである。 [6] Another aspect of the present invention is the chat management method described above, wherein in the third step, the present intention is written in a storage unit as a part of a history of past intentions associated with the terminal device. It is characterized by that.
[7]また、本発明の一態様は、チャットサーバー装置と、意図推論サーバー装置と、未来意図予測サーバー装置と、答弁生成サーバー装置とを含んで構成されるチャットシステムであって、前記チャットサーバー装置は、外部から質問を受信し、受信した前記質問を前記意図推論サーバー装置に対して送信し、前記意図推論サーバー装置から前記質問に対応する現在意図を受信し、受信した前記現在意図を前記未来意図予測サーバー装置に送信し、前記未来意図予測サーバー装置から前記現在意図に基づいて予測された未来意図を受信し、前記現在意図および前記未来意図を含む答弁生成依頼を前記答弁生成サーバー装置に送信し、前記答弁生成サーバー装置から前記答弁生成依頼に対応する答弁を受信し、前記答弁を外部に送信するものであり、前記意図推論サーバー装置は、前記チャットサーバー装置から送信された前記質問に対応する前記現在意図を推論して、前記チャットサーバー装置に前記現在意図を送信するものであり、前記未来意図予測サーバー装置は、予め記憶された過去の意図の履歴と、前記チャットサーバー装置から受信した前記現在意図に基づいて、前記未来意図を予測し、予測された前記未来意図を前記チャットサーバー装置に送信するものであり、前記答弁生成サーバー装置は、チャットサーバー装置から前記答弁生成依頼を受信し、前記答弁生成依頼に含まれる前記現在意図と前記未来意図とに基づいて、前記質問への答弁を生成し、生成された前記答弁を前記チャットサーバー装置に送信するものである。 [7] Another aspect of the present invention is a chat system including a chat server device, an intention inference server device, a future intention prediction server device, and an answer generation server device. The apparatus receives a question from the outside, sends the received question to the inference reasoning server apparatus, receives a current intention corresponding to the question from the intention inference server apparatus, and receives the received current intention. Sending to a future intention prediction server device, receiving a future intention predicted based on the present intention from the future intention prediction server device, and a reply generation request including the present intention and the future intention to the reply generation server device. It transmits, receives the answer corresponding to the answer generation request from the answer generation server device, and transmits the answer to the outside, the intention inference server device, in response to the question transmitted from the chat server device. The current intention is transmitted to the chat server device by inferring the corresponding present intention, and the future intention prediction server device receives the history of past intentions stored in advance and the chat server device from the chat server device. The future intention is predicted based on the present intention, and the predicted future intention is transmitted to the chat server device, and the answer generation server device receives the answer generation request from the chat server device. However, the answer to the question is generated based on the present intention and the future intention included in the answer generation request, and the generated answer is transmitted to the chat server device.
[8]また、本発明の一態様は、上記のチャットシステムにおいて、前記チャットサーバー装置が前記答弁生成サーバー装置に送信する前記答弁生成依頼には、前記現在意図および前記未来意図に加えて、前記質問をも含むものであり、前記答弁生成サーバー装置は、前記現在意図と前記未来意図とに加えて、前記質問にも基づいて、前記質問への答弁を生成する、ものである。 [8] Further, according to an aspect of the present invention, in the chat system, the answer generation request transmitted from the chat server device to the answer generation server device includes the present intention and the future intention in addition to the present intention. It also includes a question, and the answer generation server device generates an answer to the question based on the question in addition to the present intention and the future intention.
[9]また、本発明の一態様は、上記のチャットシステムにおいて、前記未来意図予測サーバー装置は、前記未来意図を予測する際に、複数の系統の未来意図を予測するものであり、前記答弁生成サーバー装置は、前記答弁を生成する際に、前記複数の系統の未来意図のうちの1つまたは複数を選択して選択された系統の未来意図についての答弁を生成し、または、前記複数の系統の未来意図のそれぞれについての答弁を生成する、ものである。 [9] Further, according to an aspect of the present invention, in the chat system, the future intention prediction server device predicts future intentions of a plurality of systems when predicting the future intention. When generating the reply, the generation server device selects one or more of the future intentions of the plurality of systems and generates a reply about the future intention of the selected system, or It is to generate an answer for each of the future intentions of the system.
[10]また、本発明の一態様は、上記のチャットシステムにおいて、前記未来意図予測サーバー装置は、前記未来意図を予測する際に、当該未来意図の確率値をも算出し、前記答弁生成サーバー装置は、前記複数の系統の未来意図のうちの1つまたは複数を選択する際に、算出された前記確率値に基づく選択を行う、ものである。 [10] Further, according to an aspect of the present invention, in the chat system, the future intention prediction server device also calculates a probability value of the future intention when predicting the future intention, and the answer generation server. The apparatus is configured to make a selection based on the calculated probability value when selecting one or a plurality of future intentions of the plurality of systems.
[11]また、本発明の一態様は、上記のチャットシステムにおいて、前記未来意図予測サーバー装置は、意図の履歴を記憶する個別履歴管理部と、意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する意図履歴データ管理部と、前記チャットサーバー装置から受信した前記現在意図を、前記意図の履歴の一部として前記個別履歴管理部に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、前記意図履歴データ管理部を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を前記意図履歴データ管理部から読み出し、当該未来意図を、予測された前記未来意図を出力する未来意図予測部と、を含んで構成されるものである。 [11] Further, according to an aspect of the present invention, in the above chat system, the future intention prediction server device includes an individual history management unit that stores a history of intentions, a transition of history of intentions, and a history of the history of intentions. An intention history data management unit that stores a future intention candidate associated with a transition, and the current intention received from the chat server device are written to the individual history management unit as a part of the history of the intention and the individual By referring to the intention history data management unit based on the history of the intention stored in the history management unit and the current intention, the future intention associated with the transition of the history of the intention is defined as the intention history. The future intention prediction unit reads out the future intention from the data management unit and outputs the predicted future intention.
[12]また、本発明の一態様は、チャットシステムにおける質問に対応する意図の履歴を記憶する個別履歴管理部と、意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する意図履歴データ管理部と、外部から受信した現在意図を、前記意図の履歴の一部として前記個別履歴管理部に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、前記意図履歴データ管理部を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を前記意図履歴データ管理部から読み出し、当該未来意図を、予測された前記未来意図として出力する未来意図予測部と、を含む未来意図予測サーバー装置である。 [12] Further, according to an aspect of the present invention, an individual history management unit that stores a history of intentions corresponding to questions in a chat system, a history of intentions, and a future intention associated with the history of intentions are stored. An intention history data management unit that stores candidates and a current intention received from the outside are written in the individual history management unit as a part of the history of the intention, and the history of the intention stored in the individual history management unit Based on the present intention, by referring to the intention history data management unit, the future intention associated with the transition of the history of the intention is read from the intention history data management unit, and the future intention, It is a future intention prediction server device including a future intention prediction unit that outputs the predicted future intention.
[13]また、本発明の一態様は、チャットシステムにおける質問に対応する意図である現在意図と、前記意図の過去の履歴に基づいて予測された意図である未来意図とに基づいて、前記質問に対応する答弁を生成するためのデータを管理する答弁データ管理部と、外部から受信された前記現在意図および前記未来意図に基づいて、前記答弁データ管理部を参照することによって答弁を生成し出力する答弁生成部と、を具備する答弁生成サーバー装置である。 [13] Further, according to an aspect of the present invention, the question is based on a present intention, which is an intention corresponding to a question in a chat system, and a future intention, which is an intention predicted based on a past history of the intention. A response data management unit that manages data for generating a response, and based on the current intention and the future intention received from the outside, generates and outputs a response by referring to the response data management unit. And an answer reply generation server device.
[14]また、本発明の一態様は、端末装置側で質問を受け付ける第1過程と、装置が、前記質問に対応する現在意図を推論する第2過程と、装置が、前記端末装置に関連付けられる過去の意図の履歴を予め記憶しておき、過去の意図の履歴と未来意図との関係とを参照することによって、前記現在意図と記憶しておいた前記過去の履歴とに基づいて、未来意図を予測する第3過程と、装置が、前記現在意図と、予測された前記未来意図とに基づいて答弁を生成する第4過程と、前記端末装置が、生成された前記答弁を出力する第5過程と、の処理をコンピューターに実行させるプログラムである。 [14] Further, according to one aspect of the present invention, a first step of accepting a question on the terminal device side, a second step of the device inferring a current intention corresponding to the question, and a device associated with the terminal device. A history of past intentions is stored in advance, and by referring to the relationship between the history of past intentions and future intentions, the future based on the present intentions and the stored past history is stored. A third step of predicting an intention, a fourth step in which the device generates an answer based on the present intention and the predicted future intention, and a step in which the terminal device outputs the generated answer. It is a program that causes a computer to execute the processing of 5 steps.
[15]また、本発明の一態様は、チャットシステムにおける質問に対応する意図の履歴を記憶する個別履歴管理部と、意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する意図履歴データ管理部と、外部から受信した現在意図を、前記意図の履歴の一部として前記個別履歴管理部に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、前記意図履歴データ管理部を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を前記意図履歴データ管理部から読み出し、当該未来意図を、予測された前記未来意図として出力する未来意図予測部と、を含む未来意図予測サーバー装置としてコンピューターを機能させるためのプログラムである。 [15] Further, according to one aspect of the present invention, an individual history management unit that stores a history of intentions corresponding to questions in a chat system, a history of intentions, and a future intention associated with the history of intentions are stored. An intention history data management unit that stores candidates and a current intention received from the outside are written in the individual history management unit as a part of the history of the intention, and the history of the intention stored in the individual history management unit Based on the present intention, by referring to the intention history data management unit, the future intention associated with the transition of the history of the intention is read from the intention history data management unit, and the future intention, A program for causing a computer to function as a future intention prediction server device including a future intention prediction unit that outputs the predicted future intention.
[16]また、本発明の一態様は、チャットシステムにおける質問に対応する意図である現在意図と、前記意図の過去の履歴に基づいて予測された意図である未来意図とに基づいて、前記質問に対応する答弁を生成するためのデータを管理する答弁データ管理部と、外部から受信された前記現在意図および前記未来意図に基づいて、前記答弁データ管理部を参照することによって答弁を生成し出力する答弁生成部と、を具備する答弁生成サーバー装置としてコンピューターを機能させるためのプログラムである。 [16] Further, according to an aspect of the present invention, the question is based on a present intention, which is an intention corresponding to a question in a chat system, and a future intention, which is a predicted intention based on a past history of the intention. A response data management unit that manages data for generating a response, and based on the current intention and the future intention received from the outside, generates and outputs a response by referring to the response data management unit. Is a program for causing a computer to function as an answer generation server device including an answer generation unit.
本発明によれば、チャットシステムは、現在の質問に対応するだけでなく、予測される未来の意図にも対応する答弁を生成することができる。 According to the present invention, the chat system can generate an answer not only for the current question, but also for the expected future intent.
次に、本発明の実施形態について、図面を参照しながら説明する。 Next, embodiments of the present invention will be described with reference to the drawings.
図1は、本実施形態によるチャットシステムの概略構成と、システムが動作する際に手順の概略を示す構成図である。図示するように、チャットシステム1は、端末装置11と、チャットサーバー装置12と、意図推論サーバー装置13と、未来意図予測サーバー装置14と、答弁生成サーバー装置15とを含んで構成される。これらの装置は、通信ネットワーク等を用いて、相互に通信可能である。
FIG. 1 is a configuration diagram showing a schematic configuration of a chat system according to the present embodiment and a procedure for operating the system. As illustrated, the
端末装置11は、チャットサーバー装置12に対して質問を送信する。端末装置11は、その質問への応答として、チャットサーバー装置12から答弁を受信する。この質問および答弁は、例えば、自然言語で記述されたテキストデータである。端末装置11が送信する質問は、例えば、ユーザーによって入力された文等である。端末装置11は、具体的には、PC(パーソナルコンピューター)や、タブレット端末装置や、スマートフォンや、ウォッチ型端末装置や、スマートスピーカー等を用いて実現される。図1においては1台の端末装置11のみを示しているが、チャットシステム1内における端末装置11の台数は任意である。
The
チャットサーバー装置12は、端末装置11から送信された質問を受信し、意図推論サーバー装置13や未来意図予測サーバー装置14や答弁生成サーバー装置15と連携しながら、その質問に対応する答弁を、端末装置11に送信する。チャットサーバー装置12は、意図推論サーバー装置13に対して質問のデータを送信し、その応答として意図推論サーバー装置13から現在意図のデータを受け取る。チャットサーバー装置12は、未来意図予測サーバー装置14に対して現在意図のデータを送信し、その応答として未来意図予測サーバー装置14から未来意図のデータを受信する。チャットサーバー装置12は、答弁生成サーバー装置15に対して答弁生成依頼のデータを送信し、その応答として答弁生成サーバー装置15から答弁のデータを受信する。上記の答弁生成依頼は、少なくとも、現在意図および未来意図を含む。また、答弁生成依頼が質問そのものを含むようにしてもよい。チャットサーバー装置12が、端末装置11から質問を受信してから、端末装置11に対して答弁を送信するまでの間、その端末装置11を識別する情報により、またはその端末装置11のユーザーを識別する情報により、一連のスレッドは管理される。つまり、チャットサーバー装置12は、複数の端末装置11からの質問を並行して処理する間も、それら複数の端末装置11のそれぞれに関する処理を個別に管理することができる。なお、チャットサーバー装置12は、例えば、サーバーコンピューターを用いて実現される。チャットサーバー装置12は、クラウドサーバーの機能を用いて実現されてもよい。
The
意図推論サーバー装置13は、チャットサーバー装置12から質問のデータを受信し、チャットサーバー装置12に対してその質問に対応する現在意図のデータを送信する。意図推論サーバー装置13は、受信した質問に基づき、その質問に対応する現在意図を推論する機能を有する。この推論機能の詳細については、後述する。意図推論サーバー装置13は、例えば、サーバーコンピューターを用いて実現される。意図推論サーバー装置13は、クラウドサーバーの機能を用いて実現されてもよい。なお、意図は、「インテンツ」とも呼ばれる。
The intention
未来意図予測サーバー装置14は、チャットサーバー装置12から現在意図のデータを受信し、現在意図の履歴等に基づいて未来意図を予測し、チャットサーバー装置12に対してその未来意図のデータを送信する。未来意図予測サーバー装置14は、未来意図を予測するために、意図の連鎖(推移)に関する確率的モデルのデータを内部に持ち、管理する。また、未来意図予測サーバー装置14は、未来意図を予測するために、端末装置ごとの過去の意図の履歴のデータを内部に持ち、管理する。つまり、未来意図予測サーバー装置14は、端末装置11に関連付けられる過去の意図の履歴と、現在意図とに基づいて、当該端末装置11に関する未来意図を予測する。未来意図予測サーバー装置14は、例えば、サーバーコンピューターを用いて実現される。未来意図予測サーバー装置14は、クラウドサーバーの機能を用いて実現されてもよい。
The future intention
答弁生成サーバー装置15は、チャットサーバー装置12から答弁生成依頼のデータを受信し、この依頼に基づく答弁を生成し、生成した答弁のデータをチャットサーバー装置12に対して送信する。答弁生成サーバー装置15は、答弁生成依頼に含まれる現在意図および未来意図に基づいて答弁を生成する。なお、答弁生成依頼の中に質問のデータそのものが含まれている場合、答弁生成サーバー装置15は、質問にも基づいて答弁を生成してもよい。答弁生成サーバー装置15は、例えば、サーバーコンピューターを用いて実現される。答弁生成サーバー装置15は、クラウドサーバーの機能を用いて実現されてもよい。
The reply
図1に示す通り、チャットシステム1を構成する各装置による、処理の手順は、次の通りである。(1)において、端末装置11は、チャットサーバー装置12に対して質問を送信する。チャットサーバー装置12は、この質問を受信する。(2)において、チャットサーバー装置12は、意図推論サーバー装置13に対して質問を送信する。意図推論サーバー装置13は、この質問を受信する。(3)において、意図推論サーバー装置13は、上記の質問に基づく推論の結果得られた現在意図を、チャットサーバー装置12に送信する。チャットサーバー装置12は、この現在意図を受信する。(4)において、チャットサーバー装置12は、意図推論サーバー装置13から受信した現在意図を未来意図予測サーバー装置14に対して送信する。未来意図予測サーバー装置14は、この現在意図を受信する。(5)において、未来意図予測サーバー装置14は、受信した現在意図等に基づいて予測した結果として得られた未来意図を、チャットサーバー装置12に送信する。チャットサーバー装置12は、この未来意図を受信する。(6)において、チャットサーバー装置12は、少なくとも上記の現在意図および未来意図を含んだ答弁生成依頼を、答弁生成サーバー装置15に送信する。答弁生成サーバー装置15は、この答弁生成依頼を受信する。(7)において、答弁生成サーバー装置15は、生成した答弁を、チャットサーバー装置12に送信する。チャットサーバー装置12は、この答弁を受信する。(8)において、チャットサーバー装置12は、答弁生成サーバー装置15から受信した答弁を端末装置11に送信する。この答弁は、(1)において端末装置11から送信された質問に対応するものである。端末装置11は、この答弁を受信する。端末装置11は、受信した答弁を外部に出力することができる。
As shown in FIG. 1, the procedure of processing performed by each device constituting the
次に、端末装置11と、チャットサーバー装置12と、意図推論サーバー装置13と、未来意図予測サーバー装置14と、答弁生成サーバー装置15のそれぞれの、より詳細な機能構成について、順次説明する。これらの各装置が有する機能は、例えば、コンピューターとプログラムとを用いて実現され得る。また、これらの機能の少なくとも一部を、汎用的なコンピューターの代わりに、それぞれの機能に専用のハードウェアを用いて実現するようにしてもよい。
Next, more detailed functional configurations of the
図2は、端末装置11の概略機能構成を示すブロック図である。図示するように、端末装置11は、質問入力部111と、送受信部112と、答弁出力部113とを含んで構成される。これら各部の機能の概略は、次に説明する通りである。
FIG. 2 is a block diagram showing a schematic functional configuration of the
質問入力部111は、外部から質問のデータを取得する。一例として、質問入力部111は、ユーザーのキータッチ操作による質問テキストの入力を受け付ける。
The
送受信部112は、質問入力部111が取得した質問のデータをチャットサーバー装置12に送信する。また、送受信部112は、その質問に対する答弁のデータを、チャットサーバー装置12から受信する。送受信部112は、受信した答弁を、答弁出力部113に渡す。
The transmission/
答弁出力部113は、送受信部112から渡された答弁を、外部に出力する。一例として、答弁出力部113は、答弁のテキストデータを画面に表示する。
The
図3は、チャットサーバー装置12の概略機能構成を示すブロック図である。図示するように、チャットサーバー装置12は、質問受信部121と、質問送信部122と、現在意図受信部123と、現在意図送信部124と、未来意図受信部125と、答弁生成依頼部126と、答弁受信部127と、答弁送信部128とを含んで構成される。これら各部の機能の概略は、次に説明する通りである。
FIG. 3 is a block diagram showing a schematic functional configuration of the
質問受信部121は、端末装置11から送られる質問を受信する。質問受信部121は、形態素解析処理を行うことにより、テキストデータの形式で受信した質問を、単語(形態素)の列の形式のデータに変換する。質問受信部121は、単語の列の形式の質問を、質問送信部122に渡す。
The
質問送信部122は、質問受信部121から渡された質問を、意図推論サーバー装置13に送信する。
The
現在意図受信部123は、質問送信部122が送信した質問に対応する現在意図を、意図推論サーバー装置13から受信する。現在意図受信部123は、受信した現在意図を、現在意図送信部124および答弁生成依頼部126に渡す。現在意図は、質問を基に、意図推論サーバー装置13によって推論されたものである。
The current
現在意図送信部124は、現在意図受信部123から渡された現在意図を、未来意図予測サーバー装置14に対して送信する。
The present
未来意図受信部125は、現在意図送信部124が送信した現在意図に対応して、未来意図を未来意図予測サーバー装置14から受信する。未来意図受信部125は、受信した未来意図を、答弁生成依頼部126に渡す。未来意図は、過去または現在の少なくとも1個以上の意図に基づいて、未来意図予測サーバー装置14によって予測されるものである。
The future
答弁生成依頼部126は、答弁生成サーバー装置15に答弁の生成を依頼する。そのため、答弁生成依頼部126は、現在意図受信部123から受け取った現在意図と、未来意図受信部125から受け取った未来意図とを、答弁生成サーバー装置15に送信する。また、答弁生成依頼部126は、答弁の生成を依頼する際に、上記の現在意図の元になった質問を、答弁生成サーバー装置15に送信するようにしてもよい。この場合、答弁生成依頼部126は、質問を質問受信部121から受け取る。
The answer
答弁受信部127は、答弁生成依頼部126が送信した答弁生成依頼に対応する答弁を、答弁生成サーバー装置15から受信する。答弁受信部127は、受信した答弁を、答弁送信部128に渡す。
The
答弁送信部128は、答弁受信部127から渡される答弁を、端末装置11に送信する。
The
図4は、意図推論サーバー装置13の概略機能構成を示すブロック図である。図示するように、意図推論サーバー装置13は、質問受信部131と、意図推論部132と、意図データ記憶部133と、現在意図送信部134とを含んで構成される。これら各部の機能の概略は、次の通りである。
FIG. 4 is a block diagram showing a schematic functional configuration of the intention
質問受信部131は、チャットサーバー装置12から、質問のデータを受信する。質問受信部131が受信する質問のデータは、例えば、自然言語による、形態素(単語等)の列として表されていてよい。質問受信部131は、受信した質問を、意図推論部132に渡す。
The
意図推論部132は、質問受信部131から渡された質問の意図を推論する。具体的には、意図推論部132は、質問のデータ(例えば、形態素の列に相当するデータ。一例として、ワンホット表現を用いたベクトルの列のデータ。)を入力とし、意図IDを出力とする機械学習モデルを有する。意図推論部132は、充分な量の機械学習データを用いて、この機械学習モデルの学習処理を予めしておく。機械学習モデル自体は、既存の技術である。一例として、意図推論部132は、ニューラルネットワークを利用した機械学習モデルを実装する。意図推論部132が出力する意図IDは、有限集合である意図の種類の各々を一意に識別するための情報である。意図IDについては、意図データ記憶部133の説明においても言及する。なお、意図推論部132は、質問を基にその意図を推論する際に、必要に応じて、意図データ記憶部133を参照してもよい。意図推論部132は、推論結果として得られた意図(現在意図)を、現在意図送信部134に渡す。
The
意図データ記憶部133は、有限集合である意図の種類と、それらの意図の相互間の関係を表す情報を保持するものである。例えば、意図は、階層構造を有するデータとして定義される。意図データ記憶部133が記憶するデータの具体的な構成等については、後で別の図を参照しながら説明する。
The intention
現在意図送信部134は、現在意図送信部134は、意図推論部132から渡される現在意図(意図ID)を、チャットサーバー装置12に対して送信する。現在意図送信部134は、必要に応じて意図データ記憶部133を参照する。これにより、現在意図送信部134は、現在意図の意図IDの他に、意図データ記憶部133から読み出したデータをチャットサーバー装置12に対して送信してもよい。
The current
図5は、未来意図予測サーバー装置14の概略機能構成を示すブロック図である。図示するように、未来意図予測サーバー装置14は、現在意図受信部141と、意図履歴データ管理部142と、個別履歴管理部143と、未来意図予測部144と、未来意図送信部145とを含んで構成される。これら各部の機能の概略は、次に説明する通りである。
FIG. 5 is a block diagram showing a schematic functional configuration of the future intention
個別履歴管理部143は、チャットシステムにおける質問に対応する意図の履歴を記憶する。意図履歴データ管理部142は、意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する。未来意図予測部144は、外部から受信した現在意図を、前記意図の履歴の一部として個別履歴管理部143に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、意図履歴データ管理部142を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を意図履歴データ管理部142から読み出し、当該未来意図を、予測された前記未来意図として出力する。より詳細には、次の通りである。
The individual
現在意図受信部141は、チャットサーバー装置12から、現在意図のデータ(意図ID)を受信する。現在意図受信部141は、受信した現在意図を、未来意図予測部144に渡す。
The current
意図履歴データ管理部142は、意図の履歴に関するデータを保持し、管理するものである。具体的には、意図履歴データ管理部142は、意図から意図への推移の情報と、その推移に関連する確率値の情報とを保持する。意図履歴データ管理部142は、未来意図予測部144からのデータ読み出し要求に応じて、自己が保持するデータ内の、要求された部分を未来意図予測部144に渡す。意図履歴データ管理部142が保持するデータの詳細については、後で別の図を参照しながら説明する。
The intention history
個別履歴管理部143は、端末装置11ごと(あるいはユーザーごととしてもよい。)の、意図の履歴(推移、時系列)の情報を保持し、管理する。1個の端末装置11を1人だけのユーザーが使うことを前提とすれば、その端末装置11に関して、意図の履歴は、意図IDの連鎖のデータとして管理され得る。個別履歴管理部143は、未来意図予測部144からの要求に応じて、特定の端末装置11について、現在意図を受け取り、当該端末装置11の履歴に追加する(現在意図のデータを書き込む)処理を行う。また、個別履歴管理部143は、未来意図予測部144からの要求に応じて、特定の端末装置11に関する、現在よりも過去の意図の履歴のデータを提供する。個別履歴管理部143が保持・管理するデータの具体的な構成例については、後で、別の図を参照しながら説明する。
The individual
未来意図予測部144は、端末装置11ごとに、現在または過去の意図の履歴をもとに、未来の意図を予測する。より具体的には、未来意図予測部144は、現在意図受信部141から現在意図のデータ(意図ID)を受け取り、個別履歴管理部143に渡す。これにより、当該端末装置11の現在の(最新の)意図を、個別履歴管理部143に保存させる。また、未来意図予測部144は、個別履歴管理部143から、当該端末装置11の過去履歴(意図の1個以上の連鎖)を受け取る。これにより、未来意図予測部144は、現在意図を保存するとともに、現在および過去の意図を取得することができる。そして、未来意図予測部144は、現在および過去の意図(1個以上の意図の連鎖)に基づいて、意図履歴データ管理部142を参照することにより、未来意図を予測する。この未来意図は、未来の意図の1個以上の連鎖であり、その連鎖に含まれる個々の意図には確率値が関連付けられている。未来意図予測部144は、予測として得られた未来意図のデータを、未来意図送信部145に渡す。
The future
つまり、未来意図予測部144は、意図履歴データ管理部142が保持する大量の過去のヒストリー(即ち、意図の連鎖)に基づいて、現在対象としているユーザーの直近の意図の連鎖から、統計的に次に来る意図(1個の意図、または時系列の複数の意図の連鎖)の発生確率を求める。未来意図予測部144は、発生確率の高い意図を、未来意図として予測する。
That is, the future
未来意図送信部145は、未来意図予測部144から渡された未来意図を、チャットサーバー装置12に送信する。
The future
図6は、答弁生成サーバー装置15の概略機能構成を示すブロック図である。図示するように、答弁生成サーバー装置15は、答弁生成依頼受付部151と、答弁データ管理部152と、答弁生成部153と、答弁送信部154とを含んで構成される。これら各部の機能の概略は、次に説明する通りである。
FIG. 6 is a block diagram showing the schematic functional configuration of the answer
答弁データ管理部152は、チャットシステムにおける質問に対応する意図である現在意図と、前記意図の過去の履歴に基づいて予測された意図である未来意図とに基づいて、前記質問に対応する答弁を生成するためのデータを管理する。答弁生成部153は、外部から受信された前記現在意図および前記未来意図に基づいて、前記答弁データ生成部を参照することによって答弁を生成し出力する。より詳細には、各部の機能は、次の通りである。
The answer
答弁生成依頼受付部151は、チャットサーバー装置12から答弁生成依頼を受信する。答弁生成依頼受付部151は、答弁生成依頼に含まれている現在意図および未来意図を取り出す。答弁生成依頼受付部151は、答弁生成依頼に含まれている質問を取り出してもよい。答弁生成依頼受付部151は、受信した答弁生成依頼のデータ、および答弁生成依頼から取り出されたデータを、答弁生成部153に渡す。
The answer generation
答弁データ管理部152は、答弁生成のためのデータを保持し、管理する。答弁生成のためのデータは、現在意図と、未来意図とに関連付けた答弁の内容に関する情報を含むものである。より具体的には、答弁生成のためのデータは、現在意図や、未来意図や、質問などのうちの少なくとも一部に基づいて、答弁を生成するためのデータである。答弁を生成するためのデータは、例えば、答弁の雛型である。答弁の雛型は、後述するように、パラメーターを含んでいてもよい。パラメーターの値は、例えば、業種ごと、あるいは事業者ごとに変わり得る。業種ごとあるいは事業者ごとのパラメーターの実値を、答弁データ管理部152が保持するようにしてもよい。また、答弁データ管理部152が、事業者ごとに個別のデータベースを保持する形で、答弁生成のための情報を管理するようにしてもよい。事業者とは、例えば、会社、店舗、公的機関、ホテル、レストラン、商品ブランド等である。
The reply
答弁生成部153は、答弁生成依頼受付部151から渡される答弁生成依頼に基づき、また、答弁データ管理部152内に格納されているデータにも基づき、答弁を生成する。答弁生成部153が生成する答弁は、例えば、文を表すテキストデータである。答弁生成部153は、生成した答弁を、答弁送信部154に渡す。
The
答弁送信部154は、答弁生成部153から渡された答弁を、チャットサーバー装置12に送信する。
The
図7は、意図推論サーバー装置13内の意図データ記憶部133が記憶する意図データの構成および例を示す概略図である。図示するように、この意図データは、一例として、ツリー構造を持つものである。このツリー構造は、意図の階層構成を表現するために用いられている。
FIG. 7 is a schematic diagram showing a configuration and an example of the intention data stored in the intention
図示する階層構成における各々の箱が、1つの意図に対応する。個々の意図には、一意に識別可能な意図IDが付与される。この意図データの例では、レベル1からレベル4までの4階層の意図が存在する。レベル1のほうが上位の意図であり、レベル4のほうが下位の意図である。図示する例では階層数は4であるが、これ以外の階層数で意図の階層を表現してもよい。例えば、階層数は、1以上の任意の整数で良い。図示する例では、第1階層(レベル1)は、事業等の業種の大きな分類に対応する。第2階層(レベル2)は、業種のより具体的な分類に対応する。第3階層(レベル3)は、第2階層で表される業種において頻繁に質問の対象となり得る主題に対応する。第4階層(レベル4)は、第3階層における主題の、より詳細化した分類に対応する。
Each box in the illustrated hierarchical structure corresponds to one intent. An intent ID that can be uniquely identified is given to each intent. In this example of intention data, there are four levels of intention from
図示する意図データの例では、第1階層に「サービス業」、「製造業」、「金融」という意図が含まれる。また、第1階層の「サービス業」に属する第2階層においては、「ホテル」、「レストラン」という意図が含まれる。第2階層の「ホテル」に属する第3階層においては、「時間管理」、「部屋」という意図が含まれる。第3階層の「時間管理」に属する第4階層においては、「チェックイン時刻」、「チェックアウト時刻」、「アーリーチェックイン」、「レートチェックアウト」、「チェックアウトペナルティ」という意図が含まれる。第3階層の「部屋」に属する第4階層においては、「広さ」、「ベッド」という意図が含まれる。なお、第1階層の「サービス業」の配下の各層において、上に例示した意図以外の意図が含まれていてもよい。また、第1階層の「サービス業」以外の意図も、配下(第2階層以下)に多数の意図を含む。 In the illustrated example of the intention data, the first hierarchy includes the intentions of “service industry”, “manufacturing industry”, and “finance”. In addition, the intention of “hotel” and “restaurant” is included in the second layer belonging to the “service industry” of the first layer. In the third layer belonging to the "hotel" of the second layer, the intentions of "time management" and "room" are included. In the fourth layer belonging to the “time management” of the third layer, the intentions of “check-in time”, “check-out time”, “early check-in”, “rate check-out”, and “check-out penalty” are included. .. The fourth layer belonging to the “room” of the third layer includes the intentions of “size” and “bed”. It should be noted that each layer under the “service industry” of the first layer may include an intention other than the above-exemplified intention. Further, the intentions other than the "service industry" in the first layer also include a large number of intents under the control (second layer and below).
図8は、意図推論部132の入出力関係を示す概略図である。図示するように、意図推論部132は、質問を入力し、質問に基づく推論結果として意図IDを出力する。意図推論部132に入力される質問は、例えば、形態素(単語等)の列の形式である。意図推論部132は、この推論を行う際に、必要に応じて意図データ記憶部133を参照してもよい。意図推論部132が出力する意図IDは、入力される質問に対応する現在意図を識別する情報である。また、その意図IDは、図7に示した階層構成の中に含まれるいずれかの意図に関連付けられるものである。既に説明したように、意図推論部132は、予め機械学習済みのモデルを内部に有している。そのモデルは、機械学習の結果として、入力である質問と、出力である意図IDとの関係の情報を保持している。意図推論部132は、入力される質問に上記のモデルを適用することにより、その質問に対応する現在意図を出力する。
FIG. 8 is a schematic diagram showing the input/output relationship of the
図9は、意図推論サーバー装置13からチャットサーバー装置12に送信される現在意図のデータの構成例を示す概略図である。図示するように、この現在意図のデータは、項目として、意図IDおよび意図を含む。図示するデータの例では、意図データは「INT−12345」であり、意図は「チェックアウト時刻」である。意図IDと意図との関係を表す情報は、意図推論サーバー装置13内の意図データ記憶部133内に記憶されている。現在意図送信部134は、現在意図をチャットサーバー装置12に送信する際に、意図データ記憶部133を参照することができる。
FIG. 9 is a schematic diagram showing a configuration example of the current intention data transmitted from the intention
図10は、未来意図予測サーバー装置14内の意図履歴データ管理部142が保持する意図履歴データの構成および例を示す概略図である。図示するように、意図履歴データは、分岐を含む意図の連鎖の形態を有するデータである。この連鎖は、時間的な順序に対応している。同図に示す意図の時系列において、上側はより古い意図の側であり、下側はより新しい意図の側である。同図における各箱には、「HIS」で始まるラベルが付与されている。例えば、図の中の最初の意図のラベルは、「HIS−1」である。また、「HIS−1」の意図の次の意図は「HIS−11」、「HIS−12」等であり、さらに後続する意図にも同様にラベルが付与されている。例えば、ラベル「H−1」を有する意図は「チェックアウト時刻」である。ラベル「H−11」を有する意図は「チェックアウトペナルティ」である。ラベル「H−12」を有する意図は「チェックアウト後荷物保管」である。
FIG. 10 is a schematic diagram showing a configuration and an example of the intention history data held by the intention history
意図履歴データは、ある意図からその次の順序の意図への推移に関する確率値を含んでいる。図示する例では、「HIS−1」の意図(チェックアウト時刻)から「HIS−11」の意図(チェックアウトペナルティ)への推移の確率値は42.97%である。また、「HIS−1」の意図から「HIS−12」の意図(チェックアウト後荷物保管)への推移の確率値は28.99%である。また、意図履歴データは、「HIS−11」および「HIS−12」のそれぞれからさらに次の順序の意図への推移についても、確率値を有している。 The intention history data includes probability values regarding the transition from one intention to the next order of intentions. In the illustrated example, the probability value of the transition from the "HIS-1" intention (checkout time) to the "HIS-11" intention (checkout penalty) is 42.97%. Further, the probability value of the transition from the intention of “HIS-1” to the intention of “HIS-12” (storage of luggage after checkout) is 28.99%. The intention history data also has probability values for transitions from "HIS-11" and "HIS-12" to the intention in the next order.
図に示した例では、起点となる意図は「チェックアウト時刻」であった。実際の意図履歴データは、特定の場合だけに限らず、発生し得る意図の推移についてのデータを網羅的に、あるいは略網羅的に、持っている。 In the example shown in the figure, the starting point is "checkout time". The actual intention history data is not limited to a specific case, and has data about possible changes in intention exhaustively or almost exhaustively.
図11は、個別履歴管理部143が保持・管理する、個別履歴データの構成例を示す概略図である。図示するように、個別履歴データは、一例として、表形式のデータとして管理される。この例では、個別履歴データは、端末IDと、順序と、意図IDとの各項目を有する。端末IDは、チャットを行っている端末装置11を一意に識別するための識別情報である。順序は、端末装置11ごとに、個別履歴データに含まれている意図の順序を表すものである。順序としては、最も古い1から、順に、2、3、・・・という値が格納される。意図IDは、当該端末装置の、当該順序における意図である。図示する例では、端末IDが「T001234」である端末の、1番目の意図の意図IDは「INT−00111」である。同端末の2番目以後の意図についても、個別履歴データが情報を持っている。このように、未来意図予測サーバー装置14内の個別履歴管理部143は、端末装置11ごとの意図の推移の情報を管理する。
FIG. 11 is a schematic diagram showing a configuration example of individual history data held and managed by the individual
未来意図予測サーバー装置14内の未来意図予測部144は、予測対象としている端末装置11に関して、現在の意図および過去の意図の時系列に基づいて、未来の意図を確率的に予測する。未来意図予測部144は、未来の意図を予測する際、意図履歴データ管理部142が管理する意図履歴データを参照することにより、意図の推移の確率値を取得し、未来意図の予測に用いる。
The future
図12は、未来意図予測部144が未来意図を予測する処理の際の、入力データおよび出力データの構成例を示す概略図である。同図において、(A)は未来意図予測部144への入力データの構成を示し、(B)は未来意図予測部144からの出力データの構成を示す。(A)に示す通り、入力データは、直近のM個(Mは、0以上の整数)の過去意図と、現在意図とからなる意図の連鎖である。入力データに含まれる意図は、意図IDによって特定されるものである。また、(B)に示す通り、出力データは、N個(Nは、1以上の整数)の未来意図からなる意図の連鎖である。これらの未来意図の各々は、意図IDと、必要に応じて確率値とを含むものである。なお、図示する例では1系統の未来意図の連鎖のみを示しているが、未来意図予測部144が複数系統の未来意図の連鎖を出力するようにしてもよい。つまり、例えば、未来意図1−1と、未来意図1−2と、・・・、未来意図1−N1の連鎖としてなる系統と、未来意図2−1と、未来意図2−2と、・・・、未来意図2−N2の連鎖としてなる系統との、2系統を出力するようにしてもよい。さらに、未来意図予測部144が3系統以上の未来意図の連鎖を予測するようにしてもよい。
FIG. 12 is a schematic diagram showing a configuration example of input data and output data when the future
図13は、答弁生成部153が答弁を生成する際の入出力関係を示す概略図である。答弁生成部153は、入力される現在意図および未来意図に基づき、答弁データを参照する。答弁生成部153が、さらに、入力される質問データに依存する処理を行うようにしてもよい。質問は、入力されてもよいし、入力されなくともよい。答弁データは、一例として、ルックアップテーブルの形式を有しており、現在意図や未来意図や質問に基づいて、答弁の雛型を特定することができるデータ構造を有している。答弁生成部153は、入力される現在意図や未来意図や質問に基づいて、答弁データから、答弁の雛型を読み出す。また、答弁データの一部が、機械学習モデルであってもよい。この場合には、その機械学習モデルは、入力である現在意図や未来意図や質問と、出力である答弁の組としてなる学習データを用いて機械学習済みである。また、答弁雛型が、パラメーターを含んでいてもよい。答弁生成部153は、パラメーター部分を、実値で置き換えた答弁を出力する。
FIG. 13 is a schematic diagram showing the input/output relationship when the
答弁生成部153は、未来意図予測サーバー装置14によって未来意図の連鎖が予測された場合には、その連鎖に基づいて答弁を生成することができる。また、答弁生成部153は、未来意図予測サーバー装置14によって複数の系統の未来意図が予測された場合には、適宜、未来意図の系統を選択して、答弁を生成することができる。このとき、一例として、答弁生成部153は、未来意図予測の際に算出された確率値に基づいて、確率の大きい未来意図の系統を選択することもできる。この場合、答弁生成部153は、選択された未来意図の系統に対応する答弁を生成する。また、答弁生成部153は、未来意図予測サーバー装置14によって複数の系統の未来意図が予測された場合には、それらの未来意図の系統のそれぞれに対して、答弁を生成するようにしてもよい。
When the future intention
この図に示す例では、答弁データ管理部152内には、「チェックアウト時刻は %T です」という答弁雛型が含まれている。このうち、「%T」は、パラメーターである。例えば、ホテルごとにチェックアウト時刻が異なるに、この「%T」の部分をパラメーター化することにより、答弁データの量を節約することができる。このパラメーターの値は、例えば、「10時00分」である。答弁生成部153は、パラメーターを実値で置き換えることにより、「チェックアウト時刻は10時00分です」という答弁を生成することができる。
In the example shown in this figure, the answer
図14は、端末装置11の処理の手順を示すフローチャートである。このフローチャートは一対の質問と答弁とに関する処理に対応するものである。以下では、このフローチャートに沿って、端末装置11による処理の手順を説明する。
FIG. 14 is a flowchart showing a processing procedure of the
ステップS11において、質問入力部111は、外部から質問を取得する。
ステップS12において、送受信部112は、ステップS11において取得された質問をチャットサーバー装置12に送信する。
ステップS13において、送受信部112は、ステップS12において送信された質問に対する答弁を受信する。
ステップS14において、答弁出力部113は、ステップS13において受信された答弁を、外部に出力する。
In step S11, the
In step S12, the transmission/
In step S13, the transmission/
In step S14, the answer
図15は、意図推論サーバー装置13の処理の手順を示すフローチャートである。このフローチャートは1件の質問に対応する処理を示す。以下では、このフローチャートに沿って、意図推論サーバー装置13による処理の手順を説明する。
FIG. 15 is a flowchart showing a procedure of processing of the intention
ステップS21において、質問受信部131は、チャットサーバー装置12から質問を受信する。
ステップS22において、意図推論部132は、ステップS21で受信した質問を基に、その質問に対応する意図を推論する。意図推論部132は、推論結果である現在意図を出力する。
ステップS23において、現在意図送信部134は、ステップS22で得られた現在意図を、チャットサーバー装置12に送信する。
In step S21, the
In step S22, the
In step S23, the current
図16は、未来意図予測サーバー装置14の処理の手順を示すフローチャートである。以下では、このフローチャートに沿って、未来意図予測サーバー装置14による処理の手順を説明する。
FIG. 16 is a flowchart showing a procedure of processing of the future intention
ステップS31において、現在意図受信部141は、チャットサーバー装置12から、現在意図を受信する。
ステップS32において、未来意図予測部144は、個別履歴管理部143が、当該現在意図をこの現在意図に関連付けられる端末装置11(あるいは、ユーザー)の履歴として追記するよう依頼または制御する。個別履歴管理部143は、依頼された現在意図の追記を実行する。これにより、渡されている現在意図は、当該端末装置11(あるいは、ユーザー)の履歴の一部となる。
ステップS33において、未来意図予測部144は、個別履歴管理部143が管理する当該端末装置11(あるいは、ユーザー)の履歴と、意図履歴データ管理部142が管理する意図履歴データとに基づいて、未来意図を予測する。未来意図予測部144は、この未来意図を出力する。
ステップS34において、未来意図送信部145は、ステップS33において予測された未来意図のデータを、チャットサーバー装置12に送信する。
In step S31, the current
In step S32, the future
In step S33, the future
In step S34, the future
図17は、答弁生成サーバー装置15の処理の手順を示すフローチャートである。以下では、このフローチャートに沿って、答弁生成サーバー装置15による処理の手順を説明する。
FIG. 17 is a flow chart showing the procedure of processing of the answer
ステップS41において、答弁生成依頼受付部151は、チャットサーバー装置12から、答弁生成依頼を受信する。答弁生成依頼は、現在意図と未来意図のデータを含む。また、答弁生成依頼が、質問のデータを含んでいてもよい。
ステップS42において、答弁生成部153は、ステップS41で受信された答弁生成依頼に基づいて、答弁を生成する。答弁生成部153は、答弁を生成する際に、答弁データ管理部152が保持している答弁データを参照してもよい。本ステップにおいて、答弁生成部153は、例えば、現在意図や未来意図に基づいてテーブルをルックアップすることにより、答弁を生成する。また、答弁生成部153は、機械学習済のモデル(例えば、ニューラルネットワーク)に、答弁生成依頼内に含まれるデータを入力することにより、そのモデルの出力である答弁を得る。また、答弁生成部153は、例えば事業者ごとの個別データ(例えば、特定のホテルのチャックイン時刻、チェックアウト時刻、チェックアウトペナルティの内容、チェックアウト後の荷物預かりのサービスの内容等)を、データベースから読み出し、生成する答弁内に組み込んでもよい。
ステップS43において、答弁送信部154は、ステップS42で生成された答弁を、チャットサーバー装置12に送信する。
In step S41, the answer generation
In step S42, the
In step S43, the
図18は、チャットサーバー装置12の処理の手順を示すフローチャートである。チャットサーバー装置12は、意図推論サーバー装置13や、未来意図予測サーバー装置14や、答弁生成サーバー装置15と連携しながら、チャットサーバーとして機能する。以下では、このフローチャートに沿って、チャットサーバー装置12による処理の手順を説明する。
FIG. 18 is a flowchart showing the processing procedure of the
ステップS51において、質問受信部121は、端末装置11から、質問のデータを受信する。
ステップS52において、質問送信部122は、意図推論サーバー装置13に、質問のデータを送信する。
ステップS53において、現在意図受信部123は、意図推論サーバー装置13から、意図推論サーバー装置13による類論結果である現在意図のデータを受信する。
ステップS54において、現在意図送信部124は、未来意図予測サーバー装置14に、現在意図のデータを送信する。
In step S51, the
In step S52, the
In step S53, the current
In step S54, the present
ステップS55において、未来意図受信部125は、未来意図予測サーバー装置14から、未来意図予測サーバー装置14による予測結果である未来意図のデータを受信する。
ステップS56において、答弁生成依頼部126は、答弁生成サーバー装置15に、答弁生成依頼のデータを送信する。答弁生成依頼は、現在意図と未来意図とを含む。答弁生成依頼は質問のデータを含んでもよい。
ステップS57において、答弁受信部127は、答弁生成サーバー装置15から、生成された答弁のデータを受信する。
ステップS58において、答弁送信部128は、端末装置11に、答弁生成サーバー装置15によって生成された答弁のデータを送信する。
In step S55, the future
In step S<b>56, the answer
In step S57, the
In step S58, the
[第1変形例]
上記の実施形態の一変形例として、端末装置11からチャットサーバー装置12に送る質問と、チャットサーバー装置12から端末装置11に送る答弁とを、それぞれ、音声としてもよい。この場合、質問および答弁は、符号化された音声データの形式で送受信される。チャットサーバー装置12は、例えば、音声データとして受信した質問を基に、音声認識処理を行い、質問のテキストデータに変換する。また、チャットサーバー装置12は、端末装置11に送信するために答弁生成サーバー装置15から受け取った答弁のテキストデータを基に、音声合成処理を行い、答弁の音声データを獲得する。端末装置11は、ユーザーから入力される、音声による質問を取得し、音声データとしてチャットサーバー装置12に送信する。また、端末装置11は、チャットサーバー装置12から音声データの形式で受信した答弁を、スピーカー等から出力する。
[First Modification]
As a modification of the above-described embodiment, the question sent from the
[第2変形例]
一変形例として、チャットサーバー装置12が、質問のテキストデータを、形態素列に変換しない構成としてもよい。この場合、チャットサーバー装置12は、プレーンなテキストのままの質問データを、意図推論サーバー装置13に送信する。意図推論サーバー装置13は、プレーンなテキストの形式の質問データに基づいて、現在意図を推論する。
[Second Modification]
As a modification, the
[第3変形例]
上記の実施形態では、図1に示したように、端末装置11と、チャットサーバー装置12と、意図推論サーバー装置13と、未来意図予測サーバー装置14と、答弁生成サーバー装置15とで、チャットシステム1を構成するようにした。しかしながら、チャットシステム1が有する機能を、どういった形態で複数の装置に分散させるかは、任意である。各サーバー装置等に、上記実施形態とは異なる形態で機能を配置するようにしてもよい。
[Third Modification]
In the above embodiment, as shown in FIG. 1, the chat system includes the
以上説明した実施形態と変形例とをまとめると、次の通りである。 The following is a summary of the embodiment and the modified examples described above.
図1に示したように、チャットシステム1は、次のチャット管理方法により、チャットを管理する。即ち、第1過程において、端末装置11が質問を受け付ける。第2過程において、意図推論サーバー装置13が、前記質問に対応する現在意図を推論する。第3過程において、未来意図予測サーバー装置14が、前記端末装置に関連付けられる過去の意図の履歴を予め記憶しておき、過去の意図の履歴と未来意図との関係とを参照することによって、前記現在意図と記憶しておいた前記過去の履歴とに基づいて、未来意図を予測する。第4過程において、答弁生成サーバー装置15が、前記現在意図と、予測された前記未来意図とに基づいて答弁を生成する。第5過程において、端末装置11が、生成された前記答弁を出力する。
As shown in FIG. 1, the
上記チャット方法において、次のようにしてもよい。即ち、前記第3過程において、未来意図予測サーバー装置14が、前記未来意図を予測する際に、複数の系統の未来意図を予測してもよい。また、前記第4過程において、答弁生成サーバー装置15が、答弁を生成する際に、前記複数の系統の未来意図のうちの1つまたは複数を選択して選択された系統の未来意図についての答弁を生成し、または、前記複数の系統の未来意図のそれぞれについての答弁を生成するようにしてもよい。
The chat method may be as follows. That is, in the third process, the future intention
上記チャット方法において、次のようにしてもよい。即ち、前記第3過程において、未来意図予測サーバー装置14が、前記未来意図を予測する際に、当該未来意図の確率値をも算出してもよい。また、前記第4過程において、答弁生成サーバー装置15が、前記複数の系統の未来意図のうちの1つまたは複数を選択する際に、算出された前記確率値に基づく選択を行うようにしてもよい。
The chat method may be as follows. That is, in the third step, when the future intention
上記チャット方法において、次のようにしてもよい。即ち、前記第1過程において、端末装置11は、テキストデータによる質問の入力を受け付けるようにしてもよい。また、前記第5過程において、端末装置11は、テキストデータを画面に表示する形で前記答弁を出力するようにしてもよい。
The chat method may be as follows. That is, in the first step, the
上記チャット方法において、次のようにしてもよい。即ち、前記第1過程において、端末装置11は、音声データによる質問の入力を受け付けるようにしてもよい。また、第5過程において、端末装置11は、音声データを音声として出力する形で前記答弁を出力するようにしてもよい。
The chat method may be as follows. That is, in the first step, the
上記チャット方法において、次のようにしてもよい。即ち、前記第3過程において、未来意図予測サーバー装置14が、前記現在意図を、前記端末装置に関連付けられる過去の意図の履歴の一部として記憶手段に書き込むようにしてもよい。これにより、現在意図に基づいて、後でさらなる質問が為された際に、その時点での未来意図を予測するために、現在の意図を使用することができる。
The chat method may be as follows. That is, in the third step, the future intention
チャットシステムを、下記のような装置で構成することができる。チャットシステム1は、チャットサーバー装置12と、意図推論サーバー装置13と、未来意図予測サーバー装置14と、答弁生成サーバー装置15とを含んで構成される。
The chat system can be composed of the following devices. The
チャットサーバー装置12は、外部(端末装置11側)から質問を受信し、受信した前記質問を意図推論サーバー装置13に対して送信し、意図推論サーバー装置13から前記質問に対応する現在意図を受信し、受信した前記現在意図を未来意図予測サーバー装置14に送信し、未来意図予測サーバー装置14から前記現在意図に基づいて予測された未来意図を受信し、前記現在意図および前記未来意図を含む答弁生成依頼を答弁生成サーバー装置15に送信し、答弁生成サーバー装置15から前記答弁生成依頼に対応する答弁を受信し、前記答弁を外部(端末装置11側)に送信する。
The
意図推論サーバー装置13は、チャットサーバー装置12から送信された前記質問に対応する前記現在意図を推論して、チャットサーバー装置12に前記現在意図を送信するものである。
The intent
未来意図予測サーバー装置14は、予め記憶された過去の意図の履歴と、チャットサーバー装置12から受信した前記現在意図に基づいて、前記未来意図を予測し、予測された前記未来意図を前記チャットサーバー装置12に送信するものである。
The future intention
答弁生成サーバー装置15は、チャットサーバー装置12から前記答弁生成依頼を受信し、前記答弁生成依頼に含まれる前記現在意図と前記未来意図とに基づいて、前記質問への答弁を生成し、生成された前記答弁をチャットサーバー装置12に送信するものである。
The answer
チャットサーバー装置12が答弁生成サーバー装置15に送信する前記答弁生成依頼には、前記現在意図および前記未来意図に加えて、前記質問をも含むようにしてもよい。これに対応して、答弁生成サーバー装置15は、前記現在意図と前記未来意図とに加えて、前記質問にも基づいて、前記質問への答弁を生成することができる。
The answer generation request transmitted from the
未来意図予測サーバー装置14は、前記未来意図を予測する際に、複数の系統の未来意図を予測するようにしてもよい。これに対応して、答弁生成サーバー装置15は、前記答弁を生成する際に、前記複数の系統の未来意図のうちの1つまたは複数を選択して選択された系統の未来意図についての答弁を生成するようにできる。または、答弁生成サーバー装置15は、前記複数の系統の未来意図のそれぞれについての答弁を生成するようにしてもよい。
The future intention
未来意図予測サーバー装置14は、前記未来意図を予測する際に、当該未来意図の確率値をも算出してもよい。これに対応して、答弁生成サーバー装置15は、前記複数の系統の未来意図のうちの1つまたは複数を選択する際に、算出された前記確率値に基づく選択を行うようにできる。
The future intention
以上説明したように、本実施形態とその変形例によれば、未来意図予測サーバー装置14は、未来意図を予測する。また、答弁生成サーバー装置15は、現在の質問に対応する現在意図のみに依存するのではなく、予測された未来意図にも依存して答弁を生成する。この構成により、期待される答弁を生成する制度が向上する。つまり、チャットシステムにおける答弁生成を高度化することができる。
As described above, according to this embodiment and its modification, the future intention
なお、上述した実施形態およびその変形例における、端末装置、チャットサーバー装置、意図推論サーバー装置、未来意図予測サーバー装置、答弁生成サーバー装置の各装置における少なくとも一部の機能を、コンピューターで実現することができる。その場合、この機能を実現するためのプログラムをコンピューター読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピューターシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピューターシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピューター読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM、DVD−ROM、USBメモリー等の可搬媒体、コンピューターシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピューター読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、一時的に、動的にプログラムを保持するもの、その場合のサーバーやクライアントとなるコンピューターシステム内部の揮発性メモリーのように、一定時間プログラムを保持しているものも含んでも良い。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピューターシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。 It should be noted that at least a part of the functions of each of the terminal device, the chat server device, the intention inference server device, the future intention prediction server device, and the answer generation server device in the above-described embodiment and its modification should be realized by a computer. You can In that case, the program for realizing this function may be recorded in a computer-readable recording medium, and the program recorded in this recording medium may be read by a computer system and executed. The “computer system” mentioned here includes an OS and hardware such as peripheral devices. In addition, "computer-readable recording medium" means a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, a DVD-ROM, a USB memory, or a storage device such as a hard disk built in a computer system. Say that. Further, the "computer-readable recording medium" means a program that temporarily and dynamically holds the program, such as a communication line when transmitting the program through a network such as the Internet or a communication line such as a telephone line. In that case, it may also include the one that holds the program for a certain period of time, such as the volatile memory inside the computer system that serves as the server or the client. Further, the above-mentioned program may be for realizing a part of the above-mentioned functions, and may be one for realizing the above-mentioned functions in combination with a program already recorded in the computer system.
本実施形態を利用したサービスの例は、次の通りである。ホテルの顧客に対する案内を行うチャットサービスを想定する。ユーザーの端末装置11は、チャットサーバー装置12に対して、「チェックアウトは何時までですか?」という質問を送信する。意図推論サーバー装置13は、この質問の意図、即ち現在意図が、そのホテルにおけるチェックアウト時刻であることを特定する。この現在意図に直接対応する答弁として、答弁生成サーバー装置15は、「チェックアウト時間は午前11時までです。」という答弁を生成する。本実施形態では、上記の現在意図に加えて、未来意図予測サーバー装置14が、現在意図に基づいて、また必要に応じて過去の意図の履歴にも基づいて、未来意図を予測する。その未来意図は、1)チェックアウトが遅くなる場合の追加料金(この未来意図の確率は80%)と、2)チェックアウト後のフロントでの荷物預かり(この未来意図の確率は68%)とである。答弁生成サーバー装置15は、これらの未来意図に応じた答弁をも生成する。答弁生成サーバー装置15は、複数の未来意図のうちの、最上位の未来意図(最も確率の高い未来意図)のみについての答弁を生成してもよいし、確率が所定の閾値以上である未来意図のそれぞれについての答弁を生成してもよい。つまり、答弁生成サーバー装置15は、上記の「チェックアウト時間は午前11時までです。」という答弁に加えて、次の答弁を生成することができる。即ち、答弁生成サーバー装置15は、上記のチェックアウトが遅くなる場合の追加料金という未来意図に対応して、「もしお客様のチェックアウトが遅くなった場合には追加費用として1時間あたり1000円が加算されます。」という追加答弁を付加することができる。さらに、答弁生成サーバー装置15は、上記のチェックアウト後のフロントでの荷物預かりという未来意図に対応して、「チェックアウト後にお客様のお荷物をフロントにてお預かりできるサービスがありますのでお気軽にお問い合わせください。」という追加答弁を付加してもよい。従来の技術では、チャットサーバーは、現在意図に基づく答弁を行うことしかできなかった。一方、本実施形態によれば、ここにも例示したように、チャットシステム1は、現在意図に基づく答弁だけではなく、未来意図にも基づく答弁を行うことができる。つまり、本実施形態によれば、チャットサービスにおける答弁の質を向上させることが可能となる。
Examples of services using this embodiment are as follows. Assume a chat service that provides guidance to hotel customers. The
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 Although the embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and includes a design and the like within a range not departing from the gist of the present invention.
本発明は、例えば、事業者等の情報提供業務に利用することができる。但し、本発明の利用範囲はここに例示したものには限られない。 INDUSTRIAL APPLICABILITY The present invention can be used, for example, in information providing services of businesses and the like. However, the range of use of the present invention is not limited to the one illustrated here.
1 チャットシステム
11 端末装置
12 チャットサーバー装置
13 意図推論サーバー装置
14 未来意図予測サーバー装置
15 答弁生成サーバー装置
111 質問入力部
112 送受信部
113 答弁出力部
121 質問受信部
122 質問送信部
123 現在意図受信部
124 現在意図送信部
125 未来意図受信部
126 答弁生成依頼部
127 答弁受信部
128 答弁送信部
131 質問受信部
132 意図推論部
133 意図データ記憶部
134 現在意図送信部
141 現在意図受信部
142 意図履歴データ管理部
143 個別履歴管理部
144 未来意図予測部
145 未来意図送信部
151 答弁生成依頼受付部
152 答弁データ管理部
153 答弁生成部
154 答弁送信部
1
Claims (15)
装置が、前記質問に対応する現在意図を推論する第2過程と、
装置が、前記端末装置に関連付けられる過去の意図の履歴を予め記憶しておき、過去の意図の履歴と未来意図との関係とを参照することによって、前記現在意図と記憶しておいた前記過去の履歴とに基づいて、未来意図を予測する第3過程と、
装置が、前記現在意図と、予測された前記未来意図と、前記質問とに基づいて答弁を生成する第4過程と、
前記端末装置が、生成された前記答弁を出力する第5過程と、
を含むチャット管理方法であって、
前記現在意図は、主題の分類に対応するものであり、
前記未来意図は、主題の分類に対応するものであり、
前記第4過程では、前記装置は、前記現在意図と前記未来意図と前記質問とに基づいて、ルックアップテーブルを参照することによって前記答弁を生成し、または、前記現在意図と前記未来意図と前記質問とを入力として前記答弁を出力とする機械学習済みの機械学習モデルから得られる前記答弁を生成する、
チャット管理方法。 A first step in which the terminal device receives a question,
A second step in which the device infers the current intent corresponding to the question;
The device previously stores a history of past intentions associated with the terminal device, and refers to the relationship between the history of past intentions and the future intentions to thereby store the past intentions stored as the current intentions. A third process of predicting future intentions based on the history of
A fourth step in which the device generates an answer based on the present intention, the predicted future intention, and the question;
A fifth step in which the terminal device outputs the generated answer,
A chat management method including
The presently contemplated, which corresponds to the classification of the main subject,
The future intentions, which corresponds to the classification of the main subject,
In the fourth step, the apparatus, on the basis of the said current intended future intentions and the question and to generate the answer by referring to the look-up table or, before Symbol the future intended presently contemplated and Generating the answer obtained from a machine learning model that has been machine-learned with the question and the input as the output.
Chat management method.
前記第4過程において、答弁を生成する際に、前記複数の系統の未来意図のうちの1つまたは複数を選択して選択された系統の未来意図についての答弁を生成し、または、前記複数の系統の未来意図のそれぞれについての答弁を生成する、
請求項1に記載のチャット管理方法。 In the third step, when predicting the future intention, predicting future intentions of a plurality of systems,
In the fourth step, when generating an answer, one or more of the future intentions of the plurality of systems are selected to generate an answer for the future intention of the selected system, or Generate an answer for each of the future intentions of the system,
The chat management method according to claim 1.
前記第4過程において、前記複数の系統の未来意図のうちの1つまたは複数を選択する際に、算出された前記確率値に基づく選択を行う、
請求項2に記載のチャット管理方法。 In the third step, when predicting the future intention, a probability value of the future intention is also calculated,
In the fourth step, when selecting one or more of the future intentions of the plurality of systems, selection based on the calculated probability value is performed.
The chat management method according to claim 2.
前記第5過程において、前記端末装置は、テキストデータを画面に表示する形で前記答弁を出力するものである、
請求項1から3までのいずれか一項に記載のチャット管理方法。 In the first step, the terminal device receives an input of a question by text data,
In the fifth step, the terminal device outputs the answer by displaying text data on a screen.
The chat management method according to any one of claims 1 to 3.
前記第5過程において、前記端末装置は、音声データを音声として出力する形で前記答弁を出力するものである、
請求項1から3までのいずれか一項に記載のチャット管理方法。 In the first step, the terminal device receives an input of a question by voice data,
In the fifth step, the terminal device outputs the answer in a form of outputting voice data as voice.
The chat management method according to any one of claims 1 to 3.
請求項1から5までのいずれか一項に記載のチャット管理方法。 In the third step, writing the present intention as a part of a history of past intentions associated with the terminal device in a storage means,
The chat management method according to any one of claims 1 to 5.
前記チャットサーバー装置は、外部から質問を受信し、受信した前記質問を前記意図推論サーバー装置に対して送信し、前記意図推論サーバー装置から前記質問に対応する現在意図を受信し、受信した前記現在意図を前記未来意図予測サーバー装置に送信し、前記未来意図予測サーバー装置から前記現在意図に基づいて予測された未来意図を受信し、前記現在意図および前記未来意図を含む答弁生成依頼を前記答弁生成サーバー装置に送信し、前記答弁生成サーバー装置から前記答弁生成依頼に対応する答弁を受信し、前記答弁を外部に送信するものであり、
前記意図推論サーバー装置は、前記チャットサーバー装置から送信された前記質問に対応する前記現在意図を推論して、前記チャットサーバー装置に前記現在意図を送信するものであり、
前記未来意図予測サーバー装置は、予め記憶された過去の意図の履歴と、前記チャットサーバー装置から受信した前記現在意図に基づいて、前記未来意図を予測し、予測された前記未来意図を前記チャットサーバー装置に送信するものであり、
前記答弁生成サーバー装置は、チャットサーバー装置から前記答弁生成依頼を受信し、前記答弁生成依頼に含まれる前記現在意図と前記未来意図と前記質問とに基づいて、前記質問への答弁を生成し、生成された前記答弁を前記チャットサーバー装置に送信するものであり、
前記現在意図は、主題の分類に対応するものであり、
前記未来意図は、主題の分類に対応するものであり、
前記答弁生成サーバー装置は、前記現在意図と前記未来意図と前記質問とに基づいて、ルックアップテーブルを参照することによって前記答弁を生成し、または、前記現在意図と前記未来意図と前記質問とを入力として前記答弁を出力とする機械学習済みの機械学習モデルから得られる前記答弁を生成する、
チャットシステム。 A chat system including a chat server device, an intention inference server device, a future intention prediction server device, and an answer generation server device,
The chat server device receives a question from the outside, sends the received question to the intention inference server device, receives the current intent corresponding to the question from the intention inference server device, and receives the current present The intention is transmitted to the future intention prediction server device, the future intention predicted based on the current intention is received from the future intention prediction server device, and the answer generation request including the current intention and the future intention is generated as the answer generation. Transmitting to the server device, receiving the answer corresponding to the answer generation request from the answer generating server device, and transmitting the answer to the outside,
The intent inference server device infers the current intent corresponding to the question transmitted from the chat server device, and transmits the current intent to the chat server device,
The future intention prediction server device predicts the future intention based on a history of past intentions stored in advance and the present intention received from the chat server device, and predicts the predicted future intention by the chat server. To send to the device,
The answer generation server device receives the answer generation request from the chat server device, and based on the present intention, the future intention and the question included in the answer generation request, generates an answer to the question, Transmitting the generated answer to the chat server device,
The presently contemplated, which corresponds to the classification of the main subject,
The future intentions, which corresponds to the classification of the main subject,
The answer generating server device, the current intention on the basis of the future intentions with the question and to generate the answer by referring to the look-up table or, before Symbol the question currently intended the future intent Generating an answer obtained from a machine learning model that has been machine-learned and has the answer as an output.
Chat system.
前記答弁生成サーバー装置は、前記答弁を生成する際に、前記複数の系統の未来意図のうちの1つまたは複数を選択して選択された系統の未来意図についての答弁を生成し、または、前記複数の系統の未来意図のそれぞれについての答弁を生成する、
請求項7に記載のチャットシステム。 The future intention prediction server device, when predicting the future intention, predicts future intentions of a plurality of systems,
The answer generation server device, when generating the answer, selects one or more of the future intentions of the plurality of systems and generates a reply for the future intention of the selected system, or Generate an answer for each of the multiple intentions of the future,
The chat system according to claim 7.
前記答弁生成サーバー装置は、前記複数の系統の未来意図のうちの1つまたは複数を選択する際に、算出された前記確率値に基づく選択を行う、
請求項8に記載のチャットシステム。 The future intention prediction server device, when predicting the future intention, also calculates a probability value of the future intention,
The answer generation server device performs selection based on the calculated probability value when selecting one or more of future intentions of the plurality of systems.
The chat system according to claim 8.
意図の履歴を記憶する個別履歴管理部と、
意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する意図履歴データ管理部と、
前記チャットサーバー装置から受信した前記現在意図を、前記意図の履歴の一部として前記個別履歴管理部に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、前記意図履歴データ管理部を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を前記意図履歴データ管理部から読み出し、当該未来意図を、予測された前記未来意図を出力する未来意図予測部と、
を含む、請求項7から9までのいずれか一項に記載のチャットシステム。 The future intention prediction server device,
An individual history management unit that stores the history of intention,
An intention history data management unit that stores a history of intention history and a candidate for future intention associated with the history history of intention,
The current intention received from the chat server device is written to the individual history management unit as a part of the history of the intention, and based on the history of the intention stored in the individual history management unit and the current intention. Then, by referring to the intention history data management unit, the future intention associated with the transition of the history of the intention is read from the intention history data management unit, and the future intention is output as the predicted future intention. A future intention prediction unit that
10. The chat system according to any one of claims 7 to 9, comprising:
意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する意図履歴データ管理部と、
外部から受信した現在意図を、前記意図の履歴の一部として前記個別履歴管理部に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、前記意図履歴データ管理部を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を前記意図履歴データ管理部から読み出し、当該未来意図を、予測された前記未来意図として出力する未来意図予測部と、
を含み、
前記現在意図は、主題の分類に対応するものであり、
前記未来意図は、主題の分類に対応するものである、
未来意図予測サーバー装置。 An individual history management unit that stores a history of intentions corresponding to questions in the chat system,
An intention history data management unit that stores a history of intention history and a candidate for future intention associated with the history history of intention,
The current intention received from the outside is written in the individual history management unit as a part of the history of the intention, and the intention is stored based on the history of the intention stored in the individual history management unit and the current intention. By referring to the history data management unit, the future intention associated with the transition of the history of the intention is read from the intention history data management unit, and the future intention is output as the predicted future intention. Department,
Only including,
The presently contemplated, which corresponds to the classification of the main subject,
The future intentions, which corresponds to the classification of the main subject,
Future intention prediction server device.
外部から受信された前記現在意図と前記未来意図と前記質問とに基づいて、前記答弁データ管理部を参照することによって答弁を生成し出力する答弁生成部と、
を具備する答弁生成サーバー装置であって、
前記答弁データ管理部が管理する前記データは、前記現在意図と前記未来意図と前記質問とに基づいて前記答弁を特定することのできるルックアップテーブル、または、前記現在意図と前記未来意図と前記質問とを入力として前記答弁を出力とする機械学習済みの機械学習モデルであって、
前記答弁生成部は、前記現在意図と前記未来意図と前記質問とに基づいて、前記ルックアップテーブルを参照することによって前記答弁を生成し、または、前記機械学習モデルから得られる前記答弁を生成する、
答弁生成サーバー装置。 To generate a reply corresponding to the question based on the present intention which is the intention corresponding to the question in the chat system, the future intention which is the predicted intention based on the past history of the intention, and the question. An answer data management unit that manages the data of
An answer generation unit that generates and outputs an answer by referring to the answer data management unit based on the present intention, the future intention, and the question received from the outside,
A reply generation server device comprising:
The data to which the answer data management unit manages, the presently contemplated as the future intended the question and the basis lookup table can be specified the answer to, or pre-Symbol the current intention and the future intentions A machine-learning machine-learned model that inputs a question and outputs the answer,
The answer generation unit generates the answer based on the present intention , the future intention, and the question by referring to the lookup table, or generates the answer obtained from the machine learning model. ,
Response generation server device.
装置が、前記質問に対応する現在意図を推論する第2過程と、
装置が、前記端末装置に関連付けられる過去の意図の履歴を予め記憶しておき、過去の意図の履歴と未来意図との関係とを参照することによって、前記現在意図と記憶しておいた前記過去の履歴とに基づいて、未来意図を予測する第3過程と、
装置が、前記現在意図と、予測された前記未来意図とに基づいて答弁を生成する第4過程と、
前記端末装置が、生成された前記答弁を出力する第5過程と、
の処理をコンピューターに実行させるプログラムであって、
前記現在意図は、主題の分類に対応するものであり、
前記未来意図は、主題の分類に対応するものであり、
前記第4過程では、前記装置は、前記現在意図と前記未来意図と前記質問とに基づいて、ルックアップテーブルを参照することによって前記答弁を生成し、または、前記現在意図と前記未来意図と前記質問とを入力として前記答弁を出力とする機械学習済みの機械学習モデルから得られる前記答弁を生成する、
プログラム。 A first step in which the terminal device receives a question,
A second step in which the device infers the current intent corresponding to the question;
The device previously stores a history of past intentions associated with the terminal device, and refers to the relationship between the history of past intentions and the future intentions to thereby store the past intentions stored as the current intentions. A third process of predicting future intentions based on the history of
A fourth step in which the device generates an answer based on the present intention and the predicted future intention;
A fifth step in which the terminal device outputs the generated answer,
A program that causes a computer to execute the process of
The presently contemplated, which corresponds to the classification of the main subject,
The future intentions, which corresponds to the classification of the main subject,
In the fourth step, the apparatus, on the basis of the said current intended future intentions and the question and to generate the answer by referring to the look-up table or, before Symbol the future intended presently contemplated and Generating the answer obtained from a machine learning model that has been machine-learned with the question as an input and the answer as an output,
program.
意図の履歴の推移と、前記意図の履歴の推移に関連付けられる未来意図の候補とを記憶する意図履歴データ管理部と、
外部から受信した現在意図を、前記意図の履歴の一部として前記個別履歴管理部に書き込むとともに、前記個別履歴管理部に記憶された前記意図の履歴と、前記現在意図とに基づいて、前記意図履歴データ管理部を参照することにより、前記意図の履歴の推移に関連付けられた前記未来意図を前記意図履歴データ管理部から読み出し、当該未来意図を、予測された前記未来意図として出力する未来意図予測部と、
を含む未来意図予測サーバー装置としてコンピューターを機能させるためのプログラムであって、
前記現在意図は、主題の分類に対応するものであり、
前記未来意図は、主題の分類に対応するものである、
プログラム。 An individual history management unit that stores a history of intentions corresponding to questions in the chat system,
An intention history data management unit that stores a history of intention history and a candidate for future intention associated with the history history of intention,
The current intention received from the outside is written in the individual history management unit as a part of the history of the intention, and the intention is stored based on the history of the intention stored in the individual history management unit and the current intention. By referring to the history data management unit, the future intention associated with the transition of the history of the intention is read from the intention history data management unit, and the future intention is output as the predicted future intention. Department,
A program for operating a computer as a future intention prediction server device including
The presently contemplated, which corresponds to the classification of the main subject,
The future intentions, which corresponds to the classification of the main subject,
program.
外部から受信された前記現在意図および前記未来意図に基づいて、前記答弁データ管理部を参照することによって答弁を生成し出力する答弁生成部と、
を具備する答弁生成サーバー装置としてコンピューターを機能させるためのプログラムであって、
前記答弁データ管理部が管理する前記データは、前記現在意図と前記未来意図と前記質問とに基づいて前記答弁を特定することのできるルックアップテーブル、または、前記現在意図と前記未来意図と前記質問とを入力として前記答弁を出力とする機械学習済みの機械学習モデルであって、
前記答弁生成部は、前記現在意図と前記未来意図と前記質問とに基づいて、前記ルックアップテーブルを参照することによって前記答弁を生成し、または、前記機械学習モデルから得られる前記答弁を生成する、
プログラム。 Managing data for generating an answer corresponding to the question based on a present intention, which is an intention corresponding to the question in the chat system, and a future intention, which is a predicted intention based on a past history of the intention. An answer data management unit that
An answer generation unit that generates and outputs an answer by referring to the answer data management unit based on the present intention and the future intention received from the outside,
A program for causing a computer to function as an answer generation server device comprising:
The data to which the answer data management unit manages, the presently contemplated as the future intended the question and the basis lookup table can be specified the answer to, or pre-Symbol the current intention and the future intentions A machine-learning machine-learned model that inputs a question and outputs the answer,
The answer generation unit generates the answer based on the present intention , the future intention, and the question by referring to the lookup table, or generates the answer obtained from the machine learning model. ,
program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019083266A JP6731513B1 (en) | 2019-04-24 | 2019-04-24 | Chat management method, chat system, future intention prediction server device, answer generation server device, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019083266A JP6731513B1 (en) | 2019-04-24 | 2019-04-24 | Chat management method, chat system, future intention prediction server device, answer generation server device, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP6731513B1 true JP6731513B1 (en) | 2020-07-29 |
JP2020181336A JP2020181336A (en) | 2020-11-05 |
Family
ID=71738566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019083266A Active JP6731513B1 (en) | 2019-04-24 | 2019-04-24 | Chat management method, chat system, future intention prediction server device, answer generation server device, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6731513B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905765A (en) * | 2021-02-09 | 2021-06-04 | 联想(北京)有限公司 | Information processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6873805B2 (en) * | 2017-04-24 | 2021-05-19 | 株式会社日立製作所 | Dialogue support system, dialogue support method, and dialogue support program |
-
2019
- 2019-04-24 JP JP2019083266A patent/JP6731513B1/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905765A (en) * | 2021-02-09 | 2021-06-04 | 联想(北京)有限公司 | Information processing method and device |
Also Published As
Publication number | Publication date |
---|---|
JP2020181336A (en) | 2020-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11394667B2 (en) | Chatbot skills systems and methods | |
US20230342196A1 (en) | Methods and apparatus to optimize workflows | |
US20230012803A1 (en) | Systems and Methods for Analyzing a List of Items Using Machine Learning Models | |
CN105765479A (en) | Hierarchical statistical model for behavior prediction and classification | |
US11810126B2 (en) | System and method for implementing an intelligent customer service query management and routing system | |
US20170076249A1 (en) | Managing food inventory via item tracking to reduce food waste | |
JP6489670B1 (en) | Chat system, chat bot server device, chat bot ID management device, chat agent server device, program, chat method, and chat agent method | |
CN106104427B (en) | The reformatting of the perceived content of input | |
CN111737434A (en) | Generating automated assistant responses and/or actions directly from conversation histories and resources | |
US20200401910A1 (en) | Intelligent causal knowledge extraction from data sources | |
CN109643540A (en) | System and method for artificial intelligent voice evolution | |
JP2024512648A (en) | Domain adaptation of AI NLP encoder with knowledge distillation | |
US20230410123A1 (en) | Data-driven taxonomy for annotation resolution | |
CN109657033A (en) | Method, apparatus, storage medium and the electronic equipment of customer problem processing | |
JP6731513B1 (en) | Chat management method, chat system, future intention prediction server device, answer generation server device, and program | |
CN110209782A (en) | Question-Answering Model and the generation method of answer statement, device, medium and electronic equipment | |
US11972467B2 (en) | Question-answer expansion | |
US10248452B2 (en) | Interaction framework for executing user instructions with online services | |
AU2021285843B2 (en) | Systems and method for intent messaging | |
US10176457B2 (en) | System and method automatically learning and optimizing sequence order | |
CN111199287A (en) | Feature engineering real-time recommendation method and device and electronic equipment | |
US20230244866A1 (en) | Systems and methods for generating a customized graphical user interface | |
US11288457B1 (en) | Dialog management using knowledge graph-driven information state in a natural language processing system | |
US20220129642A1 (en) | Intelligent conversational gateway | |
US20240020471A1 (en) | Information processing device, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190424 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20190424 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20190528 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190813 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190903 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20191210 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20200206 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200319 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20200609 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200706 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6731513 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |