Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5166503B2 - Interactive device - Google Patents
[go: Go Back, main page]

JP5166503B2 - Interactive device - Google Patents

Interactive device Download PDF

Info

Publication number
JP5166503B2
JP5166503B2 JP2010242745A JP2010242745A JP5166503B2 JP 5166503 B2 JP5166503 B2 JP 5166503B2 JP 2010242745 A JP2010242745 A JP 2010242745A JP 2010242745 A JP2010242745 A JP 2010242745A JP 5166503 B2 JP5166503 B2 JP 5166503B2
Authority
JP
Japan
Prior art keywords
sentence
dialogue
output
probability
unit
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
Application number
JP2010242745A
Other languages
Japanese (ja)
Other versions
JP2012094075A (en
Inventor
大介 山本
優佳 小林
美和子 土井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2010242745A priority Critical patent/JP5166503B2/en
Publication of JP2012094075A publication Critical patent/JP2012094075A/en
Application granted granted Critical
Publication of JP5166503B2 publication Critical patent/JP5166503B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Machine Translation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an interaction device capable of keeping interaction natural and controlling interaction content. <P>SOLUTION: An interaction order storage unit stores plural patterns of interaction sentences. An output unit outputs a first output sentence. A first reception unit receives input of an input sentence. A second reception unit receives input of a question sentence. A first probability calculation unit calculates, on the basis of the patterns, a first probability indicating a probability of outputting an interaction sentence identical or similar to the first output sentence and then outputting each of first interaction sentences that is any of the interaction sentences stored in the interaction sentence storage unit. A second probability calculation unit calculates, on the basis of the patterns, a second probability indicating a probability of outputting an interaction sentence identical or similar to the question sentence two steps after each of the first interaction sentences. A selection unit selects a first interaction sentence having the largest value obtained by weighted-adding the first probability and the second probability as a second output sentence. <P>COPYRIGHT: (C)2012,JPO&amp;INPIT

Description

本発明の実施形態は、ユーザと対話する対話装置に関する。   Embodiments described herein relate generally to an interactive apparatus that interacts with a user.

従来、ユーザがテキスト文入力や音声入力を用いてシステムと対話することによりシステムから情報を収集する装置、逆にシステムがユーザから情報を収集する装置が知られている。システムから情報を収集する装置では、ユーザの入力の意図をシステムが解析し、その意向に沿った情報を提示することが必要となるが、自然対話から入力の意図を解析することは困難である。   2. Description of the Related Art Conventionally, an apparatus that collects information from a system when a user interacts with the system using text sentence input or voice input, and conversely, an apparatus that collects information from a user by a system is known. In a device that collects information from the system, it is necessary for the system to analyze the intention of the user's input and present the information according to the intention, but it is difficult to analyze the intention of the input from natural dialogue .

そこで、一般的な対話システムでは、システム側が選択肢を提示し、ユーザがその中のいずれかを選択することでシステムへ意図を伝える方法が採用されている。また、システムがユーザから情報を収集する装置も同様に選択肢を用いた方法が多く採用されている。   Therefore, a general dialogue system employs a method in which the system side presents choices and the user selects one of them to convey the intention to the system. In addition, many methods using options are also adopted for the apparatus for collecting information from the user by the system.

これに対して、ユーザがシステムから情報を収集するため、またはシステムがユーザから情報を収集する方法として、あらかじめ用意された自然対話文の対話履歴の対話連鎖を用いる方法が開示されている。例えば、システムが自然対話文の対話履歴を用いて応答文を作成したり、聞き取れなかったユーザからの応答を推測したりする方法が提案されている。   On the other hand, as a method for collecting information from the system by the user or a method for collecting information from the user, a method using a dialogue chain of dialogue history of prepared natural dialogue sentences is disclosed. For example, a method has been proposed in which the system creates a response sentence using a conversation history of a natural conversation sentence, or guesses a response from a user who has not been heard.

特許第4246548号公報Japanese Patent No. 4246548

しかしながら、従来の方法では、対話の自然さを保持しつつ対話内容をコントロールすることが困難であった。   However, in the conventional method, it is difficult to control the content of the dialogue while maintaining the naturalness of the dialogue.

実施形態の対話装置は、対話文記憶部と、対話順序記憶部と、出力部と、第1受付部と、第2受付部と、第1確率算出部と、第2確率算出部と、選択部と、を備えた。対話文記憶部は、対話文を記憶する。対話順序記憶部は、対話文のパターンを複数記憶する。出力部は、第1出力文を出力する。第1受付部は、入力文の入力を受け付ける。第2受付部は、質問文の入力を受け付ける。第1確率算出部は、第1出力文と同一または類似する対話文が出力され、更にその次に対話文記憶部に記憶された対話文のいずれかである第1対話文のそれぞれが出力される確率を表す第1確率をパターンに基づいて算出する。第2確率算出部は、パターンに基づいて、第1対話文ごとに、第1対話文の次の次に質問文と同一または類似する対話文が出力される確率を表す第2確率を算出する。選択部は、第1確率と第2確率とを重み付け加算した値が最も大きい第1対話文を第2出力文として選択する。   The dialogue apparatus according to the embodiment includes a dialogue sentence storage unit, a dialogue order storage unit, an output unit, a first reception unit, a second reception unit, a first probability calculation unit, and a second probability calculation unit. And a section. The dialog sentence storage unit stores a dialog sentence. The dialogue order storage unit stores a plurality of dialogue sentence patterns. The output unit outputs the first output sentence. The first receiving unit receives an input sentence. The second reception unit receives an input of a question sentence. The first probability calculation unit outputs a dialogue sentence that is the same as or similar to the first output sentence, and then outputs each of the first dialogue sentences that are one of the dialogue sentences stored in the dialogue sentence storage unit. The first probability representing the probability of being calculated is calculated based on the pattern. The second probability calculation unit calculates, based on the pattern, a second probability that represents a probability that a dialogue sentence that is the same as or similar to the question sentence is output next to the first conversation sentence for each first dialogue sentence. . The selection unit selects, as the second output sentence, the first dialog sentence having the largest value obtained by weighted addition of the first probability and the second probability.

第1の実施形態にかかる対話装置の構成を示すブロック図。The block diagram which shows the structure of the dialogue apparatus concerning 1st Embodiment. 対話順序記憶部に記憶された対話順序のパターンの一例を示す図。The figure which shows an example of the pattern of the dialog order memorize | stored in the dialog order memory | storage part. ユーザと出力部による対話順序のパターンの一例を示す図。The figure which shows an example of the pattern of the dialog order by a user and an output part. 対話装置による出力文出力処理の手順を示すフローチャート。The flowchart which shows the procedure of the output sentence output process by a dialogue apparatus. 第2の実施の形態にかかる対話装置の構成を示すブロック図。The block diagram which shows the structure of the dialogue apparatus concerning 2nd Embodiment. 対話装置による出力文出力処理の手順を示すフローチャート。The flowchart which shows the procedure of the output sentence output process by a dialogue apparatus. 第1または第2の実施の形態にかかる対話装置のハードウェア構成を示す説明図。Explanatory drawing which shows the hardware constitutions of the dialogue apparatus concerning 1st or 2nd Embodiment.

(第1の実施形態)
図1は、第1の実施形態にかかる対話装置の構成を示すブロック図である。図1に示すように、対話装置100は、第1受付部101と、第2受付部102と、次発話遷移確率算出部103と、質問誘導遷移確率算出部110と、選択部115と、認識部116と、検出部117と、出力部118と、類似度算出部119と、対話文記憶部150と、対話順序記憶部160と、操作表示部120とを主に備える。
(First embodiment)
FIG. 1 is a block diagram illustrating the configuration of the interactive apparatus according to the first embodiment. As shown in FIG. 1, the dialogue apparatus 100 includes a first reception unit 101, a second reception unit 102, a next utterance transition probability calculation unit 103, a question guidance transition probability calculation unit 110, a selection unit 115, and a recognition unit. Unit 116, detection unit 117, output unit 118, similarity calculation unit 119, dialogue sentence storage unit 150, dialogue order storage unit 160, and operation display unit 120.

対話文記憶部150は、ユーザと対話装置100との過去の対話文、または外部から取得された対話文を文単位で記憶する。具体的には、対話文は、ユーザにより入力された入力文と対話装置100により出力された出力文を含む。また、文単位とは、キーボード(不図示)等から一度に入力されたテキスト情報または音声認識装置(不図示)から一度に入力された音声情報であっても良く、文法上の文として句点が付された箇所を1つの文としてもよい。   The dialogue storage unit 150 stores past dialogues between the user and the dialogue device 100 or dialogues acquired from the outside in units of sentences. Specifically, the dialogue sentence includes an input sentence inputted by the user and an output sentence outputted by the dialogue apparatus 100. The sentence unit may be text information input at once from a keyboard (not shown) or the like, or voice information input at once from a speech recognition device (not shown). It is good also considering the attached part as one sentence.

対話順序記憶部160は、ユーザによる入力文と対話装置100による出力文の一連の対話順序のパターンを複数記憶する。ここで、一連の対話順序とは、複数の対話文で構成される一連の対話の順序のことであって、一連の対話は、ユーザもしくは対話装置100が次の対話文の入力または出力が所定時間中断されたときに終了しても良く、また、話題が切り替わった際に終了してもよい。なお、対話文が文法上の文として句点が付された箇所を一つの文とされた場合、対話順序記憶部160における対話順序は、ユーザ、出力部118と入れ替わるのではなく、対話文の順番となる。   The dialogue order storage unit 160 stores a plurality of dialogue order patterns of a series of input sentences by the user and output sentences by the dialogue apparatus 100. Here, a series of dialogue orders refers to a sequence of dialogues composed of a plurality of dialogue sentences, and the series of dialogues is such that the user or the dialogue device 100 has predetermined input or output of the next dialogue sentence. It may end when the time is interrupted, or may end when the topic changes. When the dialogue sentence is a grammatical sentence and a point is added as one sentence, the dialogue order in the dialogue order storage unit 160 is not replaced with the user and the output unit 118, but the dialogue sentence order. It becomes.

図2は、対話順序記憶部160に記憶された対話順序のパターンの一例を示す図である。図2に示すように、対話順序記憶部160は、No.1〜9までの対話を各対話文に符号を付して記憶する。例えば、図2のNo.1の対話では、最初に対話装置100による第1出力文(S1)として、「おはよう」が出力されており、次にユーザから入力文(U1)「おはよう」が入力されている。   FIG. 2 is a diagram illustrating an example of a conversation order pattern stored in the conversation order storage unit 160. As shown in FIG. The dialogues 1 to 9 are stored by adding a sign to each dialogue sentence. For example, in FIG. In the dialogue 1, “good morning” is first output as the first output sentence (S <b> 1) by the interactive device 100, and then the input sentence (U <b> 1) “good morning” is inputted from the user.

また、対話順序記憶部160は、パターンごとにユーザとの対話状況を記憶してもよい。対話状況は、ユーザとの対話が行われているときの対話状況を示す情報のことであり、例えば、時刻(朝、昼、晩)、天気、気温、ユーザの体調(風邪を引いている等)等、対話の内容に影響する情報のことである。   Further, the dialogue order storage unit 160 may store a dialogue state with the user for each pattern. The dialogue status is information indicating the dialogue status when the dialogue with the user is being performed. For example, time (morning, noon, evening), weather, temperature, physical condition of the user (a cold is caught, etc.) ), Etc., that affect the content of the dialogue.

