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
JP6644141B2 - Response device, control method of response device, and control program - Google Patents
[go: Go Back, main page]

JP6644141B2 - Response device, control method of response device, and control program - Google Patents

Response device, control method of response device, and control program Download PDF

Info

Publication number
JP6644141B2
JP6644141B2 JP2018522313A JP2018522313A JP6644141B2 JP 6644141 B2 JP6644141 B2 JP 6644141B2 JP 2018522313 A JP2018522313 A JP 2018522313A JP 2018522313 A JP2018522313 A JP 2018522313A JP 6644141 B2 JP6644141 B2 JP 6644141B2
Authority
JP
Japan
Prior art keywords
word
phrase
response message
concept
input
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
JP2018522313A
Other languages
Japanese (ja)
Other versions
JPWO2017212689A1 (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Publication of JPWO2017212689A1 publication Critical patent/JPWO2017212689A1/en
Application granted granted Critical
Publication of JP6644141B2 publication Critical patent/JP6644141B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/08Text analysis or generation of parameters for speech synthesis out of text, e.g. grapheme to phoneme translation, prosody generation or stress or intonation determination
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/10Speech classification or search using distance or distortion measures between unknown speech and reference templates
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Acoustics & Sound (AREA)
  • Machine Translation (AREA)
  • Manipulator (AREA)
  • Toys (AREA)

Description

本発明は入力内容を認識し、認識した内容に基づいて応答する応答装置に関する。   The present invention relates to a response device that recognizes input contents and responds based on the recognized contents.

ユーザの発話を受けると、該発話から入力内容を認識し、認識した結果に応じて応答する応答装置が従来技術として知られている。例えば、下記の特許文献1には、ユーザとの会話を成立させることが可能な装置である自動会話装置に用いられる会話シナリオを生成及び編集する会話シナリオ編集装置が開示されている。   2. Description of the Related Art A response device that receives an utterance of a user, recognizes input content from the utterance, and responds according to the recognized result is known as a related art. For example, Patent Document 1 below discloses a conversation scenario editing device that generates and edits a conversation scenario used in an automatic conversation device that is a device capable of establishing a conversation with a user.

日本国公開特許公報「特開2010−73192号」(2010年4月2日公開)Japanese Unexamined Patent Publication "JP-A-2010-73192" (published on April 2, 2010)

しかしながら、上述のような従来技術は、認識した結果について、予め用意していた会話シナリオに基づいて応答する構成であるが、シナリオの数には限りがある。そのため、認識した結果に適合する会話シナリオが見つからない場合は、予め<その他>に規定された内容しか応答できない。さらに、シナリオの数が少ないと、応答内容が似通ってしまい、退屈な会話になるという問題がある。   However, the above-described conventional technology is configured to respond to a recognized result based on a conversation scenario prepared in advance, but the number of scenarios is limited. Therefore, if no conversation scenario that matches the recognized result is found, only the contents specified in advance in <Others> can be answered. Furthermore, if the number of scenarios is small, the response contents will be similar, resulting in a problem that the conversation will be boring.

本発明は、前記の問題点に鑑みてなされたものであり、その目的は、入力内容に適合する会話シナリオが見つからないような場合であっても、入力内容に含まれる語句に基づいて応答メッセージを生成する応答装置を実現することにある。   The present invention has been made in view of the above problems, and its purpose is to provide a response message based on a phrase included in an input content even when a conversation scenario matching the input content cannot be found. To implement a response device that generates

上記の課題を解決するために、本発明の一態様に係る応答装置は、ユーザが入力した入力内容について応答メッセージを出力する応答装置であって、第1語句と第1関連語句とが互いに関連していること、および、第2語句と第2関連語句とが互いに関連していることを記憶している記憶部と、上記入力内容に対する応答メッセージを生成する応答メッセージ生成部とを備え、上記第1語句または上記第2語句が上記入力内容に含まれており、上記記憶部が、上記第2語句と上記第1関連語句とが互いに関連していること、または、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、上記応答メッセージ生成部は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成する。   In order to solve the above-described problem, a response device according to one embodiment of the present invention is a response device that outputs a response message for an input content input by a user, wherein a first phrase and a first related phrase are related to each other. And a response message generation unit that generates a response message to the input content, the storage unit storing that the second phrase and the second related phrase are related to each other, The first word or the second word is included in the input content, and the storage unit stores that the second word and the first related word are related to each other, or that the first word and the first word are related to each other. When the fact that the second word and phrase belong to the same concept is stored, the response message generation unit generates the response message having a content in which the first word and the second related word are associated with each other.

また、上記の課題を解決するために、本発明の一態様に係る応答装置の制御方法は、ユーザが入力した入力内容について応答メッセージを出力する応答装置の制御方法であって、上記応答装置は、第1語句と第1関連語句とが互いに関連していること、および、第2語句と第2関連語句とが互いに関連していることを記憶している記憶部を備え、上記入力内容に含まれている上記第1語句または上記第2語句に関する記憶を上記記憶部から探す探索ステップと、上記入力内容に対する応答メッセージを生成する応答メッセージ生成ステップとを含み、上記第1語句または上記第2語句が上記入力内容に含まれており、上記記憶部が、上記第2語句と上記第1関連語句とが互いに関連していること、または、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、上記応答メッセージ生成ステップでは、上記第1語句と上記第2関連語句とを互いに関連付けた内容の応答メッセージを生成する。   Further, in order to solve the above problem, a control method of a response device according to one embodiment of the present invention is a control method of a response device that outputs a response message for an input content input by a user, wherein the response device is And a storage unit for storing that the first phrase and the first related phrase are related to each other, and that the second word and the second related phrase are related to each other. A search step of searching the storage section for the included first or second phrase, and a response message generation step of generating a response message to the input content, wherein the first or second phrase is included. A word is included in the input content, and the storage unit stores information that the second word and the first related word are related to each other, or that the first word and the second word are the same. If that stores that belong to the concept, in the response message generation step, generating a response message content associated with each other and the first word and the second related phrases.

本発明の一態様によれば、入力内容に適合する会話シナリオが見つからないような場合であっても、入力内容に含まれる語句に基づいて応答メッセージを生成する応答装置を実現するという効果を奏する。   Advantageous Effects of Invention According to one aspect of the present invention, it is possible to realize a response device that generates a response message based on a phrase included in an input content even when a conversation scenario that matches the input content cannot be found. .

本発明の実施形態1に係るロボット1の要部構成の一例を示すブロック図である。FIG. 2 is a block diagram illustrating an example of a configuration of a main part of the robot 1 according to the first embodiment of the present invention. 本発明の実施形態1に係るロボット1が記憶部に備える語句情報の一例である。4 is an example of phrase information provided in a storage unit of the robot 1 according to the first embodiment of the present invention. 本発明の実施形態1に係るロボット1が記憶部に備える入出力履歴の一例を示す図である。FIG. 3 is a diagram illustrating an example of an input / output history provided in a storage unit of the robot 1 according to the first embodiment of the present invention. 本発明の実施形態1に係るロボット1が記憶部に備える応答メッセージのテンプレートの一例およびテンプレートを用いた例文を示す。4 shows an example of a response message template provided in the storage unit of the robot 1 according to the first embodiment of the present invention, and an example sentence using the template. 本発明の実施形態1に係るロボット1が推論によって応答メッセージを生成するイメージを示す図である。FIG. 5 is a diagram illustrating an image in which the robot 1 according to the first embodiment of the present invention generates a response message by inference. 本発明の実施形態1に係るロボット1が推論によって応答メッセージを生成する別のイメージを示す図である。FIG. 6 is a diagram illustrating another image in which the robot 1 according to the first embodiment of the present invention generates a response message by inference. 本発明の実施形態1に係るロボット1が実行する処理の一例を示すフローチャートである。4 is a flowchart illustrating an example of a process executed by the robot according to the first embodiment of the present invention. 本発明の実施形態2に係るロボット1が推論によって応答メッセージを生成する別のイメージを示す図である。FIG. 13 is a diagram illustrating another image in which the robot 1 according to the second embodiment of the present invention generates a response message by inference. 本発明の実施形態2に係るロボット1が推論によって応答メッセージを生成する別のイメージを示す図である。FIG. 13 is a diagram illustrating another image in which the robot 1 according to the second embodiment of the present invention generates a response message by inference.

〔実施形態1〕
以下、本発明の実施の形態について、図1〜7を用いて詳細に説明する。
[Embodiment 1]
Hereinafter, embodiments of the present invention will be described in detail with reference to FIGS.

<ロボットの構成>
図1に基づいて本実施形態に係るロボット1の概要を説明する。なお、本実施形態に係るロボット1は、ユーザが発話によって入力した入力内容について応答メッセージを出力する応答装置である。図1は、本実施形態に係るロボット1の要部構成の一例を示すブロック図である。図1に示すように、ロボット1は、音声入力部11、音声出力部12、記憶部13、および制御部20を備えている。音声入力部11は、ユーザの発話を検出するものである。音声入力部11は具体的には、マイク等の集音装置であればよい。音声入力部11は検出したユーザの発話を音声データとして後述する音声認識部21に送る。なお、音声入力部11は、ユーザの発話の間(音声を発していない時間)などから1回の発話(1まとまりの文または文章となる発話)を特定し、当該1回の発話毎の音声データを音声認識部21に送信することが望ましい。音声出力部12は、後述する音声合成部27から受信した音声データを音声として外部に出力する出力部として機能する。音声出力部12は具体的にはロボット1に備えられたスピーカ等で実現される。なお、図1の例では音声出力部12はロボット1に内蔵されているが、音声出力部12はロボット1に取付けられた外部装置であっても構わない。記憶部13は、ロボット1にて扱われる各種データを記憶する。本実施形態に係る記憶部13は、後述する語句情報、入出力履歴、応答メッセージのテンプレートを少なくとも記憶している。
<Robot configuration>
An outline of the robot 1 according to the present embodiment will be described based on FIG. Note that the robot 1 according to the present embodiment is a response device that outputs a response message with respect to the input content input by the user by speaking. FIG. 1 is a block diagram illustrating an example of a main configuration of the robot 1 according to the present embodiment. As shown in FIG. 1, the robot 1 includes a voice input unit 11, a voice output unit 12, a storage unit 13, and a control unit 20. The voice input unit 11 detects a user's utterance. The sound input unit 11 may be any sound collecting device such as a microphone. The voice input unit 11 sends the detected utterance of the user as voice data to a voice recognition unit 21 described later. Note that the voice input unit 11 specifies one utterance (a utterance that forms a single sentence or sentence) from the time of the user's utterance (time during which no voice is being emitted) and the like, and outputs the voice for each utterance. It is desirable to transmit the data to the voice recognition unit 21. The voice output unit 12 functions as an output unit that outputs voice data received from a voice synthesis unit 27 described later as voice to the outside. The audio output unit 12 is specifically realized by a speaker or the like provided in the robot 1. In the example of FIG. 1, the audio output unit 12 is built in the robot 1, but the audio output unit 12 may be an external device attached to the robot 1. The storage unit 13 stores various data handled by the robot 1. The storage unit 13 according to the present embodiment stores at least a phrase information, an input / output history, and a template of a response message described later.

<記憶部が記憶するデータの例>
本実施形態において記憶部13が記憶するデータの一例を、図2〜4に基づいて説明する。図2は、本実施形態に係るロボット1が記憶部13に記憶している語句情報の一例であり、図3は、本実施形態に係るロボット1が記憶部13に記憶している入出力履歴の一例である。図4は、本発明の実施形態1に係るロボット1が記憶部13に記憶している応答メッセージのテンプレートの一例およびテンプレートを用いた例文を示す。
<Example of data stored in storage unit>
An example of data stored in the storage unit 13 in the present embodiment will be described with reference to FIGS. FIG. 2 is an example of phrase information stored in the storage unit 13 by the robot 1 according to the present embodiment, and FIG. 3 is an input / output history stored in the storage unit 13 by the robot 1 according to the present embodiment. This is an example. FIG. 4 shows an example of a response message template stored in the storage unit 13 by the robot 1 according to the first embodiment of the present invention, and an example sentence using the template.

図2の例において、記憶部13が記憶している語句情報は語句が属する属性および他の語句との関連性を管理するものであり、語句、概念、関連語句の項目を備え、概念はさらに、品詞、分類、利用状況を備えている。図示の例において、語句は「リンゴ」、「大阪」等の名詞だけでなく、「甘い」、「丸い」等の形容詞や、「買う」という動詞を含む、単体で意味を備える言葉を示し、助詞等その語句のみでは意味をなさない語句は含まれない。品詞は、「名詞」、「形容詞」、「動詞」等の、各語句が属する品詞の種類を示す。分類は、「果物」、「国内地域」等の、各語句が属するより広いカテゴリーを示す。利用状況は、「What(何が)」、「Where(どこが)」等の、各語句が用いられるべき状況を示す。つまり、応答メッセージ生成部26は、複数の語句について、概念(品詞、分類、利用状況)の組み合わせが同一である場合、それらの語句は同じ概念に属すると判断できる。関連語句は、各語句について、該語句と互いに関連しており、該語句および応答メッセージのテンプレートの少なくともいずれかと組み合わせて応答メッセージを構成することができる別の語句を示す。すなわち、記憶部13は、それぞれの語句は、関連語句を介して、語句同士が互いに関連していることを記憶している。図示の例では、「リンゴ」の関連語句は「甘い」であるため、これらを組み合わせて応答メッセージ「リンゴは甘い」を構成することができる。   In the example of FIG. 2, the phrase information stored in the storage unit 13 manages the attribute to which the phrase belongs and the relevance to other phrases, and includes items of the phrase, concept, and related phrase. , Parts of speech, classification, and usage status. In the illustrated example, the term indicates not only a noun such as “apple” and “Osaka”, but also a word having a single meaning, including adjectives such as “sweet” and “round” and a verb “buy”. Words such as particles that do not make sense by themselves are not included. The part of speech indicates the type of part of speech to which each word belongs, such as “noun”, “adjective”, “verb”, and the like. The classification indicates a broader category to which each word belongs, such as "fruit" or "domestic region". The usage status indicates a status in which each word is to be used, such as “What (what)” and “Where (where)”. That is, if the combination of concepts (part of speech, classification, usage status) is the same for a plurality of words, the response message generation unit 26 can determine that those words belong to the same concept. The related phrase indicates, for each phrase, another phrase that is associated with the phrase and that can be combined with the phrase and / or a template of the response message to form a response message. That is, the storage unit 13 stores that each word is related to each other via the related word. In the illustrated example, since the related phrase of “apple” is “sweet”, these can be combined to form the response message “apple is sweet”.

図3の例において、記憶部13が備える入出力履歴はロボット1の入出力に関する履歴情報を管理するものであり、番号、日時、入出力、内容、使用語句の項目を備えている。番号はユーザの入力内容およびロボット1の出力内容を時系列に沿って管理するものであり、日時はユーザまたはロボット1による入出力がなされた日時を記録する。入出力は、該履歴情報がユーザまたはロボット1のいずれによるものかを示し、図示の例では「入力」がユーザの入力を、「出力」がロボットの出力をそれぞれ示す。内容は、ユーザまたはロボット1による入出力内容を示す。使用語句は、ユーザまたはロボット1による入出力内容に含まれていた語句を示す。なお、図示の例では使用語句1〜3の3つまで語句を記録する構成となっているが、これに限定される必要はない。   In the example of FIG. 3, the input / output history provided in the storage unit 13 manages history information related to input / output of the robot 1 and includes items of a number, a date, an input / output, a content, and a used phrase. The number manages the input content of the user and the output content of the robot 1 in chronological order, and the date and time records the date and time when the user or the robot 1 performs input / output. The input / output indicates whether the history information is from the user or the robot 1. In the illustrated example, “input” indicates a user input, and “output” indicates an output of the robot. The contents indicate the contents of input / output by the user or the robot 1. The use phrase indicates a phrase included in the input / output content of the user or the robot 1. In the illustrated example, up to three terms 1 to 3 are recorded, but the present invention is not limited to this.

図4は、記憶部13が備える応答メッセージのテンプレートとその概要、そしてテンプレートを用いた例文を示す。なお、図示の例において、記憶部13は少なくともテンプレートの項目のみを記憶すればよく、概要および例文の項目は記憶しなくてもよい。テンプレートは、ロボット1が選択し、語句と組み合わせて応答メッセージを構成するための文章の雛形であり、図示の例において、語句を組み込む箇所は[A]および[B]として記載されている。例えば、1つ目のテンプレートである「[A]は[B]よね ってなんでやねん」では、[A]および[B]がそれぞれ語句に置換されることによって、応答メッセージが構成される。概要は、テンプレートが対応する、応答メッセージの内容を示す。図示の例では、テンプレート「[A]は[B]よね ってなんでやねん」の概要は「ジョーク」である。例文は、ユーザの入力内容から取得した語句を、それぞれのテンプレートに組み合わせた場合の応答メッセージの例を示す。なお、図示の例において、[A]に置換される語句は「金閣寺」であり、[B]に置換される語句は「甘い」である。このとき、図示の例からわかるように、テンプレートは、[A]に置換される語句と[B]に置換される語句とがどのような関連性で関連しているかという情報を含む。例えば、関連性は、語順または助詞等によって表される。また、複数のテンプレートの中に当てはまる定型文がなければ、ロボット1は図の末尾に記載されている「ボクの聞き方が悪かったのかな」という文言を応答メッセージとして生成してもよい。   FIG. 4 shows a template of the response message provided in the storage unit 13, its outline, and an example sentence using the template. In the illustrated example, the storage unit 13 only needs to store at least items of the template, and does not need to store items of the outline and the example sentences. The template is a template of a sentence to be selected by the robot 1 and combined with a word to compose a response message. In the illustrated example, portions where the word is incorporated are described as [A] and [B]. For example, in the first template, "[A] looks like [B], why?", A response message is formed by replacing each of [A] and [B] with a phrase. The outline indicates the content of the response message corresponding to the template. In the example shown in the figure, the outline of the template "[A] is not [B] why is it?" Is "Joke". The example sentence shows an example of a response message in a case where a phrase acquired from the input content of the user is combined with each template. In the illustrated example, the phrase replaced by [A] is “Kinkakuji”, and the phrase replaced by [B] is “sweet”. At this time, as can be seen from the illustrated example, the template includes information indicating how related the phrase replaced by [A] and the phrase replaced by [B] are. For example, the relevance is represented by word order, particles, or the like. In addition, if there is no fixed sentence applicable to the plurality of templates, the robot 1 may generate, as a response message, the phrase "I wondered how I heard" written at the end of the figure.

制御部20は、ロボット1の各部を統括して制御するものであり、音声認識部21、語句・概念取得部22、シナリオ部23、概念判定部24、関連語句取得部25、応答メッセージ生成部26、および音声合成部27を備えている。   The control unit 20 controls the components of the robot 1 collectively, and includes a voice recognition unit 21, a phrase / concept acquisition unit 22, a scenario unit 23, a concept determination unit 24, a related phrase acquisition unit 25, and a response message generation unit. 26, and a speech synthesizer 27.

音声認識部21は、音声入力部11から受信した、1回の発話の音声データについて音声認識を行う。なお、本発明において「音声認識」とは、発話の音声データから発話内容(入力内容)を示すテキストデータを得る処理を示す。音声認識部21の音声認識の方法は特に限定されず、従来あるいずれの方法を用いて音声認識を行ってもよい。   The voice recognition unit 21 performs voice recognition on voice data of one utterance received from the voice input unit 11. In the present invention, “speech recognition” refers to a process of obtaining text data indicating utterance contents (input contents) from utterance voice data. The method of voice recognition of the voice recognition unit 21 is not particularly limited, and voice recognition may be performed using any conventional method.

語句・概念取得部22は、音声認識部21が音声認識により得たテキストデータを受け付けると、該テキストデータを語句に区切り、区切られた各語句の概念を記憶部13より取得する。また、語句・概念取得部22は、区切られた語句の中から後述する第1語句(または第2語句)と、第1関連語句(または第2関連語句)を設定する。さらに、語句・概念取得部22は、区切られた各語句が、図2の語句情報の中に存在しない場合は、該語句を新たに語句情報に登録してもよい。そして、区切られた語句の1つが区切られた別の語句の関連語句として登録されていない場合は、該語句を別の語句の関連語句として登録してもよい。   When receiving the text data obtained by the speech recognition unit 21 by the speech recognition, the phrase / concept acquisition unit 22 divides the text data into phrases, and acquires the concept of each divided phrase from the storage unit 13. Further, the phrase / concept acquisition unit 22 sets a first phrase (or a second phrase) and a first related phrase (or a second related phrase), which will be described later, from the separated phrases. Furthermore, when each of the separated phrases does not exist in the phrase information of FIG. 2, the phrase / concept acquisition unit 22 may newly register the phrase in the phrase information. If one of the separated words is not registered as a related word of another separated word, the word may be registered as a related word of another word.

シナリオ部23は、記憶部13に記憶されたシナリオ情報のうち、語句・概念取得部22が取得した語句および語句の概念に対応するシナリオ情報を取得する。   The scenario unit 23 obtains, from the scenario information stored in the storage unit 13, scenario information corresponding to the word and the concept of the word acquired by the word / concept acquisition unit 22.

概念判定部24は、語句・概念取得部22が取得した語句の概念について、記憶部13より取得した、ロボット1の直前の出力内容に含まれていた語句の概念と同じであるか否かを判定する。すなわち、概念判定部24は、ユーザによる入力内容が、入力される直前に出力された応答メッセージに応じた内容であるか否かを判定する。   The concept determination unit 24 determines whether the concept of the phrase acquired by the phrase / concept acquisition unit 22 is the same as the concept of the phrase included in the output content immediately before the robot 1 acquired from the storage unit 13. judge. That is, the concept determining unit 24 determines whether the content input by the user is a content corresponding to the response message output immediately before the input.

関連語句取得部25は、語句・概念取得部22が取得した語句および語句の概念に基づいて、該語句と関連性があり、該語句とは別の語句である関連語句を図2の語句情報から取得する。また、関連語句取得部25は、取得した関連語句を、後述する推論に用いるための語句に設定する。ここで、関連語句取得部25が関連語句を取得するための条件はどのようなものであってもよい。例えば、特定の語句について、図2の語句情報において関連語句として登録されている語句をすべて取得してもよいし、入力内容に含まれていない語句のみを取得してもよいし、語句の概念(品詞)が「名詞」である語句を優先して取得してもよい。   The related phrase acquiring unit 25 associates the related phrase with the phrase based on the phrase and the concept of the phrase acquired by the phrase / concept acquiring unit 22 and separates the related phrase that is different from the phrase into the phrase information in FIG. To get from. Further, the related phrase acquiring unit 25 sets the acquired related phrase as a phrase to be used for inference described later. Here, the condition for the related phrase acquisition unit 25 to acquire the related phrase may be any condition. For example, for a specific phrase, all the phrases registered as related phrases in the phrase information of FIG. 2 may be acquired, only the phrase not included in the input content may be acquired, or the concept of the phrase may be acquired. A phrase whose (part of speech) is "noun" may be preferentially acquired.

応答メッセージ生成部26は、各部からの指示内容に基づいて、ユーザの入力内容に応じてロボット1が出力する応答メッセージとなるテキストデータを生成する。具体的には、語句・概念取得部22が取得した語句、および関連語句取得部25が取得した関連語句の少なくともいずれかと、記憶部13が記憶するテンプレート、履歴情報、およびシナリオ部23が取得したシナリオ情報のいずれかとを必要に応じて組み合わせて、テキストデータを生成する。ここで、応答メッセージ生成部26は、関連語句取得部25が取得した関連語句が複数であった場合は、所定の条件にしたがって特定の関連語句を抽出する構成であってもよい。たとえば、応答メッセージ生成部26は、語句・概念取得部22が取得した語句と同じ概念に属する関連語句を優先的に抽出し、これらの語句を互いに関連付けた内容の応答メッセージを生成する構成であってもよい。なお、応答メッセージ生成部26は応答メッセージとなるテキストデータを生成する構成であればどのようなものであってもよい。例えば、語句・概念取得部22のように、上記応答メッセージ生成部26は、ユーザの入力内容に含まれる複数の語句について、各語句が属する概念および各語句の前後の語句を含む文脈情報に基づいて上記入力語句を選択する構成をさらに備えてもよい。ここで、文脈情報とは、語句が入力内容における主語、述語、その他のいずれに分類されるかを示す情報である。例えば、応答メッセージ生成部26は、概念(分類)が固有名詞に属する語句、および入力内容において述語である語句を入力語句として優先的に選択する構成であってもよい。   The response message generator 26 generates text data serving as a response message output by the robot 1 in accordance with the input content of the user, based on the instruction content from each unit. Specifically, at least one of the phrase acquired by the phrase / concept acquisition unit 22 and the related phrase acquired by the related phrase acquisition unit 25, the template stored in the storage unit 13, the history information, and the scenario unit 23 acquire it. Text data is generated by combining any of the scenario information as needed. Here, when there are a plurality of related phrases acquired by the related phrase acquiring unit 25, the response message generating unit 26 may be configured to extract a specific related phrase according to a predetermined condition. For example, the response message generation unit 26 is configured to preferentially extract related words belonging to the same concept as the words and phrases acquired by the word / concept acquisition unit 22 and generate a response message having contents in which these words are associated with each other. You may. Note that the response message generator 26 may be of any configuration as long as it generates text data serving as a response message. For example, like the phrase / concept acquisition unit 22, the response message generation unit 26 determines, for a plurality of phrases included in the input content of the user, based on context information including the concept to which each phrase belongs and the phrases before and after each phrase. May be further provided to select the input word. Here, the context information is information indicating whether a phrase is classified into a subject, a predicate, or any other of the input content. For example, the response message generator 26 may be configured to preferentially select, as an input phrase, a phrase whose concept (classification) belongs to a proper noun and a phrase that is a predicate in the input content.

音声合成部27は、応答メッセージ生成部26から受信した応答メッセージのテキストデータを音声データに変換する。音声合成部27は、変換した音声データを音声出力部12に出力する。   The voice synthesizer 27 converts the text data of the response message received from the response message generator 26 into voice data. The voice synthesis unit 27 outputs the converted voice data to the voice output unit 12.

<ロボットの動作>
図5に基づいて、本実施形態に係るロボット1の動作の概要について説明する。図5は、本実施形態に係るロボット1が推論によって応答メッセージを生成するイメージを示す。なお、以下の説明において、ユーザはロボット1に対して「リンゴは甘い」と発話による入力を行ったものとする。
<Robot operation>
An outline of the operation of the robot 1 according to the present embodiment will be described based on FIG. FIG. 5 shows an image in which the robot 1 according to the present embodiment generates a response message by inference. In the following description, it is assumed that the user has made an input to the robot 1 by saying “Apple is sweet”.

まず、ユーザがロボット1に対して「リンゴは甘い」と発話すると、ロボット1は該発話を音声認識によってテキストデータに変換し、該テキストデータを語句に区切る。すなわち、「リンゴは甘い」であれば、「リンゴ」、「は」、および「甘い」の3つの語句に区切られる。このとき、ロボット1は、区切られた各語句について、図2の語句情報に登録または更新してもよい。   First, when the user speaks to the robot 1 "Apple is sweet", the robot 1 converts the speech into text data by voice recognition, and divides the text data into phrases. That is, if "apple is sweet", it is divided into three words "apple", "ha", and "sweet". At this time, the robot 1 may register or update each of the separated words in the word information in FIG.

次に、ロボット1は、区切られた語句の中から、推論の起点となる語句を選択し、第1語句(または第2語句)に設定する。ここで、第1語句(または第2語句)は、ユーザの入力内容を特徴づける語句である、入力語句である。なお、第1語句(または第2語句)は、図2で示した語句情報と同じように、単体で意味を備える言葉であれば、どの語句を設定してもよく、所定の優先度にしたがって設定することが好適である。例えば、述語である語句が名詞を含む場合は、これを第1語句(または第2語句)に設定し、含まない場合は主語である名詞を第1語句(または第2語句)に設定する構成であってもよい。また、主語にも述語にも名詞が含まれない場合は、適当な語句を第1語句(または第2語句)に設定する構成であってもよい。上述の例によれば、「リンゴ」、「は」、および「甘い」のうち、述語である「甘い」は形容詞であり、主語である「リンゴ」は名詞であるため、この場合、「リンゴ」を第1語句(または第2語句)に設定する。さらに、第1語句(または第2語句)に設定されなかった語句の中から、第1語句(または第2語句)と互いに関連していると認められる語句について、第1関連語句(または第2関連語句)に設定する。上述の例によれば、「甘い」を第1関連語句(または第2関連語句)に設定する。   Next, the robot 1 selects a word to be a starting point of the inference from the separated words, and sets the selected word as a first word (or a second word). Here, the first word (or the second word) is an input word that is a word characterizing the input content of the user. Note that the first word (or the second word) may be set to any word as long as it has a single meaning, similarly to the word information shown in FIG. 2, and may be set according to a predetermined priority. It is preferable to set. For example, when the predicate phrase includes a noun, this is set as the first phrase (or second phrase), and when not, the noun that is the subject is set as the first phrase (or second phrase). It may be. In the case where noun is not included in either the subject or the predicate, an appropriate phrase may be set as the first phrase (or the second phrase). According to the above example, among the “apple”, “ha”, and “sweet”, the predicate “sweet” is an adjective, and the subject “apple” is a noun. Is set as the first phrase (or the second phrase). Further, among words that are not set as the first word (or the second word), a word that is recognized as being related to the first word (or the second word) is first related word (or the second word). Related terms). According to the above example, “sweet” is set as the first related phrase (or the second related phrase).

