JP2010262147A - Response creating device and program - Google Patents

Response creating device and program Download PDF

Info

Publication number
JP2010262147A
JP2010262147A JP2009113237A JP2009113237A JP2010262147A JP 2010262147 A JP2010262147 A JP 2010262147A JP 2009113237 A JP2009113237 A JP 2009113237A JP 2009113237 A JP2009113237 A JP 2009113237A JP 2010262147 A JP2010262147 A JP 2010262147A
Authority
JP
Japan
Prior art keywords
response
sentence
negative expression
type
prepared
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.)
Granted
Application number
JP2009113237A
Other languages
Japanese (ja)
Other versions
JP5136512B2 (en
Inventor
Kazuya Shimooka
和也 下岡
Takakatsu Yoshimura
貴克 吉村
Katsuji Yamashita
勝司 山下
Yusuke Nakano
雄介 中野
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.)
Toyota Motor Corp
Toyota Central R&D Labs Inc
Original Assignee
Toyota Motor Corp
Toyota Central R&D Labs Inc
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 Toyota Motor Corp, Toyota Central R&D Labs Inc filed Critical Toyota Motor Corp
Priority to JP2009113237A priority Critical patent/JP5136512B2/en
Publication of JP2010262147A publication Critical patent/JP2010262147A/en
Application granted granted Critical
Publication of JP5136512B2 publication Critical patent/JP5136512B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To achieve natural dialogues by creating an appropriate response text considering negative intentions. <P>SOLUTION: When a negative expression determination part 22 determines that no negative expression is included, a result using response creating part 26 creates the response text based on the analysis result. When the negative expression determination part determines that negative expression is included and the preceding response type is "response to inquire object words in parallel", a topic change response creating part 30 creates a response text for changing the topic. When the negative expression determination part determines that negative expression is included and the preceding response type is other than "response to inquire object words in parallel", an affirmative response creating part 32 creates a response text for affirmative response. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、応答生成装置及びプログラムに係り、特に、ユーザと円滑な対話を行うための応答生成装置及びプログラムに関する。   The present invention relates to a response generation device and a program, and more particularly, to a response generation device and a program for performing a smooth dialogue with a user.

従来、システム側から、ユーザに対して、肯定又は否定を意味する内容の返事を要求するような場合に、肯定否定識別モードに切り替えてその結果に基づき応答を生成し、その他の場合には、ユーザの認識結果に基づいて応答を生成する音声認識対話装置が知られている(特許文献1)。この音声認識対話装置では、例えば、システムが「お花見に行こうよ」や「明日はお休みなの?」といったように、ユーザに対して明確に「Yes・No」を要求するような発話を行った場合のみ、肯定否定識別モードに切り替え、次のユーザ発話が「Yes」か「No」かを判別し、それに応じたシステム応答を生成している。   Conventionally, from the system side, when requesting a reply of contents meaning affirmation or denial from the system side, switching to affirmative / negative identification mode and generating a response based on the result, in other cases, A speech recognition dialogue apparatus that generates a response based on a user's recognition result is known (Patent Document 1). In this speech recognition dialogue apparatus, for example, the system makes an utterance that clearly requests “Yes / No” from the user, such as “Let's go to see cherry blossoms” or “Have you tomorrow?” Only in the case where the user utterance is switched to the positive / negative identification mode, it is determined whether the next user utterance is “Yes” or “No”, and a system response is generated accordingly.

特開平9−6389号公報JP-A-9-6389

上記特許文献1に記載の技術では、ユーザに対して明確に「Yes・No」を要求するような発話をシステムが生成した場合にしか、肯定否定検出モードに切り替わらない。「他にどこかに行ったんですか?」や「どのくらい楽しかったんですか?」などの5W1H質問応答や、「楽しかったんだね」などの感情推定結果を用いた共感応答、といったような、ユーザに対して明確に「Yes・No」を要求している場合ではなくても、場合によっては「いや、どこにも行ってないよ」や「違うよ。悲しかったんだよ」といったように、否定表現を含んだ応答がユーザから返ってくる可能性がある。このようなユーザからの発話に対して、否定の意図を捉えて適切な応答生成を行うことができない、という問題がある。   In the technology described in Patent Document 1, the system switches to the positive / negative detection mode only when the system generates an utterance that clearly requests “Yes / No” to the user. Users such as 5W1H question responses such as “Did you go somewhere else?” Or “How much were you fun?” Or empathy responses using emotion estimation results such as “I was fun?” Even if it is not clearly requesting “Yes / No”, negative expressions such as “No, I am not going anywhere” or “No, I was sad” in some cases There is a possibility that a response containing "" will be returned from the user. There is a problem that an appropriate response cannot be generated by capturing a negative intention with respect to the utterance from such a user.

本発明は、上記の問題を解決するためになされたものであり、否定の意図を考慮した適切な応答文を生成して、自然な対話を行うことができる応答生成装置及びプログラムを提供することを目的とする。   The present invention has been made to solve the above-described problem, and provides a response generation apparatus and program capable of generating an appropriate response sentence in consideration of a negative intention and performing a natural dialogue. With the goal.

上記目的を達成するために、本発明に係る応答生成装置は、ユーザからの入力文の構造を解析した解析結果に基づいて、前記入力文に予め定められた否定表現が含まれているか否かを判定する否定表現判定手段と、前記否定表現が含まれていないと判定された場合には、前記解析結果に基づいて、並列する目的語を尋ねる応答を含む応答の種類を少なくとも1種類選択し、選択された応答の種類について、該応答の種類に対して予め用意された応答文、又は予め用意された応答文フォーマットに前記入力文に含まれる単語を付加した応答文を生成する第1応答生成手段と、前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答である場合、予め用意された、話題を変えるための応答文を生成する第2応答生成手段と、前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答でない場合、予め用意された相槌の応答文を生成する第3応答生成手段とを含んで構成されている。   In order to achieve the above object, the response generation apparatus according to the present invention determines whether or not a predetermined negative expression is included in the input sentence based on an analysis result obtained by analyzing a structure of the input sentence from the user. If it is determined that the negative expression is not included, and a negative expression determination means for determining whether or not the negative expression is included, at least one response type including a response asking for a parallel object is selected based on the analysis result A first response for generating a response sentence prepared in advance for the selected response type or a response sentence in which a word included in the input sentence is added to a response sentence format prepared in advance. When it is determined that the generation means and the negative expression are included, and the response type of the response sentence generated last time is a response for asking a parallel object, prepared in advance ,topic A second response generating means for generating a response sentence for changing, and an object in which the response type of the response sentence generated last time is determined to include the negative expression, If the response is not a response asking for a response, a third response generation means for generating a response sentence prepared in advance is included.

本発明に係るプログラムは、コンピュータを、ユーザからの入力文の構造を解析した解析結果に基づいて、前記入力文に予め定められた否定表現が含まれているか否かを判定する否定表現判定手段、前記否定表現が含まれていないと判定された場合には、前記解析結果に基づいて、並列する目的語を尋ねる応答を含む応答の種類を少なくとも1種類選択し、選択された応答の種類について、該応答の種類に対して予め用意された応答文、又は予め用意された応答文フォーマットに前記入力文に含まれる単語を付加した応答文を生成する第1応答生成手段、前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答である場合、予め用意された、話題を変えるための応答文を生成する第2応答生成手段、及び前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答でない場合、予め用意された相槌の応答文を生成する第3応答生成手段として機能させるためのプログラムである。   The program according to the present invention is a negative expression determination means for determining whether or not a predetermined negative expression is included in the input sentence based on an analysis result obtained by analyzing a structure of the input sentence from a user. If it is determined that the negative expression is not included, at least one response type including a response asking for a parallel object is selected based on the analysis result, and the selected response type is selected. First response generation means for generating a response sentence prepared in advance for the type of response, or a response sentence in which a word included in the input sentence is added to a response sentence format prepared in advance, the negative expression included If the response type of the response sentence generated last time is a response asking for a parallel object, a response prepared for changing the topic is prepared in advance. Second response generation means for generating a sentence and a case where it is determined that the negative expression is included, and the response type of the response sentence generated last time is not a response asking for a parallel object In this case, it is a program for functioning as third response generation means for generating a response sentence of a prepared prepared answer.