検出部117は、現在の対話状況を検出する。例えば、検出部117は、対話装置100または外部から取得した時刻、気温等を対話状況として検出する。また、検出部117は、第1受付部101によりユーザが入力した入力文に対話状況を示す特定の言葉が含まれる場合、当該入力文から対話状況を検出してもよい。   The detection unit 117 detects the current dialog state. For example, the detection unit 117 detects time, temperature, and the like acquired from the interaction device 100 or from the outside as the interaction state. Moreover, the detection part 117 may detect a dialog condition from the said input sentence, when the specific word which shows a dialog condition is contained in the input sentence which the user input by the 1st reception part 101. FIG.

第1受付部101は、ユーザがテキスト情報または音声情報により入力した入力文を受け付ける。例えば、第1受付部101は、操作表示部120からキーボード等によりテキスト情報を受け付けたり、マイク(不図示)から音声情報を受け付けたりする。   The 1st reception part 101 receives the input sentence which the user input by text information or audio | voice information. For example, the first receiving unit 101 receives text information from the operation display unit 120 using a keyboard or the like, or receives audio information from a microphone (not shown).

また、第1受付部101は、入力文をテキスト情報により受け付けた場合は、入力文を対話文記憶部150に記憶する。また、第1受付部101は、入力文を音声情報により受け付けた場合は、音声認識処理によりテキスト情報に変換し、対話文記憶部150に記憶する。   Moreover, the 1st reception part 101 memorize | stores an input sentence in the dialogue sentence memory | storage part 150, when an input sentence is received by text information. Further, when the first reception unit 101 receives an input sentence as voice information, the first reception unit 101 converts the input sentence into text information through a voice recognition process and stores the text information in the dialogue sentence storage unit 150.

第1受付部101で得られた入力文は、対応する直前の出力文とともに記録し、出力文への回答として保存しておくことで、システム側はユーザの情報収集をすることが可能となる。また、入力文を音声情報により受け付けた場合は、音声認識処理によりテキスト情報として変換して記録してもよいし、音声情報をそのまま録音して記録して、情報収集してもよい。   The input sentence obtained by the first reception unit 101 is recorded together with the output sentence immediately before the corresponding one, and saved as an answer to the output sentence, so that the system side can collect user information. . When the input sentence is received as voice information, it may be converted and recorded as text information by voice recognition processing, or the voice information may be recorded and recorded as it is to collect information.

第2受付部102は、ユーザに質問することをシステムに要求する質問文(以下、要求質問文という。)の入力を受け付ける。ここで、要求質問文とは、ユーザに要求する内容が質問形式にされた文であって、問診票のように質問内容がリストになっていて順次入力されるものであってもよい。   The 2nd reception part 102 receives the input of the question sentence (henceforth a request | requirement question sentence) which requests | requires a system to ask a user a question. Here, the request question sentence is a sentence in which the content requested by the user is in a question format, and the question content may be sequentially entered in a list like a questionnaire.

類似度算出部119は、対話文記憶部150または対話順序記憶部160に記憶された対話文と、ユーザから入力された入力文または出力部118により出力された出力文との類似度を算出する。また、類似度算出部119は、対話文記憶部150または対話順序記憶部160に記憶された対話文と、第2受付部102により受け付けた要求質問文との類似度を算出する。   The similarity calculation unit 119 calculates the similarity between the dialogue sentence stored in the dialogue sentence storage unit 150 or the dialogue order storage unit 160 and the input sentence input by the user or the output sentence output by the output unit 118. . In addition, the similarity calculation unit 119 calculates the similarity between the dialogue sentence stored in the dialogue sentence storage unit 150 or the dialogue order storage unit 160 and the request question sentence received by the second reception unit 102.

例えば、類似度算出部119は、対話文を形態素解析し同一の単語が含まれる数や割合を用いて類似度を算出しても良いし、文章を修正する際のキー入力回数により求める編集距離を用いて類似度を算出しても良いし、単語の品詞ごとに重み付けをして類似度を算出しても良い。類似度算出部119は、同一の対話文の類似度を1として、全く異なる対話文の類似度が0となるように正規化を施す。類似度算出部119は、算出した類似度を、入力された入力文とともに対話文記憶部150に記憶する。   For example, the similarity calculation unit 119 may perform morphological analysis of the dialogue sentence and calculate the similarity using the number or ratio of the same word included, or the edit distance obtained by the number of key inputs when correcting the sentence The similarity may be calculated using, or the similarity may be calculated by weighting each part of speech of the word. The similarity calculation unit 119 performs normalization so that the similarity of identical dialogue sentences is 1, and the similarity of completely different dialogue sentences is 0. The similarity calculation unit 119 stores the calculated similarity in the dialogue sentence storage unit 150 together with the input sentence that has been input.

選択部115は、直前に出力部118により出力された出力文と、ユーザにより入力された入力文から、次に出力部118により出力させる出力文を選択する。例えば、選択部115は、第1算出部103により算出された次発話遷移確率と、第2算出部110により算出された質問誘導遷移確率とを重み付け加算し、加算した値が最も大きい対話文を第2出力文として選択する。   The selection unit 115 selects an output sentence to be output next by the output unit 118 from the output sentence output immediately before by the output unit 118 and the input sentence input by the user. For example, the selection unit 115 weights and adds the next utterance transition probability calculated by the first calculation unit 103 and the question guidance transition probability calculated by the second calculation unit 110, and selects the dialogue sentence having the largest added value. Select as second output sentence.

ここで、具体的なパターンの例について説明する。図3は、ユーザと出力部118による対話順序のパターンの一例を示す図である。図3では、最初に出力部118により対話文A「こんにちは」がS1(第1出力文)として出力されている。次に、ユーザにより対話文B「こんにちは」がU1(入力文)として入力されている。そして、次にS2(第2出力文)として出力部118により出力される対話文C「???」が、対話文C「???」の次の次に対話文F「よく眠れた?」が発話される対話文となるように決定される。なお、対話文F「よく眠れた?」という対話文は、第2受付部102により受け付けた要求質問文と類似する対話文である。   Here, an example of a specific pattern will be described. FIG. 3 is a diagram illustrating an example of a dialogue order pattern by the user and the output unit 118. In Figure 3, the dialogue A "Hello" is output as S1 (first output sentence) by first output unit 118. Then, interactive statement B, "Hello" is input as U1 (input sentence) by the user. Then, the dialogue sentence C “???” that is output by the output unit 118 as S2 (second output sentence) is next to the dialogue sentence F “I slept well?” Next to the dialogue sentence C “???”. "Is determined to be a spoken dialogue sentence. It should be noted that the dialogue sentence “Did you sleep well?” Is a dialogue sentence similar to the request question sentence received by the second reception unit 102.