第1語句(または第2語句)および第1関連語句(または第2関連語句)を設定した後、ロボット1は、図2の語句情報にしたがって、第1関連語句(または第2関連語句)の関連語句である、第2語句(または第1語句)を取得し、設定する。上述の例によれば、第1関連語句(または第2関連語句)である「甘い」の関連語句は、「リンゴ」、および「メロン」であり、「リンゴ」は第1語句(または第2語句)に設定済みである。したがって、ここでは「メロン」を第2語句(または第1語句)に設定する。   After setting the first word (or the second word) and the first related word (or the second related word), the robot 1 sets the first related word (or the second related word) according to the word information in FIG. A second phrase (or first phrase), which is a related phrase, is acquired and set. According to the above example, the related terms of the first related word (or the second related word) “sweet” are “apple” and “melon”, and “apple” is the first word (or the second word). Term). Therefore, here, "melon" is set as the second word (or the first word).

第2語句(または第1語句)を設定すると、ロボット1は、図2の語句情報にしたがって、第2語句(または第1語句)の関連語句である、第2関連語句(または第1関連語句)を取得し、設定する。なお、第2関連語句(または第1関連語句)は、その概念(利用状況)が「How(どのように)」であることが好適である。なぜならば、第2関連語句(または第1関連語句)の概念が「How(どのように)」でない場合、第2語句(または第1語句)と組み合わせたときに自然な文章とならないことが多いためである。上述の例によれば、第2語句(または第1語句)である「メロン」の関連語句は、「甘い」、「丸い」、および「買う」である。ここで、「甘い」は第1関連語句(または第2関連語句)に設定済みであるため、残る「丸い」、または「買う」が第2関連語句(または第1関連語句)として設定可能である。このとき、図2の語句情報を用いて「丸い」および「買う」を比較すると、「丸い」の概念(利用状況)が「How(どのように)」であり、「買うの」の概念(利用状況)は「−」である。この場合、ロボット1は、「丸い」を第2関連語句(または第1関連語句)に設定する。   When the second phrase (or the first phrase) is set, the robot 1 according to the phrase information of FIG. 2, the second related phrase (or the first related phrase), which is a related phrase of the second phrase (or the first phrase). ) To get and set. It is preferable that the concept (usage status) of the second related phrase (or the first related phrase) is “How”. This is because when the concept of the second related phrase (or the first related phrase) is not “How”, a natural sentence is not often obtained when combined with the second related phrase (or the first related phrase). That's why. According to the above example, the related phrases of the second word (or the first word) “melon” are “sweet”, “round”, and “buy”. Here, since “sweet” has already been set as the first related term (or the second related term), the remaining “round” or “buy” can be set as the second related term (or the first related term). is there. At this time, a comparison between “round” and “buy” using the phrase information in FIG. 2 shows that the concept (usage status) of “round” is “How (how)” and the concept of “buy” ( Usage status) is "-". In this case, the robot 1 sets “round” as the second related phrase (or the first related phrase).

