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
JP7124565B2 - Dialogue method, dialogue program and information processing device - Google Patents
[go: Go Back, main page]

JP7124565B2 - Dialogue method, dialogue program and information processing device - Google Patents

Dialogue method, dialogue program and information processing device Download PDF

Info

Publication number
JP7124565B2
JP7124565B2 JP2018160641A JP2018160641A JP7124565B2 JP 7124565 B2 JP7124565 B2 JP 7124565B2 JP 2018160641 A JP2018160641 A JP 2018160641A JP 2018160641 A JP2018160641 A JP 2018160641A JP 7124565 B2 JP7124565 B2 JP 7124565B2
Authority
JP
Japan
Prior art keywords
information
answer
related information
sentence
utterance
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
JP2018160641A
Other languages
Japanese (ja)
Other versions
JP2020034694A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2018160641A priority Critical patent/JP7124565B2/en
Publication of JP2020034694A publication Critical patent/JP2020034694A/en
Application granted granted Critical
Publication of JP7124565B2 publication Critical patent/JP7124565B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、対話方法、対話プログラム及び情報処理装置に関する。 The present invention relates to an interactive method, an interactive program, and an information processing apparatus.

近年では、ユーザとシステムとがテキストデータによって対話を行う対話システムが普及しつつある。この対話システムの1つとして、スロットフィリング形式の対話を行うものが知られている。 In recent years, dialogue systems in which a user and a system have a dialogue using text data are becoming popular. As one of these dialogue systems, there is known one that performs slot-filling dialogue.

スロットフィリング形式の対話を行う対話システムでは、予め用意された項目について、各項目の値を埋めるための質問文を順番にユーザに提示し、ユーザが回答を入力すると、この回答を項目の値として取得し、特定の処理を実行する。また、この対話システムでは、ユーザに対し、自身の回答の内容を提示することで、対話システムに回答が伝わったか否かを確認させるものもある。 In a dialog system that performs a slot-filling dialog, the user is sequentially presented with question sentences for filling in the values of each item prepared in advance, and when the user inputs an answer, this answer is used as the item value Get and perform a specific operation. In some interactive systems, the content of the user's own answer is presented to the user so that the user can confirm whether or not the answer has been conveyed to the interactive system.

特開2016-71050号公報JP 2016-71050 A

上述した対話システムでは、入力された回答を繰り返し提示する機械的な手法で、対話システムに回答が伝わったか否かをユーザに確認させる。このため、上述した対話システムでは、ユーザが回答する回数が増えるにつれて、ユーザに違和感や不自然さを感じさせることになり、自然な対話の継続に支障をきたす可能性がある。 In the above-described dialogue system, a mechanical method of repeatedly presenting an input answer is used to make the user confirm whether or not the answer has been conveyed to the dialogue system. Therefore, in the dialogue system described above, as the number of times the user answers increases, the user feels uncomfortable or unnatural, which may hinder the continuation of a natural dialogue.

1つの側面では、本発明は、ユーザとの自然な対話を継続させることを目的としている。 In one aspect, the present invention aims at continuing a natural dialogue with the user.

一つ態様では、コンピュータによる対話方法であって、前記コンピュータが、ユーザの発話情報を取得し、取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得し、前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出し、抽出した関連情報を出力する。 In one aspect, in a computer-based interaction method, the computer acquires utterance information of a user, and when the acquired utterance information includes an answer to be registered in a storage unit, Then, a plurality of related information relating to the answer is acquired, the related information indicating the attribute of the answer is extracted from the plurality of related information, and the extracted related information is output.

上記各手順は、上記各手順を実現する機能部、各手順を実現する処理としても良く、各処理をコンピュータに実行させるプログラムを記憶したコンピュータ読み取り可能な記憶媒体とすることもできる。 Each of the above procedures may be a functional unit that implements each procedure, a process that implements each procedure, or a computer-readable storage medium that stores a program that causes a computer to execute each process.

ユーザとの自然な対話を継続させることができる。 Natural dialogue with the user can be continued.

対話システムの概要を説明する図である。It is a figure explaining the outline|summary of a dialogue system. 対話システムのシステム構成の一例を説明する図である。It is a figure explaining an example of the system configuration|structure of a dialogue system. 対話装置のハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a dialog apparatus. テーブル記憶部に保持されたスロットテーブルの一例を示す図である。FIG. 4 is a diagram showing an example of a slot table held in a table storage unit; FIG. 対話処理部の機能について説明する図である。FIG. 4 is a diagram for explaining functions of an interactive processing unit; 関連情報テーブルの一例を示す図である。It is a figure which shows an example of a related information table. 固有表現抽出学習部の処理を説明するフローチャートである。FIG. 10 is a flowchart for explaining processing of a named entity extraction learning unit; FIG. 対話処理部の処理を説明する第一のフローチャートである。FIG. 10 is a first flow chart for explaining processing of a dialogue processing unit; FIG. 対話処理部の処理を説明する第二のフローチャートである。FIG. 10 is a second flowchart for explaining processing of the dialogue processing unit; FIG. 対話処理部の処理を説明する第三のフローチャートである。FIG. 11 is a third flowchart for explaining processing of the dialogue processing unit; FIG.

以下に、図面を参照して、本実施形態について説明する。図1は、対話システムの概要を説明する図である。 The present embodiment will be described below with reference to the drawings. FIG. 1 is a diagram for explaining an outline of a dialogue system.

本実施形態の対話システム100は、対話装置200と、端末装置300とを含み、対話装置200と端末装置300とは、ネットワークを介して接続される。 A dialogue system 100 of this embodiment includes a dialogue device 200 and a terminal device 300, and the dialogue device 200 and the terminal device 300 are connected via a network.

本実施形態の対話システム100において、対話装置200は、特定の目的を持った対話を実現するアルゴリズムの一つである、スロットフィリング形式の対話を行う対話装置である。 In the dialogue system 100 of the present embodiment, the dialogue device 200 is a dialogue device that performs slot-filling dialogue, which is one of algorithms for realizing dialogue with a specific purpose.

具体的には、対話装置200は、端末装置300に対して、予め用意された項目の値を入力させる質問文を出力する(ステップS1)。そして、対話装置200は、端末装置300において、質問文に対する回答が入力され、端末装置300から回答を示す情報を受信すると、この回答を示す情報を、質問文に含まれる項目の値として取得し、特定の目的に応じた処理を実行する(ステップS2)。 Specifically, the interactive device 200 outputs to the terminal device 300 a question sentence for inputting values of items prepared in advance (step S1). When an answer to the question text is input to the terminal device 300 and information indicating the answer is received from the terminal device 300, the interactive device 200 acquires the information indicating the answer as the value of the item included in the question text. , a process corresponding to a specific purpose is executed (step S2).

また、本実施形態の対話装置200は、回答を示す情報を受信すると、回答と関連する関連情報を取得する。そして、対話装置200は、取得した関連情報の中から、回答の属性を示す関連情報を選択し、回答に対する応答として、端末装置300に表示させる(ステップS3)。以下の説明では、回答に対する応答を、回答に対する相槌、回答に対する相槌文等と表現する場合がある。 Further, upon receiving information indicating an answer, the interactive device 200 of the present embodiment acquires related information related to the answer. Then, the dialogue device 200 selects related information indicating attributes of the answer from the acquired related information, and displays it on the terminal device 300 as a response to the answer (step S3). In the following description, a response to an answer may be expressed as a backtrack to an answer, backtracking to an answer, or the like.

図1の例では、対話装置200は、「行き先(目的地)と人数に応じた移動ルートを提示する」という目的を持った対話を実現するものである。 In the example of FIG. 1, the dialogue device 200 realizes dialogue with the purpose of "presenting a travel route according to the destination (destination) and the number of people".

本実施形態の対話装置200は、端末装置300のユーザPに対して、予め用意された項目の1つである「行き先」の回答を入力させるための質問文Q1を生成し、端末装置300の画面301に表示させる。 The interactive device 200 of the present embodiment generates a question sentence Q1 for prompting the user P of the terminal device 300 to enter an answer to "destination", which is one of the items prepared in advance. Display on the screen 301 .

尚、画面301は、端末装置300において、対話装置200との対話の開始を指示する操作が行われると、端末装置300に表示される画面の一例である。 Note that the screen 301 is an example of a screen displayed on the terminal device 300 when an operation is performed on the terminal device 300 to instruct the start of dialogue with the dialogue device 200 .