次発話遷移確率算出部103は、対話順序記憶部160に記憶されているパターンから、次発話遷移確率を算出する。ここで、次発話遷移確率とは、過去に同様の対話がされたときに、次に発話される対話文の確率である。具体的には、直前に出力部118により出力された出力文(第1出力文)(S1)と同一または類似する対話文がシステムにより出力され、その次に入力文(U1)と同一または類似する対話文がユーザにより入力され、さらにその次に対話文記憶部150に記憶されたある対話文(第1対話文)が出力される確率のことである。   The next utterance transition probability calculation unit 103 calculates the next utterance transition probability from the patterns stored in the dialogue order storage unit 160. Here, the next utterance transition probability is a probability of a dialogue sentence to be uttered next when a similar dialogue has been conducted in the past. Specifically, an interactive sentence that is the same as or similar to the output sentence (first output sentence) (S1) output by the output unit 118 immediately before is output by the system, and then the same or similar to the input sentence (U1). This is a probability that a dialogue sentence to be inputted is input by the user, and then a certain dialogue sentence (first dialogue sentence) stored in the dialogue sentence storage unit 150 is output.

まず、次発話遷移確率算出部103は、第1出力文(S1)と同一または類似する対話文の次に入力文(U1)と同一または類似する対話文が生じるパターンの総数を求める。例えば、図2のNo.6〜No.9の点線で示したパターンに着目すると、図3で示した対話文A「こんにちは」→対話文B「こんにちは」が生じた総数は4つである。次発話遷移確率算出部103は、対話文A「こんにちは」→対話文B「こんにちは」のパターンが生じた総数4を求める。   First, the next utterance transition probability calculation unit 103 obtains the total number of patterns in which a dialogue sentence that is the same as or similar to the input sentence (U1) follows the dialogue sentence that is the same or similar to the first output sentence (S1). For example, in FIG. 6-No. Focusing on the pattern shown by the dotted line 9, the total number of the dialogue A "Hello" → dialogue B "Hello" occurs as shown in FIG. 3 is four. The following speech transition probability calculation unit 103, determine the total number 4 pattern of dialogue sentence A "Hello" → interactive statement B, "Hello" has occurred.

次に、次発話遷移確率算出部103は、対話文記憶部150に記憶されている対話文ごとに、対話文A「こんにちは」→対話文B「こんにちは」のパターンの次に対話文(第1対話文)が出力されたパターンのパターン数を求める。   Then, next utterance transition probability calculation unit 103, for each conversation sentences stored in the conversation sentence storage unit 150, following the conversation sentence pattern of dialogue A "Hello" → dialogue B "Hello" (first (Dialogue sentence) is output.

例えば、図3で示した対話文A→対話文Bの第1パターンの次に対話文Cが生じるパターンについて図2に着目すると、図2のNo.6とNo.8では、対話文A「こんにちは」→対話文B「こんにちは」の次に同一の対話文C「昨日は暑かったね」が生じている。そこで、対話文「昨日は暑かったね」については、対話文A「こんにちは」→対話文B「こんにちは」の第1パターンの次に出力されたパターン数は2である。一方、No.7と、No.9では、対話文Cは、異なる対話文「この頃暑いね」と「だるくない?」が1つずつ生じているので、対話文A「こんにちは」→対話文B「こんにちは」の第1パターンの次に出力されたパターン数はそれぞれ1である。   For example, when attention is paid to FIG. 2 regarding the pattern in which the dialog sentence C is generated after the first pattern of the dialog sentence A → dialog sentence B shown in FIG. 6 and no. At 8, dialogue sentence A "Hello" → next to the same dialogue sentence C of the dialogue B, "Hello", "It was hot yesterday" has occurred. So, for the dialogue sentence "It was hot yesterday," is, next to output the number of patterns of the first pattern of dialogue sentence A "Hello" → interactive statement B, "Hello" is two. On the other hand, no. 7 and no. At 9, interactive text C is different dialogue sentence "This time I hot," "felt fatigue not?" Has occurred one by one, interactive sentence A "Hello" → of the first pattern of the dialogue B, "Hello" next The number of patterns output to each is 1.

この場合、第1パターン数は、対話文C「昨日は暑かったね」については、第1パターンの次に対話文が出力されたパターンのパターン数2となり、対話文「この頃暑いね」と「だるくない?」については、パターン数1となる。   In this case, the number of first patterns for the dialogue sentence C “It was hot yesterday” is the number of patterns in which the dialogue sentence is output next to the first pattern, and the dialogue sentences “It is hot these days” and “Daraku” For “No?”, The number of patterns is 1.

次発話遷移確率算出部103は、求めた総数とパターン数とを用いて次発話遷移確率PNABCを以下の(1)式により算出する。
PNABC=(A→B→C)が生じた数/(A→B)が生じた総数・・・(1)
The next utterance transition probability calculation unit 103 calculates the next utterance transition probability PN ABC by the following equation (1) using the obtained total number and the number of patterns.
PN ABC = number of (A → B → C) / total number of (A → B) (1)

但し、(1)式は、対話順序記憶部160に、対話文A、対話文Bに同一の対話文が存在する場合の確率となる。しかし、実際には、対話順序記憶部160に同一の対話文が存在しない可能性も高い。そこで、次発話遷移確率算出部103は、各対話文の類似度を考慮した場合の次発話遷移確率PNSABCを、以下の(2)式により算出する。
PNSABC=Σn{(An→Bn→C)が生じた数×(AとAnの類似度)×(BとBnの類似度)/(An→Bn)が生じた総数)}・・・(2)
ここで、Anは、対話文Aに類似する対話文、Bnは、対話文Bに類似する対話文を示す。また、Σnは、類似する対話文それぞれについて総和を算出することを意味する。
However, equation (1) is a probability when the same dialogue sentence exists in the dialogue sentence A and the dialogue sentence B in the dialogue order storage unit 160. However, in reality, there is a high possibility that the same dialogue sentence does not exist in the dialogue order storage unit 160. Therefore, the next utterance transition probability calculation unit 103 calculates the next utterance transition probability PNS ABC when considering the similarity of each dialogue sentence by the following equation (2).
PNS ABC = Σn {number of occurrences of (An → Bn → C) × (similarity of A and An) × (similarity of B and Bn) / total number of occurrences of (An → Bn)}} ( 2)
Here, An indicates a dialog sentence similar to the dialog sentence A, and Bn indicates a dialog sentence similar to the dialog sentence B. Further, Σn means that the sum is calculated for each similar dialogue sentence.

さらに、次発話遷移確率算出部103は、対話順序記憶部160に対話状況が記憶されている場合、対話順序記憶部160に記憶されている対話状況と、検出部117により検出された現在の対話状況との類似度が高い対話文ほど高い確率を算出する。例えば、対話状況を考慮した次発話遷移確率PNSTABCを、以下(2.2)式により算出する。
PNSTABC=Σn{(An→Bn→C)が生じた数×(AとAnの類似度)×(BとBnの類似度)×T/(An→Bn)が生じた総数)}・・・(2.2)
ここで、Tは現在の対話状況と、An→Bn→Cが生じたときの対話状況の類似度であり、一致するときを1、全く異なるときを0となるよう正規化された係数である。
Further, the next utterance transition probability calculation unit 103, when the conversation state is stored in the conversation order storage unit 160, the conversation state stored in the conversation order storage unit 160 and the current conversation detected by the detection unit 117. A higher probability is calculated for a dialogue sentence having a higher degree of similarity to the situation. For example, the next utterance transition probability PNST ABC considering the conversation state is calculated by the following equation (2.2).
PNST ABC = Σn {number of occurrences of (An → Bn → C) × (similarity of A and An) × (similarity of B and Bn) × T / (total number of occurrences of An → Bn)}・ (2.2)
Here, T is the similarity between the current dialog status and the dialog status when An → Bn → C occurs, and is a coefficient normalized to be 1 when matching and 0 when completely different. .

質問誘導遷移確率算出部110は、対話文記憶部150に記憶されている対話文(第1対話文)ごとに、質問誘導遷移確率を算出する。ここで、質問誘導遷移確率とは、第1対話文の次の次に質問文と同一または類似する対話文が出力される確率のことである。   The question guidance transition probability calculation unit 110 calculates a question guidance transition probability for each dialogue sentence (first dialogue sentence) stored in the dialogue sentence storage unit 150. Here, the question-induced transition probability is a probability that a dialog sentence that is the same as or similar to the question sentence is output next to the first dialog sentence.