そして、ロボット1(応答メッセージ生成部26)は、後述する図7のS23のように、これまでの処理によって取得した、第1語句(または第2語句)および第2関連語句(または第1関連語句)から応答メッセージを生成する。   Then, the robot 1 (the response message generation unit 26), as in S23 in FIG. 7 described later, acquires the first word (or the second word) and the second related word (or the first related word) acquired by the processing so far. From the phrase).

応答メッセージを生成する方法の一例について以下に説明する。以下の例において、図2の語句情報は、助詞等その語句のみでは意味をなさない語句も記憶する。具体的には、図2の語句情報は、「は」という語句を記憶している。このとき、「は」という語句の概念(品詞、分類、利用状況)の組み合わせは(助詞、−、−)であり、関連語句は「リンゴ」、「メロン」、「甘い」、および「丸い」である。上述の例において、第1語句(または第2語句)は「リンゴ」であり、第2関連語句(または第1関連語句)は「丸い」である。また、第2語句(または第1語句)は「メロン」である。したがって、ロボット1は、「リンゴ」および「丸い」を用い、さらに「リンゴ」と「メロン」の両方を関連語句に持つ助詞「は」と組み合わせて「リンゴは丸い」を応答メッセージとして生成する。このようにして、ロボット1は、入力内容に含まれる語句に基づいて、推論によって応答メッセージを生成することができる。   An example of a method for generating a response message will be described below. In the following example, the phrase information of FIG. 2 also stores particles that do not make sense only with the phrase such as particles. Specifically, the phrase information in FIG. 2 stores a phrase “ha”. At this time, the combination of the concept (part of speech, classification, usage) of the word "ha" is (particle,-,-), and the related words are "apple", "melon", "sweet", and "round". It is. In the above example, the first phrase (or the second phrase) is “apple”, and the second related phrase (or the first related phrase) is “round”. Further, the second phrase (or the first phrase) is “melon”. Therefore, the robot 1 uses "apple" and "round", and further generates "response is round" as a response message in combination with a particle "ha" having both "apple" and "melon" as related words. In this manner, the robot 1 can generate a response message by inference based on the words included in the input content.

なお、応答メッセージを生成する構成は、上記の内容に限定されることはない。応答メッセージを生成する構成の別の例について以下に説明する。まず、ロボット1は、第2語句(または第1語句)および第2関連語句(または第1関連語句)を取得すると、図3で示した入出力履歴の中から、これらの語句を含む履歴情報を取得する。履歴情報は、第2語句(または第1語句)と第2関連語句(または第1関連語句)とがどのような関連性で関連しているかという情報を含む。例えば、関連性は、語順または助詞等によって表される。上述の例によれば、「内容」が「メロンは丸いです」である履歴情報を取得する。そして、ロボット1(応答メッセージ生成部26)は、履歴情報の「内容」に含まれる第2語句(または第1語句)を、第1語句(または第2語句)に置換することにより、応答メッセージを生成する。すなわち、上述の例では、「リンゴは丸いです」を応答メッセージとして生成する。入出力履歴の「内容」を用いることにより、ロボット1は、応答メッセージにおける各語句の語順を適切に決定し、助詞等その語句のみでは意味をなさない語句を適切に組み合わせることができる。なお、記憶部13は、複数の語句の間の関連性(複数の語句の間の語順および/または助詞等)の情報を履歴情報とは別に記憶していてもよい。   The configuration for generating the response message is not limited to the above. Another example of a configuration for generating a response message will be described below. First, when the robot 1 acquires the second word (or first word) and the second related word (or first related word), the history information including these words is obtained from the input / output history shown in FIG. To get. The history information includes information indicating how the second word (or the first word) is related to the second related word (or the first related word). For example, the relevance is represented by word order, particles, or the like. According to the above example, the history information whose “content” is “melon is round” is acquired. Then, the robot 1 (the response message generation unit 26) replaces the second phrase (or the first phrase) included in the “contents” of the history information with the first phrase (or the second phrase), and thereby the response message is generated. Generate That is, in the above example, “apple is round” is generated as a response message. By using the “contents” of the input / output history, the robot 1 can appropriately determine the word order of each word in the response message and appropriately combine words such as particles that do not make sense with the word alone. Note that the storage unit 13 may store information on relevance between a plurality of phrases (word order and / or particles between the plurality of phrases) separately from the history information.