本実施形態の端末装置300は、画面301において、入力欄302に回答文(発話文)A1が入力されると、回答文A1を質問文Q1と対応付けて表示させ、回答文A1を示す情報を対話装置200に送信する。 When an answer sentence (speech sentence) A1 is entered in the input field 302 on the screen 301, the terminal device 300 of the present embodiment displays the answer sentence A1 in association with the question sentence Q1, and displays information indicating the answer sentence A1. to the interactive device 200 .

以下の説明では、質問文を示す情報を質問情報と呼び、回答文(発話文)を示す情報を、発話情報と呼ぶ場合がある。また、以下の説明では、発話情報に含まれる文字列であって、質問文に含まれる項目の値となる文字列を、回答、又は、回答となる文字列と呼ぶ場合がある。 In the following description, information indicating a question sentence may be referred to as question information, and information indicating an answer sentence (utterance sentence) may be referred to as utterance information. Further, in the following description, a character string that is included in the utterance information and that is the value of an item included in the question may be called an answer or a character string that becomes an answer.

本実施形態の対話装置200は、端末装置300から回答文A1を示す発話情報を受信すると、発話情報から、項目「行き先」の値を示す文字列を、回答として抽出する。図1の例では、項目「行き先」の値となる文字列(回答)は、「シカゴ」であるため、文字列「シカゴ」が、回答として抽出される。 When the dialogue device 200 of the present embodiment receives speech information indicating the answer sentence A1 from the terminal device 300, it extracts a character string indicating the value of the item "destination" from the speech information as an answer. In the example of FIG. 1, the character string (answer) that is the value of the item "destination" is "Chicago", so the character string "Chicago" is extracted as the answer.

本実施形態の対話装置200は、発話情報から回答を抽出すると、外部の情報源を検索して回答の関連情報を取得し、取得した回答情報の中から、回答の属性を示す関連情報を選択する。 After extracting an answer from the utterance information, the dialogue device 200 of the present embodiment searches external information sources to obtain information related to the answer, and selects relevant information indicating attributes of the answer from the obtained answer information. do.

そして、対話装置200は、選択した関連情報を含む相槌文を、端末装置300に表示させる。 Then, the interactive device 200 causes the terminal device 300 to display the backtracking sentence including the selected related information.

また、対話装置200は、相槌文を表示させた後に、次の項目の値を入力させるための質問文を端末装置300に表示させる。 Further, after displaying the backtracking sentence, the interactive device 200 causes the terminal device 300 to display a question sentence for inputting the value of the next item.

図1の例では、質問文Q1に含まれる項目は「行き先」であり、この項目の属性は、「場所」である。したがって、項目「行き先」の値である回答の属性も、「場所」である。 In the example of FIG. 1, the item included in the question Q1 is "destination", and the attribute of this item is "place". Therefore, the attribute of the answer that is the value of the item "destination" is also "location".

よって、対話装置200は、回答「シカゴ」に基づき取得した関連情報の中から、「シカゴ」が「場所」を示している関連情報R1を選択し、関連情報R1を含む相槌文H1を生成して、端末装置300の画面301に表示させる。 Therefore, dialogue device 200 selects related information R1 in which "Chicago" indicates "place" from among the related information acquired based on the answer "Chicago", and generates backtrack H1 including related information R1. to display it on the screen 301 of the terminal device 300 .

図1の例では、相槌文H1として、「シカゴは、ボブ・○○さんの出身地で有名です。」というテキストデータが表示されており、この中に含まれる関連情報R1である「シカゴは、ボブ・デービッドソンの出身地で有名」は、「シカゴ」という場所を示していることがわかる。また、相槌文H1において、関連情報R1には、回答となる文字列「シカゴ」が含まれることがわかる。 In the example of FIG. 1, the text data "Chicago is famous for being the birthplace of Mr. Bob XX" is displayed as the backtrack H1, and the related information R1 included therein is "Chicago is , famous for the birthplace of Bob Davidson” indicates a place called “Chicago”. Also, in the backtrack H1, it can be seen that the related information R1 includes the character string "Chicago" as an answer.

また、相槌文H1は、回答文A1を受けた応答として表示されており、相槌文H1が回答文A1と対応付けられていることがわかる。 Also, the backtracking sentence H1 is displayed as a response to the reply sentence A1, and it can be seen that the backtracking sentence H1 is associated with the reply sentence A1.

本実施形態では、対話装置200は、相槌文H1を画面301に表示させると、次に、項目「同行者」の値を入力させるための質問文Q2を端末装置300の画面301に表示させる。 In this embodiment, after displaying the backtracking sentence H1 on the screen 301, the dialogue device 200 causes the screen 301 of the terminal device 300 to display the question sentence Q2 for inputting the value of the item "companion".

このように、本実施形態の対話装置200は、回答に関連する関連情報の中から、回答の属性を示す関連情報を選択し、選択された関連情報を、回答を受け付けたことを確認させる相槌文として、端末装置300に表示させる。 In this way, the dialogue device 200 of the present embodiment selects related information indicating attributes of an answer from related information related to an answer, and uses the selected related information as a back-and-forth to confirm that the answer has been received. It is displayed on the terminal device 300 as a sentence.

言い換えれば、対話装置200は、ユーザに対する質問文を表示させ、質問文に対する回答を含む発話文の入力を受け付けると、回答と、回答と関連する関連情報と、を含む応答文(相槌文)を生成し、発話文と対応付けて表示させる。以下の説明では、応答文(相槌文)を示す情報を応答情報と表現する場合がある。 In other words, the dialogue device 200 displays a question sentence for the user, and when receiving an input of an utterance sentence including an answer to the question sentence, a response sentence (backhand sentence) including the answer and related information related to the answer is displayed. It is generated and displayed in correspondence with the utterance sentence. In the following description, information indicating a response sentence (backhand sentence) may be expressed as response information.

したがって、本実施形態によれば、対話装置200から出力される相槌文は、回答の属性に応じて異なるものとなり、ユーザの回答に対して、変化に富んだ相槌文を出力することができる。 Therefore, according to the present embodiment, the backtracking sentence output from the interactive device 200 differs according to the attribute of the answer, and a wide variety of backtracking sentences can be output in response to the user's answer.

また、本実施形態によれば、相槌文に、回答と、回答の属性に基づき選択された関連情報とを含めるため、ユーザに対し、対話装置200による回答の内容の理解の度合いを提示することができる。したがって、本実施形態では、ユーザに対し、対話装置200が回答を正しく理解しているか否かを確認させることができる。 Further, according to the present embodiment, since the reply and related information selected based on the attributes of the reply are included in the backtracking sentence, the degree of understanding of the contents of the reply by the interactive device 200 can be presented to the user. can be done. Therefore, in this embodiment, it is possible to allow the user to confirm whether the interactive device 200 correctly understands the answer.

これらのことから、本実施形態によれば、ユーザとの自然な対話を継続させることに貢献できる。 For these reasons, according to the present embodiment, it is possible to contribute to the continuation of natural dialogue with the user.

以下に、本実施形態の対話システム100について、さらに説明する。図2は、対話システムのシステム構成の一例を説明する図である。 The dialogue system 100 of this embodiment will be further described below. FIG. 2 is a diagram illustrating an example of the system configuration of the dialogue system.

本実施形態の対話システム100の対話装置200は、対話処理部210、固有表現抽出学習部220、モデル記憶部230、テーブル記憶部240を有する。 The dialogue device 200 of the dialogue system 100 of this embodiment has a dialogue processing section 210 , a named entity extraction learning section 220 , a model storage section 230 and a table storage section 240 .

また、本実施形態の対話装置200は、端末装置300以外に、例えば、情報源400と、固有表現タグ付きコーパス500と、ネットワークを介して接続される。 In addition to the terminal device 300, the dialogue device 200 of the present embodiment is also connected to, for example, an information source 400 and a named entity tagged corpus 500 via a network.

情報源400は、例えば、ネットワーク上に構築されたデータベース群であり、様々な情報が格納されている。情報源400は、対話処理部210により参照される。 The information source 400 is, for example, a group of databases constructed on a network and stores various information. The information source 400 is referenced by the interactive processor 210 .