質問誘導遷移確率算出部110は、対話順序記憶部160に記憶されているパターンのうち、要求質問文と同一または類似する対話文を含むパターンの総数を求める。   The question guidance transition probability calculation unit 110 obtains the total number of patterns including dialogue sentences that are the same as or similar to the requested question sentence among the patterns stored in the dialogue order storage unit 160.

例えば、質問誘導遷移確率算出部110は、要求質問文と同一または類似する対話文Fを含むパターンの総数を求めることとする。この場合、図2では、No.3とNo.6〜No.8において、要求質問文と同一または類似する対話文F「よく眠れた?」が生じている。そこで、第2総数算出部111は、要求質問文と同一または類似する対話文F「よく眠れた?」を含む第2パターンの総数4を求める。   For example, the question induction transition probability calculation unit 110 obtains the total number of patterns including the dialogue sentence F that is the same as or similar to the request question sentence. In this case, in FIG. 3 and no. 6-No. In FIG. 8, the dialogue sentence F “I slept well?” That is the same as or similar to the request question sentence has occurred. Therefore, the second total number calculation unit 111 calculates the total number 4 of the second patterns including the dialogue sentence F “I slept well?” That is the same as or similar to the request question sentence.

質問誘導遷移確率算出部110は、対話文ごとに、対話文の次の次に第2パターンに含まれる要求質問文と同一または類似する対話文が出力されたパターンのパターン数を求める。例えば、質問誘導遷移確率算出部110は、対話文記憶部150に記憶された対話文(以下、対話文Dとする。)ごとに、対話文Dの2つ後に要求質問文と同一または類似する対話文Fが生じるパターンのパターン数を求める。   The question guidance transition probability calculation unit 110 obtains the number of patterns of a pattern in which a dialogue sentence that is the same as or similar to the request question sentence included in the second pattern is output next to the dialogue sentence for each dialogue sentence. For example, the question guidance transition probability calculation unit 110 is the same as or similar to the request question sentence after the dialogue sentence D for each dialogue sentence stored in the dialogue sentence storage unit 150 (hereinafter referred to as the dialogue sentence D). The number of patterns in which the dialogue sentence F occurs is obtained.

例えば、図2のNo.3とNo.8では、同一の対話文D「昨日は暑かったね」の2つ後に対話文F「よく眠れた?」が生じている。そこで、対話文D「昨日は暑かったね」については、対話文D「昨日は暑かったね」の2つ後に要求質問文と同一または類似するF「よく眠れた?」が生じたパターンのパターン数は2である。一方、No.7における、対話文D「夏バテ気味で、あなたは?」の2つ後に要求質問文と類似する対話文F「よく眠れた?」が生じたパターンのパターン数は1である。   For example, in FIG. 3 and no. In FIG. 8, the dialogue sentence F “I slept well?” Occurs two times after the same dialogue sentence D “It was hot yesterday”. Therefore, for the dialogue sentence D “Yesterday was hot”, the number of patterns in which F “I slept well?” That is the same or similar to the request question sentence after the dialogue sentence D “Yesterday was hot” occurred. 2. On the other hand, no. In FIG. 7, the number of patterns in which the dialogue sentence F “I slept well?” Similar to the request question sentence is generated after the dialogue sentence D “You feel like summer?

この場合、質問誘導遷移確率算出部110は、対話文D「昨日は暑かったね」については、2つ後に要求質問文と類似する対話文F「よく眠れた?」が生じたパターンのパターン数2を求め、対話文「この頃暑いね」については、パターン数1を求める。   In this case, the question induced transition probability calculation unit 110, for the dialogue sentence D “Yesterday was hot”, the number of patterns in which the dialogue sentence F “I slept well?” Similar to the request question sentence was generated 2 later. For the dialogue sentence “It's hot these days”, ask for 1 pattern.

質問誘導遷移確率算出部110は、求めたパターン数と総数を用いて、以下の(3)式により質問誘導遷移確率PADFを算出する。
PADF=(D→*→F)が生じた数/Fの総数・・・(3)
The question guidance transition probability calculation unit 110 calculates the question guidance transition probability PA DF by the following equation (3) using the obtained number of patterns and the total number.
PA DF = number of (D → * → F) / total number of F (3)

また、質問誘導遷移確率算出部110は、類似度を考慮した質問誘導遷移確率PASDFは、以下の(4)式により算出する。
PASDF=Σn{(Dn→*→Fn)が生じた数×(DとDnの類似度)×(FとFnの類似度)/Fの総数}・・・(4)
ここで、Dnは、対話文Dに類似する対話文、Fnは、対話文Fに類似する対話文を示す。また、Σnは、類似する対話文それぞれについて総和を算出することを意味する。
Further, the question induced transition probability calculation unit 110 calculates the question induced transition probability PAS DF considering the similarity according to the following equation (4).
PAS DF = Σn {number of (Dn → * → Fn) × (similarity between D and Dn) × (similarity between F and Fn) / total number of F} (4)
Here, Dn indicates a dialog sentence similar to the dialog sentence D, and Fn indicates a dialog sentence similar to the dialog sentence F. Further, Σn means that the sum is calculated for each similar dialogue sentence.

さらに、次発話遷移確率算出部103は、対話順序記憶部160に対話状況が記憶されている場合、対話順序記憶部160に記憶されている対話状況と、検出部117により検出された現在の対話状況との類似度が高い対話文ほど高い確率を算出する。
例えば、対話状況を考慮した質問誘導遷移確率PASTDFを、以下(4.2)式により算出する
PASDF=Σn{(Dn→*→Fn)が生じた数×(DとDnの類似度)×(FとFnの類似度)×T/Fの総数}・・・(4.2)

ここで、Tは現在の対話状況と、Dn→*→Fnが生じたときの対話状況の類似度であり、一致するときを1、全く異なるときを0となるよう正規化された係数である。
Further, the next utterance transition probability calculation unit 103, when the conversation state is stored in the conversation order storage unit 160, the conversation state stored in the conversation order storage unit 160 and the current conversation detected by the detection unit 117. A higher probability is calculated for a dialogue sentence having a higher degree of similarity to the situation.
For example, the question-induced transition probability PAST DF considering the dialogue situation is calculated by the following equation (4.2): PAS DF = Σn {number of occurrences of (Dn → * → Fn) × (similarity between D and Dn) X (similarity between F and Fn) x total number of T / F} (4.2)

Here, T is the similarity between the current dialog status and the dialog status when Dn → * → Fn occurs, and is a coefficient normalized to be 1 when matching and 0 when completely different. .

選択部115は、次発話遷移確率算出部103により算出された次発話遷移確率と、質問誘導遷移確率算出部110により算出された質問誘導遷移確率とを重み付け加算した値が最も大きい対話文を第2出力文として選択する。例えば、図2では、次発話遷移確率算出部103により算出された次発話遷移確率が最も高い対話文は、「昨日は暑かったね」であり、質問誘導遷移確率算出部110により算出された質問誘導遷移確率が最も高い対話文は「昨日は暑かったね」である。そこで、図2に示すパターンでは、次発話遷移確率が最も高い対話文と質問誘導遷移確率が最も高い対話文とが一致する。しかし、選択部115は、重み付け加算することにより、次発話遷移確率が最も高い対話文と質問誘導遷移確率が最も高い対話文とが異なる場合に特に有効である。   The selection unit 115 sets the dialogue sentence having the largest value obtained by weighted addition of the next utterance transition probability calculated by the next utterance transition probability calculation unit 103 and the question guidance transition probability calculated by the question guidance transition probability calculation unit 110. 2 Select as output sentence. For example, in FIG. 2, the dialogue sentence with the highest next utterance transition probability calculated by the next utterance transition probability calculating unit 103 is “It was hot yesterday”, and the question guidance calculated by the question guidance transition probability calculating unit 110 The dialogue sentence with the highest transition probability is “It was hot yesterday”. Therefore, in the pattern shown in FIG. 2, the dialogue sentence with the highest next utterance transition probability matches the dialogue sentence with the highest question-induced transition probability. However, the selection unit 115 is particularly effective when the dialogue sentence having the highest next utterance transition probability is different from the dialogue sentence having the highest question guidance transition probability by performing weighted addition.

出力部118は、選択部115により選択された対話文をテキスト情報として操作表示部120の表示画面(不図示)に出力したり、音声合成装置(不図示)によりスピーカー(不図示)から音声出力したりする。以下、出力部118により出力される対話文を出力文という。   The output unit 118 outputs the dialogue sentence selected by the selection unit 115 as text information to a display screen (not shown) of the operation display unit 120, or outputs a voice from a speaker (not shown) by a voice synthesizer (not shown). To do. Hereinafter, the dialogue sentence output by the output unit 118 is referred to as an output sentence.

操作表示部120は、ユーザから入力文を受け付けるための、また、出力部118から出力文を出力するためのタッチパネル等の操作画面(不図示)を表示する。また、これは、音声情報で操作する場合には、マイク、スピーカでもよい。   The operation display unit 120 displays an operation screen (not shown) such as a touch panel for receiving an input sentence from the user and outputting an output sentence from the output unit 118. In addition, this may be a microphone or a speaker when operating with audio information.