なお、第2語句(または第1語句)が見つからない場合、ロボット1(応答メッセージ生成部26)は、後述する図7のS24のように、第1関連語句(または第2関連語句)、および図4のテンプレートから応答メッセージを生成する構成であってもよい。上述の例において、例えば、テンプレートが「[A]と言えば他に何があるのかな」である場合、第1関連語句(または第2関連語句)である「甘い」と組み合わせた「甘いと言えば他に何があるのかな」を応答メッセージとして生成する。このとき、応答メッセージに対するユーザの入力内容には、第1関連語句(または第2関連語句)に関連付けられた第2語句(または第1語句)が含まれることが期待される。したがって、ロボット1は、応答メッセージに対するユーザの入力内容から取得した語句について、応答メッセージに用いた第1関連語句(または第2関連語句)の関連語句として、図2の語句情報に登録する構成であってもよい。上記の構成によれば、応答メッセージに対するユーザの入力内容から関連語句を取得することが可能となるため、ロボット1の利便性を向上させることができる。   When the second phrase (or the first phrase) is not found, the robot 1 (the response message generation unit 26), as in S24 of FIG. 7 described later, sets the first related phrase (or the second related phrase) and A configuration in which a response message is generated from the template in FIG. 4 may be used. In the above example, for example, if the template is "What is there more when you say [A]?", "Sweet and sweet" combined with the first related word (or second related word) "Sweet" Speaking what else? "Is generated as a response message. At this time, it is expected that the user's input content for the response message includes a second phrase (or first phrase) associated with the first related phrase (or second related phrase). Therefore, the robot 1 is configured to register, in the phrase information of FIG. 2, the phrase acquired from the input content of the user with respect to the response message, as the related phrase of the first related phrase (or the second related phrase) used in the response message. There may be. According to the above configuration, it is possible to acquire a related phrase from the user's input content for the response message, so that the convenience of the robot 1 can be improved.

さらに、ロボット1は、ユーザの入力内容が対話の流れを無視したものである場合は、後述する図7のS26のように、第1語句および図4のテンプレートから別の応答メッセージを生成する構成であってもよい。このとき、ロボット1は、ユーザの入力内容と対話の流れとを比較できるのであればどのような構成を備えてもよい。例えば、ロボット1(概念判定部24)は、ユーザの入力の直前にロボット1が出力した内容を図3の入出力履歴より取得し、該履歴に含まれる語句を第3語句とする。このとき、ロボット1は、図2で示した語句情報を用いて第3語句が属する概念と第1語句(または第2語句)が属する概念とが同じであるか否かを判定し、異なる場合は対話の流れを無視した入力が行われたと判定してもよい。このとき、ロボット1は、例えば第1語句(または第2語句)を、第3語句に関連するテンプレートに組み合わせた別の応答メッセージを生成してもよい。ロボット1が「リンゴは甘いです」と発話した後にユーザが「京都と言えば金閣寺だね」と発話した場合、第1語句(または第2語句)である「金閣寺」の概念(分類)は「国内地域」である一方、第3語句である「リンゴ」は「果物」であり、概念(分類)が異なる。   Further, when the input content of the user ignores the flow of the dialog, the robot 1 generates another response message from the first phrase and the template of FIG. 4 as in S26 of FIG. 7 described later. It may be. At this time, the robot 1 may have any configuration as long as the content of the user's input can be compared with the flow of the dialog. For example, the robot 1 (the concept determination unit 24) acquires the content output by the robot 1 immediately before the user's input from the input / output history of FIG. 3, and sets the words included in the history as the third words. At this time, the robot 1 determines whether or not the concept to which the third word belongs and the concept to which the first word (or the second word) belongs are the same using the word information shown in FIG. May determine that the input has been performed ignoring the flow of the dialogue. At this time, the robot 1 may generate another response message in which, for example, the first word (or the second word) is combined with a template related to the third word. If the robot 1 utters “Apple is sweet” and then utters “Kinkakuji when speaking of Kyoto”, the concept (classification) of the first word (or second word) of “Kinkakuji” is “ On the other hand, "apple", which is the third word, is "fruit" and has a different concept (classification).

このとき、ロボット1は、第1語句(または第2語句)「金閣寺」を第3語句「リンゴ」概念(分類)である「果物(食べ物)」に関連するテンプレート「[A]は食べ物じゃないでしょ」または「[A]は食べられないよ」に組み合わせた別の応答メッセージを生成する。すなわち、例文によれば、「金閣寺は食べ物じゃないでしょ」、「金閣寺は食べられないよ」のいずれかを応答メッセージとして出力する。   At this time, the robot 1 converts the first word (or the second word) “Kinkakuji” into the template “[A] related to the“ fruit (food) ”which is the third word“ apple ”concept (classification). "Yes" or "[A] cannot be eaten." That is, according to the example sentence, one of "Kinkakuji is not food" or "Kinkakuji is not eaten" is output as a response message.

なお、別の応答メッセージを生成する方法は上記に限定されることはない。例えば、ロボット1は、ユーザの入力内容に含まれる、第1語句(または第2語句)とは別の語句を第4語句として、第1語句(または第2語句)と、第4語句とを、テンプレートに組み合わせて別の応答メッセージを生成してもよい。ロボット1が「リンゴは甘いです」と発話した後にユーザが「金閣寺も甘いね」と発話した場合、第1語句(または第2語句)「金閣寺」と第3語句「リンゴ」の概念(分類)が異なるものの、「甘い」の語句が共通している。このとき、ロボット1は、ユーザの入力内容に含まれる、第1語句(または第2語句)「金閣寺」とは別の語句「甘い」を第4語句とする。そして、ロボット1は、第1語句(または第2語句)と、第4語句とを、テンプレート「[A]は[B]よね ってなんでやねん」、「[A]は[B]なんだ 今度食べに連れて行ってよね」、および「[A]は[B]よね」のいずれかに組み合わせて別の応答メッセージを生成する。すなわち、例文によれば、「金閣寺は甘いよね ってなんでやねん」、「金閣寺って甘いんだね 今度食べに連れて行ってよね」、および「金閣寺は甘いよね」のいずれかを出力する。   The method of generating another response message is not limited to the above. For example, the robot 1 uses a word different from the first word (or the second word) included in the input content of the user as the fourth word, and converts the first word (or the second word) and the fourth word. , May be combined with the template to generate another response message. If the user utters “Kinkakuji is also sweet” after the robot 1 utters “Apple is sweet,” the concept (classification) of the first word (or second word) “Kinkakuji” and the third word “apple” is But the word "sweet" is common. At this time, the robot 1 uses a word “sweet” different from the first word (or second word) “Kinkakuji” included in the input content of the user as the fourth word. Then, the robot 1 converts the first word (or the second word) and the fourth word into the template “[A] looks like [B], and“ [A] is [B]. Take another one to eat "and" [A] is [B] "to generate another response message. In other words, according to the example sentence, one of "Kinkakuji is sweet isn't it?", "Kinkakuji is sweet, take me to eat next time", or "Kinkakuji is sweet" is output. .

また、推論は上述の方法に限定されることはなく、第1語句(または第2語句)、およびテンプレートと組み合わせて応答メッセージを生成するために必要な第2関連語句(または第1関連語句)を取得できるのであれば、どのような方法であってもよい。推論の別の例について、図6を用いて説明する。図6は、本実施形態に係るロボット1が推論によって応答メッセージを生成する別のイメージを示す。   Also, the inference is not limited to the above-described method, but includes the first phrase (or the second phrase) and the second related phrase (or the first related phrase) necessary for generating a response message in combination with the template. Any method may be used as long as it can be obtained. Another example of the inference will be described with reference to FIG. FIG. 6 shows another image in which the robot 1 according to the present embodiment generates a response message by inference.

図6の(a)は、「リンゴは甘い」と、「メロンは丸い」という2つの文章を示している。2つの文章のうち一方が入力内容であり、他方が記憶部13に記憶されている過去の入出力内容である。例えば、「リンゴは甘い」が入力内容であり、「メロンは丸い」が過去の入出力内容であるものとする。具体的には、ロボット1はユーザの入力内容「リンゴは甘い」を受け付け、「リンゴ」を第1語句に設定する。その後、ロボット1は、第1語句「リンゴ」と概念(品詞、分類、利用状況)の組み合わせが(名詞、果物、What(何が))であり、同一概念である第2語句「メロン」を含む履歴情報「メロンは丸い」を記憶部から検索し、第2語句「メロン」を取得する。第1語句「リンゴ」と第2語句「メロン」は同一概念であるため、この場合、ロボット1は、図6の(b)のように、概念が同一の語句で2つの文章をまとめた地図を生成する。そして、(名詞、果物、What(何が))が設定されている領域には、「リンゴ」および「メロン」のいずれかを設定する。   FIG. 6A shows two sentences, “apple is sweet” and “melon is round”. One of the two sentences is the input content, and the other is the past input / output content stored in the storage unit 13. For example, it is assumed that “apple is sweet” is the input content and “melon is round” is the past input / output content. Specifically, the robot 1 receives the input content “apple is sweet” by the user, and sets “apple” as the first phrase. After that, the robot 1 sets the combination of the first word “apple” and the concept (part of speech, classification, usage status) to (noun, fruit, What (what)) and uses the same concept of the second word “melon”. The storage unit retrieves the history information including “melon is round”, and acquires the second phrase “melon”. Since the first phrase “apple” and the second phrase “melon” have the same concept, in this case, the robot 1 maps the two sentences with the same concept as shown in FIG. Generate Then, in an area where (noun, fruit, What (what)) is set, one of “apple” and “melon” is set.

このとき、図6の(b)からは、「リンゴは甘い」、「リンゴは丸い」、「メロンは甘い」、および「メロンは丸い」の4つの文章を取得することができる。結果として、ロボット1は、記憶部13において互いに関連付けられていない2つの語句の組み合わせを含む文章「リンゴは丸い」、および「メロンは甘い」を推論の結果として取得し、応答メッセージを生成することができる。   At this time, from (b) of FIG. 6, four sentences of "apple is sweet", "apple is round", "melon is sweet", and "melon is round" can be obtained. As a result, the robot 1 obtains a sentence “apple is round” and “melon is sweet” containing a combination of two phrases that are not associated with each other in the storage unit 13 as a result of the inference, and generates a response message. Can be.

そして、上述の推論は、従来技術である会話シナリオに基づく応答メッセージの生成と組み合わせて用いる構成であってもよい。このとき、記憶部13はシナリオ情報をさらに記憶していることが好適である。この場合、ロボット1は、ユーザの入力内容に関連付けられたシナリオ情報が記憶部13に存在する場合は、後述する図7のS25のように、入力内容に含まれる第1語句(または第2語句)と会話シナリオから応答メッセージを生成する構成であってもよい。また、シナリオ情報が記憶部13に存在しない場合は推論による応答メッセージの生成を行う構成であってもよい。   The above-described inference may be configured to be used in combination with the generation of a response message based on a conversation scenario, which is a conventional technique. At this time, it is preferable that the storage unit 13 further stores scenario information. In this case, if the scenario information associated with the input content of the user exists in the storage unit 13, the robot 1 performs the first phrase (or the second phrase) included in the input content, as in S25 in FIG. ) And a response message may be generated from the conversation scenario. In addition, when the scenario information does not exist in the storage unit 13, a response message may be generated by inference.

<処理の流れ>
次に、本実施形態のロボット1が実行する処理の流れについて、図7に基づいて説明する。図7は、本実施形態のロボット1が実行する処理の流れの一例を示すフローチャートである。なお、以下の説明において、ユーザの入力内容には第1語句および第1関連語句が含まれ、ユーザが入力する直前にロボット1が出力した応答メッセージには第3語句が含まれるものとする。
<Process flow>
Next, a flow of processing executed by the robot 1 of the present embodiment will be described with reference to FIG. FIG. 7 is a flowchart illustrating an example of the flow of a process performed by the robot 1 according to the present embodiment. In the following description, it is assumed that the input content of the user includes the first phrase and the first related phrase, and the response message output by the robot 1 immediately before the user inputs the third phrase.

まず、音声認識部21は、音声入力部11が受け付けたユーザの入力について、入力内容の音声認識を行い、テキストデータを生成する(S11)。次に、語句・概念取得部22は、S11で生成されたテキストデータを受け付け、該テキストデータおよび記憶部13が記憶している語句情報から第1語句、第1関連語句、および第1語句の概念を取得する(S12)。そして、シナリオ部23は、S12で取得した第1語句または第1語句の概念に対応するシナリオ情報を記憶部13の中から検索し(S13)、対応するシナリオ情報が見つかったか否かを判定する(S14)。対応するシナリオ情報が見つからなかったと判定した場合(S14でNO)、概念判定部24は、ユーザの入力直前にロボット1が応答(発話)したか否かを判定する(S15)。一方、対応するシナリオ情報が見つかったと判定した場合(S14でYES)、処理は後述のS25へ進む。   First, the voice recognition unit 21 performs voice recognition of the input content of the user input received by the voice input unit 11, and generates text data (S11). Next, the phrase / concept acquiring unit 22 receives the text data generated in S11, and extracts the first phrase, the first related phrase, and the first phrase from the text data and the phrase information stored in the storage unit 13. The concept is acquired (S12). Then, the scenario unit 23 searches the storage unit 13 for scenario information corresponding to the first phrase or the concept of the first phrase acquired in S12 (S13), and determines whether the corresponding scenario information is found. (S14). If it is determined that the corresponding scenario information has not been found (NO in S14), the concept determination unit 24 determines whether the robot 1 has responded (uttered) immediately before the user input (S15). On the other hand, when it is determined that the corresponding scenario information has been found (YES in S14), the process proceeds to S25 described later.