固有表現タグ付きコーパス500は、人名、場所、組織名、製品名等の固有名詞に対して、その範囲を示す構造が予めメタデータとして付与されている文書集合である。 The named entity-tagged corpus 500 is a set of documents in which a structure indicating the range of proper nouns such as names of people, places, organizations, and products is given in advance as metadata.

尚、図2の例では、情報源400と固有表現タグ付きコーパス500は、対話システム100の外部に設けられるものとしたが、これに限定されない。情報源400と固有表現タグ付きコーパス500は、対話システム100に含まれていても良い。また、情報源400と固有表現タグ付きコーパス500は、それぞれが対話装置200に設けられていても良い。 In the example of FIG. 2, the information source 400 and the named entity tagged corpus 500 are provided outside the dialogue system 100, but the present invention is not limited to this. Information source 400 and named entity tagged corpus 500 may be included in dialogue system 100 . Also, the information source 400 and the named entity tagged corpus 500 may each be provided in the dialogue device 200 .

本実施形態の対話処理部210は、端末装置300のユーザとの対話を実現するための対話処理を実行する。具体的には、対話処理部210は、テーブル記憶部240が保持しているスロットテーブル241を参照して、質問情報を生成する。 The interaction processing unit 210 of this embodiment executes interaction processing for realizing interaction with the user of the terminal device 300 . Specifically, the dialogue processing unit 210 refers to the slot table 241 held by the table storage unit 240 to generate question information.

また、本実施形態の対話処理部210は、モデル記憶部230が保持している固有表現抽出モデル231に、回答に関連する関連情報を入力して得られた結果に基づき、関連情報の中から、回答の属性を示す関連情報を選択し、応答情報を生成する。対話処理部210の詳細は後述する。 Further, the dialogue processing unit 210 of this embodiment, based on the result obtained by inputting the related information related to the answer to the named entity extraction model 231 held in the model storage unit 230, , selects relevant information that indicates the attributes of the answer and generates response information. Details of the interactive processing unit 210 will be described later.

固有表現抽出学習部220は、対話処理部210による対話処理を実行する前の事前処理として、固有表現タグ付きコーパス500を用いて固有表現抽出モデル231を生成し、モデル記憶部230に格納する。固有表現抽出モデル231は、対話処理部210による応答情報の生成の際に用いられる。 The named entity extraction learning unit 220 generates a named entity extraction model 231 using the named entity tagged corpus 500 and stores it in the model storage unit 230 as pre-processing before executing the dialogue processing by the dialogue processing unit 210 . The named entity extraction model 231 is used when the dialogue processing unit 210 generates response information.

本実施形態の固有表現抽出学習部220は、固有表現タグ付きコーパス500に含まれる文脈情報のみの学習によって、固有表現抽出モデル231を生成する。 The named entity extraction learning unit 220 of this embodiment generates the named entity extraction model 231 by learning only the context information included in the named entity tagged corpus 500 .

本実施形態の固有表現抽出モデル231は、関連情報が入力されると、関連情報の文脈に基づき、関連情報が回答の属性を示す確率を示すスコアを出力する。固有表現抽出学習部220の処理の詳細は後述する。 When related information is input, the named entity extraction model 231 of this embodiment outputs a score indicating the probability that the related information indicates the attribute of the answer based on the context of the related information. The details of the processing of the named entity extraction learning unit 220 will be described later.

モデル記憶部230は、固有表現抽出モデル231を保持するための記憶領域である。テーブル記憶部240は、対話処理部210により参照されるスロットテーブル241を保持するための記憶領域である。 The model storage unit 230 is a storage area for holding named entity extraction models 231 . The table storage unit 240 is a storage area for holding the slot table 241 referenced by the interactive processing unit 210 .

次に、図3を参照して、本実施形態の対話装置200のハードウェア構成について説明する。図3は、対話装置のハードウェア構成の一例を示す図である。 Next, the hardware configuration of the interactive device 200 of this embodiment will be described with reference to FIG. FIG. 3 is a diagram showing an example of the hardware configuration of the interactive device.

本実施形態の対話装置200は、それぞれバスBで相互に接続されている入力装置21、出力装置22、ドライブ装置23、補助記憶装置24、メモリ装置25、演算処理装置26及びインターフェース装置27を含む情報処理装置である。 The interactive device 200 of this embodiment includes an input device 21, an output device 22, a drive device 23, an auxiliary storage device 24, a memory device 25, an arithmetic processing device 26, and an interface device 27, which are connected to each other via a bus B. It is an information processing device.

入力装置21は、各種の情報の入力を行うための装置であり、例えばキーボードやポインティングデバイス等により実現される。出力装置22は、各種の情報の出力を行うためものであり、例えばディスプレイ等により実現される。インターフェース装置27は、LANカード等を含み、ネットワークに接続する為に用いられる。 The input device 21 is a device for inputting various kinds of information, and is realized by, for example, a keyboard or pointing device. The output device 22 is for outputting various kinds of information, and is realized by, for example, a display. The interface device 27 includes a LAN card and the like, and is used for connecting to a network.

本実施形態の対話処理部210、固有表現抽出学習部220を実現する対話プログラムは、対話装置200を制御する各種プログラムの少なくとも一部である。対話プログラムは例えば記憶媒体28の配布やネットワークからのダウンロード等によって提供される。対話プログラムを記録した記憶媒体28は、CD-ROM、フレキシブルディスク、光磁気ディスク等の様に情報を光学的、電気的或いは磁気的に記録する記憶媒体、ROM、フラッシュメモリ等の様に情報を電気的に記録する半導体メモリ等、様々なタイプの記憶媒体を用いることができる。 The dialogue program that implements the dialogue processing unit 210 and the named entity extraction learning unit 220 of this embodiment is at least part of various programs that control the dialogue device 200 . The interactive program is provided, for example, by distribution on the storage medium 28, download from a network, or the like. The storage medium 28 in which the dialog program is recorded is a storage medium for optically, electrically or magnetically recording information such as a CD-ROM, a flexible disk, a magneto-optical disk, etc., or a storage medium for storing information such as a ROM, a flash memory, etc. Various types of storage media can be used, such as semiconductor memories that record electrically.

また、対話プログラムは、対話プログラムを記録した記憶媒体28がドライブ装置23にセットされると、記憶媒体28からドライブ装置23を介して補助記憶装置24にインストールされる。ネットワークからダウンロードされた対話プログラムは、インターフェース装置27を介して補助記憶装置24にインストールされる。 Further, the dialogue program is installed in the auxiliary storage device 24 from the storage medium 28 via the drive device 23 when the storage medium 28 recording the dialogue program is set in the drive device 23 . A dialog program downloaded from the network is installed in the auxiliary storage device 24 via the interface device 27 .

補助記憶装置24は、インストールされた対話プログラムを格納すると共に、上述した固有表現抽出モデル231やスロットテーブル241等の必要なファイル、データ等を格納する。メモリ装置25は、対話装置200の起動時に補助記憶装置24から対話プログラムを読み出して格納する。そして、演算処理装置26はメモリ装置25に格納された対話プログラムに従って、後述するような各種処理を実現している。 The auxiliary storage device 24 stores the installed dialogue program, as well as necessary files and data such as the named entity extraction model 231 and the slot table 241 described above. The memory device 25 reads and stores the dialogue program from the auxiliary storage device 24 when the dialogue device 200 is activated. The arithmetic processing unit 26 implements various processes described later in accordance with the dialogue program stored in the memory unit 25 .

次に、図4を参照して、本実施形態のスロットテーブル241について説明する。図4は、テーブル記憶部に保持されたスロットテーブルの一例を示す図である。 Next, the slot table 241 of this embodiment will be described with reference to FIG. FIG. 4 is a diagram showing an example of a slot table held in a table storage unit.

本実施形態のスロットテーブル241は、対話システム100毎に予め用意されて、テーブル記憶部240に保持されている。 The slot table 241 of this embodiment is prepared in advance for each interactive system 100 and held in the table storage unit 240 .

本実施形態のスロットテーブル241は、情報の項目として、スロット名と、タイプと、スロット値とを有する。 The slot table 241 of this embodiment has slot names, types, and slot values as information items.

項目「スロット名」の値は、対話装置200から端末装置300に送信される質問情報に含まれる項目の名称を示す。言い換えれば、項目「スロット名」の値は、端末装置300に表示される質問文に含まれる項目であり、端末装置300のユーザに値を入力させる項目である。 The value of the item “slot name” indicates the name of the item included in the question information transmitted from the interactive device 200 to the terminal device 300 . In other words, the value of the item “slot name” is an item included in the question text displayed on the terminal device 300, and is an item for the user of the terminal device 300 to input a value.

