JP2005249817A - Apparatus and method for conversation - Google Patents
Apparatus and method for conversation Download PDFInfo
- Publication number
- JP2005249817A JP2005249817A JP2004055837A JP2004055837A JP2005249817A JP 2005249817 A JP2005249817 A JP 2005249817A JP 2004055837 A JP2004055837 A JP 2004055837A JP 2004055837 A JP2004055837 A JP 2004055837A JP 2005249817 A JP2005249817 A JP 2005249817A
- Authority
- JP
- Japan
- Prior art keywords
- sentence
- output
- data set
- data
- history
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、ユーザに対して文章を出力して対話を行う対話装置及び方法に関する。 The present invention relates to a dialogue apparatus and method for performing dialogue by outputting a sentence to a user.
ユーザの選択操作に対応してディスプレイに文章を表示することによってユーザとの間で対話を行う対話装置は公知である(特許文献1参照)。このような対話装置では、様々な文章が予めデータとして記憶されており、ユーザが選択操作することによって適切な文章が選択的に読み出され、その読出文章に応じた文章がディスプレイに表示され、これが繰り返されることにより対話が展開される。
しかしながら、ユーザが対話装置を使用する度に同じ選択操作をすると、ディスプレイに表示される文章が何時も同一の内容のものとなり、展開される対話に新鮮味がなくなり、飽きられてしまうという問題点があった。 However, if the user performs the same selection operation every time he / she uses the dialogue device, the text displayed on the display always has the same content, and there is a problem that the developed dialogue is not fresh and tired. It was.
本発明が解決しようとする課題には、上記の欠点が一例として挙げられ、新鮮味を失うことなくユーザが何度も対話を行うことができる対話装置及び方法を提供することが本発明の目的である。 The problems to be solved by the present invention include the above-mentioned drawbacks as an example, and it is an object of the present invention to provide an interactive apparatus and method in which a user can interact many times without losing freshness. is there.
請求項1に係る発明の対話装置は、少なくとも2つの選択肢を与える分岐文章と前記少なくとも2つの選択肢各々についての個別の普通文章とを1データ組として複数のデータ組を記憶した記憶手段と、前記複数のデータ組のうちから1のデータ組を選択する選択手段と、前記1のデータ組内の前記分岐文章を示す出力を生成し、その後、入力操作に応じた選択肢に対応した前記1のデータ組内の前記普通文章を示す出力を生成する文章出力手段と、前記選択手段と前記文章出力手段とをその順に交互に動作させる制御手段と、を備えた対話装置であって、前記複数のデータ組の各々についての前記文章出力手段による文章出力履歴を保存する履歴保存手段を含み、前記文章出力手段は、前記1のデータ組の前記文章出力履歴が前記履歴保存手段に保存されているときにはその文章出力履歴に応じて前記1のデータ組内の文章を示す出力を生成することを特徴としている。
The dialogue apparatus of the invention according to
請求項9に係る発明の対話方法は、少なくとも2つの選択肢を与える分岐文章と前記少なくとも2つの選択肢各々についての個別の普通文章とを1データ組として複数のデータ組を記憶するステップと、前記複数のデータ組のうちから1のデータ組を選択する選択ステップと、前記1のデータ組内の前記分岐文章を示す出力を生成し、その後、入力操作に応じた選択肢に対応した前記1のデータ組内の前記普通文章を示す出力を生成する文章出力ステップと、前記選択ステップと前記文章出力ステップとその順に交互に実行させるステップと、前記複数のデータ組の各々についての前記文章出力ステップにおける文章出力履歴を保存するステップと、前記1のデータ組の前記文章出力履歴が保存されているときには、前記文章出力ステップに代えてその文章出力履歴に応じて前記1のデータ組内の文章を示す出力を生成するステップと、を備えたことを特徴としている。 The dialogue method of the invention according to claim 9 includes a step of storing a plurality of data sets with a branch sentence giving at least two options and individual ordinary sentences for each of the at least two options as one data set; A selection step for selecting one data set from among the data sets, and an output indicating the branch sentence in the one data set is generated, and then the first data set corresponding to the option corresponding to the input operation A sentence output step for generating an output indicating the ordinary sentence in the document, a step for alternately executing the selection step and the sentence output step in that order, and a sentence output in the sentence output step for each of the plurality of data sets When the history is saved, and when the sentence output history of the data set of 1 is saved, the sentence output step Ete are generating an output indicating the sentence of said first data set in accordance with the sentence output record, comprising the.
請求項10に係る発明のプログラムは、対話方法を実行するコンピュータ読取可能なプログラムであって、少なくとも2つの選択肢を与える分岐文章と前記少なくとも2つの選択肢各々についての個別の普通文章とを1データ組として複数のデータ組を記憶するステップと、前記複数のデータ組のうちから1のデータ組を選択する選択ステップと、前記1のデータ組内の前記分岐文章を示す出力を生成し、その後、入力操作に応じた選択肢に対応した前記1のデータ組内の前記普通文章を示す出力を生成する文章出力ステップと、前記選択ステップと前記文章出力ステップとその順に交互に実行させるステップと、前記複数のデータ組の各々についての前記文章出力ステップにおける文章出力履歴を保存するステップと、前記1のデータ組の前記文章出力履歴が保存されているときには前記文章出力ステップに代えてその文章出力履歴に応じて前記1のデータ組内の文章を示す出力を生成するステップと、を備えたことを特徴としている。
The program of the invention according to
以下、本発明の実施例を図面を参照しつつ詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は本発明による対話装置を示している。この対話装置は、操作部1、表示部2、音声発生部3、コントローラ4、ROM5、RAM6及びスピーカ7を備えている。操作部1、表示部2、音声発生部3、ROM5及びRAM6の各々は、コントローラ4に接続されている。
FIG. 1 shows an interactive apparatus according to the present invention. The interactive apparatus includes an
操作部1はキーボード或いは一連のスイッチ群からなり、ユーザが個人情報等の情報を入力したり、動作を指令する部分である。表示部2はコントローラ4の指令に応じてユーザに対して対話のための質問や語りかけの内容や指示を表示する。操作部1は音声認識機能を備えてユーザの音声によってコントローラ4を操作しても良い。音声発生部3はコントローラ4の指令に応じてユーザに対する対話の文章を合成音声信号として発生する。音声発生部3の出力音声信号はスピーカ7に供給される。
The
以下、説明を簡単にするために対話の際の質問に対して2分岐する場合について説明するが、3分岐以上の動作の場合でも2分岐する場合を同様に適用することができる。 Hereinafter, in order to simplify the explanation, a case will be described in which the question is divided into two with respect to the question during the dialogue.
ROM5には、コントローラ4の動作プログラムと共に、対話のための分岐文章データ群及び普通文章データ群が記憶されている。分岐文章データはユーザに対して質問をするための文章を示し、その質問に対するユーザ応答が後述の系列A,Bの選択を決定することになる。普通文章データは通常、肯定文或いは否定文からなり、単にユーザに対して語りかける文章である。1つの分岐文章データnmに対して2つの普通文章データnmA,nmBが用意され、それらが1データ組をなす。n及びmは各々1以上の整数であり、nは階層番号を示し、mは各階層のうちの組番号である。普通文章データnmAは系列Aの普通文章データであり、普通文章データnmBは系列Bの普通文章データである。階層毎のデータ組数は例えば、2n-1である。対話の話題として複数のジャンルが用意されているので、そのジャンル毎に第1階層から最終階層までの分岐文章データ群及び普通文章データ群が記憶されている。第n階層の1つのデータ組の普通文章とそれに続く第n+1の分岐文章とは内容的に関連性を有するように階層構造の各文章は作成されている。
The
同一のデータ組に属する分岐文章データnm及び普通文章データnmA,nmBの文章例を示すと、ジャンルがスポーツの場合には、分岐文章データnmが「○○が気になるスポーツは? A.野球、B.サッカー」を示すと、系列Aの普通文章データnmAは「野球は国民のスポーツだよね。」を示し、系列Bの普通文章データnmBは「今時サッカー知らないと話にならないよ。」を示す。その普通文章データnmAに続く各文章データの内容は野球についてとなり、同様に、普通文章データnmBに続く各文章データの内容はサッカーについてとなる。例えば、その普通文章データnmAに続く分岐文章データ(n+1)mが「野球は見る方、する方? A.見る、B.する」を示す。 When the example of the sentence text of the branch sentence data nm and the normal sentence data nmA and nmB belonging to the same data set is shown, when the genre is sports, the branch sentence data nm is “What sports are you interested in? , B. Soccer "indicates that the normal text data nmA of the series A indicates" Baseball is a national sport ", and the normal text data nmB of the series B" does not talk unless you know soccer now. " Indicates. The content of each text data following the normal text data nmA is for baseball, and similarly, the content of each text data following the normal text data nmB is for soccer. For example, the branch sentence data (n + 1) m following the normal sentence data nmA indicates “Who is watching or playing baseball? A. Seeing, B. Doing”.
図2は、かかる分岐文章データ群及び普通文章データ群の階層構造を示している。第1階層では1データ組、第2階層では2データ組、第3階層では4データ組、……となり、図2では第4階層以降は省略している。 FIG. 2 shows a hierarchical structure of the branch sentence data group and the normal sentence data group. In the first hierarchy, one data set, in the second hierarchy, two data sets, in the third hierarchy, four data sets,... Are omitted in FIG.
RAM6は、不揮発性のメモリ、或いはハードディスクドライブでも良い。RAM6には、ROM5に記憶された分岐文章データ群及び普通文章データ群のデータ各々のついての出力回数を計数するカウンタCnm,CnmA,CnmBが複数のジャンル毎に形成され、それらのカウンタは計数値を示す。Cnmは分岐文章データnmのカウンタであり、CnmAは普通文章データnmAのカウンタであり、CnmBは普通文章データnmBのカウンタである。図3は図2の分岐文章データ及び普通文章データに対応してRAM6内に形成されたカウンタの計数値記憶テーブルを示している。
The
なお、分岐文章データ群及び普通文章データ群をROM5ではなく所定のプログラムの実行によって外部から、例えば、記録媒体から読み出してRAM6に記憶させても良い。
Note that the branch sentence data group and the ordinary sentence data group may be read from the outside, for example, from a recording medium, and stored in the
コントローラ4はマイクロコンピュータからなり、対話装置全体を制御する。ユーザが操作部1に対して予め定められた操作、例えば、対話開始の操作、或いは選択操作を行うと、操作部1からその操作内容を示す信号がコントローラ4に供給される。
The controller 4 is composed of a microcomputer and controls the entire interactive device. When the user performs a predetermined operation on the
ユーザが操作部1に対して予め定められた対話開始の操作を行うと、操作部1からその対話開始信号がコントローラ4に供給される。
When the user performs a predetermined dialog start operation on the
コントローラ4は、対話開始信号に応答して対話動作を行う。対話動作では、図4〜図6に示すように、先ず、ROM5から開始文章データを読み出してその開始文章データが示す内容を表示部2に表示させる(ステップS1)。表示部2には、例えば、対話を開始することが表示される。ステップS1では対話において話題可能な複数のジャンルが表示され、ユーザが操作部1を操作してジャンルを選択することができる。その後、階層番号nを1に等しくさせ(ステップS2)、選択ジャンルの第n階層〜最終階層の文章出力カウンタのうちの計数値が0であるカウンタの数をRAM6から検出する(ステップS3)。
The controller 4 performs a dialog operation in response to the dialog start signal. In the interactive operation, as shown in FIGS. 4 to 6, first, the start sentence data is read from the
ステップS2でn=1とされた直後の時点では第1階層のデータ組(分岐文章データ11及び普通文章データ11A,11B)が処理対象である。 The data set (branch sentence data 11 and normal sentence data 11A and 11B) in the first layer is a processing target immediately after n = 1 is set in step S2.
RAM6には、上記したように、分岐文章データnm及び普通文章データnmA,nmBについての文章出力カウンタCnm,CnmA,CnmBが形成されているので、ステップS3では、現在の第n階層の処理対象のデータ組以降の系列に属する文章出力カウンタの全ての計数値が読み出され、そのうちの計数値0のカウンタの数がUとして定められる。n=1ならば、カウンタC11,C11A,C11Bを含む全てのカウンタのうちの計数値0のカウンタの数が検出される。計数値0であるカウンタに対応した文書データはその時点では未だ使われていないこと、すなわち表示或いは音声として出力されていない未出力文章数を意味する。
Since the
コントローラ4は、未出力文章数Uが所定値F(例えば、1)以上であるか否かを判別する(ステップS4)。U<Fで、未出力文章数Uが少ない場合には、そのジャンルの話題は飽きられている可能性があるので、他のジャンルの話題での対話を勧めるメッセージを表示部2に表示させる(ステップS5)。この場合には、ステップS1に戻ることになる。 The controller 4 determines whether or not the number U of unoutput sentences is equal to or greater than a predetermined value F (for example, 1) (step S4). When U <F and the number of unoutput texts U is small, there is a possibility that the topic of the genre is bored, so that a message recommending dialogue on the topic of another genre is displayed on the display unit 2 ( Step S5). In this case, the process returns to step S1.
U≧Fならば、第n階層の処理対象のデータ組以降の系列A,B毎の未出力文章数CA,CBを比較する(ステップS6)。n=1とすると第1階層以降の系列Aは図3に示すように、カウンタC11A,C21,C21A,C21B,……であり、系列BはカウンタC11B,C22,C22A,C22B,……である。系列Aの文章出力カウンタのうちの計数値が0であるカウンタの数がCAとしてRAM6から検出され、系列Bの文章出力カウンタのうちの計数値が0であるカウンタの数がCBとしてRAM6から検出される。
If U ≧ F, the numbers of unoutputted sentences CA and CB for each of the series A and B after the data set to be processed in the nth hierarchy are compared (step S6). When n = 1, as shown in FIG. 3, the series A after the first hierarchy is a counter C11A, C21, C21A, C21B,..., and the series B is a counter C11B, C22, C22A, C22B,. . The number of counters having a count value of 0 in the series A sentence output counter is detected from the
ステップS6の比較結果がCA≒CBであれば、系列Aでは未出力文章数CAが系列Bの未出力文章数CBとほぼ同一であるので、現時点での第n階層の処理対象のデータ組の普通文章データnmA,nmBについての未出力文章数Sが0〜2のうちのいずれであるかを判別する(ステップS7)。 If the comparison result of step S6 is CA≈CB, the number of non-output sentences CA in the series A is substantially the same as the number CB of non-output sentences in the series B, and therefore the data set to be processed in the nth layer at the present time It is determined whether the number S of non-output texts for the normal text data nmA and nmB is 0 to 2 (step S7).
S=2ならば、処理対象のデータ組内のいずれの普通文章データnmA,nmBも使用されていないので、処理対象のデータ組内の分岐文章データnmをROM5から読み出してその分岐文章データnmが示す質問文を表示部2に表示させる(ステップS8)。そして、出力分岐文章データnmに対応するRAM6内のカウンタの計数値を1だけ増加させる(ステップS9)。表示部2には、質問文とその質問文に対する回答として2つの選択肢A,Bの内容とが表示される。ユーザは選択肢A,Bのうちからいずれか一方を操作部1を介して選択することができる。コントローラ4は操作部1の選択操作による選択肢を受け入れ(ステップS10)、処理対象のデータ組内の受け入れた選択肢に対応した系列の普通文章データをROM5から出力普通文章データOD(nmA,nmBのいずれか一方)を読み出してその出力普通文章データODが示す文章を表示部2に表示させる(ステップS11)。n=1の場合には普通文章データ11A,11Bのうちのいずれか一方が出力普通文章データODとされる。表示部2には、出力普通文章データODが示す文章が表示される。出力普通文章データODに対応するRAM6内のカウンタの計数値を1だけ増加させる(ステップS12)。その後、ステップS21に移行する。
If S = 2, none of the normal text data nmA and nmB in the data set to be processed is used, so the branch text data nm in the data set to be processed is read from the
S=1ならば、処理対象のデータ組内の普通文章データnmA,nmBのいずれか一方だけが使用されていないので、その未使用の普通文章データをROM5から出力普通文章データODとして読み出してその読み出し普通文章データが示す文章を表示部2に表示させる(ステップS13)。その後、ステップS12に進む。
If S = 1, since only one of the normal text data nmA and nmB in the data set to be processed is not used, the unused normal text data is read from the
S=0ならば、処理対象のデータ組内のいずれの普通文章データnmA,nmBも既に使用されているので、分岐文章データnmをROM5から読み出してその分岐文章データnmが示す質問文を表示部2に表示させる(ステップS14)。そして、出力分岐文章データnmに対応するRAM6内のカウンタの計数値を1だけ増加させる(ステップS15)。ステップS14はステップS8と同一である。コントローラ4は操作部1の選択操作の選択肢を受け入れる(ステップS16)。
If S = 0, since the normal text data nmA and nmB in the data set to be processed are already used, the branch text data nm is read from the
ステップS6の比較結果がCA≫CBであれば、系列Aでは未出力文章数が系列Bよりも十分に多いので、系列Aを選択し、第n階層の処理対象のデータ組の普通文章データnmAについての文章出力カウンタの計数値は0であるか否かを判別する(ステップS17)。普通文章データnmAについての文章出力カウンタの計数値が0である場合には、普通文章データnmAをROM5から出力普通文章データODとして読み出してその出力普通文章データが示す文章を表示部2に表示させる(ステップS18)。そして、出力普通文章データODに対応するRAM6内のカウンタの計数値を1だけ増加させる(ステップS19)。普通文章データnmAについての文章出力カウンタの計数値が0でない場合には、ステップS18,S19を迂回してステップS23に進む。
If the comparison result of step S6 is CA >> CB, the number of unoutput sentences in the series A is sufficiently larger than that in the series B. Therefore, the series A is selected, and the normal sentence data nmA of the data set to be processed in the nth layer is selected. It is determined whether or not the count value of the text output counter for is 0 (step S17). When the count value of the text output counter for the normal text data nmA is 0, the normal text data nmA is read from the
ステップS6の比較結果がCA≪CBであれば、系列Bでは未出力文章数が系列Aよりも十分に多いので、系列Bを選択し、第n階層の処理対象のデータ組の普通文章データnmBについての文章出力カウンタの計数値が0であるか否かを判別する(ステップS20)。普通文章データnmBについての文章出力カウンタの計数値が0である場合には、普通文章データnmBをROM5から出力普通文章データODとして読み出してその出力普通文章データが示す文章を表示部2に表示させる(ステップS21)。そして、出力普通文章データODに対応するRAM6内のカウンタの計数値を1だけ増加させる(ステップS22)。普通文章データnmAについての文章出力カウンタの計数値が0でない場合には、ステップS21,S22を迂回してステップS23に進む。
If the comparison result in step S6 is CA << CB, the number of unoutput texts in series B is sufficiently larger than that in series A. Therefore, series B is selected, and the normal text data nmB of the data set to be processed in the nth layer is selected. It is determined whether or not the count value of the text output counter for is 0 (step S20). When the count value of the text output counter for the normal text data nmB is 0, the normal text data nmB is read from the
コントローラ4は、ステップS23においては階層番号nを1だけ増加させ、そして、ステップS3に戻って上記の動作を繰り返す。 The controller 4 increments the layer number n by 1 in step S23, and returns to step S3 to repeat the above operation.
ステップS23の実行直前においては、現在の第n階層における系列A,Bのうちの選択系列、すなわち、次の第n+1階層における処理対象のデータ組が決定されている。 Immediately before the execution of step S23, the selected series of the series A and B in the current nth hierarchy, that is, the data set to be processed in the next n + 1th hierarchy is determined.
よって、CA≒CBで系列Aでは未出力文章数CAが系列Bの未出力文章数CBとほぼ同一であり、更に、S=2であれば、処理対象のデータ組のいずれの普通文章データnmA,nmBも使用されていないので、分岐文章データnmが示す質問文のユーザの操作結果に応じた系列の普通文章データが出力普通文章データODとして読み出されてその出力普通文章データが示す文章が表示部2に表示される。S=1であれば、処理対象のデータ組内の普通文章データnmA,nmBのいずれか一方だけが使用されていないので、その未使用の普通文章データがROM5から出力普通文章データODとして読み出されてその読み出し普通文章データが示す文章が表示部2に表示される。このS=1の場合には、処理対象のデータ組内の分岐文章データnmは使用されず、その分岐文章データnmが示す質問文は表示されない。S=0ならば、処理対象のデータ組内のいずれの普通文章データnmA,nmBも既に使用されているので、分岐文章データnmがROM5から読み出されてその分岐文章データnmが示す質問文が表示されるが、普通文章データnmA,nmBは使用されず、そのいずれの普通文章データが示す文章は表示されない。
Therefore, CA≈CB and the number of non-output sentences CA in the series A is substantially the same as the number of non-output sentences CB in the series B. Further, if S = 2, any ordinary sentence data nmA in the data set to be processed is obtained. , NmB are also not used, so the normal text data of the series corresponding to the user's operation result of the question text indicated by the branch text data nm is read as the output normal text data OD, and the text indicated by the output normal text data is It is displayed on the
CA≫CBであれば、系列Aでは未出力文章数が系列Bよりも十分に多いので、処理対象のデータ組内の分岐文章データnmが示す質問文は表示されず、系列Aの普通文章データnmAがROM5から出力普通文章データODとして読み出されてその普通文章データが示す文章が表示部2に表示される。
If CA >> CB, the number of non-output sentences in the series A is sufficiently larger than the series B, so the question sentence indicated by the branch sentence data nm in the data set to be processed is not displayed, and the normal sentence data in the series A The nmA is read from the
CA≪CBであれば、系列Bでは未出力文章数が系列Aよりも十分に多いので、処理対象のデータ組内の分岐文章データnmが示す質問文は表示されず、系列Bの普通文章データnmBがROM5から出力普通文章データODとして読み出されてその普通文章データが示す文章が表示部2に表示される。
If CA << CB, the number of unoutput texts in series B is sufficiently larger than that in series A, so the question text indicated by the branch text data nm in the data set to be processed is not displayed, and the normal text data in series B nmB is read from the
このように、各文章出力カウンタの計数値に基づいて表示されたことがない文章或いは表示回数が少ない文章が表示されるので、対話装置の利用を繰り返しても新鮮味がなくなることを防止することができる。 In this way, since a sentence that has never been displayed based on the count value of each sentence output counter or a sentence with a small number of display times is displayed, it is possible to prevent the freshness from being lost even if the use of the interactive device is repeated. it can.
なお、コントローラ4は、図4〜図6のフローチャートには具体的に示していないが、ステップS23において階層番号nが最終階層の番号を越えた時に対話動作を終了する。ただし、ユーザによる操作部1に対する所定の操作で強制的に終了できるようにしても良い。
Although not specifically shown in the flowcharts of FIGS. 4 to 6, the controller 4 ends the interactive operation when the layer number n exceeds the number of the last layer in step S23. However, the user may be forcibly terminated by a predetermined operation on the
図7は本発明の他の実施例としてコントローラ4による対話動作を示している。この実施例においては、RAM6は、分岐文章データ群及び普通文章データ群のデータ各々のついての出力回数を計数するカウンタCnm,CnmA,CnmB各々の計数値及び1データ組毎の出力時点を複数のジャンル毎に記憶する。1データ組毎の出力時点は例えば、カウンタCnmの計数値が最後に増加された時点である。
FIG. 7 shows an interactive operation by the controller 4 as another embodiment of the present invention. In this embodiment, the
コントローラ4は、操作部1から供給される対話開始信号に応答して対話動作を行う。対話動作では、図7に示すように、先ず、ROM5から開始文章データを読み出してその開始文章データが示す内容を表示部2に表示させ(ステップS31)、その後、階層番号nを1に等しくさせ(ステップS32)、選択ジャンルの第n階層の文章出力カウンタ各々の計数値及びデータ出力時点をRAM6から読み出し(ステップS33)、読み出したカウンタ計数値に応じて処理対象のデータ組内の分岐文章データnmの出力履歴があるか否かを判別する(ステップS34)。
The controller 4 performs a dialogue operation in response to the dialogue start signal supplied from the
ステップS32でn=1とされた直後では第1階層のデータ組(分岐文章データ11及び普通文章データ11A,11B)が処理対象である。 Immediately after n = 1 is set in step S32, the data set (branch sentence data 11 and normal sentence data 11A, 11B) of the first hierarchy is a processing target.
RAM6には、上記したように、分岐文章データnm及び普通文章データnmA,nmBについての文章出力カウンタCnm,CnmA及びCnmB各々の計数値とデータ出力時点とが記憶されているので、ステップS33では、現在の第n階層の処理対象のデータ組以降の系列に属する文章出力カウンタの全ての計数値及び出力時点が読み出される。n=1ならば、カウンタC11,C11A,C11Bを含む全てのカウンタの計数値が0であれば、出力履歴はないことになり、いずれかのカウンタの計数値が0ではないならば、出力履歴があることになる。
As described above, the
コントローラ4は、ステップS34において出力履歴がないと判別した場合には、処理対象のデータ組内のいずれの普通文章データnmA,nmBも使用されていないので、処理対象のデータ組内の分岐文章データnmをROM5から読み出してその分岐文章データnmが示す質問文を表示部2に表示させる(ステップS35)。そして、出力分岐文章データnmに対応するRAM6内のカウンタの計数値を1だけ増加させ、かつ出力時点をRAM6内に記憶させる(ステップS36)。表示部2には、質問文とその質問文に対する回答として2つの選択肢A,Bの内容とが表示される。ユーザは選択肢A,Bのうちからいずれか一方を操作部1を介して選択することができる。コントローラ4は操作部1の選択操作の選択肢を受け入れ(ステップS37)、処理対象のデータ組内の受け入れた選択肢に対応した系列の普通文章データをROM5から出力普通文章データOD(nmA,nmBのいずれか一方)読み出してその出力普通文章データODが示す文章を表示部2に表示させる(ステップS38)。n=1の場合には普通文章データ11A,11Bのうちのいずれか一方が出力普通文章データODとされる。表示部2には、出力普通文章データODが示す文章が表示される。出力普通文章データODに対応するRAM6内のカウンタの計数値を1だけ増加させる(ステップS39)。その後、ステップS43に移行する。
If the controller 4 determines in step S34 that there is no output history, none of the normal sentence data nmA and nmB in the data set to be processed is used, so the branch sentence data in the data set to be processed is not used. nm is read from the
コントローラ4は、ステップS34において出力履歴があると判別した場合には、ステップS33で読み出したデータ出力時点に応じて第n階層の処理対象のデータ組の分岐文章データnmの最後の出力時点から所定時間(例えば、1年)の経過があるか否かを判別する(ステップS40)。文章データnmの最後の出力時点から所定時間が経過しているならば、上記のステップS35〜S39を実行する。これは、所定時間の経過があれば、印象も薄れるので、文章データnmを再度出力して良い状態になったとしている。なお、所定時間については固定した時間としないで、1ヶ月或いは6ヶ月のように変化させても良い。 If the controller 4 determines that there is an output history in step S34, the controller 4 is predetermined from the last output time of the branch sentence data nm of the data set to be processed in the n-th layer according to the data output time read in step S33. It is determined whether or not time (for example, one year) has elapsed (step S40). If the predetermined time has elapsed from the last output time of the text data nm, the above steps S35 to S39 are executed. This is because the impression is faded if a predetermined time has elapsed, so that the text data nm can be output again. Note that the predetermined time may be changed to one month or six months instead of a fixed time.
第n階層の処理対象のデータ組の文章データnmの最後の出力時点から所定時間が経過していないならば、その処理対象のデータ組の普通文章データnmA,nmBについての未出力文章数Sが0及び1のいずれであるかを判別する(ステップS41)。 If the predetermined time has not elapsed since the last output time of the sentence data nm of the data set to be processed in the nth layer, the number of unoutputted sentences S for the normal sentence data nmA and nmB of the data set to be processed is Whether it is 0 or 1 is determined (step S41).
S=1ならば、処理対象のデータ組内の普通文章データnmA,nmBのいずれか一方だけが使用されていないので、その未使用の普通文章データをROM5から出力普通文章データODとして読み出してその読み出し普通文章データが示す文章を表示部2に表示させる(ステップS42)。その後、ステップS39及びS43に進む。
If S = 1, since only one of the normal text data nmA and nmB in the data set to be processed is not used, the unused normal text data is read from the
S=0ならば、処理対象のデータ組内のいずれの普通文章データnmA,nmBも既に使用されているので、ステップS43に進む。 If S = 0, any ordinary text data nmA and nmB in the data set to be processed have already been used, and the process proceeds to step S43.
コントローラ4は、ステップS43においては階層番号nを1だけ増加させ、そして、第n階層が存在するか否かを判別する(ステップS44)。第n階層の文章データがROM5に存在するならば、ステップS33に戻って上記の動作を繰り返す。階層番号nの文章データがROM5に存在しない場合には、他のジャンルの話題での対話を勧めるメッセージを表示部2に表示させる(ステップS45)。この場合には、ステップS31に戻ることになる。
In step S43, the controller 4 increments the hierarchy number n by 1, and determines whether or not the nth hierarchy exists (step S44). If the nth layer text data exists in the
かかる図7に示した実施例においては、既に出力した文章データを所定時間の経過後においては再度出力可能にするので、限られた文章データ群を有効利用することができ、長期間に亘って対話を楽しむことができる。 In the embodiment shown in FIG. 7, since the already output text data can be output again after a lapse of a predetermined time, a limited text data group can be used effectively and can be used for a long time. You can enjoy the dialogue.
なお、上記した各実施例においては、文章データは必ずしも図2に示したように階層構造に構成する必要はなく、1つの分岐文章データと2つの普通文章データとかなる1データ組単位で複数のデータ組を備えてそのデータ組間の関連性が設定されていれば良い。単一の繋がりだけでなくデータ組間の複数の繋がりを設定し、選択的に行うことにより、対話の展開により変化を持たせることができる。 In each of the above-described embodiments, the sentence data does not necessarily have a hierarchical structure as shown in FIG. 2, and a plurality of pieces of data are formed in one data set unit including one branch sentence data and two ordinary sentence data. It suffices if a data set is provided and the relationship between the data sets is set. By setting not only a single connection but also a plurality of connections between data sets and selectively performing them, it is possible to have a change by developing a dialogue.
また、分岐文章データが示す選択肢は2つに限らず、3以上であっても良い。この場合にはその選択肢の数だけの普通文章データを用意することになる。 Further, the number of options indicated by the branch sentence data is not limited to two, and may be three or more. In this case, normal text data corresponding to the number of options is prepared.
更に、各文章データの内容を表示部2に表示することに限らず、音声発生部3を介してスピーカ7から音声として出力しても良い。
Furthermore, the content of each sentence data is not limited to being displayed on the
以上のように、本発明によれば、複数のデータ組の各々についての文章出力手段による文章出力履歴を保存する履歴保存手段を含み、文章出力手段が、1のデータ組の文章出力履歴が履歴保存手段に保存されているときにはその文章出力履歴に応じて1のデータ組内の文章を示す出力を生成するので、新鮮味を失うことなくユーザが何度も対話を行うことができる。 As described above, according to the present invention, there is included a history storage unit that stores a sentence output history by the sentence output unit for each of a plurality of data sets, and the sentence output unit includes a history of the sentence output history of one data set. When stored in the storage means, an output indicating a sentence in one data set is generated in accordance with the sentence output history, so that the user can interact many times without losing freshness.
更に、本発明の対話装置は雑談装置、ユーザとの対話型のコミュニケーション装置、携帯電話機、カーナビゲーション装置、ゲーム機やPDAに適用することができる。また、本発明の対話方法はコンピュータのプログラムで実行させることができる。 Furthermore, the interactive device of the present invention can be applied to a chat device, an interactive communication device with a user, a mobile phone, a car navigation device, a game machine, and a PDA. The interactive method of the present invention can be executed by a computer program.
1 操作部
2 表示部
3 音声発生部
4 コントローラ
7 スピーカ
1
Claims (10)
前記複数のデータ組のうちから1のデータ組を選択する選択手段と、
前記1のデータ組内の前記分岐文章を示す出力を生成し、その後、入力操作に応じた選択肢に対応した前記1のデータ組内の前記普通文章を示す出力を生成する文章出力手段と、
前記選択手段と前記文章出力手段とをその順に交互に動作させる制御手段と、を備えた対話装置であって、
前記複数のデータ組の各々についての前記文章出力手段による文章出力履歴を保存する履歴保存手段を含み、
前記文章出力手段は、前記1のデータ組の前記文章出力履歴が前記履歴保存手段に保存されているときにはその文章出力履歴に応じて前記1のデータ組内の文章を示す出力を生成することを特徴とする対話装置。 Storage means for storing a plurality of data sets, with a branch sentence giving at least two options and individual ordinary sentences for each of the at least two options as one data set;
Selecting means for selecting one data set from the plurality of data sets;
A sentence output means for generating an output indicating the branch sentence in the one data set, and thereafter generating an output indicating the normal sentence in the one data set corresponding to an option according to an input operation;
A control unit that alternately operates the selection unit and the sentence output unit in that order;
Including history storage means for storing a sentence output history by the sentence output means for each of the plurality of data sets;
The sentence output unit generates an output indicating a sentence in the first data set according to the sentence output history when the sentence output history of the first data set is stored in the history storage unit. Characteristic dialogue device.
前記履歴保存手段が前記1のデータ組の前記少なくとも2つの普通文章のうちの一方だけの文章の出力履歴を保存しているときには、前記1のデータ組の前記分岐文章が示す出力を生成することなく、前記少なくとも2つの普通文章のうちの他方の普通文章が示す出力を生成して前記1のデータ組についての文章出力動作を終了することを特徴とする請求項1記載の対話装置。 The sentence output means generates only an output indicating the branch sentence of the one data set when the history storage means stores an output history of each of at least two ordinary sentences in the one data set. Ending the sentence output operation for the one data set without generating an output indicating the normal sentence,
When the history storage unit stores an output history of only one of the at least two ordinary sentences of the one data set, an output indicated by the branch sentence of the one data set is generated. 2. The dialogue apparatus according to claim 1, further comprising: generating an output indicated by the other ordinary sentence of the at least two ordinary sentences and terminating the sentence output operation for the one data set.
前記選択手段は、選択動作を繰り返す毎に前記複数のデータ組のうちの1階層だけ下位階層に属するデータ組から1のデータ組を選択することを特徴とする請求項1記載の対話装置。 The plurality of data sets have a hierarchical structure such that branch sentences of other data sets are related to each ordinary sentence of one data set individually.
2. The interactive apparatus according to claim 1, wherein the selection unit selects one data set from data sets belonging to a lower hierarchy by one hierarchy of the plurality of data sets every time a selection operation is repeated.
前記比較手段によって未出力文章総数が多い選択肢に対応した前記1のデータ組内の未出力の普通文章を示す出力を生成することを特徴とする請求項1又は3記載の対話装置。 The sentence output means obtains, according to the sentence output history, the total number of unoutput sentences for all sentences in the lower hierarchical series for each option given by the branch sentence of the one data set of the hierarchical structure, and compares them with each other Comparing means to
4. The dialogue apparatus according to claim 1, wherein the comparison unit generates an output indicating an unoutput normal sentence in the one data set corresponding to an option having a large total number of unoutput sentences.
前記1のデータ組より下位階層にある文書全ての未出力文章総数を前記文章出力履歴に応じて得て、その未出力文章総数が所定値より小であるときには他のジャンルに変更することを特徴とする請求項1又は3記載の対話装置。 The storage means stores the plurality of data sets for each genre of dialogue,
According to the sentence output history, the total number of unoutputted sentences of all documents in a lower hierarchy than the one data set is obtained, and when the total number of unoutputted sentences is smaller than a predetermined value, it is changed to another genre. The interactive apparatus according to claim 1 or 3.
前記判別手段によって前記所定時間の時間経過前と判別されたならば、前記履歴保存手段が前記1のデータ組内の少なくとも2つの普通文章各々の出力履歴を保存しているときには、文章出力を生成することなく前記1のデータ組についての文章出力動作を終了し、前記履歴保存手段が前記1のデータ組の前記少なくとも2つの普通文章のうちの一方だけの文章の出力履歴を保存しているときには、前記1のデータ組の前記分岐文章が示す出力を生成することなく、前記少なくとも2つの普通文章のうちの他方の普通文章が示す出力を生成して前記1のデータ組についての文章出力動作を終了し、
前記判別手段によって前記所定時間の時間経過後と判別されたならば、前記1のデータ組の全ての文章が未出力として文章出力動作を行うことを特徴とする請求項1記載の対話装置。 The sentence output means, when the history storage means stores the sentence output history in the data set of 1, the determination means for determining whether or not a predetermined time has elapsed from the sentence output time;
If it is determined by the determination means that the predetermined time has not elapsed, a sentence output is generated when the history storage means stores output histories of at least two ordinary sentences in the one data set. When the sentence output operation for the one data set is finished without being performed, and the history storage unit stores the output history of only one of the at least two ordinary sentences of the one data set. Without generating the output indicated by the branch sentence of the one data set, the output indicated by the other ordinary sentence of the at least two ordinary sentences is generated, and the sentence output operation for the one data set is performed. Exit
2. The dialogue apparatus according to claim 1, wherein if the determination means determines that the predetermined time has elapsed, all the sentences in the one data set are output as unsent.
前記複数のデータ組のうちから1のデータ組を選択する選択ステップと、
前記1のデータ組内の前記分岐文章を示す出力を生成し、その後、入力操作に応じた選択肢に対応した前記1のデータ組内の前記普通文章を示す出力を生成する文章出力ステップと、
前記選択ステップと前記文章出力ステップとその順に交互に実行させるステップと、
前記複数のデータ組の各々についての前記文章出力ステップにおける文章出力履歴を保存するステップと、
前記1のデータ組の前記文章出力履歴が保存されているときには、前記文章出力ステップに代えてその文章出力履歴に応じて前記1のデータ組内の文章を示す出力を生成するステップと、を備えたことを特徴とする対話方法。 Storing a plurality of data sets with a branch sentence giving at least two options and individual ordinary sentences for each of the at least two options as one data set;
A selection step of selecting one data set from the plurality of data sets;
A sentence output step of generating an output indicating the branch sentence in the one data set, and thereafter generating an output indicating the normal sentence in the one data set corresponding to an option according to an input operation;
Alternately executing the selection step and the sentence output step in that order;
Storing a sentence output history in the sentence output step for each of the plurality of data sets;
When the sentence output history of the first data set is stored, the output of the sentence in the first data set is generated according to the sentence output history instead of the sentence output step; An interactive method characterized by that.
少なくとも2つの選択肢を与える分岐文章と前記少なくとも2つの選択肢各々についての個別の普通文章とを1データ組として複数のデータ組を記憶するステップと、
前記複数のデータ組のうちから1のデータ組を選択する選択ステップと、
前記1のデータ組内の前記分岐文章を示す出力を生成し、その後、入力操作に応じた選択肢に対応した前記1のデータ組内の前記普通文章を示す出力を生成する文章出力ステップと、
前記選択ステップと前記文章出力ステップとその順に交互に実行させるステップと、
前記複数のデータ組の各々についての前記文章出力ステップにおける文章出力履歴を保存するステップと、
前記1のデータ組の前記文章出力履歴が保存されているときには前記文章出力ステップに代えてその文章出力履歴に応じて前記1のデータ組内の文章を示す出力を生成するステップと、を備えたことを特徴とするプログラム。 A computer readable program for executing a dialogue method,
Storing a plurality of data sets with a branch sentence giving at least two options and individual ordinary sentences for each of the at least two options as one data set;
A selection step of selecting one data set from the plurality of data sets;
A sentence output step of generating an output indicating the branch sentence in the one data set, and thereafter generating an output indicating the normal sentence in the one data set corresponding to an option according to an input operation;
Alternately executing the selection step and the sentence output step in that order;
Storing a sentence output history in the sentence output step for each of the plurality of data sets;
Generating an output indicating a sentence in the first data set according to the sentence output history instead of the sentence output step when the sentence output history of the one data set is stored. A program characterized by that.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004055837A JP2005249817A (en) | 2004-03-01 | 2004-03-01 | Apparatus and method for conversation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004055837A JP2005249817A (en) | 2004-03-01 | 2004-03-01 | Apparatus and method for conversation |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005249817A true JP2005249817A (en) | 2005-09-15 |
Family
ID=35030384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004055837A Pending JP2005249817A (en) | 2004-03-01 | 2004-03-01 | Apparatus and method for conversation |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005249817A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0333796A (en) * | 1989-06-29 | 1991-02-14 | Matsushita Electric Ind Co Ltd | Interactive system |
JPH11237971A (en) * | 1998-02-23 | 1999-08-31 | Nippon Telegr & Teleph Corp <Ntt> | Voice responding device |
JP2002169804A (en) * | 2000-12-01 | 2002-06-14 | Namco Ltd | System and method for simulated conversation, and information storage medium |
JP2002169590A (en) * | 2000-12-01 | 2002-06-14 | Namco Ltd | System and method for simulated conversation and information storage medium |
-
2004
- 2004-03-01 JP JP2004055837A patent/JP2005249817A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0333796A (en) * | 1989-06-29 | 1991-02-14 | Matsushita Electric Ind Co Ltd | Interactive system |
JPH11237971A (en) * | 1998-02-23 | 1999-08-31 | Nippon Telegr & Teleph Corp <Ntt> | Voice responding device |
JP2002169804A (en) * | 2000-12-01 | 2002-06-14 | Namco Ltd | System and method for simulated conversation, and information storage medium |
JP2002169590A (en) * | 2000-12-01 | 2002-06-14 | Namco Ltd | System and method for simulated conversation and information storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009186989A (en) | Voice interactive device and voice interactive program | |
CN111601141A (en) | Barrage display method and device, electronic equipment and readable storage medium | |
JPH08263468A (en) | Method and equipment for provision of multimedia story | |
JP2013037251A (en) | Vocal learning device and vocal learning program | |
EP2001005A2 (en) | Training system, training device, and program recording medium and playback control method | |
JP2003245471A (en) | Video game system, recording medium and program | |
KR100490367B1 (en) | The portable apparatus of word studying and method of word studying using the same | |
JP2005249817A (en) | Apparatus and method for conversation | |
US8690672B2 (en) | Media reproduction device | |
CN115963963A (en) | Interactive novel generation method, presentation method, device, equipment and medium | |
JP2008136702A (en) | Method for displaying demonstration in game apparatus | |
JP2005190352A (en) | Addressing device | |
JP2885157B2 (en) | Audio output control device | |
JP4099907B2 (en) | Information reproducing apparatus and method, and information providing medium | |
JP5765592B2 (en) | Movie playback device, movie playback method, movie playback program, movie playback control device, movie playback control method, and movie playback control program | |
JP2017184842A (en) | Information processing program, information processing device, and information processing method | |
JP2008009221A (en) | Voice reproduction control apparatus and control program | |
JP4030021B2 (en) | Alternative quiz game machine and control method thereof | |
JP6459920B2 (en) | Information display device, information display program, and audio output method | |
US20240091648A1 (en) | Systems and methods for controlling dialogue complexity in video games | |
JP2003167503A (en) | Electronic learning machine, learning support method and computer readable recording medium with program for carrying out learning support method recorded thereon | |
JP3731782B2 (en) | Conversation system with computer character and storage medium storing program related to the system | |
JPH0588687A (en) | Orchestral accompaniment device | |
JP3594951B2 (en) | GAME DEVICE, PROGRAM, AND GAME DEVICE CONTROL METHOD | |
JP2002229423A (en) | System for learning word through shiritori and recording medium with program for learning word through shiritori recorded thereon |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070215 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100104 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100119 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100601 |