S15の処理において、ロボット1が応答したと判定した場合(S15でYES)、概念判定部24はさらに、第1語句と第3語句の概念は同一であるか否かを判定する(S16)。そして、概念は同一であると判定した場合(S16でYES)、関連語句取得部25は、記憶部13が記憶している語句情報の第1関連語句の関連語句から第2語句を検索する(S17:探索ステップ)。一方、ロボット1が応答していなかったと判定した場合(S15でNO)、処理はS17へ直接進む。   In the processing of S15, when it is determined that the robot 1 has responded (YES in S15), the concept determining unit 24 further determines whether the concept of the first word and the third word is the same (S16). Then, when it is determined that the concepts are the same (YES in S16), the related phrase acquisition unit 25 searches for a second phrase from the related phrase of the first related phrase in the phrase information stored in the storage unit 13 ( S17: Search step). On the other hand, if it is determined that the robot 1 has not responded (NO in S15), the process proceeds directly to S17.

S17の後、関連語句取得部25は、第2語句が見つかったか否か(第1関連語句の関連語句が語句情報にあるか否か)を判定する(S18)。第2語句が見つからなかったと判定した場合(S18でNO)、関連語句取得部25は、第1語句と同一概念である第2語句を記憶部13が記憶している語句情報から検索する(S19)。そして、関連語句取得部25は、S19の処理において第2語句が見つかったか否かを判定する(S20)。第2語句が見つかったと判定した場合(S20でYES)、またはS18において第2語句が見つかったと判定した場合(S18でYES)、関連語句取得部25は、記憶部13の語句情報において、第2語句の関連語句から第2関連語句を検索する(S21)。   After S17, the related phrase acquisition unit 25 determines whether a second phrase has been found (whether or not a related phrase of the first related phrase exists in the phrase information) (S18). If it is determined that the second phrase has not been found (NO in S18), the related phrase acquisition unit 25 searches for the second phrase having the same concept as the first phrase from the phrase information stored in the storage unit 13 (S19). ). Then, the related phrase acquisition unit 25 determines whether or not the second phrase has been found in the processing of S19 (S20). If it is determined that the second phrase has been found (YES in S20), or if it has been determined in S18 that the second phrase has been found (YES in S18), the related phrase acquiring unit 25 stores the second phrase in the phrase information in the storage unit 13. A second related phrase is searched from the related phrase of the phrase (S21).

その後、関連語句取得部25は、S21の処理において第2関連語句が見つかったか否か(第2語句の関連語句が語句情報にあるか否か)を判定する(S22)。第2関連語句が見つかったと判定した場合(S22でYES)、応答メッセージ生成部26は、第1語句および第2関連語句から応答メッセージを生成し(S23:応答メッセージ生成ステップ)、処理はS27へ進む。このようにして、応答メッセージ生成部26は、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成する。一方、S20の処理で第2語句が見つからなかった場合(S20でNO)、またはS22の処理で第2関連語句が見つからなかった場合(S22でNO)、応答メッセージ生成部26は、第1関連語句、およびテンプレートから応答メッセージを生成する(S24)。その後、処理はS27へ進む。また、S14において対応するシナリオ情報が見つかったと判定した場合(S14でYES)、応答メッセージ生成部26は、第1語句とシナリオ情報から応答メッセージを生成し(S25)、処理はS27へ進む。そして、S16において第1語句と第3語句の概念は同一ではないと判定した場合(S16でNO)、応答メッセージ生成部26は、第1語句およびテンプレートから応答メッセージを生成し(S26)、処理はS27へ進む。   Thereafter, the related phrase acquisition unit 25 determines whether or not a second related phrase has been found in the process of S21 (whether or not a related phrase of the second phrase exists in the phrase information) (S22). If it is determined that the second related phrase has been found (YES in S22), the response message generator 26 generates a response message from the first phrase and the second related phrase (S23: response message generation step), and the process proceeds to S27. move on. In this way, the response message generation unit 26 generates a response message having contents in which the first phrase and the second related phrase are associated with each other. On the other hand, if the second phrase is not found in the process of S20 (NO in S20), or if the second related phrase is not found in the process of S22 (NO in S22), the response message generation unit 26 sets the first related phrase. A response message is generated from the word and the template (S24). Thereafter, the process proceeds to S27. If it is determined in S14 that the corresponding scenario information has been found (YES in S14), response message generator 26 generates a response message from the first word and the scenario information (S25), and the process proceeds to S27. Then, when it is determined in S16 that the concept of the first word and the third word are not the same (NO in S16), the response message generation unit 26 generates a response message from the first word and the template (S26), and Goes to S27.

S27において、音声合成部27は応答メッセージを音声データに変換し、音声出力部12を介して音声出力する(S27)。   In S27, the voice synthesizing unit 27 converts the response message into voice data and outputs the voice via the voice output unit 12 (S27).

以上の処理により、本実施形態に係るロボット1は、適合する会話シナリオが見つからない場合であっても、入力内容に含まれる語句に基づいて応答メッセージを生成することが可能となる。   Through the above processing, the robot 1 according to the present embodiment can generate a response message based on a phrase included in the input content even when a suitable conversation scenario cannot be found.

〔実施形態2〕
本発明の他の実施形態について、図7〜図9に基づいて説明する。本実施形態のロボット1は、ユーザの入力内容が3つ以上の語句を含む場合、3つ以上の語句を含む応答メッセージを生成する点で前記実施形態と異なる。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。本実施形態に係るロボット1は、ユーザの入力内容に含まれる3つ以上の語句について、前記実施形態と同様にして第1語句(または第2語句)および第1関連語句(または第2関連語句)を設定する。また、語句・概念取得部22は、第1関連語句(または第2関連語句)の関連語句であり、第1語句(または第2語句)とは異なる別の語句について、第1付随語句(または第2付随語句)に設定する。ここで、入力内容から第1付随語句(または第2付随語句)を設定する基準はどのようなものであってもよい。例えば、前記実施形態と同様にして第1語句を設定した後、残る語句のうち、概念(品詞)が「品詞」であり、かつ概念(分類)が「その他」以外である語句を第1付随語句(または第2付随語句)に設定してもよい。また、第1関連語句(または第2関連語句)と第1付随語句(または第2付随語句)を設定する順番は特に限定されないが、語句の概念(品詞)が「名詞」である語句を第1付随語句(または第2付随語句)に優先して設定することが好適である。そして、第1語句(または第2語句)および第1付随語句(または第2付随語句)を、推論によって取得された第2関連語句(または第1関連語句)と互いに関連付けた応答メッセージを生成する。
[Embodiment 2]
Another embodiment of the present invention will be described with reference to FIGS. The robot 1 of the present embodiment is different from the above embodiment in that, when the input content of the user includes three or more words, a response message including three or more words is generated. For convenience of explanation, members having the same functions as the members described in the above embodiment are denoted by the same reference numerals, and description thereof will be omitted. In the robot 1 according to the present embodiment, a first word (or a second word) and a first related word (or a second related word) for three or more words included in the input content of the user in the same manner as in the above embodiment. ) Is set. The phrase / concept acquiring unit 22 is a related phrase of the first related phrase (or the second related phrase). For another phrase different from the first related phrase (or the second related phrase), the first associated phrase (or 2nd accompanying phrase). Here, any criteria may be used for setting the first auxiliary phrase (or the second auxiliary phrase) from the input contents. For example, after the first phrase is set in the same manner as in the above-described embodiment, of the remaining phrases, the phrase whose concept (part of speech) is “part of speech” and whose concept (classification) is other than “others” is first associated. It may be set to a phrase (or a second accompanying phrase). The order in which the first related word (or the second related word) and the first auxiliary word (or the second auxiliary word) are set is not particularly limited, but the phrase whose concept (part of speech) is “noun” is defined as the first word. It is preferable that the setting is made prior to the first accompanying phrase (or the second accompanying phrase). Then, a response message is generated in which the first word (or second word) and the first word (or second word) are associated with the second word (or first word) obtained by inference. .

<ロボットの動作>
図8および図9に基づいて、本実施形態に係るロボット1の動作の概要について説明する。図8および図9は、本実施形態に係るロボット1が推論によって応答メッセージを生成するイメージを示す図である。
<Robot operation>
An outline of the operation of the robot 1 according to the present embodiment will be described with reference to FIGS. 8 and 9 are diagrams illustrating an image in which the robot 1 according to the present embodiment generates a response message by inference.

図8の(a)は、「大阪の名物はお好み焼き」、および「広島は牡蠣がおいしい」の2つの文章について推論を適用するイメージを示す。例えば、「広島は牡蠣がおいしい」は過去の入出力として予め記憶部13に記憶されており、「大阪の名物はお好み焼き」がユーザによって入力されたとする。このとき、ロボット1(語句・概念取得部22)は、「お好み焼き」を第1語句(または第2語句)、「名物」を第1関連語句(または第2関連語句)、および「大阪」を第1付随語句(または第2付随語句)に設定する。そして、ロボット1(関連語句取得部25)は、第1語句(または第2語句)「お好み焼き」と概念(品詞、分類、利用状況)の組み合わせが同一である語句「牡蠣」を含み、第1付随語句(または第2付随語句)「大阪」と同一概念である語句「広島」を含む履歴情報「広島は牡蠣がおいしい」を図3の入出力履歴から取得する。ここで、「お好み焼き」と「牡蠣」は、分類が「食べ物/お好み焼き/たこ焼き」と「食べ物/海産物」という点で異なるが、「食べ物」という部分は一致している。そのため、「お好み焼き」と「牡蠣」は、同じように用いることができる語句(下位概念は異なるが上位概念が一致する語句)であると判定している。このとき、ロボット1(応答メッセージ生成部26)は、図6の(b)と同様にして、図8の(b)のように、概念が同一の語句で2つの文章をまとめた地図を生成する。そして、(名詞、国内地域、Where(どこが))の領域には「大阪」および「広島」のいずれかを設定し、(名詞、食べ物、What(何が))の領域には「お好み焼き」および「牡蠣」のいずれかを設定する。ただし、設定される語句の組み合わせには意味があることが多いため、同一の発話で用いられた語句の組み合わせを維持しつつ、設定する必要がある。例えば、第1付随語句(または第2付随語句)「大阪」は第1語句(または第2語句)「お好み焼き」と組み合わせて設定し、同様に、「牡蠣」は「広島」と組み合わせて設定する必要がある。   FIG. 8A shows an image in which inference is applied to two sentences, “Osaka's specialty is okonomiyaki” and “Hiroshima has delicious oysters”. For example, it is assumed that “Hiroshima has delicious oysters” is stored in the storage unit 13 in advance as past inputs and outputs, and “Osaka's specialty is Okonomiyaki” is input by the user. At this time, the robot 1 (phrase / concept acquisition unit 22) displays “okonomiyaki” as the first word (or second word), “specialty” as the first related word (or second related word), and “Osaka” as “ It is set to the first attached phrase (or the second attached phrase). Then, the robot 1 (related phrase acquisition unit 25) includes the phrase “oyster” in which the combination of the first phrase (or the second phrase) “okonomiyaki” and the concept (part of speech, classification, usage status) is the same. The history information “Hiroshima has delicious oysters” including the phrase “Hiroshima” that is the same concept as the accompanying word (or the second accompanying word) “Osaka” is acquired from the input / output history in FIG. Here, "okonomiyaki" and "oysters" are different in that they are classified as "food / okonomiyaki / takoyaki" and "food / seafood", but the portion of "food" is the same. Therefore, it is determined that “okonomiyaki” and “oyster” are words that can be used in the same way (words having different lower-level concepts but matching higher-level concepts). At this time, the robot 1 (response message generating unit 26) generates a map in which two sentences are grouped with the same concept as in FIG. 8B, in the same manner as in FIG. 6B. I do. Then, either “Osaka” or “Hiroshima” is set in the (Noun, Domestic Region, Where (Where)) area, and “Okonomiyaki” and “Okonomiyaki” are set in the (Noun, Food, What (What)) area. Set one of "Oysters". However, since the combination of words to be set often has a meaning, it is necessary to set while maintaining the combination of words used in the same utterance. For example, the first accompanying phrase (or second accompanying phrase) "Osaka" is set in combination with the first (or second) phrase "okonomiyaki", and similarly, "oyster" is set in combination with "Hiroshima". There is a need.