項目「タイプ」の値は、対応するスロット名の属性を示す。言い換えれば、項目「タイプ」の値は、質問文に含まれる項目の属性(発話文に含まれる回答の属性)を示す。 The value of the item "type" indicates the attribute of the corresponding slot name. In other words, the value of the item "type" indicates the attribute of the item included in the question (attribute of the answer included in the utterance).

項目「スロット値」の値は、発話情報から抽出された、質問情報に含まれる項目の値を示す。言い換えれば、項目「スロット値」の値は、質問文に対する発話文に含まれる回答である。 The value of the item "slot value" indicates the value of the item included in the question information extracted from the utterance information. In other words, the value of the item "slot value" is the answer included in the utterance sentence to the question sentence.

図4の例では、スロット名「行き先」と、タイプ「場所」とが対応付けられている。したがって、質問文に含まれる項目が「行き先」である場合、質問文の回答となるスロット値「シカゴ」の属性は「場所」であり、スロット値「シカゴ」は、場所を示す文字列として扱われる。 In the example of FIG. 4, the slot name "destination" is associated with the type "place". Therefore, if the item included in the question text is "destination", the attribute of the slot value "Chicago" that is the answer to the question text is "location", and the slot value "Chicago" is treated as a character string indicating the location. will be

また、図4の例では、スロット名「期間」と、タイプ「日付」とが対応付けられている。したがって、質問文に含まれる項目が「期間」である場合、質問文の回答となるスロット値は、日付を示す文字列として扱われる。 Further, in the example of FIG. 4, the slot name "period" is associated with the type "date". Therefore, when the item included in the question is "period", the slot value that is the answer to the question is treated as a character string indicating the date.

次に、図5を参照して、本実施形態の対話処理部210の機能について説明する。図5は、対話処理部の機能について説明する図である。 Next, with reference to FIG. 5, functions of the interactive processing unit 210 of this embodiment will be described. FIG. 5 is a diagram for explaining functions of the interactive processing unit.

本実施形態の対話処理部210は、質問文生成部211、発話受付部212、回答抽出部213、回答登録部214、相槌文生成部215、出力部216を有する。 The dialogue processing unit 210 of this embodiment has a question generation unit 211 , an utterance reception unit 212 , an answer extraction unit 213 , an answer registration unit 214 , a backtrack generation unit 215 and an output unit 216 .

質問文生成部211は、端末装置300から、対話の開始の指示を受け付けると、スロットテーブル241の項目「スロット値」の値を初期化し、項目「スロット名」の値を、回答させる項目として含む質問文を生成する。言い換えれば、質問文生成部211は、スロットテーブル241の項目「スロット名」の値を含む質問情報を生成する。 When receiving an instruction to start a dialogue from the terminal device 300, the question text generation unit 211 initializes the value of the item "slot value" in the slot table 241, and includes the value of the item "slot name" as an item to be answered. Generate a question sentence. In other words, the question sentence generation unit 211 generates question information including the value of the item “slot name” of the slot table 241 .

発話受付部212は、端末装置300から受信した発話情報の入力を受け付ける。回答抽出部213は、発話受付部212が受け付けた発話情報から、質問に対する回答を抽出する。言い換えれば、回答抽出部213は、発話情報が示す発話文から、スロット値を抽出する。具体的には、回答抽出部213は、発話情報を解析し、発話情報に含まれる単語から、スロット値と対応付けられたタイプ(属性)の単語を、スロット値として抽出する。 The speech accepting unit 212 accepts input of speech information received from the terminal device 300 . The answer extractor 213 extracts an answer to the question from the speech information received by the speech receiver 212 . In other words, the answer extraction unit 213 extracts the slot value from the utterance sentence indicated by the utterance information. Specifically, the answer extraction unit 213 analyzes the utterance information and extracts words of the type (attribute) associated with the slot value from the words included in the utterance information as slot values.

回答登録部214は、回答抽出部213が抽出したスロット値をスロットテーブル241に格納する。 The answer registration unit 214 stores the slot values extracted by the answer extraction unit 213 in the slot table 241 .

相槌文生成部215は、発話受付部212が受け付けた発話情報と、情報源400とから、回答に対する相槌文を示す応答情報を生成する。相槌文生成部215の詳細は後述する。 The backtracking sentence generation unit 215 generates response information indicating a backtracking sentence for the answer from the speech information received by the speech reception unit 212 and the information source 400 . Details of the backtracking sentence generation unit 215 will be described later.

出力部216は、質問文生成部211が生成した質問情報や、相槌文生成部215が生成した応答情報を端末装置300に出力する。 The output unit 216 outputs the question information generated by the question generation unit 211 and the response information generated by the backtrack generation unit 215 to the terminal device 300 .

以下に、相槌文生成部215について説明する。本実施形態の相槌文生成部215は、関連情報取得部251、スコア取得部252、相槌文選択部253を有する。 The backtracking sentence generation unit 215 will be described below. The backtrack generation unit 215 of this embodiment has a related information acquisition unit 251 , a score acquisition unit 252 , and a backtrack selection unit 253 .

関連情報取得部251は、発話情報に含まれる回答と関連する関連情報を取得する。尚、本実施形態の関連情報とは、回答と関連する様々な情報を含む。 The related information acquisition unit 251 acquires related information related to the answer included in the utterance information. In addition, the related information of this embodiment includes various information related to the answer.

具体的には、関連情報取得部251は、回答抽出部213により抽出されたスロット値(回答)により、情報源400を検索する。そして、関連情報取得部251は、検索結果として抽出された情報を、回答と関連する関連情報として、関連情報テーブル254に保持する。つまり、本実施形態の関連情報テーブル254は、応答情報(相槌文)を生成する度に作成される。 Specifically, the related information acquisition unit 251 searches the information source 400 based on the slot value (answer) extracted by the answer extraction unit 213 . Then, the related information acquisition unit 251 holds the information extracted as the search result in the related information table 254 as related information related to the answer. In other words, the related information table 254 of the present embodiment is created each time response information (return sentence) is generated.

本実施形態では、関連情報テーブル254に格納された関連情報は、相槌文の一部となり得る相槌候補となる。また、関連情報テーブル254に格納される関連情報には、スロット値(回答)と同一の文字列が含まれる。以下の説明では、関連情報に含まれる、スロット値と同一の文字列を、関連情報における同一文字列と表現する場合がある。関連情報テーブル254の詳細は後述する。 In this embodiment, the related information stored in the related information table 254 is a backtrack candidate that can be part of a backtrack sentence. Also, the related information stored in the related information table 254 includes the same character string as the slot value (answer). In the following description, the same character string as the slot value included in the related information may be expressed as the same character string in the related information. Details of the related information table 254 will be described later.

スコア取得部252は、関連情報テーブル254に格納された関連情報を固有表現抽出モデル231に適用した結果と、スロット値のタイプとに基づき、関連情報と対応付けられるスコアを取得する。 The score acquisition unit 252 acquires a score associated with the related information based on the result of applying the related information stored in the related information table 254 to the named entity extraction model 231 and the type of the slot value.

スコア取得部252が取得するスコアとは、関連情報における同一文字列が、スロット値と同じタイプの文字列として扱われている確率を示す値である。スコア取得部252によって、関連情報毎に取得されたスコアは、関連情報テーブル254において、関連情報と対応付けられて保持される。 The score acquired by the score acquisition unit 252 is a value that indicates the probability that the same character string in the related information is treated as a character string of the same type as the slot value. The score acquired for each piece of related information by the score acquisition unit 252 is held in association with the related information in the related information table 254 .

相槌文選択部253は、スコア取得部252によって取得されたスコアが最も大きい関連情報を、相槌文に含める関連情報に選択し、相槌文を示す応答情報を生成する。 The backtracking sentence selection unit 253 selects the related information with the highest score acquired by the score acquisition unit 252 as the related information to be included in the backtracking sentence, and generates response information indicating the backtracking sentence.

以下に、図6を参照して、本実施形態の関連情報テーブル254について説明する。図6は、関連情報テーブルの一例を示す図である。 The related information table 254 of this embodiment will be described below with reference to FIG. FIG. 6 is a diagram showing an example of a related information table.