本発明によれば、否定表現判定手段によって、ユーザからの入力文の構造を解析した解析結果に基づいて、入力文に予め定められた否定表現が含まれているか否かを判定する。否定表現が含まれていないと判定された場合には、第1応答生成手段によって、解析結果に基づいて、並列する目的語を尋ねる応答を含む応答の種類を少なくとも1種類選択し、選択された応答の種類について、該応答の種類に対して予め用意された応答文、又は予め用意された応答文フォーマットに入力文に含まれる単語を付加した応答文を生成する。   According to the present invention, the negative expression determination unit determines whether or not a predetermined negative expression is included in the input sentence based on the analysis result obtained by analyzing the structure of the input sentence from the user. If it is determined that a negative expression is not included, the first response generation means selects at least one response type including a response asking for a parallel object based on the analysis result, and the selected response is selected. For the response type, a response sentence prepared in advance for the response type or a response sentence in which a word included in the input sentence is added to a response sentence format prepared in advance is generated.

また、否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答である場合、第2応答生成手段によって、予め用意された、話題を変えるための応答文を生成する。否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答でない場合、第3応答生成手段によって、予め用意された相槌の応答文を生成する。   Further, when it is determined that a negative expression is included, and the type of response of the response sentence generated last time is a response asking for a parallel object, the second response generation means A response sentence prepared in advance for changing the topic is generated. If it is determined that a negative expression is included, and the response type of the response sentence generated last time is not a response asking for a parallel object, it is prepared in advance by the third response generation unit. Generates a response message for each other.

このように、否定表現が含まれている場合に、前回の応答の種類が並列する目的語を尋ねる応答であると、話題を変えるための応答文を生成し、前回の応答の種類が並列する目的語を尋ねる応答でないと、相槌の応答文を生成することにより、否定の意図を考慮した適切な応答文を生成して、自然な対話を行うことができる。   In this way, when a negative expression is included, if the previous response type is a response asking for an object in parallel, a response sentence is generated to change the topic, and the previous response type is parallel. If it is not a response asking for an object, an appropriate response sentence in consideration of the intention of negation can be generated by generating a response sentence that is compatible, and a natural dialogue can be performed.

本発明の第1応答生成手段は、解析結果に基づいて、入力文に、並列する目的語を尋ねる応答に対して予め定められた事態を表わす節が含まれる場合に、並列する目的語を尋ねる応答を選択し、入力文に含まれる事態を表わす節に対する並列する目的語を尋ねるための予め用意された応答文、又は予め用意された応答文フォーマットに入力文に含まれる事態を表わす節を付加した応答文を生成することができる。   The first response generation means of the present invention asks for a parallel object based on the analysis result when the input sentence includes a clause representing a predetermined situation with respect to a response asking for the parallel object. Select a response and add a clause indicating the situation included in the input sentence to the response sentence prepared in advance for asking the parallel object for the clause indicating the situation included in the input sentence or a prepared response sentence format Can be generated.

本発明に係る否定表現判定手段は、解析結果に基づいて、入力文に、否定表現として予め定められた表現、又は品詞の種類と表現との組合せが含まれるか否かによって、入力文に否定表現が含まれているか否かを判定することができる。   The negative expression judging means according to the present invention negates the input sentence based on the analysis result, depending on whether or not the input sentence includes a predetermined expression as a negative expression or a combination of a part of speech type and an expression. It can be determined whether an expression is included.

上記の入力文を、ユーザによる発話を音声認識して取得することができる。   The above input sentence can be acquired by voice recognition of the utterance by the user.

以上説明したように、本発明の応答生成装置及びプログラムによれば、否定表現が含まれている場合に、前回の応答の種類が並列する目的語を尋ねる応答であると、話題を変えるための応答文を生成し、前回の応答の種類が並列する目的語を尋ねる応答でないと、相槌の応答文を生成することにより、否定の意図を考慮した適切な応答文を生成して、自然な対話を行うことができる、という効果が得られる。   As described above, according to the response generation device and the program of the present invention, when a negative expression is included, the type of the previous response is a response for asking an object to be paralleled. If a response sentence is generated and the previous response type is not a response asking for an object in parallel, an appropriate response sentence considering negative intention is generated by generating a companion response sentence, and natural dialogue The effect that it can be performed is acquired.

本実施の形態に係る応答生成装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the response generation apparatus which concerns on this Embodiment. 否定表現辞書の一例を示すイメージ図である。It is an image figure which shows an example of a negative expression dictionary. 事態性名詞辞書の一例を示すイメージ図である。It is an image figure which shows an example of a situation noun dictionary. 並列目的語質問の応答文例及び応答文例フォーマットの一例を示すイメージ図である。It is an image figure which shows an example of the response sentence example of a parallel object question, and a response sentence example format. 話題転換応答の応答文例の一例を示すイメージ図である。It is an image figure which shows an example of the example of a response sentence of a topic change response. 相槌応答の応答文例の一例を示すイメージ図である。It is an image figure which shows an example of the example of a response sentence of a conflict response. 本実施の形態に係る応答生成装置における応答生成処理ルーチンの内容を示すフローチャートである。It is a flowchart which shows the content of the response production | generation process routine in the response production | generation apparatus which concerns on this Embodiment. 形態素解析の結果の一例を示すイメージ図である。It is an image figure which shows an example of the result of a morphological analysis. 形態素解析の結果の他の一例を示すイメージ図である。It is an image figure which shows another example of the result of a morphological analysis. 形態素解析の結果の他の一例を示すイメージ図である。It is an image figure which shows another example of the result of a morphological analysis. 形態素解析の結果の他の一例を示すイメージ図である。It is an image figure which shows another example of the result of a morphological analysis.

以下、図面を参照して本発明の実施の形態を詳細に説明する。なお、本実施の形態では、ユーザからの発話を入力として、所定の処理を実行して音声出力する応答生成装置に本発明を適用した場合について説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the present embodiment, a case will be described in which the present invention is applied to a response generation apparatus that executes a predetermined process and outputs a voice by using an utterance from a user as an input.

図1に示すように、本実施の形態に係る応答生成装置10は、ユーザ発話を集音して音声信号を生成するマイク12と、音声出力を行うスピーカ14と、マイク12及びスピーカ14に接続され、かつ、適切な応答文を生成する所定の処理を実行するコンピュータ16とを備えている。   As shown in FIG. 1, the response generation apparatus 10 according to the present embodiment is connected to a microphone 12 that collects user utterances to generate an audio signal, a speaker 14 that outputs audio, and the microphone 12 and the speaker 14. And a computer 16 for executing a predetermined process for generating an appropriate response sentence.

コンピュータ16は、応答生成装置10全体の制御を司るCPU、後述する応答生成プログラム等各種プログラムを記憶した記憶媒体としてのROM、ワークエリアとしてデータを一時格納するRAM、各種情報が記憶された記憶手段としてのHDD、I/O(入出力)ポート、及びこれらを接続するバスを含んで構成されている。I/Oポートには、マイク12及びスピーカ14が接続されている。   The computer 16 includes a CPU that controls the entire response generation apparatus 10, a ROM as a storage medium that stores various programs such as a response generation program to be described later, a RAM that temporarily stores data as a work area, and a storage unit that stores various information. As an HDD, an I / O (input / output) port, and a bus connecting them. A microphone 12 and a speaker 14 are connected to the I / O port.