したがって、図8の(b)からは、「大阪の名物はお好み焼き」、「大阪はお好み焼きがおいしい」、「広島の名物は牡蠣」、および「広島は牡蠣がおいしい」の4つの文章を取得することができる。結果として、ロボット1は、「大阪はお好み焼きがおいしい」、または「広島の名物は牡蠣」を推論の結果として取得し、応答メッセージを生成することができる。   Therefore, from FIG. 8B, four sentences of “Osaka's specialty is okonomiyaki”, “Osaka is okonomiyaki is delicious”, “Hiroshima's specialty is oysters”, and “Hiroshima is oysters are delicious” are acquired. be able to. As a result, the robot 1 can obtain "Osaka is delicious with okonomiyaki" or "Hiroshima's specialty is oysters" as a result of the inference, and generate a response message.

図9の(a)は、「大阪の名物はお好み焼き」、および「広島のおみやげはもみじ饅頭」の2つの文章について推論を適用するイメージを示す。例えば、「広島のおみやげはもみじ饅頭」は過去の入出力として予め記憶部13に記憶されており、「大阪の名物はお好み焼き」がユーザによって入力されたとする。このとき、ロボット1(語句・概念取得部22)は、図8の場合と同様にして、「お好み焼き」を第1語句(または第2語句)、「名物」を第1関連語句(または第2関連語句)、および「大阪」を第1付随語句(または第2付随語句)に設定する。そして、ロボット1(関連語句取得部25)は、第1語句(または第2語句)「お好み焼き」と概念(品詞、分類、利用状況)の組み合わせが同一である語句「もみじ饅頭」を含み、第1付随語句(または第2付随語句)「大阪」と同一概念である語句「広島」を含む履歴情報「広島のおみやげはもみじ饅頭」を図3の入出力履歴から取得する。このとき、ロボット1(応答メッセージ生成部26)は、図9の(b)のように概念が同一の語句で2つの文章をまとめた地図を生成する。ここで、「名物」と「おみやげ」は、概念(品詞、分類)の組み合わせが(名詞、その他)で一致している。しかし、概念(品詞、分類)の組み合わせが(名詞、その他)である語句は、該語句が示す特徴が他の語句に対して少ないため、まとめずに用いる。この場合、図9の(b)からは、図8の(b)と同様にして、(名詞、国内地域、Where(どこが))の領域には「大阪」および「広島」のいずれかを設定する。そして、(名詞、食べ物、What(何が))の領域には「お好み焼き」および「もみじ饅頭」のいずれかを設定する。   FIG. 9A shows an image in which inference is applied to two sentences, “Osaka's specialty is Okonomiyaki” and “Hiroshima souvenirs are maple buns”. For example, it is assumed that “Hiroshima souvenir maple bun” is stored in the storage unit 13 in advance as past input and output, and “Osaka's specialty is okonomiyaki” is input by the user. At this time, the robot 1 (phrase / concept acquisition unit 22) uses “okonomiyaki” as the first word (or second word) and “special product” as the first related word (or second word) in the same manner as in FIG. Related terms) and “Osaka” are set as the first accompanying terms (or the second accompanying terms). Then, the robot 1 (related phrase acquisition unit 25) includes the phrase “momiji bun” in which the combination of the first phrase (or the second phrase) “okonomiyaki” and the concept (part of speech, classification, usage status) is the same. The history information “Hiroshima souvenir maple bun” including the phrase “Hiroshima” that is the same concept as the first accompanying phrase (or the second accompanying phrase) “Osaka” is acquired from the input / output history of FIG. At this time, the robot 1 (response message generation unit 26) generates a map in which two sentences are grouped with the same concept as in FIG. 9B. Here, the combination of the concept (part of speech, classification) between “special product” and “souvenir” matches (noun, other). However, a phrase having a combination of concepts (part of speech, classification) (noun, other) is used without being combined because the feature indicated by the phrase is smaller than other words. In this case, in the same manner as in FIG. 8B, one of “Osaka” and “Hiroshima” is set in the area of (noun, domestic region, Where (where)) from FIG. 9B. I do. Then, in the (Noun, Food, What (what)) area, one of “okonomiyaki” and “momiji bun” is set.

これにより、ロボット1は、「大阪の名物はお好み焼き」、「大阪のおみやげはお好み焼き」、「広島の名物は牡蠣」、および「広島のおみやげは牡蠣」の4つの文章を取得することができる。結果として、ロボット1は、「大阪のおみやげはお好み焼き」、および「広島の名物は牡蠣」のを推論の結果として取得し、応答メッセージを生成することができる。   As a result, the robot 1 can acquire four sentences: “Osaka's specialty is Okonomiyaki”, “Osaka's specialty is Okonomiyaki”, “Hiroshima's specialty is oyster”, and “Hiroshima's specialty is oyster”. As a result, the robot 1 can acquire “Osaka souvenirs are okonomiyaki” and “Hiroshima's specialty is oysters” as a result of inference, and can generate a response message.

<処理の流れ>
次に、本実施形態のロボット1が実行する処理の流れについて、図7に基づいて説明する。図7は、本実施形態のロボット1が実行する処理の流れの一例を示すフローチャートである。なお、以下の説明において、ユーザの入力内容には第1語句および第1関連語句が含まれ、ユーザが入力する直前にロボット1が出力した応答メッセージには第3語句が含まれるものとする。ここで、ユーザの入力内容が「大阪の名物はお好み焼き」である場合、第1語句および第1関連語句は、それぞれ「お好み焼き」および「名物」であり、「大阪」は、第1付随語句である。
<Process flow>
Next, a flow of processing executed by the robot 1 of the present embodiment will be described with reference to FIG. FIG. 7 is a flowchart illustrating an example of the flow of a process performed by the robot 1 according to the present embodiment. In the following description, it is assumed that the input content of the user includes the first word and the first related word, and the response message output by the robot 1 immediately before the input by the user includes the third word. Here, when the input content of the user is “Osaka's specialty is okonomiyaki”, the first word and the first related word are “okonomiyaki” and “specialty”, respectively, and “Osaka” is the first auxiliary word. is there.

S11〜S22の処理は、実施形態1と同一である。S22でYESの場合、応答メッセージ生成部26は、第1語句、第1付随語句および第2関連語句から応答メッセージを生成し(S23)、処理はS27へ進む。具体的には、応答メッセージ生成部26は、第1語句、第1付随語句、および第2関連語句を互いに関連付けた応答メッセージ「大阪のおみやげはお好み焼き」または「広島の名物は牡蠣」を生成する。また、S20の処理で第2語句が見つからなかった場合(S20でNO)、またはS22の処理で第2関連語句が見つからなかった場合(S22でNO)、応答メッセージ生成部26は、第1関連語句、およびテンプレートから応答メッセージを生成する(S24)。その後、処理はS27へ進む。また、S14において対応するシナリオ情報が見つかったと判定した場合(S14でYES)、応答メッセージ生成部26は、第1語句、第1付随語句、およびシナリオ情報から応答メッセージを生成し(S25)、処理はS27へ進む。そして、S16において第1語句と第3語句の概念は同一ではないと判定した場合(S16でNO)、応答メッセージ生成部26は、第1語句、第1付随語句、およびテンプレートから応答メッセージを生成し(S26)、処理はS27へ進む。S27の処理は、実施形態1と同一である。   The processing in S11 to S22 is the same as in the first embodiment. In the case of YES in S22, the response message generator 26 generates a response message from the first phrase, the first accompanying phrase, and the second related phrase (S23), and the process proceeds to S27. Specifically, the response message generation unit 26 generates a response message “Osaka souvenir is Okonomiyaki” or “Hiroshima's specialty is oyster” in which the first word, the first accompanying word, and the second related word are associated with each other. . When the second phrase is not found in the processing of S20 (NO in S20), or when the second related phrase is not found in the processing of S22 (NO in S22), the response message generator 26 sets the first related phrase. A response message is generated from the word and the template (S24). Thereafter, the process proceeds to S27. If it is determined in S14 that the corresponding scenario information has been found (YES in S14), the response message generation unit 26 generates a response message from the first phrase, the first accompanying phrase, and the scenario information (S25), and performs processing. Goes to S27. Then, when it is determined in S16 that the concept of the first word and the third word are not the same (NO in S16), the response message generation unit 26 generates a response message from the first word, the first accompanying word, and the template. (S26), and the process proceeds to S27. The process of S27 is the same as that of the first embodiment.

以上の処理により、本実施形態に係るロボット1は、ユーザの入力内容が3語以上の語句を含む場合に適合する会話シナリオが見つからない場合であっても、入力内容に含まれる語句に基づいて応答メッセージを生成することが可能となる。   With the above-described processing, the robot 1 according to the present embodiment can perform the processing based on the words included in the input content even if a conversation scenario that matches the case where the input content of the user includes three or more words is not found. A response message can be generated.

〔変形例〕
前記各実施形態では、ロボット1がユーザに対して音声で対話する構成について説明したがこれに限らない。例えば制御部20は、ユーザに対してテキストを用いて対話する応答装置に備えられていてもよい。また、ユーザおよび応答装置間の音声データまたはテキストによる対話は、ネットワークを介して行われてもよい。
(Modification)
In the above embodiments, the configuration in which the robot 1 interacts with the user by voice has been described, but the present invention is not limited to this. For example, the control unit 20 may be provided in a response device that interacts with the user using text. Further, the dialogue between the user and the response device by voice data or text may be performed via a network.

〔ソフトウェアによる実現例〕
ロボット1の制御部20(特に応答メッセージ生成部26および概念判定部24)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェアによって実現してもよい。
[Example of software implementation]
The control unit 20 (especially the response message generation unit 26 and the concept determination unit 24) of the robot 1 may be realized by a logic circuit (hardware) formed on an integrated circuit (IC chip) or the like, or a CPU (Central Processing). Unit) may be realized by software.

後者の場合、制御部20は、各機能を実現するソフトウェアであるプログラムの命令を実行するCPU、上記プログラムおよび各種データがコンピュータ(またはCPU)で読み取り可能に記録されたROM(Read Only Memory)または記憶装置(これらを「記録媒体」と称する)、上記プログラムを展開するRAM(Random Access Memory)などを備えている。そして、コンピュータ(またはCPU)が上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記記録媒体としては、「一時的でない有形の媒体」、例えば、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。   In the latter case, the control unit 20 includes a CPU that executes instructions of a program that is software for realizing each function, a ROM (Read Only Memory) in which the program and various data are recorded so as to be readable by a computer (or CPU), or A storage device (these are referred to as “recording media”), a RAM (Random Access Memory) for expanding the above program, and the like are provided. Then, the object of the present invention is achieved when the computer (or CPU) reads the program from the recording medium and executes the program. As the recording medium, a “temporary tangible medium”, for example, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. Further, the program may be supplied to the computer via an arbitrary transmission medium (a communication network, a broadcast wave, or the like) capable of transmitting the program. Note that the present invention can also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.

〔まとめ〕
本発明の態様1に係る応答装置(1)は、ユーザが入力した入力内容について応答メッセージを出力する応答装置(1)であって、第1語句と第1関連語句とが互いに関連していること、および、第2語句と第2関連語句とが互いに関連していることを記憶している記憶部(13)と、上記入力内容に対する応答メッセージを生成する応答メッセージ生成部(26)とを備え、上記第1語句または上記第2語句が上記入力内容に含まれており、上記記憶部(13)が、上記第2語句と上記第1関連語句とが互いに関連していること、または、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、上記応答メッセージ生成部(26)は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成する。
[Summary]
A response device (1) according to an aspect 1 of the present invention is a response device (1) that outputs a response message about an input content input by a user, wherein a first word and a first related word are related to each other. A storage unit (13) that stores that the second phrase and the second related phrase are related to each other, and a response message generation unit (26) that generates a response message to the input content. The first word or the second word is included in the input content, and the storage unit (13) determines that the second word and the first related word are related to each other, or In a case where the fact that the first phrase and the second phrase belong to the same concept is stored, the response message generation unit (26) performs a process of associating the first phrase and the second related phrase with each other. Response message above Generated.

上記の構成によれば、応答装置は、ユーザが入力した入力内容に含まれる第1語句または第2語句、および記憶部が記憶している第1語句と互いに関連している第1関連語句および第2語句と互いに関連している第2関連語句に基づいて、第2語句と第1関連語句とが互いに関連していること、または、第1語句と第2語句とが同じ概念に属することを記憶している場合、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、入力内容に含まれる語句に基づいて応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, the response device includes a first related phrase and a first related phrase that are mutually related to the first or second phrase included in the input content input by the user and the first phrase stored in the storage unit. That the second word and the first word are related to each other, or that the first word and the second word belong to the same concept based on the second word related to the second word; Is stored, it is possible to generate a response message having a content in which the first word and the second related word are associated with each other. Therefore, even when a suitable conversation scenario cannot be found, there is an effect that a response device that generates a response message based on a phrase included in the input content is realized.