本実施形態の関連情報テーブル254では、関連情報と、スコアとが対応付けられている。以下の説明では、関連情報テーブル254において、関連情報とスコアとを対応付けた情報をスコア付き関連情報と呼ぶ。 In the related information table 254 of this embodiment, related information and scores are associated with each other. In the following description, in the related information table 254, information in which related information is associated with a score will be referred to as scored related information.

図6の例では、質問文に含まれるスロット名(項目)が「行き先」であり、発話文に含まれるスロット値(回答)が「シカゴ」であり、スロット名と対応付けられたタイプ(属性)が「場所」である場合に、生成された関連情報テーブル254の例を示している。 In the example of FIG. 6, the slot name (item) included in the question sentence is "destination", the slot value (answer) included in the utterance sentence is "Chicago", and the type (attribute) associated with the slot name is ) is “location”, an example of the related information table 254 is shown.

関連情報テーブル254において、スコア付き関連情報61では、「シカゴの曲最高」という関連情報に対して、スコア「0.07」が対応付けられている。 In the related information table 254, in the scored related information 61, the score "0.07" is associated with the related information "the best song in Chicago".

つまり、スコア付き関連情報61に含まれる関連情報では、この関連情報における同一文字列「シカゴ」が、スロット値「シカゴ」と同じ属性である「場所」として扱われている確率が、7%であることを示している。 That is, in the related information included in the scored related information 61, the probability that the same character string "Chicago" in this related information is treated as the same attribute "location" as the slot value "Chicago" is 7%. indicates that there is

同様に、スコア付き関連情報62では、関連情報に対して、スコア「0.75」が対応付けられており、スコア付き関連情報63では、関連情報に対して、スコア「0.91」が対応付けられている。 Similarly, in the scored related information 62, the score "0.75" is associated with the related information, and in the scored related information 63, the score "0.91" is associated with the related information. attached.

したがって、関連情報テーブル254に格納された関連情報のうち、関連情報「シカゴは、ボブ・○○さんの出身地で有名」は、同一文字列「シカゴ」を、回答の属性である「場所」を示す文字列として扱っている確率が最も高いことがわかる。 Therefore, among the related information stored in the related information table 254, the related information ``Chicago is famous for being the birthplace of Mr. It can be seen that the probability that it is treated as a character string indicating is the highest.

次に、図7を参照して、本実施形態の固有表現抽出学習部220の処理について説明する。図7は、固有表現抽出学習部の処理を説明するフローチャートである。図7の処理は、対話処理部210による処理の事前処理として行われる。 Next, the processing of the named entity extraction learning unit 220 of this embodiment will be described with reference to FIG. FIG. 7 is a flowchart for explaining the processing of the named entity extraction learning unit. The processing in FIG. 7 is performed as pre-processing for the processing by the interactive processing unit 210 .

本実施形態の固有表現抽出学習部220は、固有表現タグ付きコーパス500から、文脈情報を学習し、固有表現抽出モデル231を生成し(ステップS701)、モデル記憶部230に、固有表現抽出モデル231を格納して(ステップS702)、処理を終了する。 The named entity extraction learning unit 220 of the present embodiment learns context information from the named entity tagged corpus 500, generates a named entity extraction model 231 (step S701), and stores the named entity extraction model 231 in the model storage unit 230. is stored (step S702), and the process ends.

ここで、固有表現抽出モデル231の生成について説明する。 Here, generation of the named entity extraction model 231 will be described.

本実施形態の固有表現抽出学習部220は、予めタグが付与された文書集合である固有表現タグ付きコーパス500に含まれる文書データの文脈情報を学習データに用いた機械学習によって、固有表現抽出モデル231を生成する。 The named entity extraction learning unit 220 of the present embodiment generates named entity extraction models by machine learning using context information of document data included in the named entity tagged corpus 500, which is a collection of documents to which tags have been added in advance, as learning data. 231 is generated.

文脈情報とは、各単語がどのような文脈で使用されたかを示す情報であり、単語前後の任意範囲の文字列や、単語間の共起関係等を示す情報である。 The context information is information indicating in what context each word is used, and is information indicating a character string within an arbitrary range before and after the word, a co-occurrence relationship between words, and the like.

以下に、文脈情報について具体的に説明する。例えば、固有表現タグ付きコーパス500に含まれる学習データとして、「今日は<地名>川崎</地名>に行く」という文書データと、「<人名>川崎</人名>君から本を借りた」という文書データが存在したとする。 The context information will be specifically described below. For example, as learning data included in the named entity tagged corpus 500, document data "I'm going to <place name>Kawasaki</place name> today" and "I borrowed a book from <person's name>Kawasaki</person's name>". Suppose there exists document data of

この学習データの文脈情報は、「「に行く」の前に出る語は地名になりやすい」、「「君」の前に出る語は人名になりやすい」である。 The contextual information of this learning data is "words that appear before 'niyuku' are likely to be place names" and "words that appear before 'you' are likely to be person names."

本実施形態の固有表現抽出学習部220は、このような文脈情報のみを特徴量として用いて学習することで、固有表現抽出モデル231を生成する。 The named entity extraction learning unit 220 of the present embodiment generates the named entity extraction model 231 by performing learning using only such context information as feature amounts.

本実施形態では、このようにして固有表現抽出モデル231を生成することで、固有表現抽出モデル231に関連情報を適用した場合に、対象となる語(回答)が、例えば、地名である確率、人名である確率等が、スコアとして出力させることができる。 In the present embodiment, by generating the named entity extraction model 231 in this way, when the related information is applied to the named entity extraction model 231, the target word (answer) is, for example, a place name. The probability of being a person's name can be output as a score.

次に、図8乃至図10を参照して、本実施形態の対話処理部210の処理を説明する。図8は、対話処理部の処理を説明する第一のフローチャートである。 Next, the processing of the interactive processing unit 210 of this embodiment will be described with reference to FIGS. 8 to 10. FIG. FIG. 8 is a first flowchart for explaining the processing of the dialogue processing section.

図8では、端末装置300のユーザとの対話を開始する際の対話処理部210の初期動作を示している。 FIG. 8 shows the initial operation of the interaction processing unit 210 when interaction with the user of the terminal device 300 is started.

本実施形態の対話処理部210は、端末装置300から、対話の開始指示を受け付けると、質問文生成部211により、スロットテーブル241スロット値を初期化する(ステップS801)。具体的には、質問文生成部211は、スロットテーブル241の項目「スロット値」の値を空にする。 When receiving a dialogue start instruction from the terminal device 300, the dialogue processing unit 210 of the present embodiment initializes the slot values of the slot table 241 by the question sentence generation unit 211 (step S801). Specifically, the question sentence generating unit 211 empties the value of the item “slot value” in the slot table 241 .

続いて、対話処理部210は、質問文生成部211は、スロットテーブル241を参照し、値が空となっているスロット値と対応するスロット名を含む質問文を生成する(ステップS802)。 Subsequently, the dialogue processing unit 210, the question text generating unit 211 refers to the slot table 241, and generates a question text including the slot value corresponding to the empty slot value (step S802).

続いて、対話処理部210は、出力部216により、質問文を出力し、端末装置300に表示させ(ステップS803)、初期動作を終了する。 Subsequently, the dialogue processing unit 210 outputs the question sentence by the output unit 216, displays it on the terminal device 300 (step S803), and ends the initial operation.

図9は、対話処理部の処理を説明する第二のフローチャートである。図9では、ユーザの回答に対して応答する処理を示している。 FIG. 9 is a second flowchart for explaining the processing of the dialogue processing section. FIG. 9 shows the process of responding to the user's answer.

本実施形態の対話処理部210は、発話受付部212により、発話情報の入力を受け付けると(ステップS901)、回答抽出部213により、発話情報から、スロット値(回答)を抽出する(ステップS902)。 In the dialogue processing unit 210 of the present embodiment, when input of speech information is received by the speech reception unit 212 (step S901), the answer extraction unit 213 extracts slot values (answers) from the speech information (step S902). .

続いて、対話処理部210は、回答登録部214により、発話情報からスロット値が抽出されているか否かを判定する(ステップS903)。言い換えれば、回答登録部214は、発話情報に、テーブル記憶部240のスロットテーブル241に登録される対象となる回答が含まれるか否かを判定している。 Subsequently, the dialogue processing unit 210 determines whether or not the slot value is extracted from the utterance information by the answer registration unit 214 (step S903). In other words, the answer registration unit 214 determines whether or not the utterance information includes an answer to be registered in the slot table 241 of the table storage unit 240 .