このコンピュータ16を、ハードウエアとソフトウエアとに基づいて定まる機能実現手段毎に分割した機能ブロックで説明すると、図1に示すように、マイク12から入力された音声信号を音声認識して、一般的な形態素解析器を用いて音声認識されたユーザ発話を示す文字列情報に対して形態素解析を行う言語解析部20と、言語解析部20による解析結果に基づいて、ユーザ発話に否定表現が含まれているか否かを判定する否定表現判定部22と、前回生成した応答文の応答種類を記憶する応答種類記憶部24と、ユーザ発話に否定表現が含まれていない場合に、言語解析部20による解析結果を利用して、応答文を生成すると共に、生成した応答文の応答種類を応答種類記憶部24に記憶させる結果利用応答生成部26と、ユーザ発話に否定表現が含まれている場合に、直前に生成した応答文の応答種類が、「並列する目的語を尋ねる応答」であるか否かを判定する直前応答判定部28と、直前に生成した応答文の応答種類が、「並列する目的語を尋ねる応答」である場合に、話題を変えるための応答文を生成すると共に、生成した応答文の応答種類「話題転換応答」を応答種類記憶部24に記憶させる話題転換応答生成部30と、直前に生成した応答文の応答種類が、「並列する目的語を尋ねる応答」でない場合に、相槌の応答文を生成すると共に、生成した応答文の応答種類「相槌応答」を応答種類記憶部24に記憶させる相槌生成部32と、生成された応答文を音声信号に変換してスピーカ14から出力させる出力部34とを含んだ構成で表すことができる。   The computer 16 will be described with functional blocks divided for each function realization means determined based on hardware and software. As shown in FIG. A language analysis unit 20 that performs morphological analysis on character string information indicating a user utterance that has been voice-recognized using a typical morphological analyzer, and a negative expression is included in the user utterance based on the analysis result of the language analysis unit 20 A negative expression determination unit 22 that determines whether or not a response is generated, a response type storage unit 24 that stores a response type of a response sentence generated last time, and a language analysis unit 20 when the user utterance does not include a negative expression The result use response generation unit 26 that generates a response sentence using the analysis result of the above and stores the response type of the generated response sentence in the response type storage unit 24, and the user utterance If a negative expression is included, the immediately preceding response determination unit 28 that determines whether the response type of the response sentence generated immediately before is “response for asking parallel objects”, and the response generated immediately before When the response type of the sentence is “response for asking for parallel objects”, a response sentence for changing the topic is generated, and the response type “topic change response” of the generated response sentence is set as the response type storage unit 24. When the response change type of the topic change response generation unit 30 to be stored and the response sentence generated immediately before is not “response for asking for parallel objects”, a response sentence of a companion is generated and a response of the generated response sentence It can be expressed by a configuration including an interaction generation unit 32 that stores the type “interaction response” in the response type storage unit 24, and an output unit 34 that converts the generated response sentence into an audio signal and outputs it from the speaker 14. .

否定表現判定部22は、ユーザ発話に対する言語解析部20での解析結果に、予め定められた否定表現が含まれているか否かを判定する。図2に示すような、否定表現としての表現及び品詞の種類と表現との組み合わせを複数格納した否定表現辞書を予め作成しておき、判定の際に、この否定表現辞書を参照して判定する。例えば、解析結果に(i)「品詞“動詞”+“ない”」が含まれている場合、(ii)「品詞“動詞”+“ません”」、(iii)「じゃなくて」、及び(iv)「ではなくて」などが含まれている場合に、否定表現が含まれていると判定する。   The negative expression determination unit 22 determines whether or not a predetermined negative expression is included in the analysis result of the language analysis unit 20 for the user utterance. A negative expression dictionary storing a plurality of combinations of expressions as negative expressions and types of parts of speech and expressions as shown in FIG. 2 is created in advance, and the determination is made with reference to the negative expression dictionary at the time of determination. . For example, if the analysis result includes (i) “part of speech“ verb ”+“ not ””, (ii) “part of speech“ verb ”+“ not ””, (iii) “not” (Iv) If “not” is included, it is determined that a negative expression is included.

結果利用応答生成部26は、以下のように、ユーザ発話に対する言語解析部20での解析結果に基づいて、応答種類を選択し、選択された応答種類の各々について応答文候補を生成する。   The result use response generation unit 26 selects a response type based on the analysis result of the language analysis unit 20 with respect to the user utterance as described below, and generates a response sentence candidate for each selected response type.

まず、ユーザ発話に対する言語解析部20での解析結果に、事態を表す単語が含まれているか否かを判別する。事態とは、人の行動や人が経験する事象及び出来事である。ここでは、解析結果に(i)「動詞」が含まれている場合、及び(ii)「事態性名詞+(”だ”または”です”)」が含まれている場合に、「事態」が含まれていると判別する。「事態性名詞」とは、例えば「雨」や「運動会」といった出来事を示す名詞である。事態性名詞は、図3に示すような事態性名詞辞書を予め作成しておき、判別の際に、この事態性名詞辞書を参照して判別する。   First, it is determined whether or not a word representing the situation is included in the analysis result of the language analysis unit 20 for the user utterance. A situation is a person's behavior or an event or event that a person experiences. Here, when the analysis result includes (i) “verb” and (ii) “situation noun + (“ da ”or“ is ””), “situation” It is determined that it is included. “Situation noun” is a noun indicating an event such as “rain” or “athletic meet”. Situation nouns are determined in advance by creating a situation noun dictionary as shown in FIG. 3 and referring to this situation noun dictionary.

次に、事態が含まれていると判別されたユーザ発話の解析結果から、事態を表す節を抽出する。上記(i)の場合であれば該当する「動詞」を含む節が抽出され、上記(ii)であれば該当する「事態性名詞」を含む節が抽出される。   Next, a clause representing the situation is extracted from the analysis result of the user utterance determined to contain the situation. In the case of (i) above, a clause including the corresponding “verb” is extracted, and in the case of (ii), a clause including the corresponding “situation noun” is extracted.

抽出された節が、後述する並列目的語質問可能判断DBに登録されているか否かを判断し、登録されている場合には、応答種類「並列する目的語を尋ねる応答」を選択する。   It is determined whether or not the extracted clause is registered in a parallel object questionable determination DB, which will be described later. If it is registered, a response type “response for asking parallel objects” is selected.

応答種類「並列する目的語を尋ねる応答」が選択された場合には、ユーザに並列する目的語を尋ねるための質問文を応答文候補として生成する。応答文候補は、例えば、図4に示すような応答文例及び応答文例フォーマットを予め用意しておき、この応答文例からランダムに選択したり、応答文例フォーマットを用いて生成したりする。応答文例フォーマットは、例えば、「他に何を〜?」のようなフォーマットとすることができ、「〜」の部分に、ユーザ発話の解析結果から抽出された事態を表す節の「動詞」である単語を挿入して応答文候補を生成することができる。生成された応答文候補は、一旦所定の記憶領域に記憶される。   When the response type “response for asking parallel objects” is selected, a question sentence for asking the user for parallel objects is generated as a response sentence candidate. For example, a response sentence example and a response sentence example format as shown in FIG. 4 are prepared in advance, and the response sentence candidates are randomly selected from the response sentence examples or generated using the response sentence example format. The response sentence example format can be, for example, a format such as “What else?”, And a “verb” of a clause representing a situation extracted from the analysis result of the user utterance in the “˜” part. A response sentence candidate can be generated by inserting a certain word. The generated response sentence candidate is temporarily stored in a predetermined storage area.