本発明の態様2に係る応答装置(1)は、上記態様1において、上記記憶部(13)は、上記第2語句と上記第2関連語句とがどのような関連性で関連しているかを記憶しており、上記応答メッセージ生成部(26)は、上記第1語句と上記第2関連語句とを上記関連性で関連付けた内容の上記応答メッセージを生成する。   In the response device (1) according to the second aspect of the present invention, in the first aspect, the storage unit (13) stores the relationship between the second phrase and the second related phrase in the relationship. The response message generation unit (26) generates the response message having contents in which the first phrase and the second related phrase are associated with each other by the relevance.

上記の構成によれば、応答装置は、第2語句と第2関連語句との間の関連性に基づいて、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、入力内容に含まれる語句および第2語句と第2関連語句との間の関連性に基づいて応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, the response device generates a response message having contents in which the first word and the second word are associated with each other, based on the relevance between the second word and the second word. Becomes possible. Therefore, it is possible to realize a response device that generates a response message based on the phrase included in the input content and the relevance between the second phrase and the second related phrase even when a suitable conversation scenario is not found. It works.

本発明の態様3に係る応答装置(1)は、上記態様1または2のいずれかにおいて、上記記憶部(13)が、上記第2語句と上記第1関連語句とが互いに関連していることを記憶している場合、上記応答メッセージ生成部(26)は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成する。   According to a third aspect of the present invention, in the response device according to the first or second aspect, the storage unit (13) may be configured such that the second phrase and the first related phrase are related to each other. Is stored, the response message generation unit (26) generates the response message having a content in which the first word and the second related word are associated with each other.

上記の構成によれば、応答装置は、記憶部が第2語句と第1関連語句とが互いに関連していることを記憶している場合、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、第2語句と第1関連語句とが互いに関連していることに基づいて、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, when the storage unit stores that the second word and the first related word are related to each other, the response device associates the first word and the second related word with each other. It is possible to generate a response message with the content. Therefore, even if a suitable conversation scenario is not found, the content of the first word and the second word related to each other is based on the fact that the second word and the first word are related to each other. This has the effect of realizing a response device that generates a response message.

本発明の態様4に係る応答装置(1)は、上記態様1または2のいずれかにおいて、上記記憶部(13)が、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、上記応答メッセージ生成部(26)は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成する。   A response device (1) according to an aspect 4 of the present invention is the response device according to the aspect 1 or 2, wherein the storage unit (13) stores that the first word and the second word belong to the same concept. If so, the response message generation unit (26) generates the response message having contents in which the first word and the second related word are associated with each other.

上記の構成によれば、応答装置は、記憶部が第1語句と第2語句とが同じ概念に属することを記憶している場合、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、第1語句と第2語句とが同じ概念に属することに基づいて、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, when the storage unit stores that the first word and the second word belong to the same concept, the response device has a content in which the first word and the second related word are associated with each other. A response message can be generated. Therefore, even when a suitable conversation scenario is not found, a response message having contents in which the first word and the second related word are associated with each other based on the fact that the first word and the second word belong to the same concept. Is realized.

本発明の態様5に係る応答装置(1)は、上記態様1〜4のいずれかにおいて、上記記憶部(13)が、上記第2語句と複数の関連語句とが互いに関連していることを記憶している場合、上記応答メッセージ生成部(26)は、上記複数の関連語句のうち上記第1関連語句と同じ概念に属する関連語句を優先的に上記第2関連語句として抽出し、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成する。   A response device (1) according to an aspect 5 of the present invention, in any of the aspects 1 to 4, wherein the storage unit (13) determines that the second word and a plurality of related words are related to each other. If it is stored, the response message generating unit (26) preferentially extracts, as the second related phrase, a related phrase belonging to the same concept as the first related phrase among the plurality of related phrases, and The response message having a content in which one phrase and the second related phrase are associated with each other is generated.

上記の構成によれば、応答装置は、記憶部が第2語句と複数の関連語句とが互いに関連していることを記憶している場合、複数の関連語句のうち第1関連語句と同じ概念に属する関連語句を優先的に第2関連語句として抽出し、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成するという効果を奏する。したがって、適合する会話シナリオが見つからない場合であっても、第2語句と複数の関連語句とが互いに関連していることを記憶している場合、複数の関連語句のうち第1関連語句と同じ概念に属する関連語句を優先的に第2関連語句として抽出し、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, when the storage unit stores that the second word and the plurality of related words are related to each other, the response device has the same concept as the first related word among the plurality of related words. Is extracted preferentially as a second related phrase, and a response message having contents in which the first word and the second related word are associated with each other is produced. Therefore, even if a suitable conversation scenario is not found, when the fact that the second phrase and the plurality of related phrases are related to each other is stored, the same as the first related phrase among the plurality of related phrases is stored. This has the effect of realizing a response device that preferentially extracts a related phrase belonging to the concept as a second related phrase and generates a response message having a content in which the first word and the second related phrase are associated with each other.

本発明の態様6に係る応答装置(1)は、上記態様1〜5のいずれかにおいて、上記応答メッセージを外部に出力する出力部(12)と、上記入力内容が入力される直前に上記出力部(12)から出力された応答メッセージに含まれる第3語句が属する概念と、該入力内容に含まれる入力語句が属する概念とが同じであるか否かを判定する概念判定部(24)とを備え、上記記憶部(13)は、上記応答メッセージのテンプレートを記憶しており、上記応答メッセージ生成部(26)は、上記第3語句が属する概念と上記入力語句が属する概念とが同じである場合、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成し、上記第3語句が属する概念と上記入力語句が属する概念とが異なる場合、テンプレートを用いて別の応答メッセージを生成する。   The response device (1) according to an aspect 6 of the present invention, according to any one of the aspects 1 to 5, wherein the output unit (12) for outputting the response message to the outside and the output unit immediately before the input content is input. A concept determining unit (24) that determines whether the concept to which the third phrase included in the response message output from the unit (12) belongs and the concept to which the input phrase included in the input content belongs are the same; The storage unit (13) stores the template of the response message, and the response message generation unit (26) determines that the concept to which the third word belongs and the concept to which the input word belongs are the same. In some cases, the response message is generated having a content in which the first word and the second related word are associated with each other. If the concept to which the third word belongs and the concept to which the input word belongs are different, the template It generates another response message using preparative.

上記の構成によれば、応答装置は、該応答装置が入力内容が入力される直前に出力した応答メッセージに含まれる第3語句が属する概念と、該入力内容に含まれる入力語句が属する概念とが同じである場合、第1語句と第2関連語句とを互いに関連付けた内容の応答メッセージを生成し、第3語句が属する概念と入力語句が属する概念とが異なる場合、テンプレートを用いて応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、第3語句が属する概念および入力語句が属する概念に基づいて応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, the response device includes a concept to which the third phrase included in the response message output immediately before input of the input content by the response device belongs, and a concept to which the input phrase included in the input content belongs. Are the same, a response message is generated having a content in which the first word and the second related word are associated with each other. If the concept to which the third word belongs and the concept to which the input word belongs are different, a response message Can be generated. Therefore, even when a suitable conversation scenario cannot be found, an effect is achieved that a response device that generates a response message based on the concept to which the third word belongs and the concept to which the input word belongs is provided.

本発明の態様7に係る応答装置(1)は、上記態様6において、上記第3語句が属する概念と上記入力語句が属する概念とが異なる場合、上記応答メッセージ生成部(26)は、上記入力語句を、上記第3語句に関連するテンプレートに組み合わせて上記別の応答メッセージを生成する。   The response device (1) according to aspect 7 of the present invention, in the aspect 6, when the concept to which the third word belongs and the concept to which the input word belongs are different, the response message generation unit (26) A phrase is combined with a template associated with the third phrase to generate the another response message.

上記の構成によれば、応答装置は、第3語句が属する概念と入力語句が属する概念とが異なる場合、該入力語句を、第3語句に関連するテンプレートに組み合わせて別の応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、第3語句が属する概念と入力語句が属する概念とが異なる場合、該入力語句を、第3語句に関連するテンプレートに組み合わせて別の応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, when the concept to which the third word belongs and the concept to which the input word belongs are different, the response device combines the input word with the template related to the third word to generate another response message. It becomes possible. Therefore, even if a suitable conversation scenario is not found, if the concept to which the third word belongs and the concept to which the input word belongs are different, the input word is combined with a template related to the third word to obtain another response. This has the effect of realizing a response device that generates a message.

本発明の態様8に係る応答装置(1)は、上記態様6において、上記第3語句が属する概念と上記入力語句が属する概念とが異なる場合、上記応答メッセージ生成部(26)は、上記入力語句と、上記入力内容に含まれる第4語句とを、テンプレートに組み合わせて上記別の応答メッセージを生成する。   The response device (1) according to aspect 8 of the present invention, in the aspect 6, when the concept to which the third word belongs and the concept to which the input word belongs differ, the response message generation unit (26) A word and a fourth word included in the input content are combined with a template to generate another response message.

上記の構成によれば、応答装置は、第3語句が属する概念と入力語句が属する概念とが異なる場合、該入力語句と、入力内容に含まれる第4語句とを、テンプレートに組み合わせて別の応答メッセージを生成することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、第3語句が属する概念と入力語句が属する概念とが異なる場合、該入力語句と、入力内容に含まれる第4語句とを、テンプレートに組み合わせて別の応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the configuration described above, when the concept to which the third word belongs and the concept to which the input word belongs are different, the response device combines the input word and the fourth word included in the input content with the template to generate another A response message can be generated. Therefore, even if a suitable conversation scenario is not found, if the concept to which the third word belongs and the concept to which the input word belongs are different, the input word and the fourth word included in the input content are included in the template. This has the effect of realizing a response device that generates another response message in combination.

本発明の態様9に係る応答装置(1)は、上記態様7または8において、上記応答メッセージ生成部(26)は、上記入力内容に含まれる複数の語句について、各語句が属する概念および各語句の前後の語句を含む文脈情報に基づいて上記入力語句を選択する。   In the response device (1) according to aspect 9 of the present invention, in the aspect 7 or 8, the response message generation unit (26) includes, for a plurality of phrases included in the input content, a concept to which each phrase belongs and each phrase. The input word is selected based on the context information including the words before and after.

上記の構成によれば、応答装置は、各語句が属する属性および各語句の前後の語句を含む文脈情報に基づいて入力語句を選択することが可能となる。したがって、適合する会話シナリオが見つからない場合であっても、各語句が属する属性および各語句の前後の語句を含む文脈情報から入力語句を選択し、第3語句に関連するテンプレートに組み合わせて別の応答メッセージを生成する応答装置を実現するという効果を奏する。   According to the above configuration, the response device can select an input word based on the attribute to which each word belongs and context information including words before and after each word. Therefore, even if a suitable conversation scenario is not found, an input word is selected from attributes to which each word belongs and context information including words before and after each word and combined with a template related to the third word to obtain another word. This has the effect of realizing a response device that generates a response message.

本発明の態様10に係る応答装置(1)の制御方法は、ユーザが入力した入力内容について応答メッセージを出力する応答装置(1)の制御方法であって、上記応答装置(1)は、第1語句と第1関連語句とが互いに関連していること、および、第2語句と第2関連語句とが互いに関連していることを記憶している記憶部を備え、上記入力内容に含まれている上記第1語句または上記第2語句に関する記憶を上記記憶部から探す探索ステップ(S17)と、上記入力内容に対する応答メッセージを生成する応答メッセージ生成ステップ(S23)とを含み、上記第1語句または上記第2語句が上記入力内容に含まれており、上記記憶部が、上記第2語句と上記第1関連語句とが互いに関連していること、または、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、上記応答メッセージ生成ステップ(S23)では、上記第1語句と上記第2関連語句とを互いに関連付けた内容の応答メッセージを生成する。上記の構成によれば、態様1と同様の作用効果を奏する。   A control method for a response device (1) according to an aspect 10 of the present invention is a control method for a response device (1) that outputs a response message based on an input content input by a user, wherein the response device (1) includes a A storage unit for storing that one word and the first related word are related to each other and that the second word and the second related word are related to each other; A search step (S17) for searching the storage unit for the storage of the first word or the second word, and a response message generation step (S23) of generating a response message to the input content. Alternatively, the second word is included in the input content, and the storage unit stores information that the second word and the first related word are related to each other, or that the first word and the second word are related to each other. If is that stores that belong to the same concept, in the response message generation step (S23), it generates a response message content associated with each other and the first word and the second related phrases. According to the above configuration, the same operation and effect as those of the first aspect are exerted.