ステップS903において、スロット値が抽出されていない場合、後述するステップS906へ進む。 If the slot value is not extracted in step S903, the process proceeds to step S906, which will be described later.

尚、スロット値が抽出されていない場合とは、例えば、質問文について、ユーザが回答を入力しなかった場合である。具体的には、例えば、質問文が「同行者は誰ですか?」であった場合に、発話文が「まだ決まっていない」という内容であった場合等である。 Note that the case where the slot value has not been extracted is, for example, the case where the user has not entered an answer to the question. Specifically, for example, when the question is "Who is your companion?"

ステップS903において、スロット値が抽出されていた場合、対話処理部210は、回答登録部214により、抽出されたスロット値をスロットテーブル241に登録する(ステップS904)。 If slot values have been extracted in step S903, the interactive processing unit 210 causes the answer registration unit 214 to register the extracted slot values in the slot table 241 (step S904).

続いて、対話処理部210は、相槌文生成部215により、相槌を生成する(ステップS905)。ステップS905の詳細は後述する。 Subsequently, the dialogue processing unit 210 generates a backtrack by the backtracking sentence generation unit 215 (step S905). Details of step S905 will be described later.

続いて、対話処理部210は、質問文生成部211により、値が空となっているスロット値と対応するスロット名を含む質問文を生成する(ステップS906)。 Subsequently, the dialogue processing unit 210 causes the question text generation unit 211 to generate a question text including the slot name corresponding to the slot value with an empty value (step S906).

続いて、対話処理部210は、出力部216により、生成した相槌文と質問文とを、端末装置300へ出力し(ステップS907)、処理を終了する。 Subsequently, the dialogue processing unit 210 outputs the generated backtracking sentence and question sentence to the terminal device 300 by the output unit 216 (step S907), and ends the process.

尚、図9の例では、回答に対する相槌文と次の質問文のそれぞれを生成してから、相槌文と次の質問文とを共に出力するものとしたが、これに限定されない。 Incidentally, in the example of FIG. 9, the backtracking sentence for the answer and the next question sentence are respectively generated, and then both the backtracking sentence and the next question sentence are output, but the present invention is not limited to this.

相槌文と次の質問文とは、それぞれが別々に出力されても良い。具体的には、例えば、相槌文が生成された後に、相槌文のみが端末装置300に出力され、相槌文が出力された後に、次の質問文が生成されて端末装置300に出力されても良い。 The back-and-forth sentence and the next question sentence may be output separately. Specifically, for example, after the backtracking sentence is generated, only the backtracking sentence is output to the terminal device 300, and after the backtracking sentence is output, the next question sentence is generated and output to the terminal device 300. good.

この場合、端末装置300では、画面301に示すように(図1参照)、相槌文H1と次の質問文Q2とが、一つの吹き出しの中に表示されなくても良く、相槌文H1と質問文Q2とが、それぞれ独立した吹き出しの中に表示されても良い。 In this case, on the terminal device 300, as shown in the screen 301 (see FIG. 1), the backtracking sentence H1 and the next question sentence Q2 do not have to be displayed in one balloon. Sentence Q2 may be displayed in separate balloons.

また、本実施形態では、相槌文と質問文とを続けて出力させるものとしたが、これに限定されない。本実施形態では、例えば、相槌文を出力した後に、端末装置300のユーザから、回答の内容を確認したことを示す返答を受けてから、次の質問文を生成して出力しても良い。 Also, in the present embodiment, the backtracking sentence and the question sentence are output in succession, but the present invention is not limited to this. In the present embodiment, for example, after outputting the backtracking sentence, after receiving a response from the user of the terminal device 300 indicating that the content of the response has been confirmed, the next question sentence may be generated and output.

図10は、対話処理部の処理を説明する第三のフローチャートである。図10では、ステップS915における相槌文生成部215の処理の詳細を示している。 FIG. 10 is a third flowchart for explaining the processing of the dialogue processing section. FIG. 10 shows the details of the processing of the backtracking sentence generation unit 215 in step S915.

本実施形態の相槌文生成部215は、関連情報取得部251により、回答の関連情報を取得する(ステップS1001)。具体的には、相槌文生成部215は、スロットテーブル241に登録されたスロット値を検索キーとして、情報源400の検索を行い、検索結果を関連情報群として取得し、関連情報テーブル254に各関連情報を格納する。 The backtracking sentence generation unit 215 of the present embodiment acquires the related information of the answer by the related information acquisition unit 251 (step S1001). Specifically, the backtracking sentence generation unit 215 searches the information source 400 using the slot value registered in the slot table 241 as a search key, acquires the search result as a group of related information, and saves each of them in the related information table 254 . Store related information.

続いて、相槌文生成部215は、スコア取得部252により、関連情報テーブル254に格納された各関連情報に固有表現抽出モデル231を適用し、関連情報毎のスコアを取得する(ステップS1002)。 Subsequently, the backtracking sentence generation unit 215 applies the named entity extraction model 231 to each related information stored in the related information table 254 by the score acquisition unit 252, and acquires a score for each related information (step S1002).

以下に、スコア取得部252による関連情報毎のスコアの取得について説明する。以下では、図6に示す関連情報テーブル254に格納された各関連情報のスコアを取得する場合について説明する。 Acquisition of a score for each piece of related information by the score acquisition unit 252 will be described below. Below, the case of acquiring the score of each related information stored in the related information table 254 shown in FIG. 6 will be described.

図6の関連情報テーブル254では、抽出されたスロット値「シカゴ」を検索キーとして取得した関連情報「シカゴの曲最高」、「シカゴと言えば、ボブ・○○さん」、「シカゴは、ボブ・○○さんの出身地で有名」が格納されている。 In the related information table 254 of FIG. 6, related information acquired using the extracted slot value "Chicago" as a search key is "the best songs in Chicago", "Chicago is synonymous with Bob XX", "Chicago is Bob・Famous for Mr. ○○'s hometown" is stored.

関連情報「シカゴの曲最高」を固有表現抽出モデル231の入力とした場合、固有表現抽出モデル231は、同一文字列「シカゴ」が人名として扱われている確率を示すスコアと、同一文字列「シカゴ」が場所として扱われている確率を示すスコアと、を出力する。 When the related information "Chicago's best song" is input to the named entity extraction model 231, the named entity extraction model 231 obtains a score indicating the probability that the same character string "Chicago" is treated as a person's name, and the same character string " and a score indicating the probability that "Chicago" is treated as a place.

言い換えれば、固有表現抽出モデル231は、関連情報「シカゴの曲最高」において、同一文字列「シカゴ」の属性が「人名」である確率を示すスコアと、同一文字列「シカゴ」の属性が「場所」である確率を示すスコアとを出力する。 In other words, the named entity extraction model 231 obtains a score indicating the probability that the attribute of the same character string "Chicago" is "person's name" and the attribute of the same character string "Chicago" is " It outputs a score that indicates the probability of being "location".

ここでは、同一文字列「シカゴ」の属性が「人名」である確率を示すスコアが0.82であり、同一文字列「シカゴ」の属性が「場所」である確率を示すスコアが0.07であったとする。 Here, the score indicating the probability that the same character string "Chicago" has the attribute "person's name" is 0.82, and the score indicating the probability that the same character string "Chicago" has the attribute "location" is 0.07. Suppose it was

また、固有表現抽出モデル231は、関連情報「シカゴと言えば、ボブ・○○さん」が入力されると、同一文字列「シカゴ」の属性が「人名」である確率を示すスコア0.32と、同一文字列「シカゴ」の属性が「場所」である確率を示すスコア0.75を出力する。また、固有表現抽出モデル231は、文字列「ボブ・○○」の属性が「場所」である確率を示すスコア0.48を出力する。 In addition, the named entity extraction model 231 has a score of 0.32 indicating the probability that the attribute of the same character string "Chicago" is "person's name" when the related information "Chicago, Bob Mr. ○○" is input. , a score of 0.75 indicating the probability that the attribute of the same character string "Chicago" is "location" is output. Also, the named entity extraction model 231 outputs a score of 0.48 indicating the probability that the attribute of the character string "Bob XX" is "place".