次に、以上のように構成された対話装置100による出力文出力処理の手順について説明する。図4は、対話装置100による出力文出力処理の手順を示すフローチャートである。   Next, a procedure of output sentence output processing by the interactive apparatus 100 configured as described above will be described. FIG. 4 is a flowchart showing a procedure of output sentence output processing by the dialogue apparatus 100.

第2受付部102は、要求質問文の入力を受け付ける(ステップS1)。例えば、第2受付部102は、ユーザへの質問内容をテキスト情報または音声情報により要求質問文として入力を受け付ける。   The 2nd reception part 102 receives the input of a request question sentence (step S1). For example, the second reception unit 102 receives an input of a question content to the user as a request question sentence by text information or voice information.

類似度算出部119は、第2受付部102により受け付けられた要求質問文と対話文記憶部150に記憶されている対話文の類似度を算出する(ステップS2)。   The similarity calculation unit 119 calculates the similarity between the request question sentence received by the second reception unit 102 and the dialogue sentence stored in the dialogue sentence storage unit 150 (step S2).

出力部118は、選択部115により選択されたシステム発話(S1)を出力する(ステップS3)。ここで、選択部115は、システム発話(S1)は1ターン目の発話であるので、これまでの一連の対話順序を考慮することなく定形文としてのあいさつ等を選択する。   The output unit 118 outputs the system utterance (S1) selected by the selection unit 115 (step S3). Here, since the system utterance (S1) is the utterance of the first turn, the selection unit 115 selects a greeting as a standard sentence without considering the sequence of conversations so far.

類似度算出部119は、出力部118により出力された出力文と対話文記憶部150に記憶されている対話文の類似度を算出する(ステップS4)。類似度算出部119は、算出した類似度を対話順序記憶部160に記憶する。   The similarity calculation unit 119 calculates the similarity between the output sentence output by the output unit 118 and the dialogue sentence stored in the dialogue sentence storage unit 150 (step S4). The similarity calculation unit 119 stores the calculated similarity in the dialogue order storage unit 160.

第1受付部101は、入力文としてユーザによる発話(U1)の入力を受け付ける(ステップS5)。ここで、第1受付部101は、ステップS3において出力されたシステム発話(S1)への応答としてユーザによる発話(U1)を受け付けることとなる。   The 1st reception part 101 receives the input of the speech (U1) by a user as an input sentence (step S5). Here, the 1st reception part 101 will receive the speech (U1) by a user as a response to the system speech (S1) output in step S3.

類似度算出部119は、第1受付部101により受け付けられた入力文と対話文記憶部150に記憶されている対話文の類似度を算出する(ステップS6)。類似度算出部119は、算出した類似度を対話順序記憶部160に記憶する。   The similarity calculation unit 119 calculates the similarity between the input sentence received by the first reception unit 101 and the dialogue sentence stored in the dialogue sentence storage unit 150 (step S6). The similarity calculation unit 119 stores the calculated similarity in the dialogue order storage unit 160.

次発話遷移確率算出部103は、次発話遷移確率を算出する(ステップS8)。ここで、まず、次発話遷移確率算出部103は、対話順序記憶部160の中から、システム発話(S1)として対話文Aの次にユーザ発話(U1)として対話文Bが生じた総数を求める。次に、次発話遷移確率算出部103は、システム発話(S1)として対話文Aとユーザ発話(U1)として対話文Bの次に生じた対話文のパターン数を対話順序記憶部160に記憶されている対話文ごとに求める。そして、次発話遷移確率算出部103は、求めたパターン数を、総数で割って次発話遷移確率を算出する。   The next utterance transition probability calculation unit 103 calculates the next utterance transition probability (step S8). Here, first, the next utterance transition probability calculation unit 103 obtains the total number of occurrences of the dialogue sentence B as the user utterance (U1) after the dialogue sentence A as the system utterance (S1) from the dialogue order storage unit 160. . Next, the next utterance transition probability calculation unit 103 stores in the dialogue order storage unit 160 the number of patterns of the dialogue sentence that occurs next to the dialogue sentence A as the system utterance (S1) and the dialogue sentence B as the user utterance (U1). Ask for each dialogue sentence. Then, the next utterance transition probability calculation unit 103 calculates the next utterance transition probability by dividing the obtained number of patterns by the total number.

質問誘導遷移確率算出部110は、質問誘導遷移確率を算出する(ステップS8)。ここで、まず、質問誘導遷移確率算出部110は、対話順序記憶部160の中から、要求質問文と同一または類似する対話文Fの総数を求める。次に、質問誘導遷移確率算出部110は、対話文Dの2つ後に要求質問文と同一または類似する対話文Fが生じたパターンの数を対話文ごとに求める。そして、質問誘導遷移確率算出部110は、求めたパターン数を、総数で割って質問誘導遷移確率を算出する。   The question guidance transition probability calculation unit 110 calculates a question guidance transition probability (step S8). First, the question induction transition probability calculation unit 110 obtains the total number of dialogue sentences F that are the same as or similar to the requested question sentence from the dialogue order storage unit 160. Next, the question induction transition probability calculation unit 110 obtains the number of patterns in which a dialogue sentence F that is the same as or similar to the requested question sentence after two dialogue sentences D is generated for each dialogue sentence. Then, the question induction transition probability calculation unit 110 calculates the question induction transition probability by dividing the obtained number of patterns by the total number.

選択部115は、入力文に対して出力する出力文(第2出力文)としてシステム発話(S2)を選択する(ステップS9)。ここで、選択部115は、次発話遷移確率算出部103により算出された次発話遷移確率と、質問誘導遷移確率算出部110により算出された質問誘導遷移確率とを重み付け加算した値が最も大きい対話文を第2出力文として選択する。出力部118は、選択部115により選択されたシステム発話(S2)を第2出力文として出力する(ステップS10)。   The selection unit 115 selects the system utterance (S2) as an output sentence (second output sentence) to be output with respect to the input sentence (step S9). Here, the selection unit 115 has the largest value obtained by weighted addition of the next utterance transition probability calculated by the next utterance transition probability calculation unit 103 and the question guidance transition probability calculation unit 110. Select the sentence as the second output sentence. The output unit 118 outputs the system utterance (S2) selected by the selection unit 115 as a second output sentence (step S10).

このように、本実施の形態によれば、次発話遷移確率と質問誘導遷移確率とを重み付け加算した値が最も大きい対話文を第2出力文として出力するので、対話の自然な流れを保持しつつユーザから入手したい情報を取得することができる。   Thus, according to the present embodiment, since the dialogue sentence having the largest value obtained by weighted addition of the next utterance transition probability and the question induction transition probability is output as the second output sentence, the natural flow of the dialogue is maintained. The information desired to be obtained from the user can be acquired.

(第2の実施の形態)
第1の実施の形態では、選択部は、要求質問文から算出される質問誘導遷移確率を用いて第2出力文が選択された。これに対し、第2の実施の形態では、出力部により出力された第1出力文の次の次に出力される対話文から算出される確率を用いて第2出力文が選択される。
(Second Embodiment)
In the first embodiment, the selection unit selects the second output sentence using the question guidance transition probability calculated from the request question sentence. On the other hand, in the second embodiment, the second output sentence is selected using the probability calculated from the dialogue sentence output next to the first output sentence output by the output unit.

図5は、第2の実施の形態にかかる対話装置の構成を示すブロック図である。図5に示すように、第2の実施の形態にかかる対話装置200は、第1受付部101と、第2受付部102と、第1算出部103と、類似発話算出部210と、選択部215と、認識部116と、検出部117と、出力部118と、類似度算出部119と、対話文記憶部150と、対話順序記憶部160と、操作表示部120とを主に備える。なお、類似発話算出部210と、選択部215以外の各部の機能および構成は第1の実施の形態と同様である。   FIG. 5 is a block diagram illustrating a configuration of the interactive apparatus according to the second embodiment. As illustrated in FIG. 5, the dialogue apparatus 200 according to the second embodiment includes a first reception unit 101, a second reception unit 102, a first calculation unit 103, a similar utterance calculation unit 210, and a selection unit. 215, a recognition unit 116, a detection unit 117, an output unit 118, a similarity calculation unit 119, a dialogue sentence storage unit 150, a dialogue order storage unit 160, and an operation display unit 120. Note that the functions and configurations of the units other than the similar utterance calculation unit 210 and the selection unit 215 are the same as those in the first embodiment.

類似発話算出部210は、類似発話遷移確率を算出する。ここで、類似発話遷移確率とは、対話文記憶部150に記憶されたある対話文(第1対話文)ごとに、第1対話文の次の次に出力する対話文が、第1対話文と同一または類似の対話文の次の次の対話文と同一または類似する類似対話文となる確率のことである。   The similar utterance calculation unit 210 calculates a similar utterance transition probability. Here, the similar utterance transition probability means that for each dialogue sentence (first dialogue sentence) stored in the dialogue sentence storage unit 150, the dialogue sentence output next to the first dialogue sentence is the first dialogue sentence. Is the probability of a similar dialogue sentence that is the same or similar to the next dialogue sentence following the same or similar dialogue sentence.