また、事態が含まれていると判別されたユーザ発話の解析結果から抽出された事態を表す節が、後述する頻度質問不可能判断DBに登録されているか否かを判断する。登録されていない場合には、応答種類「事態の頻度を尋ねる応答」を選択する。応答種類「事態の頻度を尋ねる応答」が選択された場合には、ユーザに頻度を尋ねる質問文を応答文候補として生成する。応答文候補は、例えば、応答文例及び応答文例フォーマットを予め用意しておき、この応答文例からランダムに選択したり、応答文例フォーマットを用いて生成したりする。応答文例フォーマットは、例えば、「よく〜するんですか?」のようなフォーマットとすることができ、「〜」の部分に、ユーザ発話の解析結果から抽出された事態を表す節を挿入して応答文候補を生成することができる。生成された応答文候補は、一旦所定の記憶領域に記憶される。なお、頻度質問不可能判断DBには、頻度を尋ねることが不適切な事態を表わす節が予め登録されている。   Further, it is determined whether or not a clause representing the situation extracted from the analysis result of the user utterance determined to contain the situation is registered in the frequency question impossible judgment DB described later. If it is not registered, the response type “response that asks the frequency of the situation” is selected. When the response type “response that asks the frequency of the situation” is selected, a question message that asks the user the frequency is generated as a response message candidate. For example, a response sentence candidate and a response sentence example format are prepared in advance, and the response sentence candidate is selected at random from the response sentence example or generated using the response sentence example format. The response sentence example format can be, for example, a format such as "Do you do well?", And insert a clause indicating the situation extracted from the analysis result of the user utterance in the "~" part. Sentence candidates can be generated. The generated response sentence candidate is temporarily stored in a predetermined storage area. In the frequency question impossibility determination DB, sections representing situations where it is inappropriate to ask the frequency are registered in advance.

また、事態が含まれていると判別されたユーザ発話の解析結果から事態を表す単語を抽出する。解析結果に(i)「動詞」が含まれている場合には、「動詞」である単語が抽出され、(ii)「事態性名詞+(”だ”または”です”)」が含まれている場合、「事態性名詞」である単語が抽出される。   In addition, a word representing a situation is extracted from the analysis result of the user utterance determined to contain the situation. When (i) “verb” is included in the analysis result, the word that is “verb” is extracted, and (ii) “situation noun + (“ da ”or“ is ””) is included If so, a word that is a “situation noun” is extracted.

そして、抽出された単語が後述する感情質問可能判断DB28に登録されているか否かを判断し、登録されている場合には、応答種類「事態に対するユーザの感情を尋ねる応答」を選択する。応答種類「事態に対するユーザの感情を尋ねる応答」が選択された場合には、ユーザに感情を尋ねる質問文を応答文候補として生成する。応答文候補は、基本となる質問文、例えば、「どう思う?」や「どんな感じ?」といった文を予め作成しておき、ユーザ発話の解析結果に基づいて、この基本となる質問文から選択した1つの文の時制や表現(丁寧な表現か砕けた表現かなど)を修正して、応答文候補を生成する。また、質問文例を予め作成しておき、この中からランダムに選択するようにしてもよい。生成された応答文候補は、一旦所定の記憶領域に記憶される。なお、感情質問可能判断DBには、単語が感情を尋ねることが適切な単語が予め登録されている。   Then, it is determined whether or not the extracted word is registered in the emotion questionability determination DB 28 described later. If registered, the response type “response to ask the user's emotion to the situation” is selected. When the response type “response that asks the user's emotion to the situation” is selected, a question message that asks the user about the emotion is generated as a response message candidate. Response sentence candidates are selected as basic question sentences, for example, “What do you think?” And “How do you feel?” In advance, and selected from these basic question sentences based on the analysis results of user utterances. The response sentence candidate is generated by correcting the tense and expression (such as polite expression or broken expression) of one sentence. Alternatively, a question sentence example may be prepared in advance and selected randomly from the above. The generated response sentence candidate is temporarily stored in a predetermined storage area. In addition, in the emotion questionable determination DB, words that are appropriate for the words to ask for emotions are registered in advance.

また、ユーザ発話に対する言語解析部20での解析結果から、ユーザ発話中の「動詞」及び「格助詞」を抽出する。例えば、ユーザ発話「友達と電話で話したよ」を考えると、動詞「話す」及び格助詞「と」、「で」が抽出される。次に、予め作成しておいた動詞必須格辞書データベースを用いて、抽出された動詞の必須格を検索する。動詞必須格辞書データベースは、「当該動詞が少なくとも持つべき格」が登録された辞書であり、上記の例では、動詞「話す」の必須格として、「が(誰)」、「を(何)」、「と(誰)」が登録されている。次に、検索された当該動詞の必須格と、ユーザ発話中から抽出された格助詞とを照合することで、抽出された動詞の不足格を検出し、当該動詞の不足格が検出された場合には、応答種類「不足格を尋ねる応答」を選択する。応答種類「不足格を尋ねる応答」が選択された場合には、不足格を尋ねる質問文を応答文候補として生成する。応答文候補は、例えば、応答文例フォーマットを予め用意しておき、応答文例フォーマットを用いて生成したりする。応答文例フォーマットは、例えば、不足格「を(何)」に対応して「何を〜の?」のようなフォーマットとすることができ、「〜」の部分に、ユーザ発話の解析結果から抽出された動詞を表す節を挿入して応答文候補を生成することができる。例えば、上記の例(「友達と電話で話したよ」)では、「を(何)」が不足しているため、不足格を尋ねる質問文「何を話したの?」を応答候補として生成する。生成された応答文候補は、一旦所定の記憶領域に記憶される。   Further, “verb” and “case particle” in the user utterance are extracted from the analysis result of the language analysis unit 20 for the user utterance. For example, considering the user utterance “I spoke with a friend on the phone”, the verb “speak” and the case particles “to” and “de” are extracted. Next, the indispensable case of the extracted verb is searched using a verb indispensable case dictionary database created in advance. The verb required case dictionary database is a dictionary in which “the case that the verb should have at least” is registered. In the above example, as the required case of the verb “speak”, “ga (who)”, “(what) "," And (who) "are registered. Next, if the deficient case of the extracted verb is detected by comparing the required case of the retrieved verb with the case particle extracted from the user's utterance, and the deficient case of the verb is detected The response type “response to ask for deficiency” is selected. When the response type “response asking for deficiency” is selected, a question sentence asking for deficiency is generated as a response sentence candidate. For example, a response sentence example format is prepared in advance, and the response sentence candidate is generated using the response sentence example format. The response sentence example format can be, for example, a format such as “What?” Corresponding to the deficiency “(What)”, and extracted from the analysis result of the user utterance in the “˜” part. A candidate for a response sentence can be generated by inserting a clause representing the selected verb. For example, in the above example (“I talked with a friend over the phone”), “What (what)” is insufficient, so the question sentence “What did you say?” Is generated as a response candidate. . The generated response sentence candidate is temporarily stored in a predetermined storage area.

また、言語解析部20での解析結果に関わらず、応答種類「繰り返し応答」が選択され、ユーザ発話に含まれる単語を繰り返して確認するための質問文が応答文候補として生成される。応答文候補は、例えば、応答文例フォーマットを予め用意しておき、応答文例フォーマットを用いて生成する。応答文例フォーマットは、例えば、「〜の?」のようなフォーマットとすることができ、「〜」の部分に、ユーザ発話に対する言語解析部20での解析結果に含まれる単語を挿入して応答文を生成することができる。   Regardless of the analysis result in the language analysis unit 20, the response type “repetitive response” is selected, and a question sentence for repeatedly confirming a word included in the user utterance is generated as a response sentence candidate. For example, a response sentence candidate format is prepared in advance, and the response sentence candidate is generated using the response sentence example format. The response sentence example format can be, for example, a format such as “~?”, And the word included in the analysis result of the language analysis unit 20 for the user utterance is inserted into the “˜” part, and the response sentence is inserted. Can be generated.

上記の並列目的語質問可能判断DBは、以下のように生成すればよい。   The parallel object questionable determination DB may be generated as follows.