また、固有表現抽出モデル231は、関連情報「シカゴと言えば、ボブ・○○さん」、「シカゴは、ボブ・○○さんの出身地で有名」が入力されると、同一文字列「シカゴ」の属性が「人名」である確率を示すスコア0.09と、同一文字列「シカゴ」の属性が「場所」である確率を示すスコア0.91を出力する。 Also, the named entity extraction model 231, when the related information "Chicago, Bob XX" and "Chicago is famous for being the birthplace of Bob XX" are input, the same character string "Chicago ' has the attribute "person's name", and the score 0.91 indicates the probability that the same character string "Chicago" has the attribute "location".

このように、本実施形態の固有表現抽出モデル231は、関連情報に含まれる単語について、ある属性の単語として扱われている確率を示すスコアを出力する。 In this way, the named entity extraction model 231 of this embodiment outputs a score indicating the probability that a word included in related information is treated as a word with a certain attribute.

本実施形態のスコア取得部252は、各関連情報について、同一文字列の属性毎のスコアが出力されると、各関連情報について、スロット値「シカゴ」の属性「場所」と対応するスコアを、関連情報に対応付けられるスコアとして取得する。 When the score for each attribute of the same character string is output for each piece of related information, the score acquisition unit 252 of the present embodiment calculates the score corresponding to the attribute “location” of the slot value “Chicago” for each piece of related information. Acquire as a score associated with related information.

具体的には、スコア取得部252は、関連情報「シカゴの曲最高」に対応付けられるスコアとして、同一文字列「シカゴ」の属性が「場所」である確率を示すスコア「0.07」を取得し、関連情報テーブル254に、関連情報「シカゴの曲最高」と対応付けて格納する。 Specifically, the score acquisition unit 252 sets the score “0.07” indicating the probability that the same character string “Chicago” has the attribute “place” as the score associated with the related information “Chicago's best song”. Acquired and stored in the related information table 254 in association with the related information "the best songs in Chicago".

また、スコア取得部252は、関連情報「シカゴと言えば、ボブ・○○さん」に対応付けられるスコアとして、同一文字列「シカゴ」の属性が「場所」である確率を示すスコア「0.75」を取得する。 In addition, the score acquisition unit 252 obtains a score “0. 75”.

尚、文字列「ボブ・○○」は、属性が「場所」であるが、文字列「ボブ・○○」が同一文字列ではないため、除外される。 It should be noted that the character string "Bob XX" has the attribute "place", but is excluded because the character string "Bob XX" is not the same character string.

同様に、スコア取得部252は、関連情報「シカゴは、ボブ・○○さんの出身地で有名」と対応付けられるスコアとして、同一文字列「シカゴ」の属性が「場所」である確率を示すスコア「0.91」を取得する。 Similarly, the score acquisition unit 252 indicates the probability that the attribute of the same character string "Chicago" is "location" as the score associated with the related information "Chicago is famous for being the hometown of Mr. Bob XX". Get a score of 0.91.

ステップS1002のスコア取得部252の処理に続いて、相槌文生成部215は、相槌文選択部253により、ステップS1002で取得されたスコアが最も大きい関連情報を選択する(ステップS1003)。つまり、本実施形態の相槌文選択部253は、関連情報取得部251により取得された複数の関連情報から、回答の属性を示す関連情報を抽出する抽出部の一例となる。 Following the processing of the score acquisition unit 252 in step S1002, the backpaste generation unit 215 selects the related information with the highest score acquired in step S1002 by the backpaste selection unit 253 (step S1003). That is, the backtracking sentence selection unit 253 of the present embodiment is an example of an extraction unit that extracts related information indicating attributes of answers from a plurality of pieces of related information acquired by the related information acquisition unit 251 .

ここでは、スコア0.91と対応付けられた関連情報「シカゴは、ボブ・○○さんの出身地で有名」が選択される。 Here, the related information "Chicago is famous for being the hometown of Mr. Bob XX" associated with the score of 0.91 is selected.

続いて、相槌文生成部215は、選択された関連情報を含む相槌文を生成し(ステップS1004)、処理を終了する。 Subsequently, the backtracking sentence generating unit 215 generates a backtracking sentence including the selected related information (step S1004), and ends the process.

本実施形態では、以上の処理により、ユーザの回答に対して、回答が意味しているカテゴリの関連情報を相槌文として提示することができる。このため、本実施形態によれば、ユーザに対して、ユーザの発話の意味をシステムが理解していることを示すことができ、対話における不自然さを軽減させることができる。 In this embodiment, with the above processing, it is possible to present related information of the category implied by the user's answer as a back-and-forth sentence. Therefore, according to this embodiment, it is possible to indicate to the user that the system understands the meaning of the user's utterance, and to reduce the unnaturalness of the dialogue.

開示の技術では、以下に記載する付記のような形態が考えられる。
(付記1)
コンピュータによる対話方法であって、前記コンピュータが、
ユーザの発話情報を取得し、
取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得し、
前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出し、
抽出した関連情報を出力する、対話方法。
(付記2)
前記関連情報を含む相槌文を示す応答情報を生成し、
前記応答情報を、前記発話情報と対応付けて出力する、付記1記載の対話方法。
(付記3)
文書集合に含まれる文脈情報を学習データとした固有表現抽出モデルを生成し、
前記複数の関連情報を前記固有表現抽出モデルの入力として、前記複数の関連情報毎に、関連情報が前記回答の属性を示す関連情報である確率を示すスコアを取得し、
前記スコアが最も大きい関連情報を、前記回答の属性を示す関連情報として抽出する、付記1又は2記載の対話方法。
(付記4)
前記関連情報は、前記回答を示す文字列と同様の文字列を含む、付記1乃至3の何れか一項に記載の対話方法。
(付記5)
コンピュータによる対話方法であって、前記コンピュータが、
ユーザに対する質問文を端末装置に表示させ、
前記質問文に対する回答を含む発話文の入力を受け付けて、前記回答を含み且つ前記回答と関連する関連情報を含む相槌文を前記発話文と対応付けて前記端末装置に表示させる、対話方法。
(付記6)
ユーザの発話情報を取得し、
取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得し、
前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出し、
抽出した関連情報を出力する、処理をコンピュータに実行させる対話プログラム。
(付記7)
ユーザの発話情報を取得する発話受付部と、
取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得する関連情報取得部と、
前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出する抽出部と、
抽出した関連情報を出力する出力部と、を有する情報処理装置。
The technology disclosed herein can take forms such as those described below.
(Appendix 1)
A computer-based method of interaction, wherein the computer comprises:
Get the user's utterance information,
when the acquired utterance information includes an answer to be registered in a storage unit, acquiring a plurality of related information related to the answer based on the utterance information;
extracting relevant information indicating an attribute of the answer from the plurality of relevant information;
An interactive method that outputs relevant extracted information.
(Appendix 2)
generating response information indicating a back-and-forth sentence containing the relevant information;
The interaction method according to appendix 1, wherein the response information is output in association with the utterance information.
(Appendix 3)
Generating a named entity extraction model using contextual information contained in a set of documents as learning data,
obtaining a score indicating a probability that the related information is related information indicating an attribute of the answer for each of the plurality of related information, using the plurality of related information as inputs for the named entity extraction model;
3. The interactive method according to appendix 1 or 2, wherein the relevant information with the highest score is extracted as the relevant information indicating the attribute of the answer.
(Appendix 4)
4. The dialogue method according to any one of Appendices 1 to 3, wherein the related information includes a character string similar to the character string indicating the answer.
(Appendix 5)
A computer-based method of interaction, wherein the computer comprises:
Display a question sentence for the user on the terminal device,
A dialogue method comprising: receiving an input of an utterance sentence containing an answer to the question sentence, and causing the terminal device to display an utterance sentence containing the answer and related information related to the answer in association with the utterance sentence.
(Appendix 6)
Get the user's utterance information,
when the acquired utterance information includes an answer to be registered in a storage unit, acquiring a plurality of related information related to the answer based on the utterance information;
extracting relevant information indicating an attribute of the answer from the plurality of relevant information;
An interactive program that causes a computer to execute a process that outputs relevant information that has been extracted.
(Appendix 7)
an utterance reception unit that acquires utterance information of a user;
a related information acquiring unit for acquiring a plurality of related information related to an answer based on the utterance information when the acquired utterance information includes an answer to be registered in a storage unit;
an extraction unit for extracting relevant information indicating attributes of the answer from among the plurality of relevant information;
and an output unit that outputs the extracted related information.