類似発話算出部210は、対話順序記憶部160に記憶されているパターンのうち類似対話文を含む第3パターンの総数を求める。例えば類似発話算出部210は、類似対話文Gを含む第3パターンの総数を求める。   The similar utterance calculation unit 210 obtains the total number of the third patterns including the similar dialogue sentence among the patterns stored in the dialogue order storage unit 160. For example, the similar utterance calculation unit 210 obtains the total number of third patterns including the similar dialogue sentence G.

例えば、図2では、No.1とNo.2において、類似対話文G「昨日はよく眠れた?」が生じている。そこで、第3総数算出部211は、類似対話文G「昨日はよく眠れた?」を含む第3パターンの総数2を求める。   For example, in FIG. 1 and No. 2, a similar dialogue sentence G “Hid you sleep well yesterday?” Has occurred. Therefore, the third total number calculation unit 211 obtains the total number 2 of the third patterns including the similar dialogue sentence G “I was able to sleep well yesterday?”.

類似発話算出部210は、対話文ごとに、対話文の次の次に第3パターンに含まれる類似対話文が出力されたパターンのパターン数を求める。例えば、類似発話算出部210は、対話文ごとに、対話文を対話文Eとし、対話文Eの2つ後に類似対話文Gが生じるパターンのパターン数を求める。   The similar utterance calculation unit 210 obtains, for each dialogue sentence, the number of patterns in which the similar dialogue sentence included in the third pattern is output next to the dialogue sentence. For example, for each dialogue sentence, the similar utterance calculation unit 210 sets the dialogue sentence as the dialogue sentence E, and obtains the number of patterns in which the similar dialogue sentence G occurs after the dialogue sentence E.

例えば、図2のNo.1とNo.2では、同一の対話文E「いい朝だね」の2つ後に対話文G「昨日はよく眠れた?」が生じている。そこで、対話文E「いい朝だね」については、対話文E「いい朝だね」の2つ後に類似対話文G「昨日はよく眠れた?」が生じたパターンのパターン数は2である。   For example, in FIG. 1 and No. 2, the dialogue sentence G “Did you sleep well yesterday?” Occurs after the same dialogue sentence E “Good morning”. Therefore, for the dialogue sentence E “Good morning”, the number of patterns in which the similar dialogue sentence G “I slept well yesterday?” Occurs after the dialogue sentence E “Good morning” is two. .

この場合、類似発話算出部210は、対話文E「いい朝だね」については、2つ後に類似対話文G「昨日はよく眠れた?」が生じたパターンのパターン数2を求める。   In this case, the similar utterance calculation unit 210 obtains the pattern number 2 of the patterns in which the similar dialogue sentence G “I was able to sleep well yesterday” occurs two times later for the dialogue sentence E “Good morning”.

類似発話遷移確率算出部210は、第3パターン数算出部212により求められたパターン数を、第3総数算出部211により算出された第3パターンの総数で割って類似発話遷移確率を算出する。具体的には、類似発話遷移確率算出部210は、以下の(5)式により類似発話遷移確率PNAGIを算出する。
PNAGI=(G→*→I)が生じた数/Iの総数・・・(5)
The similar utterance transition probability calculation unit 210 calculates the similar utterance transition probability by dividing the number of patterns obtained by the third pattern number calculation unit 212 by the total number of third patterns calculated by the third total number calculation unit 211. Specifically, the similar utterance transition probability calculation unit 210 calculates the similar utterance transition probability PNA GI using the following equation (5).
PNA GI = number of (G → * → I) / total number of I (5)

また、類似発話遷移確率算出部210は、類似度を考慮した類似発話遷移確率PNASGIは、以下の(6)式により算出する。
PNASGI=Σn{(Gn→*→In)が生じた数×(GとGnの類似度)×(IとInの類似度))・・・(6)
ここで、Gnは、対話文Gに類似する対話文、Inは、対話文Iに類似する対話文を示す。また、Σnは、類似する対話文それぞれについて総和を算出することを意味する。
In addition, the similar utterance transition probability calculation unit 210 calculates the similar utterance transition probability PNAS GI considering the similarity according to the following equation (6).
PNAS GI = Σn {number of occurrences of (Gn → * → In) × (similarity between G and Gn) × (similarity between I and In)) (6)
Here, Gn indicates a dialog sentence similar to the dialog sentence G, and In indicates a dialog sentence similar to the dialog sentence I. Further, Σn means that the sum is calculated for each similar dialogue sentence.

さらに、次発話遷移確率算出部103は、対話順序記憶部160に対話状況が記憶されている場合、対話順序記憶部160に記憶されている対話状況と、検出部117により検出された現在の対話状況との類似度が高い対話文ほど高い確率を算出する。   Further, the next utterance transition probability calculation unit 103, when the conversation state is stored in the conversation order storage unit 160, the conversation state stored in the conversation order storage unit 160 and the current conversation detected by the detection unit 117. A higher probability is calculated for a dialogue sentence having a higher degree of similarity to the situation.

選択部215は、次発話遷移確率算出部103により算出された次発話遷移確率と、類似発話遷移確率算出部210により算出された類似発話遷移確率とを重み付け加算した値が最も大きい対話文を第2出力文として選択する。例えば、図2では、次発話遷移確率算出部103により算出された次発話遷移確率が最も高い対話文は、「昨日は暑かったね」であり、類似発話遷移確率算出部210により算出された類似発話遷移確率が最も高い対話文は「いい朝だね」である。そこで、図2に示すパターンでは、次発話遷移確率が最も高い対話文と質問誘導遷移確率が最も高い対話文とが異なる。ここで、選択部215は、重み付け加算することにより、重み付け加算された値がより高い対話文を第2出力文として選択する。   The selection unit 215 selects the dialogue sentence having the largest value obtained by weighted addition of the next utterance transition probability calculated by the next utterance transition probability calculation unit 103 and the similar utterance transition probability calculation unit 210. 2 Select as output sentence. For example, in FIG. 2, the dialogue sentence with the highest next utterance transition probability calculated by the next utterance transition probability calculation unit 103 is “Yesterday was hot”, and the similar utterance calculated by the similar utterance transition probability calculation unit 210 The dialogue sentence with the highest transition probability is “Good morning”. Therefore, in the pattern shown in FIG. 2, the dialogue sentence having the highest next utterance transition probability is different from the dialogue sentence having the highest question-induced transition probability. Here, the selection unit 215 selects a dialog sentence having a higher weighted value as a second output sentence by performing weighted addition.

また、選択部215は、次発話遷移確率または類似発話遷移確率に対話情報を含む対話文が存在する場合は、対話情報を含む対話文の重み付けを高くして重み付け加算してもよい。   In addition, when there is a dialogue sentence including dialogue information in the next utterance transition probability or the similar utterance transition probability, the selection unit 215 may increase the weight of the dialogue sentence including the dialogue information and perform weighted addition.

次に、以上のように構成された対話装置200による出力文出力処理の手順について説明する。図6は、対話装置200による出力文出力処理の手順を示すフローチャートである。   Next, a procedure of output sentence output processing by the interactive apparatus 200 configured as described above will be described. FIG. 6 is a flowchart showing a procedure of output sentence output processing by the dialogue apparatus 200.

ステップS21からステップS25までの処理については、第1の実施の形態において図4で説明したステップS3からステップS7までの処理と同様である。   The processing from step S21 to step S25 is the same as the processing from step S3 to step S7 described in FIG. 4 in the first embodiment.

ステップS26において、類似発話遷移確率算出部210は、類似発話遷移確率を算出する(ステップS26)。ここで、まず、類似発話遷移確率算出部210は、対話順序記憶部160の中から、類似対話文Gの総数を求める。次に、類似発話遷移確率算出部210は、対話文Eの2つ後に類似対話文Gが生じたパターンの数を対話文ごとに求める。そして、類似発話遷移確率算出部210は、求めたパターン数を、総数で割って類似発話遷移確率を算出する。   In step S26, the similar utterance transition probability calculation unit 210 calculates a similar utterance transition probability (step S26). Here, first, the similar utterance transition probability calculation unit 210 obtains the total number of similar dialogue sentences G from the dialogue order storage unit 160. Next, the similar utterance transition probability calculation unit 210 obtains, for each dialog sentence, the number of patterns in which the similar dialog sentence G occurs after the dialog sentence E. Then, the similar utterance transition probability calculation unit 210 calculates the similar utterance transition probability by dividing the obtained number of patterns by the total number.

選択部215は、第2出力文としてシステム発話(S2)を選択する(ステップS27)。ここで、選択部215は、次発話遷移確率算出部103により算出された次発話遷移確率と、類似発話遷移確率算出部210により算出された類似発話遷移確率とを重み付け加算した値が最も大きい対話文を第2出力文として選択する。出力部118は、選択部215により選択されたシステム発話(S2)を第2出力文として出力する(ステップS28)。   The selection unit 215 selects the system utterance (S2) as the second output sentence (step S27). Here, the selection unit 215 has the largest value obtained by weighting and adding the next utterance transition probability calculated by the next utterance transition probability calculation unit 103 and the similar utterance transition probability calculation unit 210. Select the sentence as the second output sentence. The output unit 118 outputs the system utterance (S2) selected by the selection unit 215 as a second output sentence (step S28).

このように、本実施の形態によれば、第1受付部が音声情報を受け付けた場合に、認識部116による音声認識率が低く音声を認識できなかったような場合にも自然な流れで対話を続行することができる。   As described above, according to the present embodiment, when the first receiving unit receives voice information, even when the voice recognition rate by the recognition unit 116 is low and the voice cannot be recognized, the dialogue is natural. Can continue.

(変形例)
また、変形例として、第1の実施の形態にかかる対話装置100の構成と第2の実施の形態にかかる対話装置200の構成を組み合わせた構成とすることもできる。例えば、第1の実施の形態にかかる対話装置100が備える質問誘導遷移確率算出部110を第2の実施の形態にかかる対話装置200が備える類似発話遷移確率算出部210に替える構成としてもよい。
(Modification)
As a modification, the configuration of the interactive device 100 according to the first embodiment and the configuration of the interactive device 200 according to the second embodiment may be combined. For example, it is good also as a structure which replaces the question guidance transition probability calculation part 110 with which the dialogue apparatus 100 concerning 1st Embodiment is equipped with the similar utterance transition probability calculation part 210 with which the dialogue apparatus 200 concerning 2nd Embodiment is equipped.

このように、本実施の形態によれば、次発話遷移確率と類似発話遷移確率とを重み付け加算した値が最も大きい対話文を第2出力文として出力するので、対話の自然な流れを保持しつつユーザから入手したい情報を取得することができる。   Thus, according to the present embodiment, since the dialogue sentence having the largest value obtained by weighted addition of the next utterance transition probability and the similar utterance transition probability is output as the second output sentence, the natural flow of the dialogue is maintained. The information desired to be obtained from the user can be acquired.

また、このように、本実施の形態によれば、第1受付部が音声情報を受け付けた場合に、認識部116による音声認識率が低く音声を認識できなかったような場合にも自然な流れで対話を続行することができる。   As described above, according to the present embodiment, when the first reception unit receives the voice information, the flow is natural even when the voice recognition rate by the recognition unit 116 is low and the voice cannot be recognized. You can continue the conversation.

以上説明したとおり、第1から第2の実施形態によれば、対話の自然な流れを保持することができる。   As described above, according to the first and second embodiments, a natural flow of dialogue can be maintained.

次に、第1または第2の実施の形態にかかる対話装置のハードウェア構成について図7を用いて説明する。図7は、第1または第2の実施の形態にかかる対話装置のハードウェア構成を示す説明図である。   Next, the hardware configuration of the interactive apparatus according to the first or second embodiment will be described with reference to FIG. FIG. 7 is an explanatory diagram illustrating a hardware configuration of the interactive apparatus according to the first or second embodiment.

第1または第2の実施の形態にかかる対話装置は、CPU(Central Processing Unit)51等の制御装置と、ROM(Read Only Memory)52やRAM(RANDOM Access Memory)53等の記憶装置と、ネットワークに接続して通信を行う通信I/F54と、各部を接続するバス61を備えている。   The interactive device according to the first or second embodiment includes a control device such as a CPU (Central Processing Unit) 51, a storage device such as a ROM (Read Only Memory) 52, a RAM (RANDOM Access Memory) 53, and a network. A communication I / F 54 that communicates by connecting to each other and a bus 61 that connects each unit are provided.

第1または第2の実施の形態にかかる対話装置で実行される出力文出力プログラムは、ROM52等に予め組み込まれて提供される。   The output sentence output program executed by the interactive apparatus according to the first or second embodiment is provided by being incorporated in advance in the ROM 52 or the like.

第1または第2の実施の形態にかかる対話装置で実行される出力文出力プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM(Compact Disk Read Only Memory)、フレキシブルディスク(FD)、CD−R(Compact Disk Recordable)、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供されるように構成してもよい。   The output sentence output program executed by the interactive apparatus according to the first or second embodiment is a file in an installable format or an executable format, and is a CD-ROM (Compact Disk Read Only Memory), a flexible disk (FD). ), A CD-R (Compact Disk Recordable), a DVD (Digital Versatile Disk), or the like.

さらに、第1または第2の実施の形態にかかる対話装置で実行される出力文出力プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、第1または第2の実施の形態にかかる対話装置で実行される出力文出力プログラムをインターネット等のネットワーク経由で提供または配布するように構成してもよい。   Further, the output sentence output program executed by the interactive apparatus according to the first or second embodiment is stored on a computer connected to a network such as the Internet and is provided by being downloaded via the network. It may be configured. Further, the output sentence output program executed by the interactive device according to the first or second embodiment may be provided or distributed via a network such as the Internet.