例えば、ウェブ上のテキストなどの大規模コーパスから1文を抽出し、抽出された1文に対して形態素解析を行う。解析結果に事態が含まれているか否かを判断し、事態が含まれている場合には、名詞の並列を目的語とする動詞が含まれているか否かを、所定の言語パターンに該当するか否かに基づいて判断する。含まれる場合には、名詞の並列を目的語とする動詞が含まれている1文を、複数の並列した名詞の各々を目的語とする節に分割して、それぞれの節を、事態を表す節として抽出する。   For example, one sentence is extracted from a large-scale corpus such as text on the web, and morphological analysis is performed on the extracted one sentence. Judgment is made on whether or not the analysis result includes a situation, and if the situation is included, whether or not a verb with the object of noun parallel is included in the given language pattern Judgment based on whether or not. If included, a sentence containing verbs whose object is parallel nouns is divided into clauses whose object is each of multiple parallel nouns, and each clause represents a situation Extract as a clause.

抽出された事態を表す節を、事態を表す節、及びその節の出現頻度を計数したカウント値を定めた事態DBに登録する。既に登録されている節と同一の節の場合は、カウント値を+1する。   The section representing the extracted situation is registered in the situation DB in which the section representing the situation and the count value obtained by counting the appearance frequency of the section are defined. In the case of the same clause as that already registered, the count value is incremented by one.

コーパス上の全ての文について上記の処理が行われたか否かを判断し、未処理の文がある場合には、次の一文について処理を行う。   It is determined whether or not the above processing has been performed for all sentences on the corpus, and if there is an unprocessed sentence, the next sentence is processed.

事態DBを参照して、出現頻度が閾値以上の事態を表す節を並列目的語質問可能判断DBに登録する。事態DBでのカウント値(出現頻度)が高いということは、元々名詞の並列を目的語とした文として現れることが多く、省略された目的語が他にもあることが想定されるため、並列する目的語を尋ねる質問は適切である。カウント値が閾値以上の節を全て並列目的語質問可能判断DBに登録したら、本処理を終了する。   Referring to the situation DB, a clause representing a situation where the appearance frequency is equal to or higher than the threshold is registered in the parallel object questionable judgment DB. A high count value (occurrence frequency) in the situation DB often appears as a sentence whose object is parallel nouns originally, and it is assumed that there are other omitted objects. The question asking for the object to do is appropriate. When all the clauses whose count value is greater than or equal to the threshold value are registered in the parallel object questionable determination DB, this process is terminated.

上記の処理により、並列する目的語を尋ねる応答に対して予め定められた事態を表わす節が登録された並列目的語質問可能判断DBが生成される。   With the above processing, a parallel object questionable determination DB is generated in which a clause representing a predetermined situation is registered for a response asking for a parallel object.

結果利用応答生成部26は、上記のように応答文候補を生成し、生成した応答文候補から、ランダムに1つ選択して、応答文とする。また、結果利用応答生成部26は、選択された応答文候補の応答種類「並列する目的語を尋ねる応答」、「事態の頻度を尋ねる応答」、「事態に対するユーザの感情を尋ねる応答」、「繰り返し応答」、又は「不足格を尋ねる応答」を、応答種類記憶部24に記憶させる。   The result use response generation unit 26 generates a response sentence candidate as described above, and randomly selects one of the generated response sentence candidates as a response sentence. In addition, the result use response generation unit 26 selects the response types of the selected response sentence candidates “response to ask for parallel objects”, “response to ask the frequency of the situation”, “response to ask the user's feelings about the situation”, “ The response type storage unit 24 stores “repeat response” or “response to ask for deficiency”.

直前応答判定部28は、応答種類記憶部24に記憶された応答種類に基づいて、直前に生成された応答文の応答種類が、「並列する目的語を尋ねる応答」であるか否かを判定する。   Based on the response type stored in the response type storage unit 24, the immediately preceding response determination unit 28 determines whether the response type of the response sentence generated immediately before is “response for asking parallel objects”. To do.

話題転換応答生成部30は、話題を変えるための応答文を生成する。応答文は、例えば、図5に示すような応答文例を予め用意しておき、この応答文例からランダムに選択する。また、話題転換応答生成部30は、話題を変えるための応答文を生成すると共に、応答種類「話題転換応答」を応答種類記憶部24に記憶させる。   The topic conversion response generator 30 generates a response sentence for changing the topic. As the response text, for example, a response text example as shown in FIG. 5 is prepared in advance, and is selected at random from this response text example. Further, the topic conversion response generation unit 30 generates a response sentence for changing the topic, and stores the response type “topic conversion response” in the response type storage unit 24.

相槌生成部32は、相槌の応答文を生成する。応答文は、例えば、図6に示すような応答文例を予め用意しておき、この応答文例からランダムに選択する。また、相槌生成部32は、相槌の応答文を生成すると共に、応答種類「相槌応答」を応答種類記憶部24に記憶させる。   The conflict generation unit 32 generates a response statement of the conflict. For example, a response sentence example as shown in FIG. 6 is prepared in advance, and the response sentence is selected at random from the response sentence example. In addition, the conflict generation unit 32 generates a response statement of the conflict and stores the response type “conflict response” in the response type storage unit 24.

次に、図7を参照して、本実施の形態の応答生成装置10における応答生成処理ルーチンについて説明する。本ルーチンは、ROMに記憶された応答生成プログラムをCPUが実行することにより行われる。   Next, a response generation processing routine in the response generation device 10 of the present exemplary embodiment will be described with reference to FIG. This routine is performed by the CPU executing a response generation program stored in the ROM.

ステップ100で、マイク12からユーザ発話が入力されたか否かを判断し、ユーザ発話が入力された場合には、ステップ102へ進み、入力されない場合には、入力されるまで本ステップの判断を繰り返す。ここでは、ユーザ発話「遊園地に行ったよ」が入力されたものとする。   In step 100, it is determined whether or not a user utterance has been input from the microphone 12. If a user utterance has been input, the process proceeds to step 102. If not, the determination in this step is repeated until it is input. . Here, it is assumed that the user utterance “I went to an amusement park” is input.

ステップ102で、入力されたユーザ発話を示す音声信号を音声認識して文字列情報とし、この文字列情報に対して形態素解析を行う。ここでは、解析結果として、図8に示すように、「遊泳(名詞)」「し(動詞)」「に(助詞)」「来(動詞)」「た(助動詞)」「よ(助詞)」が得られる。   In step 102, the input voice signal indicating the user utterance is recognized as voice string information, and morphological analysis is performed on the string information. Here, as a result of analysis, as shown in FIG. 8, “swimming (noun)” “shi (verb)” “ni (particle)” “rai (verb)” “ta (auxiliary verb)” “yo (particle)” Is obtained.

次に、ステップ104で、形態素解析の解析結果に基づいて、ユーザ発話に否定表現が含まれているか否かを判別する。否定表現が含まれている場合には、ステップ112へ進み、含まれていない場合には、ステップ106へ進む。ここでは、否定表現が含まれていないため、否定表現が含まれていないと判断されてステップ106へ進む。   Next, in step 104, it is determined whether or not a negative expression is included in the user utterance based on the analysis result of the morphological analysis. If a negative expression is included, the process proceeds to step 112; otherwise, the process proceeds to step 106. Here, since a negative expression is not included, it is determined that a negative expression is not included, and the process proceeds to step 106.