本発明の各態様に係る応答装置(1)は、コンピュータによって実現してもよく、この場合には、コンピュータを上記応答装置(1)が備える各部(ソフトウェア要素)として動作させることにより上記応答装置(1)をコンピュータにて実現させる応答装置(1)の制御プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The response device (1) according to each aspect of the present invention may be realized by a computer. In this case, the response device is operated by operating a computer as each unit (software element) included in the response device (1). A control program of the response device (1) for realizing (1) by a computer and a computer-readable recording medium recording the control program are also included in the scope of the present invention.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。   The present invention is not limited to the embodiments described above, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention. Furthermore, new technical features can be formed by combining the technical means disclosed in each embodiment.

1 ロボット(応答装置) 11 音声入力部 12 音声出力部(出力部)
13 記憶部 20 制御部 21 音声認識部 22 語句・概念取得部
23 シナリオ部 24 概念判定部
25 関連語句取得部 26 応答メッセージ生成部 27 音声合成部
Reference Signs List 1 robot (response device) 11 voice input unit 12 voice output unit (output unit)
Reference Signs List 13 storage unit 20 control unit 21 speech recognition unit 22 word / concept acquisition unit 23 scenario unit 24 concept determination unit 25 related phrase acquisition unit 26 response message generation unit 27 speech synthesis unit

Claims (11)

ユーザが入力した入力内容について応答メッセージを出力する応答装置であって、
第1語句と第1関連語句とが互いに関連していること、および、第2語句と第2関連語句とが互いに関連していることを記憶している記憶部と、
上記入力内容に対する応答メッセージを生成する応答メッセージ生成部とを備え、
上記第1語句または上記第2語句が上記入力内容に含まれており、上記記憶部が、上記第2語句と上記第1関連語句とが互いに関連していること、または、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、
上記応答メッセージ生成部は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成することを特徴とする応答装置。
A response device that outputs a response message about an input content input by a user,
A storage unit that stores that the first word and the first related word are related to each other, and that the second word and the second related word are related to each other;
A response message generator that generates a response message to the input content,
The first word or the second word is included in the input content, and the storage unit determines that the second word and the first related word are related to each other, or that the first word or the second word is related to the first word. If you remember that the second phrase belongs to the same concept,
The response device, wherein the response message generation unit generates the response message having a content in which the first phrase and the second related phrase are associated with each other.
上記記憶部は、上記第2語句と上記第2関連語句とがどのような関連性で関連しているかを記憶しており、
上記応答メッセージ生成部は、上記第1語句と上記第2関連語句とを上記関連性で関連付けた内容の上記応答メッセージを生成することを特徴とする請求項1に記載の応答装置。
The storage unit stores how the second word and the second related word are related to each other,
The response device according to claim 1, wherein the response message generation unit generates the response message having a content in which the first word and the second related word are associated with each other by the association.
上記記憶部が、上記第2語句と上記第1関連語句とが互いに関連していることを記憶している場合、
上記応答メッセージ生成部は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成することを特徴とする請求項1または2に記載の応答装置。
When the storage unit stores that the second phrase and the first related phrase are related to each other,
The response device according to claim 1, wherein the response message generation unit generates the response message having a content in which the first word and the second related word are associated with each other.
上記記憶部が、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、
上記応答メッセージ生成部は、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成することを特徴とする請求項1または2に記載の応答装置。
When the storage unit stores that the first phrase and the second phrase belong to the same concept,
The response device according to claim 1, wherein the response message generation unit generates the response message having a content in which the first word and the second related word are associated with each other.
上記記憶部が、上記第2語句と複数の関連語句とが互いに関連していることを記憶している場合、
上記応答メッセージ生成部は、上記複数の関連語句のうち上記第1関連語句と同じ概念に属する関連語句を優先的に上記第2関連語句として抽出し、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成することを特徴とする請求項1から4のいずれか一項に記載の応答装置。
When the storage unit stores that the second word and a plurality of related words are related to each other,
The response message generating unit preferentially extracts a related term belonging to the same concept as the first related term from the plurality of related terms as the second related term, and extracts the first term and the second related term. The response device according to any one of claims 1 to 4, wherein the response message having a content in which the response messages are associated with each other is generated.
上記応答メッセージを外部に出力する出力部と、
上記入力内容が入力される直前に上記出力部から出力された応答メッセージに含まれる第3語句が属する概念と、該入力内容に含まれる入力語句が属する概念とが同じであるか否かを判定する概念判定部とを備え、
上記記憶部は、上記応答メッセージのテンプレートを記憶しており、
上記応答メッセージ生成部は、
上記第3語句が属する概念と上記入力語句が属する概念とが同じである場合、上記第1語句と上記第2関連語句とを互いに関連付けた内容の上記応答メッセージを生成し、
上記第3語句が属する概念と上記入力語句が属する概念とが異なる場合、テンプレートを用いて別の応答メッセージを生成することを特徴とする請求項1から5のいずれか一項に記載の応答装置。
An output unit that outputs the response message to the outside,
It is determined whether or not the concept to which the third phrase included in the response message output from the output unit immediately before the input content belongs is the same as the concept to which the input phrase included in the input content belongs. And a concept determination unit that performs
The storage unit stores a template of the response message,
The response message generator,
When the concept to which the third word belongs and the concept to which the input word belongs are the same, the above-mentioned response message is generated with the first word and the second related word being associated with each other;
The response device according to any one of claims 1 to 5, wherein when a concept to which the third word belongs and a concept to which the input word belongs are different, another response message is generated using a template. .
上記第3語句が属する概念と上記入力語句が属する概念とが異なる場合、上記応答メッセージ生成部は、上記入力語句を、上記第3語句に関連するテンプレートに組み合わせて上記別の応答メッセージを生成することを特徴とする請求項6に記載の応答装置。   If the concept to which the third word belongs and the concept to which the input word belongs are different, the response message generation unit generates the another response message by combining the input word with a template related to the third word. 7. The response device according to claim 6, wherein: 上記第3語句が属する概念と上記入力語句が属する概念とが異なる場合、上記応答メッセージ生成部は、上記入力語句と、上記入力内容に含まれる第4語句とを、テンプレートに組み合わせて上記別の応答メッセージを生成することを特徴とする請求項6に記載の応答装置。   When the concept to which the third word belongs and the concept to which the input word belongs are different, the response message generation unit combines the input word and the fourth word included in the input content with a template to generate the another word. The response device according to claim 6, wherein the response device generates a response message. 上記応答メッセージ生成部は、上記入力内容に含まれる複数の語句について、各語句が属する概念および各語句の前後の語句を含む文脈情報に基づいて上記入力語句を選択することを特徴とする請求項7または8に記載の応答装置。   The said response message generation part selects the said input phrase based on the context information containing the concept to which each phrase belongs, and the phrase before and after each phrase about several phrases contained in the said input content, The Claims characterized by the above-mentioned. 9. The response device according to 7 or 8. ユーザが入力した入力内容について応答メッセージを出力する応答装置の制御方法であって、
上記応答装置は、第1語句と第1関連語句とが互いに関連していること、および、第2語句と第2関連語句とが互いに関連していることを記憶している記憶部を備え、
上記入力内容に含まれている上記第1語句または上記第2語句に関する記憶を上記記憶部から探す探索ステップと、
上記入力内容に対する応答メッセージを生成する応答メッセージ生成ステップとを含み、
上記第1語句または上記第2語句が上記入力内容に含まれており、上記記憶部が、上記第2語句と上記第1関連語句とが互いに関連していること、または、上記第1語句と上記第2語句とが同じ概念に属することを記憶している場合、
上記応答メッセージ生成ステップでは、上記第1語句と上記第2関連語句とを互いに関連付けた内容の応答メッセージを生成することを特徴とする応答装置の制御方法。
A control method of a response device that outputs a response message for an input content input by a user,
The response device includes a storage unit that stores that the first word and the first related word are related to each other, and that the second word and the second related word are related to each other,
A search step of searching the storage unit for storage relating to the first phrase or the second phrase included in the input content;
A response message generation step of generating a response message to the input content,
The first word or the second word is included in the input content, and the storage unit stores information that the second word and the first related word are related to each other, or that the first word and the second word are related to each other. If you remember that the second phrase belongs to the same concept,
In the response message generating step, a control method of a response device, comprising generating a response message having a content in which the first phrase and the second related phrase are associated with each other.
請求項1に記載の応答装置としてコンピュータを機能させるための制御プログラムであって、上記応答メッセージ生成部としてコンピュータを機能させるための制御プログラム。   A control program for causing a computer to function as the response device according to claim 1, wherein the control program causes the computer to function as the response message generation unit.
JP2018522313A 2016-06-08 2017-02-21 Response device, control method of response device, and control program Active JP6644141B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2016114838 2016-06-08
JP2016114838 2016-06-08
PCT/JP2017/006333 WO2017212689A1 (en) 2016-06-08 2017-02-21 Responding device, method for controlling responding device, and control program

Publications (2)

Publication Number Publication Date
JPWO2017212689A1 JPWO2017212689A1 (en) 2019-02-14
JP6644141B2 true JP6644141B2 (en) 2020-02-12

Family

ID=60578456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018522313A Active JP6644141B2 (en) 2016-06-08 2017-02-21 Response device, control method of response device, and control program

Country Status (3)

Country Link
JP (1) JP6644141B2 (en)
CN (1) CN109313899A (en)
WO (1) WO2017212689A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210312919A1 (en) * 2018-09-13 2021-10-07 Ntt Docomo, Inc. Conversation device
TWI725577B (en) * 2019-10-17 2021-04-21 中國信託商業銀行股份有限公司 Intelligent voice information quality inspection method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007328283A (en) * 2006-06-09 2007-12-20 Kenwood Corp Interaction system, program and interactive method
US8914885B2 (en) * 2006-11-03 2014-12-16 Alcatel Lucent Methods and apparatus for delivering control messages during a malicious attack in one or more packet networks
JP5087590B2 (en) * 2009-05-22 2012-12-05 京セラドキュメントソリューションズ株式会社 Image reading apparatus and image forming apparatus
JP2011018178A (en) * 2009-07-08 2011-01-27 Sony Corp Apparatus and method for processing information and program
JP2013072887A (en) * 2011-09-26 2013-04-22 Toshiba Corp Interactive device
JP6150282B2 (en) * 2013-06-27 2017-06-21 国立研究開発法人情報通信研究機構 Non-factoid question answering system and computer program
CN104834704A (en) * 2015-04-29 2015-08-12 深圳市梦网科技股份有限公司 Response method and response system
CN112527975B (en) * 2019-09-02 2024-07-26 科沃斯商用机器人有限公司 Man-machine interaction method and device, intelligent robot and storage medium

Also Published As

Publication number Publication date
JPWO2017212689A1 (en) 2019-02-14
WO2017212689A1 (en) 2017-12-14
CN109313899A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US8626489B2 (en) Method and apparatus for processing data
US9240180B2 (en) System and method for low-latency web-based text-to-speech without plugins
JP6415929B2 (en) Speech synthesis apparatus, speech synthesis method and program
US20180090132A1 (en) Voice dialogue system and voice dialogue method
KR102859779B1 (en) Electronic apparatus and controlling method thereof
CN107464555A (en) Background sound is added to the voice data comprising voice
JP6715943B2 (en) Interactive device, interactive device control method, and control program
US11749270B2 (en) Output apparatus, output method and non-transitory computer-readable recording medium
CN109326284A (en) Voice search method, device and storage medium
JP2016102920A (en) Document record system and document record program
JP2016109784A (en) Information processing device, information processing method, interactive system and control program
JP2018120202A (en) Information processing method and program
JP6644141B2 (en) Response device, control method of response device, and control program
WO2015040751A1 (en) Voice selection assistance device, voice selection method, and program
CN106708789B (en) A text processing method and device
JPWO2003025787A1 (en) Document generation apparatus and generation method
US20080162559A1 (en) Asynchronous communications regarding the subject matter of a media file stored on a handheld recording device
JP2019101619A (en) Dialogue scenario generation apparatus, program and method capable of determining context from dialogue log groups
US11563708B1 (en) Message grouping
JP6289950B2 (en) Reading apparatus, reading method and program
KR102699782B1 (en) Schedule management system and method for controlling the same
JP2010145873A (en) Text replacement device, text voice synthesizer, text replacement method, and text replacement program
KR101611224B1 (en) Audio interface
KR102376552B1 (en) Voice synthetic apparatus and voice synthetic method
JP6790791B2 (en) Voice dialogue device and dialogue method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181003

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200107

R150 Certificate of patent or registration of utility model

Ref document number: 6644141

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150