第1または第2の実施の形態にかかる対話装置で実行される出力文出力プログラムは、コンピュータを上述した対話装置の各部(第1受付部、第2受付部、次発話遷移確率算出部、質問誘導遷移確率算出部、選択部、認識部、検出部、出力部、類似度算出部)として機能させうる。このコンピュータは、CPU51がコンピュータ読取可能な記憶媒体から出力文出力プログラムを主記憶装置上に読み出して実行することができる。   The output sentence output program executed by the interactive device according to the first or second embodiment is a computer that includes each part of the above-described interactive device (first reception unit, second reception unit, next utterance transition probability calculation unit, question (Guidance transition probability calculation unit, selection unit, recognition unit, detection unit, output unit, similarity calculation unit). In this computer, the CPU 51 can read and execute an output sentence output program from a computer-readable storage medium on a main storage device.

なお、本発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成することができる。例えば、実施形態に示される全構成要素からいくつかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせても良い。   Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, the constituent elements over different embodiments may be appropriately combined.

なお、本発明では、出力→入力→出力、もしくは入力→出力→入力の3つの連鎖構造にて記載しているが、3つに限定されるものではなく、3つ以上の連鎖であっても同様に対応できるものである。   In the present invention, three chain structures of output → input → output or input → output → input are described, but the present invention is not limited to three. It can respond similarly.

100、200 対話装置
101 第1受付部
102 第2受付部
103 次発話遷移確率算出部
110 質問誘導遷移確率算出部
115 選択部
117 検出部
118 出力部
119 類似度算出部
120 操作表示部
150 対話文記憶部
160 対話順序記憶部
210 類似発話遷移確率算出部
DESCRIPTION OF SYMBOLS 100,200 Dialogue device 101 1st reception part 102 2nd reception part 103 Next utterance transition probability calculation part 110 Question guidance transition probability calculation part 115 Selection part 117 Detection part 118 Output part 119 Similarity degree calculation part 120 Operation display part 150 Dialogue sentence Storage unit 160 Dialog sequence storage unit 210 Similar utterance transition probability calculation unit

Claims (5)

対話文を記憶する対話文記憶部と、
前記対話文の対話順序のパターンを複数記憶する対話順序記憶部と、
第1出力文を出力する出力部と、
前記第1出力文に対してユーザが入力した入力文を受け付ける第1受付部と、
質問文の入力を受け付ける第2受付部と、
前記第1出力文と同一または類似する前記対話文が出力され、その次に前記入力文と同一または類似する前記対話文が入力され、更にその次に前記対話文記憶部に記憶された前記対話文のいずれかである第1対話文のそれぞれが出力される確率を表す第1確率を、前記パターンに基づいて算出する第1確率算出部と、
前記パターンに基づいて、前記第1対話文ごとに、前記第1対話文の次の次に前記質問文と同一または類似する前記対話文が出力される確率を表す第2確率を算出する第2確率算出部と、
算出された前記第1確率と前記第2確率とを重み付け加算した値が最も大きい前記第1対話文を前記第2出力文として選択する選択部と、
を備えたことを特徴とする対話装置。
A dialogue storage unit for storing dialogue statements;
A dialogue order storage unit for storing a plurality of dialogue order patterns of the dialogue sentence;
An output unit for outputting a first output sentence;
A first accepting unit for accepting an input sentence input by a user with respect to the first output sentence;
A second reception unit for receiving input of a question sentence;
The dialog sentence that is the same as or similar to the first output sentence is output, the dialog sentence that is the same or similar to the input sentence is input, and then the dialog stored in the dialog sentence storage unit A first probability calculating unit that calculates a first probability representing a probability that each of the first dialogue sentences that are any of the sentences is output based on the pattern;
Based on the pattern, for each of the first dialogue sentences, a second probability is calculated that represents a probability that the dialogue sentence that is the same as or similar to the question sentence is output next to the first dialogue sentence. A probability calculator;
A selection unit that selects, as the second output sentence, the first dialogue sentence having the largest value obtained by weighted addition of the calculated first probability and the second probability;
An interactive apparatus characterized by comprising:
前記対話順序記憶部は、さらに前記パターンごとにユーザとの対話状況を記憶し、
前記第1確率算出部は、前記対話文を含む前記パターンに対して記憶された対話状況と、現在の対話状況との類似度が大きい前記対話文ほど、大きい前記第1確率を算出し、
前記第2確率算出部は、前記対話文を含む前記パターンに対して記憶された対話状況と、現在の対話状況との類似度が大きい前記対話文ほど、大きい前記第2確率を算出すること、
を特徴とする請求項1に記載の対話装置。
The dialog order storage unit further stores a dialog status with the user for each pattern,
The first probability calculation unit calculates the first probability that is larger for the dialogue sentence having a higher similarity between the dialogue situation stored for the pattern including the dialogue sentence and the current dialogue situation,
The second probability calculation unit calculates the second probability that is larger for the dialogue sentence having a higher similarity between the dialogue situation stored for the pattern including the dialogue sentence and the current dialogue situation;
The interactive apparatus according to claim 1.
前記パターンに基づいて、前記第1対話文ごとに、前記第1対話文の次の次に出力される前記対話文が、前記第1対話文と同一または類似の前記対話文の次の次に出力される前記対話文と同一または類似する確率を表す第3確率を算出する第3確率算出部、
をさらに備え、
前記選択部は、算出された前記第1確率と前記第3確率とを重み付け加算した値が最も大きい前記第1対話文を前記第2出力文として選択すること、
を特徴とする請求項1に記載の対話装置。
Based on the pattern, for each of the first dialogue sentences, the dialogue sentence output next to the first dialogue sentence is next to the dialogue sentence that is the same as or similar to the first dialogue sentence. A third probability calculator for calculating a third probability representing a probability that is the same as or similar to the output dialogue sentence;
Further comprising
The selection unit selects, as the second output sentence, the first dialogue sentence having the largest value obtained by weighted addition of the calculated first probability and the third probability;
The interactive apparatus according to claim 1.
対話文を記憶する対話文記憶部と、
前記対話文の対話順序のパターンを複数記憶する対話順序記憶部と、
第1出力文を出力する出力部と、
前記第1出力文に対してユーザが入力した入力文を受け付ける第1受付部と、
前記第1出力文と同一または類似する前記対話文が出力され、その次に前記入力文と同一または類似する前記対話文が入力され、更にその次に前記対話文記憶部に記憶された前記対話文のいずれかである第1対話文のそれぞれが出力される確率を表す第1確率を、前記パターンに基づいて算出する第1確率算出部と、
前記パターンに基づいて、前記第1対話文ごとに、前記第1対話文の次の次に出力される前記対話文が、前記第1対話文と同一または類似の前記対話文の次の次に出力される前記対話文と同一または類似する確率を表す第3確率を算出する第3確率算出部と、
算出された前記第1確率と前記第3確率とを重み付け加算した値が最も大きい前記第1対話文を前記第2出力文として選択する選択部と、
を備えたことを特徴とする対話装置。
A dialogue storage unit for storing dialogue statements;
A dialogue order storage unit for storing a plurality of dialogue order patterns of the dialogue sentence;
An output unit for outputting a first output sentence;
A first accepting unit for accepting an input sentence input by a user with respect to the first output sentence;
The dialog sentence that is the same as or similar to the first output sentence is output, the dialog sentence that is the same or similar to the input sentence is input, and then the dialog stored in the dialog sentence storage unit A first probability calculating unit that calculates a first probability representing a probability that each of the first dialogue sentences that are any of the sentences is output based on the pattern;
Based on the pattern, for each of the first dialogue sentences, the dialogue sentence output next to the first dialogue sentence is next to the dialogue sentence that is the same as or similar to the first dialogue sentence. A third probability calculation unit for calculating a third probability representing a probability that is the same as or similar to the output dialogue sentence;
A selection unit that selects, as the second output sentence, the first dialogue sentence having the largest value obtained by weighted addition of the calculated first probability and the third probability;
An interactive apparatus characterized by comprising:
前記対話順序記憶部は、さらに前記パターンごとにユーザとの対話状況を記憶し、
前記第1確率算出部は、前記対話文を含む前記パターンに対して記憶された対話状況と、現在の対話状況との類似度が大きい前記対話文ほど、大きい前記第1確率を算出し、
前記第2確率算出部は、前記対話文を含む前記パターンに対して記憶された対話状況と、現在の対話状況との類似度が大きい前記対話文ほど、大きい前記第2確率を算出すること、
を特徴とする請求項4に記載の対話装置。








The dialog order storage unit further stores a dialog status with the user for each pattern,
The first probability calculation unit calculates the first probability that is larger for the dialogue sentence having a higher similarity between the dialogue situation stored for the pattern including the dialogue sentence and the current dialogue situation,
The second probability calculation unit calculates the second probability that is larger for the dialogue sentence having a higher similarity between the dialogue situation stored for the pattern including the dialogue sentence and the current dialogue situation;
The interactive apparatus according to claim 4.








JP2010242745A 2010-10-28 2010-10-28 Interactive device Active JP5166503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010242745A JP5166503B2 (en) 2010-10-28 2010-10-28 Interactive device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010242745A JP5166503B2 (en) 2010-10-28 2010-10-28 Interactive device

Publications (2)

Publication Number Publication Date
JP2012094075A JP2012094075A (en) 2012-05-17
JP5166503B2 true JP5166503B2 (en) 2013-03-21

Family

ID=46387303

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010242745A Active JP5166503B2 (en) 2010-10-28 2010-10-28 Interactive device

Country Status (1)

Country Link
JP (1) JP5166503B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6306447B2 (en) * 2014-06-24 2018-04-04 Kddi株式会社 Terminal, program, and system for reproducing response sentence using a plurality of different dialogue control units simultaneously
JP6951712B2 (en) * 2016-09-30 2021-10-20 株式会社Nextremer Dialogue devices, dialogue systems, dialogue methods, and programs
JP6449368B2 (en) * 2017-04-14 2019-01-09 株式会社エルブズ Conversation providing apparatus, conversation providing method, and program
CN111428014A (en) * 2020-03-17 2020-07-17 北京香侬慧语科技有限责任公司 Non-autoregressive conversational speech generation method and model based on maximum mutual information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4246548B2 (en) * 2003-05-30 2009-04-02 日本電信電話株式会社 Dialogue method and apparatus using statistical information, dialogue program and recording medium recording the program
JP2006039120A (en) * 2004-07-26 2006-02-09 Sony Corp Dialog apparatus, dialog method, program, and recording medium
JP5045486B2 (en) * 2008-02-19 2012-10-10 トヨタ自動車株式会社 Dialogue device and program

Also Published As

Publication number Publication date
JP2012094075A (en) 2012-05-17

Similar Documents

Publication Publication Date Title
US10037758B2 (en) Device and method for understanding user intent
JP6588637B2 (en) Learning personalized entity pronunciation
JP4757599B2 (en) Speech recognition system, speech recognition method and program
CN114097026A (en) Context biasing for speech recognition
JP5175325B2 (en) WFST creation device for speech recognition, speech recognition device using the same, method, program thereof, and storage medium
WO2017061027A1 (en) Language model generation device, language model generation method and program therefor, voice recognition device, and voice recognition method and program therefor
JP2016212541A (en) Interactive device, interacting method, and computer program for the same
JP7230806B2 (en) Information processing device and information processing method
JP6585112B2 (en) Voice keyword detection apparatus and voice keyword detection method
JP6980411B2 (en) Information processing device, dialogue processing method, and dialogue processing program
JP5166503B2 (en) Interactive device
JP5068225B2 (en) Audio file search system, method and program
CN115101053B (en) Dialogue processing method, device, terminal and storage medium based on emotion recognition
JPWO2011033834A1 (en) Speech translation system, speech translation method, and recording medium
US11942086B2 (en) Description support device and description support method
KR101562222B1 (en) Apparatus for evaluating accuracy of pronunciation and method thereof
JP6254504B2 (en) Search server and search method
JP2008083100A (en) Spoken dialogue apparatus and method
JP6233867B2 (en) Dictionary registration system for speech recognition, speech recognition system, speech recognition service system, method and program
JP6383748B2 (en) Speech translation device, speech translation method, and speech translation program
US10282417B2 (en) Conversational list management
JP2019207371A (en) Speech recognition result output program, communication device and speech recognition result display system
JP2019211689A (en) Recognition device, recognition system, terminal device, server device, method and program
JP7615923B2 (en) Response system, response method, and response program
JP2005024869A (en) Voice response device

Legal Events

Date Code Title Description
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: 20121127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121220

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151228

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 5166503

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151228

Year of fee payment: 3