ステップ106で、形態素解析の解析結果に基づいて、応答種類を選択する。まず、形態素解析の解析結果に基づいて、ユーザ発話に、並列目的語質問可能判断DBに登録されている事態を表わす節が含まれているかを判断することにより、応答種類を選択する。含まれている場合には、「並列する目的語を尋ねる応答」を選択する。また、ユーザ発話に、頻度質問不可能判断DBに登録されている事態を表わす節が含まれているかを判断することにより、応答種類を選択する。含まれていない場合には、「事態の頻度を尋ねる応答」を選択する。また、ユーザ発話に、感情質問可能判断DBに登録されている事態を表わす単語が含まれているかを判断することにより、応答種類を選択する。含まれている場合には、「事態に対するユーザの感情を尋ねる応答」を選択する。また、形態素解析の解析結果に関わらず、「繰り返し応答」も選択される。   In step 106, a response type is selected based on the analysis result of the morphological analysis. First, based on the analysis result of the morphological analysis, a response type is selected by determining whether the user utterance includes a clause representing a situation registered in the parallel object questionable determination DB. If it is included, select “response to ask parallel objects”. Further, the response type is selected by determining whether the user utterance includes a clause representing a situation registered in the frequency question impossibility determination DB. If it is not included, select “response to ask the frequency of the situation”. In addition, the response type is selected by determining whether the user utterance includes a word representing a situation registered in the emotion questionable determination DB. If it is included, the “response for asking the user's emotion to the situation” is selected. Further, “repetitive response” is selected regardless of the analysis result of the morphological analysis.

そして、ステップ107において、上記ステップ106で選択された応答種類の各々について、応答文候補を各々生成する。例えば、解析結果に含まれる「来(動詞)」を、応答文フォーマットに挿入して、「繰り返し応答」の応答文候補として「来たんですか」を生成する。   In step 107, response sentence candidates are generated for each of the response types selected in step 106. For example, “Claim (verb)” included in the analysis result is inserted into the response sentence format, and “Did you come” as a response sentence candidate for “Repetitive response”.

次のステップ108では、上記ステップ107で生成された応答文候補からランダムに1つ選択して応答文とすると共に、応答種類記憶部24に記憶される応答種類を、上記ステップ108で選択した応答文候補の応答種類に更新して、ステップ110へ移行する。ここでは、「繰り返し応答」の応答文候補が選択され、「来たんですか」を、生成された応答文とする。   In the next step 108, one response sentence candidate randomly generated in the above step 107 is selected as a response sentence, and the response type stored in the response type storage unit 24 is selected as the response selected in the above step 108. The response type of the sentence candidate is updated, and the process proceeds to step 110. Here, a response sentence candidate of “repeat response” is selected, and “Did you come” is the generated response sentence.

ステップ110では、生成された応答文を音声信号に変換して出力する。ここでは、「来たんですか」を音声出力して、上記ステップ100へ戻る。   In step 110, the generated response sentence is converted into an audio signal and output. Here, “Did you come?” Is output as a voice, and the process returns to step 100.

次に、システム応答「来たんですか」に対するユーザ発話「来たんじゃなくて行ったの」が入力されたものとする。このとき、上記ステップ102では、解析結果として、図9に示すように、「来(動詞)」「た(助動詞)」「ん(名詞)」「じゃ(助詞)」「なく(助動詞)」「て(動詞)」「行っ(動詞)」「た(助動詞)」「の(名詞)」が得られる。   Next, it is assumed that a user utterance “I did not come” but a system response “Did you come?” Is input. At this time, in step 102, as the analysis result, as shown in FIG. 9, “Kai (verb)” “Ta (auxiliary verb)” “N (noun)” “Ja (particle)” “None (auxiliary verb)” “ (Verb), “go (verb),“ ta (auxiliary verb) ”and“ no (noun) ”.

上記ステップ104では、形態素解析の解析結果に基づいて、ユーザ発話に否定表現「〜じゃなくて〜」が含まれていると判定され、ステップ112において、直前に生成した応答文の応答種類が、「並列する目的語を尋ねる応答」であるか否かを判定する。「並列する目的語を尋ねる応答」である場合には、ステップ114へ移行するが、「並列する目的語を尋ねる応答」以外である場合には、ステップ116へ移行する。ここでは、応答種類記憶部24には、「繰り返し応答」が記憶されているため、「並列する目的語を尋ねる応答」ではないと判定し、ステップ114へ移行する。   In step 104 above, based on the analysis result of the morphological analysis, it is determined that the negative utterance “not not ~” is included in the user utterance. In step 112, the response type of the response sentence generated immediately before is It is determined whether or not “response for asking for parallel objects”. If it is “response for asking for parallel object”, the process proceeds to step 114, but if it is other than “response for asking for parallel object”, the process proceeds to step 116. Here, since “repeat response” is stored in the response type storage unit 24, it is determined that the response type storage unit 24 is not “response for asking parallel objects”, and the process proceeds to step 114.

ステップ114では、相槌応答に対して予め用意された定型文から選択して、相槌の応答文(例えば、「あぁ、そうなんですか」)を生成すると共に、応答種類記憶部24に記憶される応答種類を「相槌応答」に更新して、ステップ110へ移行する。   In step 114, a response sentence (for example, “Oh, what is it?”) Is generated by selecting from standard sentences prepared in advance for the response, and the response stored in the response type storage unit 24. The type is updated to “confusion response”, and the process proceeds to step 110.

また、ユーザ発話「遊園地に行ったよ」が入力されたものとする。このとき、上記ステップ102では、解析結果として、図10に示すように、「遊泳(名詞)」「し(動詞)」「に(助詞)」「行っ(動詞)」「た(助動詞)」「よ(助詞)」が得られる。   Further, it is assumed that the user utterance “I went to an amusement park” is input. At this time, in step 102, as a result of analysis, as shown in FIG. 10, “swimming (noun)” “shi (verb)” “ni (particle)” “go (verb)” “ta (auxiliary verb)” “ Yo (particle) ".

この場合、上記ステップ104では、ユーザ発話に否定表現が含まれていないと判定され、ステップ106において、ユーザ発話に、並列目的語質問可能判断DBに登録されている事態を表わす節(「行っ(動詞)」を含む節)が含まれていると判断されたとする。応答種類として「並列する目的語を尋ねる応答」を含む応答種類が選択され、ステップ108で、「並列する目的語を尋ねる応答」の応答文候補として生成された「他にどこか行ったんですか」が選択され、応答種類記憶部24に記憶される応答種類が「並列する目的語を尋ねる応答」に更新される。   In this case, in step 104, it is determined that the user utterance does not include a negative expression. In step 106, the user utterance is a clause ("Done" indicating a situation registered in the parallel object questionable determination DB. Suppose that it is determined that a clause that includes the verb “)” is included. A response type including “response for asking parallel objects” is selected as the response type, and in step 108, a response sentence candidate of “response asking for parallel objects” is generated. "Is selected, and the response type stored in the response type storage unit 24 is updated to" response for asking parallel objects ".

そして、システム応答「他にどこか行ったんですか」に対するユーザ発話「どこにも行ってないよ」が入力されたものとする。このとき、上記ステップ102では、解析結果として、図11に示すように、「どこ(名詞)」「に(助詞)」「行っ(動詞)」「て(助動詞)」「ない(助動詞)」「よ(助詞)」が得られる。   Then, it is assumed that a user utterance “I have not gone anywhere” is input to the system response “Did you go elsewhere?” At this time, in step 102, as shown in FIG. 11, as the analysis result, “where (noun)” “ni (particle)” “go (verb)” “te (auxiliary verb)” “not (auxiliary verb)” “ Yo (particle) ".