本発明は、具体的に開示された実施形態に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。 The invention is not limited to the specifically disclosed embodiments, and various modifications and changes are possible without departing from the scope of the claims.

100 対話システム
200 対話装置
210 対話処理部
211 質問文生成部
212 発話受付部
213 回答抽出部
214 回答登録部
215 相槌文生成部
216 出力部
220 固有表現抽出学習部
230 モデル記憶部
231 固有表現抽出モデル
240 テーブル記憶部
241 スロットテーブル
251 関連情報取得部
252 スコア取得部
253 相槌文選択部
300 端末装置
400 情報源
500 固有表現タグ付きコーパス


REFERENCE SIGNS LIST 100 dialogue system 200 dialogue device 210 dialogue processing unit 211 question generation unit 212 utterance reception unit 213 answer extraction unit 214 answer registration unit 215 backtrack generation unit 216 output unit 220 named entity extraction learning unit 230 model storage unit 231 named entity extraction model 240 Table storage unit 241 Slot table 251 Related information acquisition unit 252 Score acquisition unit 253 Return sentence selection unit 300 Terminal device 400 Information source
Corpus with 500 named entity tags


Claims (6)

コンピュータによる対話方法であって、前記コンピュータが、
ユーザの発話情報を取得し、
取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得し、
前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出し、
抽出した関連情報を出力する、対話方法。
A computer-based method of interaction, wherein the computer comprises:
Get the user's utterance information,
when the acquired utterance information includes an answer to be registered in a storage unit, acquiring a plurality of related information related to the answer based on the utterance information;
extracting relevant information indicating an attribute of the answer from the plurality of relevant information;
An interactive method that outputs relevant extracted information.
前記関連情報を含む相槌文を示す応答情報を生成し、
前記応答情報を、前記発話情報と対応付けて出力する、請求項1記載の対話方法。
generating response information indicating a back-and-forth sentence containing the relevant information;
2. The interaction method according to claim 1, wherein said response information is output in association with said utterance information.
文書集合に含まれる文脈情報を学習データとした固有表現抽出モデルを生成し、
前記複数の関連情報を前記固有表現抽出モデルの入力として、前記複数の関連情報毎に、関連情報が前記回答の属性を示す関連情報である確率を示すスコアを取得し、
前記スコアが最も大きい関連情報を、前記回答の属性を示す関連情報として抽出する、請求項1又は2記載の対話方法。
Generating a named entity extraction model using contextual information contained in a set of documents as learning data,
obtaining a score indicating a probability that the related information is related information indicating an attribute of the answer for each of the plurality of related information, using the plurality of related information as inputs for the named entity extraction model;
3. The dialogue method according to claim 1, wherein the relevant information with the highest score is extracted as the relevant information indicating the attribute of the answer.
コンピュータによる対話方法であって、前記コンピュータが、
ユーザに対する質問文を端末装置に表示させ、
前記質問文に対する回答を含む発話文の入力を受け付けて、前記回答と、前記回答に基づき取得された複数種類の属性を示す関連情報のうちの前記回答の属性を示す関連情報と、を含む相槌文を前記発話文と対応付けて前記端末装置に表示させる、対話方法。
A computer-based method of interaction, wherein the computer comprises:
Display a question sentence for the user on the terminal device,
Receiving an input of an utterance sentence including an answer to the question sentence, and backtracking including the answer and related information indicating an attribute of the answer among related information indicating a plurality of types of attributes acquired based on the answer. A dialog method, wherein a sentence is associated with the uttered sentence and displayed on the terminal device.
ユーザの発話情報を取得し、
取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得し、
前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出し、
抽出した関連情報を出力する、処理をコンピュータに実行させる対話プログラム。
Get the user's utterance information,
when the acquired utterance information includes an answer to be registered in a storage unit, acquiring a plurality of related information related to the answer based on the utterance information;
extracting relevant information indicating an attribute of the answer from the plurality of relevant information;
An interactive program that causes a computer to execute a process that outputs relevant information that has been extracted.
ユーザの発話情報を取得する発話受付部と、
取得した発話情報が記憶部に登録される対象となる回答を含む場合に、前記発話情報を基にして、回答に関する複数の関連情報を取得する関連情報取得部と、
前記複数の関連情報の中から、前記回答の属性を示す関連情報を抽出する抽出部と、
抽出した関連情報を出力する出力部と、を有する情報処理装置。
an utterance reception unit that acquires utterance information of a user;
a related information acquiring unit for acquiring a plurality of related information related to an answer based on the utterance information when the acquired utterance information includes an answer to be registered in a storage unit;
an extraction unit for extracting relevant information indicating attributes of the answer from among the plurality of relevant information;
and an output unit that outputs the extracted related information.
JP2018160641A 2018-08-29 2018-08-29 Dialogue method, dialogue program and information processing device Active JP7124565B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018160641A JP7124565B2 (en) 2018-08-29 2018-08-29 Dialogue method, dialogue program and information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018160641A JP7124565B2 (en) 2018-08-29 2018-08-29 Dialogue method, dialogue program and information processing device

Publications (2)

Publication Number Publication Date
JP2020034694A JP2020034694A (en) 2020-03-05
JP7124565B2 true JP7124565B2 (en) 2022-08-24

Family

ID=69668001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018160641A Active JP7124565B2 (en) 2018-08-29 2018-08-29 Dialogue method, dialogue program and information processing device

Country Status (1)

Country Link
JP (1) JP7124565B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008198132A (en) 2007-02-15 2008-08-28 Fujitsu Ltd Specific expression extraction program, specific expression extraction method, and specific expression extraction apparatus
WO2017200080A1 (en) 2016-05-20 2017-11-23 日本電信電話株式会社 Intercommunication method, intercommunication device, and program
JP2018054790A (en) 2016-09-28 2018-04-05 トヨタ自動車株式会社 Spoken dialogue system and spoken dialogue method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008198132A (en) 2007-02-15 2008-08-28 Fujitsu Ltd Specific expression extraction program, specific expression extraction method, and specific expression extraction apparatus
WO2017200080A1 (en) 2016-05-20 2017-11-23 日本電信電話株式会社 Intercommunication method, intercommunication device, and program
JP2018054790A (en) 2016-09-28 2018-04-05 トヨタ自動車株式会社 Spoken dialogue system and spoken dialogue method

Also Published As

Publication number Publication date
JP2020034694A (en) 2020-03-05

Similar Documents

Publication Publication Date Title
JP4559946B2 (en) Input device, input method, and input program
CN112966479A (en) Language model-based auxiliary writing method, device and system
KR101929509B1 (en) Device and method for composing morpheme
CN118446315A (en) Problem solving method, device, storage medium and computer program product
JP2015219582A (en) Interactive method, interaction device, interactive program, and recording medium
JP7327647B2 (en) Utterance generation device, utterance generation method, program
JP7124565B2 (en) Dialogue method, dialogue program and information processing device
Sicilia et al. Isabel: An inclusive and collaborative taskoriented dialogue system
CN110399605A (en) Information processing unit and the computer-readable medium for storing program
JP2005128711A (en) KANSEI information estimation method and character animation creation method, program using these methods, storage medium, sensitivity information estimation device, and character animation creation device
CN114254100A (en) Input recommendation method and device, electronic equipment and storage medium
JPWO2008018287A1 (en) Search device and search database generation device
WO2022069929A1 (en) System and method for creative learning
CN112307181A (en) Corpus-specific-corpus-based corpus extraction method and corpus extractor
KR102072708B1 (en) A method and computer program for inferring genre of a text contents
CN112905835B (en) Multi-mode music title generation method and device and storage medium
CN109683727A (en) A kind of data processing method and device
JP2020004224A (en) Reply sentence selection apparatus, method and program
Wansekara et al. Intelligent Sinhala question and answer system by incorporating visual clues
JP7044245B2 (en) Dialogue system reinforcement device and computer program
JP4858285B2 (en) Information display device and information display processing program
JP7359196B2 (en) Information processing device, information processing method, and information processing program
US11935425B2 (en) Electronic device, pronunciation learning method, server apparatus, pronunciation learning processing system, and storage medium
JP4023371B2 (en) Device and method for recognizing proper name
JP7750299B2 (en) Information processing system, information processing device, information processing method, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210513

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220426

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220725

R150 Certificate of patent or registration of utility model

Ref document number: 7124565

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150