上記ステップ104では、形態素解析の解析結果に基づいて、ユーザ発話に否定表現「品詞“動詞”+“ない”」が含まれていると判定され、ステップ112において、直前に生成した応答文の応答種類が、「並列する目的語を尋ねる応答」であると判定される。そして、ステップ116において、話題転換応答に対して予め用意された定型文から選択して、話題を変えるための応答文(例えば、「それでは話題を変えましょう」)を生成すると共に、応答種類記憶部24に記憶される応答種類を「話題転換応答」に更新して、ステップ110へ移行する。   In step 104 described above, it is determined that the user utterance contains the negative expression “part of speech“ verb ”+“ no ”” based on the analysis result of the morphological analysis. In step 112, the response of the response sentence generated immediately before is determined. It is determined that the type is “response for asking parallel objects”. In step 116, a response sentence for changing the topic (for example, “Let's change the topic”) is generated by selecting from the standard sentences prepared in advance for the topic change response, and the response type is stored. The response type stored in the unit 24 is updated to “topic change response”, and the process proceeds to step 110.

上記の応答生成処理ルーチンを実行することにより、例えば、「遊園地に行ったよ」というユーザ発話に対して、認識結果が「遊泳しに来たよ」であった場合、繰り返し応答の応答文「来たんですか」が生成される。この時、ユーザが「いや違う。行ったの」という訂正発話を行ったときには、この訂正発話に対して、例えば「あぁ、そうなんですね」といった相槌を生成するため、誤認識のループに陥ることはなく、スムーズに対話を続けることができる。例えば「行った」の部分を「切った」と誤認識して、再び誤認識結果を用いた応答生成を行ってしまう、というような誤認識のループを回避することが可能となる。   By executing the response generation processing routine described above, for example, when the recognition result is “I came to swim” for a user utterance “I went to an amusement park”, a response message “Return response” Tantan "is generated. At this time, when the user makes a correction utterance “No, I did.”, For example, “Oh, that ’s right” is generated for this correction utterance, so that a false recognition loop occurs. No, you can continue the conversation smoothly. For example, it is possible to avoid a misrecognition loop in which the “performed” part is erroneously recognized as “cut” and a response is generated again using the erroneous recognition result.

また、例えば、「他にどこかに行ったんですか?」のような並列する目的語を尋ねる応答に対して、ユーザが「いや。別にどこにも行ってないよ」という発話を行った場合には、「それでは話題を変えましょう」などのような話題を変える応答文が生成されるため、対話のスムーズな継続が可能となる。   Also, for example, when a user utters “No, I do n’t go anywhere” in response to a response asking for a parallel object like “Did you go elsewhere?” Since a response sentence that changes the topic such as “Let's change the topic” is generated, the conversation can be continued smoothly.

以上説明したように、本実施の形態の応答生成装置によれば、ユーザ発話に否定表現が含まれている場合に、直前の応答種類が「並列する目的語を尋ねる応答」であると、話題を変えるための応答文を生成し、直前の応答種類が「並列する目的語を尋ねる応答」以外であると、相槌の応答文を生成することにより、否定の意図を考慮した適切な応答文を生成して、自然な対話を行うことができる。   As described above, according to the response generation device of the present embodiment, when a negative expression is included in the user utterance, if the immediately preceding response type is “response for asking parallel objects”, the topic If the response type immediately before the response type is something other than "a response that asks for a parallel object", an appropriate response sentence that takes into account the negative intention is generated by generating a response sentence Generate and interact naturally.

ユーザに対して「肯定・否定」の発話を明確に要求する応答(=Yes・No質問応答や勧誘応答)を生成した場合のみではなく、5W1H質問応答や繰り返し応答といった場合であっても、ユーザ発話に否定表現が含まれるか否かを判定し、その結果に基づいて応答生成を行うため、よりスムーズな対話が可能となる。   Not only when a response (= Yes / No question response or solicitation response) that explicitly requests the user to say “affirmation / denial” is generated, but even when a 5W1H question response or repeated response is generated, the user Since it is determined whether or not a negative expression is included in an utterance and a response is generated based on the result, a smoother conversation is possible.

なお、上記の実施の形態では、スピーカによる音声出力を行う場合を例に説明したが、これに限定されるものではなく、ディスプレイに応答文を表示するようにしてもよい。また、ユーザから音声がマイクに入力される場合を例に説明したが、ユーザがキーボードなどを用いて入力文としてのテキストを入力するようにしてもよい。   In the above-described embodiment, the case where voice output by a speaker is performed has been described as an example. However, the present invention is not limited to this, and a response sentence may be displayed on a display. Moreover, although the case where audio | voice was input into the microphone from the user was demonstrated to the example, you may make it a user input the text as an input sentence using a keyboard etc.

また、形態素解析の解析結果を利用して応答文を生成する場合、形態素解析の解析結果に基づいて、少なくとも1種類以上の応答種類を選択し、選択された各応答種類について生成された応答文候補から、応答文をランダムに選択する場合を例に説明したが、これに限定されるものではない。例えば、形態素解析の解析結果に基づいて、応答種類を1種類だけ選択して、選択された応答種類について応答文を生成すると共に、選択された応答種類を、応答種類記憶部24に記憶するようにしてもよい。   When generating a response sentence using the analysis result of morphological analysis, at least one response type is selected based on the analysis result of morphological analysis, and the response sentence generated for each selected response type The case where response sentences are randomly selected from candidates has been described as an example, but the present invention is not limited to this. For example, based on the analysis result of morphological analysis, only one response type is selected, a response sentence is generated for the selected response type, and the selected response type is stored in the response type storage unit 24. It may be.

本発明のプログラムを、記憶媒体に格納して提供することも可能である。   It is also possible to provide the program of the present invention by storing it in a storage medium.

10 応答生成装置
12 マイク
14 スピーカ
16 コンピュータ
20 言語解析部
22 否定表現判定部
24 応答種類記憶部
26 結果利用応答生成部
28 直前応答判定部
30 話題転換応答生成部
32 相槌生成部
34 出力部
DESCRIPTION OF SYMBOLS 10 Response production | generation apparatus 12 Microphone 14 Speaker 16 Computer 20 Language analysis part 22 Negative expression determination part 24 Response type memory | storage part 26 Result utilization response generation part 28 Immediate response determination part 30 Topic change response generation part 32 Affinity generation part 34 Output part

Claims (5)

ユーザからの入力文の構造を解析した解析結果に基づいて、前記入力文に予め定められた否定表現が含まれているか否かを判定する否定表現判定手段と、
前記否定表現が含まれていないと判定された場合には、前記解析結果に基づいて、並列する目的語を尋ねる応答を含む応答の種類を少なくとも1種類選択し、選択された応答の種類について、該応答の種類に対して予め用意された応答文、又は予め用意された応答文フォーマットに前記入力文に含まれる単語を付加した応答文を生成する第1応答生成手段と、
前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答である場合、予め用意された、話題を変えるための応答文を生成する第2応答生成手段と、
前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答でない場合、予め用意された相槌の応答文を生成する第3応答生成手段と、
を含む応答生成装置。
Negative expression determination means for determining whether or not a predetermined negative expression is included in the input sentence based on an analysis result obtained by analyzing a structure of the input sentence from the user;
If it is determined that the negative expression is not included, based on the analysis result, select at least one response type including a response asking for a parallel object, and for the selected response type, First response generation means for generating a response sentence prepared in advance for the type of response, or a response sentence in which a word included in the input sentence is added to a response sentence format prepared in advance;
If it is determined that the negative expression is included, and the response type of the response sentence generated last time is a response for asking for a parallel object, the prepared topic is changed. Second response generation means for generating a response sentence for
If it is determined that the negative expression is included, and the response type of the response sentence generated last time is not a response for asking for a parallel object, a response sentence prepared in advance is used. Third response generating means for generating;
A response generation device including:
前記第1応答生成手段は、前記解析結果に基づいて、前記入力文に、並列する目的語を尋ねる応答に対して予め定められた事態を表わす節が含まれる場合に、並列する目的語を尋ねる応答を選択し、前記入力文に含まれる事態を表わす節に対する並列する目的語を尋ねるための予め用意された応答文、又は予め用意された応答文フォーマットに前記入力文に含まれる事態を表わす節を付加した応答文を生成する請求項1記載の応答生成装置。   The first response generation means inquires the parallel object based on the analysis result when the input sentence includes a clause representing a predetermined situation with respect to a response asking for the parallel object. A response sentence prepared by selecting a response and inquiring a parallel object for a clause representing a situation included in the input sentence, or a clause representing a situation included in the input sentence in a prepared response sentence format The response generation apparatus according to claim 1, wherein a response sentence to which is added is generated. 前記否定表現判定手段は、前記解析結果に基づいて、前記入力文に、前記否定表現として予め定められた表現、又は品詞の種類と表現との組合せが含まれるか否かによって、前記入力文に前記否定表現が含まれているか否かを判定する請求項1又は2記載の応答生成装置。   The negative expression determination means determines whether the input sentence includes an expression predetermined as the negative expression, or a combination of a part of speech and a type of expression based on the analysis result. The response generation device according to claim 1, wherein it is determined whether or not the negative expression is included. 前記入力文を、ユーザによる発話を音声認識して取得した請求項1〜請求項3の何れか1項記載の応答生成装置。   The response generation apparatus according to claim 1, wherein the input sentence is acquired by voice recognition of an utterance made by a user. コンピュータを、
ユーザからの入力文の構造を解析した解析結果に基づいて、前記入力文に予め定められた否定表現が含まれているか否かを判定する否定表現判定手段、
前記否定表現が含まれていないと判定された場合には、前記解析結果に基づいて、並列する目的語を尋ねる応答を含む応答の種類を少なくとも1種類選択し、選択された応答の種類について、該応答の種類に対して予め用意された応答文、又は予め用意された応答文フォーマットに前記入力文に含まれる単語を付加した応答文を生成する第1応答生成手段、
前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答である場合、予め用意された、話題を変えるための応答文を生成する第2応答生成手段、及び
前記否定表現が含まれていると判定された場合であって、かつ、前回生成された応答文の応答の種類が、並列する目的語を尋ねる応答でない場合、予め用意された相槌の応答文を生成する第3応答生成手段
として機能させるためのプログラム。
Computer
Negative expression determination means for determining whether or not a predetermined negative expression is included in the input sentence based on an analysis result obtained by analyzing a structure of the input sentence from the user;
If it is determined that the negative expression is not included, based on the analysis result, select at least one response type including a response asking for a parallel object, and for the selected response type, A first response generation means for generating a response sentence prepared in advance for the type of response, or a response sentence in which a word included in the input sentence is added to a response sentence format prepared in advance;
If it is determined that the negative expression is included, and the response type of the response sentence generated last time is a response for asking for a parallel object, the prepared topic is changed. Second response generation means for generating a response sentence for the response, and when it is determined that the negative expression is included, and the response type of the response sentence generated last time is a parallel object If it is not a response to ask, a program for functioning as a third response generation means for generating a response sentence prepared in advance.
JP2009113237A 2009-05-08 2009-05-08 Response generating apparatus and program Expired - Fee Related JP5136512B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009113237A JP5136512B2 (en) 2009-05-08 2009-05-08 Response generating apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009113237A JP5136512B2 (en) 2009-05-08 2009-05-08 Response generating apparatus and program

Publications (2)

Publication Number Publication Date
JP2010262147A true JP2010262147A (en) 2010-11-18
JP5136512B2 JP5136512B2 (en) 2013-02-06

Family

ID=43360258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009113237A Expired - Fee Related JP5136512B2 (en) 2009-05-08 2009-05-08 Response generating apparatus and program

Country Status (1)

Country Link
JP (1) JP5136512B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015064481A (en) * 2013-09-25 2015-04-09 ヤマハ株式会社 Encoding-decoding device, voice synthesizer and program
KR101565658B1 (en) 2012-11-28 2015-11-04 포항공과대학교 산학협력단 Method for dialog management using memory capcity and apparatus therefor
JP2016024384A (en) * 2014-07-23 2016-02-08 トヨタ自動車株式会社 Response production system, response production method, and program
CN108630203A (en) * 2017-03-03 2018-10-09 国立大学法人京都大学 Interactive voice equipment and its processing method and program
US10490181B2 (en) 2013-05-31 2019-11-26 Yamaha Corporation Technology for responding to remarks using speech synthesis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07152723A (en) * 1993-11-30 1995-06-16 Nippon Telegr & Teleph Corp <Ntt> Interactive processor
JP2002169591A (en) * 2000-12-01 2002-06-14 Namco Ltd Simulated conversation system and information storage medium
JP2003330487A (en) * 2002-05-09 2003-11-19 Nec Corp Conversation agent
JP2004347943A (en) * 2003-05-23 2004-12-09 Clarion Co Ltd Data processor, musical piece reproducing apparatus, control program for data processor, and control program for musical piece reproducing apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07152723A (en) * 1993-11-30 1995-06-16 Nippon Telegr & Teleph Corp <Ntt> Interactive processor
JP2002169591A (en) * 2000-12-01 2002-06-14 Namco Ltd Simulated conversation system and information storage medium
JP2003330487A (en) * 2002-05-09 2003-11-19 Nec Corp Conversation agent
JP2004347943A (en) * 2003-05-23 2004-12-09 Clarion Co Ltd Data processor, musical piece reproducing apparatus, control program for data processor, and control program for musical piece reproducing apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101565658B1 (en) 2012-11-28 2015-11-04 포항공과대학교 산학협력단 Method for dialog management using memory capcity and apparatus therefor
US10490181B2 (en) 2013-05-31 2019-11-26 Yamaha Corporation Technology for responding to remarks using speech synthesis
JP2015064481A (en) * 2013-09-25 2015-04-09 ヤマハ株式会社 Encoding-decoding device, voice synthesizer and program
JP2016024384A (en) * 2014-07-23 2016-02-08 トヨタ自動車株式会社 Response production system, response production method, and program
CN108630203A (en) * 2017-03-03 2018-10-09 国立大学法人京都大学 Interactive voice equipment and its processing method and program
US10452352B2 (en) 2017-03-03 2019-10-22 Toyota Jidosha Kabushiki Kaisha Voice interaction apparatus, its processing method, and program
CN108630203B (en) * 2017-03-03 2022-12-20 国立大学法人京都大学 Voice interaction device, processing method thereof, and program

Also Published As

Publication number Publication date
JP5136512B2 (en) 2013-02-06

Similar Documents

Publication Publication Date Title
US8150692B2 (en) Method and apparatus for recognizing a user personality trait based on a number of compound words used by the user
US10460034B2 (en) Intention inference system and intention inference method
US10452352B2 (en) Voice interaction apparatus, its processing method, and program
JP5195414B2 (en) Response generating apparatus and program
WO2017061027A1 (en) Language model generation device, language model generation method and program therefor, voice recognition device, and voice recognition method and program therefor
JP2010152119A (en) Response generation device and program
JP7059813B2 (en) Voice dialogue system, its processing method and program
JP2010020390A (en) Emotion estimation device and emotion estimation program
JP2013167985A (en) Conversation summary generation system and conversation summary generation program
JP5136512B2 (en) Response generating apparatus and program
EP2988298B1 (en) Response generation method, response generation apparatus, and response generation program
JP5867410B2 (en) Dialog text analysis apparatus, method and program
JP2019211515A (en) Voice dialogue system, processing method of the same and program thereof
JP2008180801A (en) Automatic answering apparatus and method
JP2009163620A (en) Response generation device and response generation program
JP2008276543A (en) Interactive processing apparatus, response sentence generation method, and response sentence generation processing program
JP6712754B2 (en) Discourse function estimating device and computer program therefor
JP2010224153A (en) Speech interaction device and program
JP2010282404A (en) Device, method and program for interactive processing
JP2008152637A (en) Response generation apparatus and response generation program
JP2016080981A (en) Response generation device, response generation method, and response generation program
JP6097791B2 (en) Topic continuation desire determination device, method, and program
JP2009198871A (en) Voice interaction apparatus
JP6538399B2 (en) Voice processing apparatus, voice processing method and program
JP3956730B2 (en) Language processor

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20111206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20111206

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121004

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: 20121016

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121029

R151 Written notification of patent or utility model registration

Ref document number: 5136512

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: 20151122

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees