JP4183866B2 - Database update method and storage medium - Google Patents
Database update method and storage medium Download PDFInfo
- Publication number
- JP4183866B2 JP4183866B2 JP31752199A JP31752199A JP4183866B2 JP 4183866 B2 JP4183866 B2 JP 4183866B2 JP 31752199 A JP31752199 A JP 31752199A JP 31752199 A JP31752199 A JP 31752199A JP 4183866 B2 JP4183866 B2 JP 4183866B2
- Authority
- JP
- Japan
- Prior art keywords
- text data
- text
- database
- data
- communication device
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 53
- 238000004891 communication Methods 0.000 claims description 40
- 230000008569 process Effects 0.000 description 31
- 230000008859 change Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 24
- 238000013500 data storage Methods 0.000 description 23
- 238000004364 calculation method Methods 0.000 description 14
- 238000000605 extraction Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- TVEXGJYMHHTVKP-UHFFFAOYSA-N 6-oxabicyclo[3.2.1]oct-3-en-7-one Chemical compound C1C2C(=O)OC1C=CC2 TVEXGJYMHHTVKP-UHFFFAOYSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003867 tiredness Effects 0.000 description 1
- 208000016255 tiredness Diseases 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、テキストデータからなるデータベースの更新方法及びゲーム機,携帯電話,携帯情報端末,パーソナルコンピュータ等のようにテキストを出力できる出力部とテキストを入力する入力部とを有し、他の装置との間で、テキストを送受信できる装置を含むテキスト通信システムに関するものである。
【0002】
【従来の技術】
従来、この種のテキスト通信システムとしては、例えば、パーソナルコンピュータとホストコンピュータとをインターネットを介して接続し、パーソナルコンピュータ上でゲームを行うシステムがあった。このようなテキスト通信システムでは、まず、設定されたストーリーに従って、ホストコンピュータからの質問としてのテキストと質問に対する複数の回答としてのテキストがユーザーのパーソナルコンピュータのディスプレイに表示される。ここで、ユーザーが、複数の回答の中から適当なものを選択して入力すると、その情報がホストコンピュータ側へ送信され、選択された回答に対応するテキストとそれに対する複数の回答が抽出されて再びユーザーのパーソナルコンピュータのディスプレイに表示される。このようにして、対話形式でユーザーとホストとの間でテキストが送受信されることによってゲームが進行して行く。
【0003】
【発明が解決しようとする課題】
しかしながら、このようなシステムでは、ストーリーに沿って準備されたテキストの組み合わせに従い、自分又は自らが選択したキャラクタに扮して、他のキャラクタと対話することとなるため、設定された仮想のキャラクタとの対話であるとの感覚が強く、リアリティに乏しいものであった。
【0004】
また、ストーリーも予め設定された所定数のテキスト群から選択されるテキストのやりとりによって進行するため、展開のバラエティが限られてしまい、回数を重ねることによって飽きが生じていた。
【0005】
本発明は上記の従来技術の課題を解決するためになされたもので、その目的とするところは、リアリティにあふれて飽きの来ないストーリー展開が可能なデータベース及びテキスト通信システムを提供することにある。
【0006】
【課題を解決するための手段】
上記目的を達成するために本発明は、ストーリーの展開に伴って階層間を移動するように、テキストデータ間の親子関係が定義付けられた、階層構造を有する複数のテキストデータからなるデータベースの更新方法であって、テキスト通信装置との間でネットワークを介した通信が可能であり、且つ、前記データベースを備える、ホスト通信装置が、前記データベースから読み出した第1のテキストデータを前記テキスト通信装置に送信し出力させるステップと、前記テキスト通信装置において入力された第2のテキストデータを前記テキスト通信装置から受信するステップと、前記第2のテキストデータを前記第1のテキストデータの子として前記データベースに登録するステップと、前記第2のテキストデータに近似する第3のテキストデータを前記データベースから検索するステップと、検索された第3のテキストデータを親とする第4のテキストデータを前記データベースから検索するステップと、検索された第4のテキストデータが前記第3のテキストデータの子であるだけでなく前記第2のテキストデータの子にもなるように、前記データベースにおける前記第2のテキストデータと前記第4のテキストデータの間の親子関係の定義付けを変更するステップと、を実行するデータベースの更新方法である。ここで、前記ホスト通信装置が、前記第2のテキストデータを、前記テキスト通信装置とは異なる他のテキスト通信装置に送信し出力させるステップと、前記他のテキスト通信装置において入力された第5のテキストデータを前記他のテキスト通信装置から受信するステップと、前記第5のテキストデータを前記第2のテキストデータの子として前記データベースに登録するステップと、を実行するとよい。また、前記ホスト通信装置が、前記第5のテキストデータが前記第2のテキストデータの子であるだけでなく前記第3のテキストデータの子にもなるように、前記データベースにおける前記第3のテキストデータと前記第5のテキストデータの間の親子関係の定義付けを変更するステップを実行するとよい。
【0007】
このように、第1のテキストデータを出力し、実際に入力されて初めて第1のテキストデータに対して子として定義できるような第2のテキストデータを新たに入力させて、入力された第2のテキストデータをいずれかのテキストデータの親として定義することにより、新たに入力されたテキストデータをデータベースに取り込むことができる。取り込まれたテキストデータは、実際に特定の人によって入力されたものであるから、リアリティがある。また、新たに取り込まれた第2のテキストデータは、第1のテキストデータに対して子として既に定義されていたものではないので、ストーリーを豊富にすることができ、飽きが来ない。
【0009】
ここで、テキストデータの近似性については、例えば、テキストデータから抽出されたキーワードとの一致数又は共起語の出現数等種々の条件で判断することができるが、これに限られない。
【0011】
また、前記テキストデータはゲームにおける複数のキャラクタ間の対話において交換されるメッセージを構成するものであってもよい。
【0012】
このように、複数のキャラクタ間でメッセージを交換するゲームのメッセージのデータベースに本発明を適用すると、プレイヤーに対してキャラクタから提示されるメッセージが実在の他のプレイヤーが以前に入力したテキストデータである可能性もあるので、キャラクタのリアリティが増す。また、種々の異なる感性を持ったプレイヤーが入力した個性的なテキストデータを取り込むことができるので、ストーリー展開を豊富にでき、飽きの来ないゲームを実現することができる。
【0013】
また、本発明は、上記データベースの更新方法における各ステップを、前記ホスト通信装置に実行させるためのプログラムを記憶させたコンピュータで読み取り可能な記憶媒体である。
【0014】
ここで、記憶媒体にはFD(フレキシブルディスク),CD−ROM,DVD−ROM,HD(ハードディスク)等が含まれるが、プログラムを記憶あるいは保持させることのできるものであればこれらに限られない。
【0016】
【発明の実施の形態】
以下に図面を参照して、この発明の好適な実施の形態を説明する。
【0017】
図1は、本発明の第1の実施の形態に係るテキスト通信システムの主要部の概略構成を示したブロック図である。
【0018】
まず、本テキスト通信システムは、主として、入出力装置1と算出装置2とからなる。入出力装置1は、テキスト(文章)の入出力が可能なものであればよく、例えば、テキストを表示するディスプレイ等の表示部11とテキストの選択あるいは文字入力等の入力を行う入力部とプログラムを格納するROM(リードオンリーメモリ),データ等を格納するRAM(ランダムアクセスメモリ)等の記憶部と種々の演算,論理判断及び制御を行うCPU(セントラルプロセッシングユニット)とを備え、モデム等の通信装置にインターフェースを介して接続される通信機能を備えたゲーム機,携帯情報端末,パーソナルコンピュータ,携帯電話等によって構成することができる。算出装置2は、入出力装置1から入力されたテキストに応じたテキストを抽出して入出力装置1に出力させるものであればよく、例えば、ROM,RAM及びHD(ハードディスク)等の記憶部とCPUとを備え、ターミナルアダプタ等の通信装置にインターフェースを介して接続されるコンピュータによって構成することができる。ここでは、入出力装置1がテキスト通信装置に相当し、算出装置2がホスト通信装置に相当する。また、表示部11が質問表示部,回答表示部に相当する。さらに図示しない入力部が回答入力部,選択入力部及び自由入力部に相当する。
【0019】
入出力装置1と算出装置2とは、公衆電話回線,ISDN回線,ケーブルテレビ用通信線,専用線等の有線の通信ネットワークによって接続されていてもよいし、携帯電話網等の無線の通信ネットワークによって接続されていてもよい。また、これらのネットワークを介したインターネットで接続されていてもよい。
【0020】
算出装置2は、主として、入力種別判定機(入力テキスト判定部)3,自然言語解析機4,結線データ変更機(テキスト関係変更部)5,文章データ記憶装置(テキスト保持部)6,結線データ記憶装置(テキスト関係保持部)7及び出力文章作成機(質問抽出部,回答抽出部)8とからなる。ここで、結線データ変更機5は、後述するように、結線データ変更機1と結線データ変更機2とからなる。
【0021】
このようなシステムを用いてゲームを行う場合を例として説明する。
【0022】
ゲームのストーリーは、「昨日、インターネットで『大事件』が起きた。翌日の朝のニュースで大きく報道され、事件の首謀者のひとりである『女』は、苦悩する。『男』はたわいもない間違いメールがきっかけで『女』と知り合う」、という設定である。プレイヤーはストーリー上で「男」又は「女」のいずれかに扮する。プレイヤーが「男」を選択した場合には、入出力装置1の表示部11には、「女」からのメールが表示されるとともに、そのメールに対して「男」から返信するメッセージの選択肢が表示される。プレイヤーが選択肢のいずれかを選択すると、そのメールに対する「女」からのメールと、「男」から返信するメッセージの選択肢がさらに表示される。このようにして、「男」と「女」との間で電子メールのやりとりを行うことにより、ゲームが進行する。プレイヤーが「女」を選択した場合も同様に、「男」と「女」が入れ替わった形でゲームが進行する。
【0023】
(全体の流れ)
図2にゲームの全体の流れを示す。
【0024】
まず、プレイヤーは、自分が「男」か「女」かを選択する(ステップ1)。キャラクタの選択は、例えば、ディスプレイ上に「男」,「女」の文字を表示し、カーソル等のポインタをいずれかの表示領域に移動させてボタンを押す等の入力部の操作によって行う。算出装置2側では、プレイヤーによって選択された情報をmychar_noとし、選択されなかった相手方の情報をyouchar_noと定義し、プレイヤーが男を選択した場合にはmychar_no=0,youchar_no=1と設定し、女を選択した場合にはmychar_no=1,youchar_no=0と設定する。
【0025】
次に、算出装置2において、表示する質問とその質問に対する選択肢を算出する(ステップ2)。
【0026】
次に、プレイヤーがゲームの終了を指示しているか否かを判定する(ステップ3)。終了を指示していない場合には、算出装置2において算出された質問と選択肢を入出力装置1に送信し、表示部11に表示させる(ステップ4)。選択肢には、表示部11に表示されるメッセージのいずれかを選択するものと、メッセージの表示と並んで又はその表示に代わってプレイヤーが自由に文字を入力できるフリーメール入力のための選択肢とがある。プレイヤーは表示部11に表示される質問を見て、表示されたメッセージのいずれかを選択するか、又はフリーメールの入力を行う(ステップ5)。算出装置2では、プレイヤーの入力に応じて、さらに表示する質問と選択肢の算出を行う。
【0027】
ステップ3において、プレイヤーがゲームの終了を指示している場合には、表示部11に終了画面を表示して(ステップ6)、ゲームを終了する。
【0028】
図3に、プレイヤーが「男」を選択した場合に、入出力装置1の表示部11に表示される「男」と「女」のメッセージの関係を示す。「男」と「女」のメッセージは階層構造を反映した樹形図で表現され、この階層構造においてメッセージはゲームのストーリーの展開に従って下方へと樹形図の階層間を移動するように関係づけられている。
【0029】
例えば、プレイヤーの入出力装置1の表示部11には、「男」からのメールとして「こんにちは!君の趣味は?」と「メール初心者です。ちょっと緊張してます。」の二つの選択肢が表示される。
【0030】
プレイヤーが「こんにちは!君の趣味は?」とのメッセージを選択すると、表示部11には「女」からのメールとして「私の趣味は歌うこと。カラオケ大好き!」と「趣味?んー、寝ることとか。」のいずれかが乱数,統計等を利用して選択され、表示される。
【0031】
一方、プレイヤーが「メール初心者です。ちょっと緊張してます。」とのメッセージを選択すると、表示部11には、この「男」からのメッセージに対応する「女」からのメールとして設定されている「私もはじめてなんだ。」と「メール大好き!よろしくね。」の二つのメッセージのうちからいずれかが乱数,統計等を利用して選択され、表示される。「女」からのメールとして「私もはじめてなんだ。」とのメッセージが選択されると、「男」からの返信メールとして「普段、なにしてるの?」と「そうなんですか」とプレイヤーが任意又は一定の制約内で任意のメッセージである「フリーメール」入力の選択肢が表示される。プレイヤーが「普段、なにしてるの?」を選択すると、「女」からのメールとして「ひまな時はTV見てる、今朝のNEWS、すごかった!」と「パソコンとか好きだよ。昨日の事件も……、あ、なんでもないの。」の二つのメッセージのうちのいずれかが乱数,統計を利用して選択されて表示部11に表示される。
【0032】
図4に、プレイヤーが「女」を選択した場合に、入出力装置1の表示部11に表示される「女」と「男」のメッセージを同様の樹形図で示す。
【0033】
ここでは、「男」からのメッセージとして、「こんにちは!君の趣味は?」と「メール初心者です。ちょっと緊張してます。」の二つのメッセージのうちのいずれかが乱数,統計等を利用して選択されて入出力装置1の表示部11に表示される。
【0034】
「メール初心者です。ちょっと緊張してます。」が選択されて表示された場合には、これに対する「女」からのメールとして「私もはじめてなんだ。」と「メール大好き!よろしくね。」の二つのメッセージが表示され、プレイヤーはいずれかのメッセージを選択することができる。
【0035】
プレイヤーが「私もはじめてなんだ。」を選択すると、「男」からの返信メールとして「普段、なにしてるの?」と「そうなんですか」の二つのメッセージのうちのいずれかが乱数,統計等を利用して選択して表示される。
【0036】
以下、同様にプレイヤーが「男」を選択した場合と「女」を選択した場合とで、相手から自分に送られるメールと自分から相手に送るメールとが表裏の関係をなす形でゲームが進行して行く。
【0037】
(算出装置における処理)
図5に示すフローチャートに従って、算出装置2における処理手順を説明する。 まず、算出装置2では、データ入力の調査を行う(ステップ11)。
【0038】
次に、入力種別判定機の処理を行う(ステップ12)。ここでは、入出力装置からの入力が選択肢の選択であるかフリーメールの入力であるかの判定を行う。入力種別判定機は、例えば、ROM,RAM及びCPUから構成され、ROMに格納された判定プログラムをレジスタ上に展開し、RAMに保持された入力データを読み出し、CPUで実行することによって行う。
【0039】
ステップ12において、入力の種別が選択肢であれば、ステップ19に進み、出力文章作成機8における処理を行う。一方、ステップ12において、入力の種別がフリーメール入力であれば、一定時間待機し(ステップ13)、自然言語解析機4において後述する自然言語解析処理を行う(ステップ14)。
【0040】
自然言語解析機4においては、入力データがエラーか否かを判定する(ステップ15)。ここで、エラーと判定されれば、ステップ19に進み、出力文章作成機8における処理を行う。一方、エラーと判定されなければ、解析結果を結線データ変更機1に送り、後述する結線データ変更処理を行う(ステップ16)。結線データ変更機1における処理の後に、一定時間待機し(ステップ17)、結線データ変更機2において、後述する結線データ変更処理を行う(ステップ18)。結線データ変更機2における処理の後に、出力文章作成機8における出力文章作成処理を行う(ステップ19)。
【0041】
(出力文章作成機における処理)
ここで、出力文章作成機8における出力文章作成処理について説明する。出力文章作成機は、例えば、ROM,RAM,HD及びCPUから構成される。
【0042】
図6は、出力文章作成処理手順を示すフローチャートである。
【0043】
まず、出力文章作成機8は、入力されたフリーメールに対する文章ナンバー又はエラーコードのいずれかを受け取り、これをStrAnsNoと命名する(ステップ21)。
【0044】
ここで、ステップ21の処理について、図7を参照して、図3で示した樹形図でプレイヤーが「メール初心者です。ちょっと緊張してます。」を選択した場合を例として具体的に説明する。図7は文章データ記憶装置6に格納されている文章データのフォーマットである。図7を参照すると、プレイヤーが選択した「メール初心者です。ちょっと緊張してます。」の文章データには、文章ナンバー「0002」が付与されている。従って、この場合には、StrAnsNo=0002となる。図7に示すように、上述の「男」及び「女」のメッセージとなる文章データには、それぞれ文章ナンバーが付与されており、キャラクタの男女の区別を示すCHAR_Noが登録されている(CHAR_No=0が男,CHAR_No=1が女を示す。)。質問と回答とは、プレイヤーの選択したキャラクタに応じて入れ替わる。
【0045】
ステップ21において、文章ナンバーを受け取っている場合には(ステップ22)、結線データ記憶装置7からStrAnsNoに対応する次の質問をリストアップし(ステップ23)、リストアップされた文章のうちから、乱数発生機等を利用してStrAnsNoに対応する次の質問を決定し、StrNextQuesNoと命名する(ステップ24)。
【0046】
ステップ24の処理を上述の例に即して具体的に説明する。ここで、図8は結線データ記憶装置7に格納されている結線データのフォーマットを示す。
【0047】
図8を参照すると、0002に対応する次の質問となるのは、文章ナンバー「0016」,「0017」の文章データである。図7を参照すると、文章ナンバー「0016」,「0017」は、それぞれ「私もはじめてなんだ。」と「メール大好き!よろしくね。」との文章データに付与されていることがわかる。ここで、乱数等により「私もはじめてなんだ。」が選択されると、StrNextQuesNo=0016となる。
【0048】
ステップ24に続いて、結線データ記憶装置7からStrNextQuesNoに対応する次の回答をリストアップし、それらの集合をStrNextAnswersと命名する(ステップ25)。
【0049】
ステップ25の処理を上述の例に即して具体的に説明する。
【0050】
ここで、図8を参照すると、StrNextQuesNo=0016に対応する次の回答は、文章ナンバー「0018」,「0019」,「9999」である。従って、この場合には、StrNextAnswers=0018,0019,9999となる。
【0051】
ステップ25に続いて、StrNextQuesNoに対応する文章を次の質問として、StrNextAnswersに対応する文章を次の回答用選択肢として、入出力装置1に表示する準備を行い(ステップ26)、出力文章作成処理を終了する。
【0052】
ステップ26の処理を上述の例に即して具体的に説明する。
【0053】
上述のように、StrNextQuesNo=0016であり、StrNextAnswers=0018,0019,9999である。従って、文章ナンバー「0016」の「私もはじめてなんだ。」が次の質問として、文章ナンバー「0018」,「0019」,「9999」の「普段、なにしてるの?」,「そうなんですか」及びフリーメール入力のための選択肢が次の回答用選択肢として、表示部11に表示されることとなる。
【0054】
ステップ21でエラーコードを受け取った場合には、StrNextQuesNoを10000+youchar_noとし(ステップ27)、ステップ25に進む。
【0055】
ステップ27の処理を上述の例に即して具体的に説明する。
【0056】
プレイヤーは「男」を選択しているので、youchar_no=1である。従って、プレイヤーの入力したフリーメールの文章がエラーと判定された場合には、StrNextQuesNo=10001となる。図7を参照することにより、文章ナンバー10001の「ねえ、ねえ。話は変わるけど好きな食べ物は?」のメッセージが次の質問として表示部11に表示される。
【0057】
(自然言語解析機における処理)
次に、自然言語解析機4における自然言語解析処理について説明する。
【0058】
図9は、自然言語解析処理の手順を示すフローチャートである。
【0059】
自然言語解析機4は、例えば、ROM,RAM,HD及びCPUから構成され、ROMに格納された解析プログラムをレジスタ上に展開し、RAMに保持された入力データ及びHDに格納された解析テーブルを読み出し、CPUで実行することによって解析処理を行う。
【0060】
自然言語解析機4では、まず、フリーメールとして入力された文章の解析を行う(ステップ31)。次に、解析の結果がエラーであるか否かを判定する(ステップ32)。ここで、エラーでなければ、文章データ記憶装置6に入力されたメッセージを蓄積し(ステップ33)、当該メッセージの文章ナンバーを決定し(ステップ34)、文章ナンバーを出力する(ステップ35)。エラーであれば、エラーコードを決定し(ステップ36)、エラーコードを出力する(ステップ35)。
【0061】
ここで、自然言語解析処理について、上述の例に即して具体的に説明する。
【0062】
図3において「メール初心者です。ちょっと緊張してます。」を選択したプレイヤーが、「私もはじめてなんだ。」との「女」からのメールに対して、フリーメールを選択して入力した状態を図10に示す。プレイヤーは、フリーメールとして「昨日の事件は君のイタズラ?」という文章を入力している。
【0063】
ステップ31においては、文章の解析、すなわち、入力された文字列が文章を構成するか否かの解析を行う。プレイヤーが入力した文字列は上述のように文章を構成しているので、ステップ33,34に進み、文章データ記憶装置6に蓄積されるとともに文章ナンバーが決定される。図11は文章データ記憶装置6の文章データのフォーマットを示す。プレイヤーが入力した文章に文章ナンバー「0300」が付与され、「男」のメッセージとして登録されている。従って、この場合には、ステップ35において、該当する文章ナンバー「0300」を出力する。
【0064】
(結線データ変更機1における処理)
次に、結線データ変更機1における結線データ変更処理について説明する。結線データ変更機1は、例えば、ROM,RAM,HD及びCPUから構成される。
【0065】
図12は結線データ変更処理手順を示すフローチャートである。
【0066】
まず、結線データ変更機1では、入力データに付与された文章ナンバーを受け取り、これをStrAnsNoと命名する(ステップ41)。
【0067】
次に、結線データのフォーマットにおいて、StrAnsNoの前の選択肢に、StrAnsNoを加え、フリーメール入力の選択肢を削除する(ステップ42)。すなわち、ここでは、フリーメール入力の選択肢とStrAnsNoとを入れ換えている。
【0068】
次に、結線データフォーマットにおいて、StrAnsNoに続く質問データとして、フリーメール入力の選択肢を登録する(ステップ43)。
【0069】
次に、後述するフリーメールエリア(フリーメール入力の選択肢)作成機の処理を実行し(ステップ44)、結線データ変更機1の処理を終了する。
【0070】
ここで、結線データ変更処理について、上述の例に即して具体的に説明する。
【0071】
ステップ41の処理では、上述のフリーメールとして入力された文章ナンバーが「0300」であるから、StrAnsNo=0300となる。
【0072】
文章ナンバー「0300」の前の文章は「私も初めてなんだ。」であり、文章ナンバーが「0016」であるから、StrAnsNoの前の選択肢は文章ナンバー「0018」,「0019」,「9999」である(図8参照)。従って、ステップ42の処理においては、文章ナンバー「0016」の選択肢を「0018」,「0019」,「0300」とする。このように変更した状態での図3に対応する樹形図を図13に示す。プレイヤーが入力した文章が、「女」からの「私も初めてなんだ。」とのメールに対応する「男」からのメールの選択肢として登録されている。
【0073】
続くステップ43の処理として、文章ナンバー「0300」に続く質問データとしてフリーメール入力の選択肢を示す文章ナンバー「9999」を登録する。このように変更した状態を示す結線データフォーマットが図14であり、樹形図が図15である。
【0074】
次に、ステップ44として後述するフリーメールエリア作成機の処理を実行し、結線データ変更機1の処理を終了する。
【0075】
(フリーメールエリア作成機における処理)
次に、フリーメールエリア作成機におけるフリーメールエリア作成処理について説明する。フリーメールエリア作成機は、例えば、ROM,RAM,HD及びCPUから構成される。
【0076】
図16は、フリーメールエリア作成処理手順を示すフローチャートである。
【0077】
まず、結線データ記憶装置7のデータを先頭からひとつずつ読み出すために、読み出しポインタを0に設定する(ステップ51)。
【0078】
次に、配列変数fmn[]を用意し初期化する(ステップ52)。
【0079】
次に、結線データ記憶装置7のデータを、読み出しポインタの位置からひとつ読み出し(ステップ53)、回答ナンバーに9999(すなわちフリーメールエリア)が存在するか否かを判定する(ステップ54)。
【0080】
ステップ54において、回答ナンバーに9999が存在すれば、読み出したデータの深度を計算してsel_numberとし、fmn[sel_number/5]に1を加え(ステップ55)、結線データ記憶装置7の読み出しポインタに1を加える(ステップ56)。ここで、データの深度とは、当該データが結線データ記憶装置のデータのうちで最初から何番目に現れる選択肢であるかという情報である。
【0081】
ステップ54において、回答ナンバーに9999が存在しなければ、ステップ56に進む。
【0082】
ステップ56で結線データ記憶装置7の読み出しポインタに1を加えた後に、結線データ記憶装置7のデータを最後まで読んだか否かを判定する(ステップ57)。ここで、データを最後まで読んでいなければ、ステップ53に戻り、次のデータを読み出し同様の処理を行う。一方、データを最後まで読んでいれば、配列変数fmn[]を最初の要素からひとつずつ読み出すために、読み出しポインタskを0にする(ステップ58)。
【0083】
次に、fmn[sk]からデータを読み出し(ステップ59)、fmn[sk]から読み出されたデータが一定値を超えているか否かを判定する(ステップ60)。
【0084】
ステップ60において、fmn[sk]から読み出されたデータが一定値を超えていなければ、結線データの深度をnとし、sk×5≦n<(sk+1)×5であり、かつ回答ナンバーに9999を持たない結線データの集合の中から、ランダムに1つを選び、回答ナンバーに9999を加え、回答数に1を加える(ステップ61)。
【0085】
ステップ60において、fmn[sk]から読み出されたデータが一定値を超えていれば、fmn[]を最後まで読んだか否かを判定する(ステップ62)。ステップ61の処理が終了した後も同様にステップ62へと進む。
【0086】
ステップ62において、fmn[]を最後まで読んでいれば、フリーメールエリア作成処理を終了し、fmn[]を最後まで読んでいなければ、skに1を加え(ステップ63)、ステップ59に戻り次のデータを読み出して同様の処理を行う。
【0087】
上述の処理では、概略、結線データをいくつかのデータ群に分割し、フリーメールエリアの少ないデータ群に対してはフリーメールエリアを新たに設定している。従って、フリーメールエリアを均等に自動生成し、プレイヤーの興味を常にひきつけるとともに、リアリティの増大及びストーリー展開の豊富化を保障することができる。
【0088】
(結線データ変更機2における処理)
次に、結線データ変更機2における結線データ変更処理について説明する。結線データ変更機2は、例えば、ROM,RAM,HD及びCPUから構成される。
【0089】
図17は、結線データ変更処理手順を示すフローチャートである。
【0090】
まず、結線データ変更機2では、入力されたフリーメールに付与された文章ナンバーを受け取り、これをStrAnsNoと命名する(ステップ71)。
【0091】
次に、文章データ記憶装置6から、StrAnsNoの文章に似た内容の文章を検索し、StrLikeと命名する(ステップ72)。
【0092】
ステップ72において、StrAnsNoの文章に似た内容の文章が見つかった場合には、StrLikeに続く選択肢をStrAnsNoに続く選択肢に加える(ステップ73,74)。次に、StrAnsNoに続く選択肢をStrLikeに続く選択肢に加え(ステップ75)、ステップ72に戻って検索を繰り返す。
【0093】
ステップ72において、StrAnsNoの文章に似た内容の文章が少なくともひとつは見つかっている場合には(ステップ76)、結線データ変更処理を終了する。
【0094】
ステップ72において、StrAnsNoの文章に似た内容の文章がひとつも見つかっていない場合には(ステップ76)、StrAnsNoに有効な選択肢がないか否かを判定する(ステップ77)。
【0095】
ステップ77において、StrAnsNoに有効な選択肢がある場合には、結線データ変更処理を終了する。
【0096】
ステップ77において、StrAnsNoに有効な選択肢がない場合には、エラーコードを出力し(ステップ78)、結線データ変更処理を終了する。
【0097】
ここで、結線データ変更処理について、上述の例に即して具体的に説明する。図5に示すように、結線データ変更機1と結線データ変更機2との処理の間で一定時間待機するので、文章ナンバー「0300」に続く質問データとして設定されたフリーメール入力の選択肢に対して(図12のステップ43参照)、「女」を選択した他のプレイヤーがフリーメールを入力する場合がある。以下では、このように展開した例に即して説明する。
【0098】
まず、図18に、「女」を選択したプレイヤーから見た樹形図である図4に従って他のプレイヤーのプレイ内容を示す。プレイヤーは、「メール初心者です。ちょっと緊張してます。」との「男」からのメールに対して「私も初めてなんだ。」を選択し、これに対して算出装置2が「昨日の事件は君のイタズラ?」を選択し「男」からのメールとして表示部11に表示している。このメールに対する回答としてフリーメール入力の選択肢が設定されているので、プレイヤーは「一体、どれだけ私の事を知っているというの?昨日の事件のことなんて、なんにも知らないクセに!」と入力している。この入力データに対して自然言語解析機4及び結線データ変更機1の処理が行われる。すなわち、文章データ記憶装置6に蓄積されるとともに文章ナンバー0301を付与され、0300の選択肢に0301が加えられてフリーメール入力の選択肢が削除され、0301に続く質問データとしてフリーメール入力の選択肢が設定されている。このように変更された文章データ記憶装置6の文章データのフォーマットと結線データ記憶装置7の結線データフォーマットとを図19及び図20に示す。 この場合の結線データ変更機2の処理において、ステップ71の処理では、StrAnsNo=0300である。
【0099】
続くステップ72の処理において、文章ナンバー「0300」の文章に似た内容の文章として文章ナンバー「0007」の「昨日の事件も君の趣味なの?」が該当するので、検索の結果、StrLike=0007となる。
【0100】
ステップ74の処理において、文章ナンバー「0007」に続く選択肢は図20を参照すると文章ナンバー「0011」及び「0012」の文章である。従って、文章ナンバー「0011」及び「0012」の文章をStrAnsNo=0300の選択肢に加える。さらに、ステップ75の処理において、StrAnsNo=0300に続く選択肢である文章ナンバー「0301」をStrLike=0007の選択肢に加える。このように変更された結線データのフォーマットを図21に、「男」を選択したプレイヤーのためのメッセージ間の関係を表す樹形図を図22に示す。
【0101】
文章ナンバー「0300」の文章に似た内容の文章は文章ナンバー「0007」の文章のみであるので、ステップ76における判定でNoとなり結線データ変更処理を終了する。
【0102】
以上、本発明の実施形態に係るテキスト通信システムについて「男」と「女」がメールをやりとりして進行するゲームを例として説明した。フリーメール入力の選択肢に対して「男」を選択したプレイヤー(「女」を選択した場合も同様)が入力した文章が、ゲームの進行に伴って出力される文章データの一つとして取り込まれる。すなわち、新たに入力されたテキストデータが出力されるテキストデータのデータベースに登録され他のテキストデータと関係付けられることにより、データベースが更新され、当該新たに入力されたテキストデータを含むストーリーが創出される。このようにして取り込まれたテキストデータは、「男」から「女」を選択したプレイヤーへのメールとしてあるいは「男」を選択したプレイヤーから「女」へのメールの選択肢として出力されることとなる。このように、プレイヤーは、他のプレイヤーが実際に入力したテキストを相手からのメールとして受け取ることができ、展開によっては自らも自由にメールを入力できるので、プレイヤーにとっても実在の相手とメールをやりとりするかのような感覚を味わうことができ、ゲームのリアリティが増す。また、プレイヤーの入力によってテキストデータ及びストーリーが増殖して行くので、繰り返しゲームをする場合でもプレイヤーを飽きさせることがない。また、上述の例では設定されているキャラクタは2人であるが、3人以上のキャラクタの間で会話が行われるような設定の場合にも同様に本発明を適用することができる。
【0103】
【発明の効果】
以上説明したように、本発明によれば、ストーリーの展開に伴って階層間を移動するように互いに関係付けられたテキストデータからなる階層構造を有するデータベースにおいて、現実に自由に入力されたテキストデータを取り込むことができるので、リアリティにあふれ飽きの来ないストーリー展開が可能となる。
【図面の簡単な説明】
【図1】図1は、本発明の実施形態に係るメッセージ通信システムの主要部の概略構成を示したブロック図である。
【図2】図2はゲームの全体の流れを示すフローチャートである。
【図3】図3はプレイヤーが「男」を選択した場合に入出力装置の表示部11に表示される「男」と「女」のメッセージの関係を示すカード図である。
【図4】図4はプレイヤーが「女」を選択した場合に入出力装置の表示部11に表示される「女」と「男」のメッセージの関係を示すカード図である。
【図5】図5は算出装置における処理手順を示すフローチャートである。
【図6】図6出力文章作成機における処理手順を示すフローチャートである。
【図7】図7は文章データ記憶装置に格納されている文章データフォーマットの構成を示す図である。
【図8】図8は結線データ記憶装置に格納されている結線データフォーマットの構成を示す図である。
【図9】図9は自然言語解析機における処理手順を示すフローチャートである。
【図10】図10はプレイヤーのプレイ内容を示すカード図である。
【図11】図11は文章データ記憶装置に格納されている文章データフォーマットの構成を示す図である。
【図12】図12は結線データ変更機1における処理手順を示すフローチャートである。
【図13】図13は結線データ変更機1の処理によって変更された状態を示すカード図である。
【図14】図14は結線データ変更機1の処理によって変更された状態を示す結線データフォーマットの構成を示す図である。
【図15】図15は結線データ変更機1の処理によって変更された状態を示すカード図である。
【図16】図16はフリーメールエリア作成機における処理手順を示すフローチャートである。
【図17】図17は結線データ変更機2における処理手順を示すフローチャートである。
【図18】図18「女」を選択したプレイヤーのプレイ内容を示すカード図である。
【図19】図19は結線データ変更機2の処理によって変更された文章データフォーマットの構成を示す図である。
【図20】図20は結線データ変更機2の処理によって変更された結線データフォーマットの構成を示す図である。
【図21】図21は結線データ変更機2の処理によって変更された結線データフォーマットの構成を示す図である。
【図22】図22は「男」を選択したプレイヤーのためのメッセージ間の関係を示すカード図である。
【符号の説明】
1 入出力装置
2 算出機
3 入力種別判定機
4 自然言語解析機
5 結線データ変更機
6 文章データ記憶装置
7 結線データ記憶装置
8 出力文章作成機[0001]
BACKGROUND OF THE INVENTION
The present invention includes a database update method comprising text data, an output unit capable of outputting text, and an input unit for inputting text, such as a game machine, a mobile phone, a personal digital assistant, a personal computer, etc. The present invention relates to a text communication system including a device capable of transmitting and receiving text to and from the Internet.
[0002]
[Prior art]
Conventionally, as this type of text communication system, for example, there is a system in which a personal computer and a host computer are connected via the Internet and a game is played on the personal computer. In such a text communication system, first, according to a set story, text as a question from the host computer and text as a plurality of answers to the question are displayed on the display of the user's personal computer. Here, when the user selects and inputs an appropriate one from a plurality of answers, the information is transmitted to the host computer side, and the text corresponding to the selected answer and the plurality of answers are extracted. It is displayed again on the display of the user's personal computer. In this way, the game progresses as text is transmitted and received between the user and the host in an interactive manner.
[0003]
[Problems to be solved by the invention]
However, in such a system, according to a combination of texts prepared according to the story, he or she will interact with other characters as a character selected by himself or herself. There was a strong sense of dialogue and lack of reality.
[0004]
In addition, since the story also progresses by exchanging text selected from a predetermined number of text groups set in advance, the variety of development is limited, and tiredness is caused by repeating the number of times.
[0005]
The present invention has been made to solve the above-described problems of the prior art, and an object of the present invention is to provide a database and a text communication system capable of developing stories that are full of reality and never get tired. .
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the present invention updates a database comprising a plurality of text data having a hierarchical structure in which a parent-child relationship between text data is defined so as to move between hierarchies as a story develops. The method is capable of communicating with a text communication device via a network, and the host communication device including the database reads first text data read from the database to the text communication device. Transmitting and outputting; receiving second text data input in the text communication device from the text communication device; and sending the second text data as a child of the first text data to the database. Registering and a third text approximating the second text data Retrieving the over data from the database, retrieving the fourth text data to parent third text data retrieved from the database, the fourth text data retrieved Not only a child of the third text data Child of the second text data Also Thus, there is provided a database updating method for executing the step of changing the definition of the parent-child relationship between the second text data and the fourth text data in the database. Here, the host communication device transmits the second text data to another text communication device different from the text communication device and outputs the second text data, and the fifth text data input in the other text communication device. The step of receiving text data from the other text communication device and the step of registering the fifth text data as a child of the second text data in the database may be executed. In addition, the host communication device may send the fifth text data Not only a child of the second text data Child of the third text data Also It is good to perform the step which changes definition of the parent-child relationship between the 3rd text data and the 5th text data in the database.
[0007]
In this way, the first text data is output, and second text data that can be defined as a child with respect to the first text data only after it is actually input is newly input. By defining this text data as the parent of any text data, newly entered text data can be taken into the database. Since the captured text data is actually input by a specific person, it has reality. In addition, since the newly imported second text data is not already defined as a child with respect to the first text data, the story can be enriched and the user will not get bored.
[0009]
Here, the closeness of the text data can be determined based on various conditions such as the number of matches with the keyword extracted from the text data or the number of co-occurrence words, but is not limited thereto.
[0011]
Also, the text data May constitute a message exchanged in a dialogue between a plurality of characters in a game.
[0012]
In this way, when the present invention is applied to a game message database in which messages are exchanged between a plurality of characters, the message presented from the character to the player is text data previously input by another player. Since there is a possibility, the character's reality increases. In addition, since unique text data input by players with various sensibilities can be captured, the story development can be abundant and a game that never gets tired can be realized.
[0013]
The present invention also provides a method for updating the database. Each step in the host communication device A computer-readable storage medium that stores a program to be executed by the computer.
[0014]
Here, the storage medium includes an FD (flexible disk), a CD-ROM, a DVD-ROM, an HD (hard disk), and the like, but is not limited thereto as long as the program can be stored or retained.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.
[0017]
FIG. 1 is a block diagram showing a schematic configuration of a main part of the text communication system according to the first embodiment of the present invention.
[0018]
First, the text communication system mainly includes an input /
[0019]
The input /
[0020]
The
[0021]
A case where a game is played using such a system will be described as an example.
[0022]
The story of the game is, “A big incident happened on the Internet yesterday. It was reported extensively in the morning news the next day, and the woman who was one of the masterminds of the incident suffered. It is a setting that "I met a woman" triggered by a mistaken email. " The player is jealous of “man” or “woman” on the story. When the player selects “male”, a mail from “female” is displayed on the
[0023]
(Overall flow)
FIG. 2 shows the overall flow of the game.
[0024]
First, the player selects whether he / she is “male” or “female” (step 1). The selection of the character is performed, for example, by operating the input unit such as displaying “male” and “female” characters on the display, moving a pointer such as a cursor to one of the display areas, and pressing a button. On the
[0025]
Next, the
[0026]
Next, it is determined whether or not the player gives an instruction to end the game (step 3). When the end is not instructed, the question and the option calculated by the
[0027]
In
[0028]
FIG. 3 shows the relationship between the “male” and “female” messages displayed on the
[0029]
For example, the
[0030]
When the player selects the message "Hello! Is your hobby?", The
[0031]
On the other hand, when the player selects the message “I am a beginner in mail. I am a little nervous.”, The
[0032]
FIG. 4 shows a similar tree diagram of the “woman” and “male” messages displayed on the
[0033]
Here, as a message from the "man", "Hello! Your hobby?" And "is a mail beginner. You have a little nervous." One of the two messages is to use a random number, statistics, etc. Are selected and displayed on the
[0034]
When "I am new to mail. I am a little nervous." Is selected and displayed, "I am also new to me" and "I love e-mail! Two messages are displayed and the player can select one of the messages.
[0035]
When the player selects “I am also new”, one of the two messages, “What are you usually doing?” And “What are you?” As a reply email from “Man” is random number, statistics Etc. are selected and displayed.
[0036]
Similarly, when the player selects “male” and “female”, the game progresses in such a way that the mail sent from the other party to himself and the mail sent from the other party to the other party are in reverse Go.
[0037]
(Processing in calculation device)
A processing procedure in the
[0038]
Next, processing of an input type determination machine is performed (step 12). Here, it is determined whether the input from the input / output device is a choice selection or a free mail input. The input type determination machine is constituted by, for example, a ROM, a RAM, and a CPU. The determination program stored in the ROM is developed on a register, the input data held in the RAM is read, and executed by the CPU.
[0039]
If it is determined in step 12 that the input type is an option, the process proceeds to step 19 where the processing in the output sentence creator 8 is performed. On the other hand, if the input type is free mail input in step 12, the system waits for a predetermined time (step 13), and the natural language analyzer 4 performs a natural language analysis process described later (step 14).
[0040]
In the natural language analyzer 4, it is determined whether or not the input data is an error (step 15). Here, if it is determined that there is an error, the process proceeds to step 19 where the processing in the output sentence creation machine 8 is performed. On the other hand, if it is not determined to be an error, the analysis result is sent to the
[0041]
(Processing in the output sentence creation machine)
Here, output sentence creation processing in the output sentence creation machine 8 will be described. The output sentence creation machine is composed of, for example, ROM, RAM, HD, and CPU.
[0042]
FIG. 6 is a flowchart showing an output sentence creation processing procedure.
[0043]
First, the output sentence creation machine 8 receives either the sentence number or the error code for the input free mail and names it StrAnsNo (step 21).
[0044]
Here, with reference to FIG. 7, the processing of step 21 will be described in detail by taking as an example a case where the player selects “I am a beginner in mail. I am a little nervous” in the tree diagram shown in FIG. To do. FIG. 7 shows a format of sentence data stored in the sentence data storage device 6. Referring to FIG. 7, the sentence number “0002” is assigned to the sentence data of “Email beginner. I am a little nervous” selected by the player. Therefore, in this case, StrAnsNo = 0002. As shown in FIG. 7, the sentence data serving as the above-mentioned “male” and “female” messages are assigned sentence numbers, and CHAR_No indicating the gender distinction of the character is registered (CHAR_No = 0 indicates male, CHAR_No = 1 indicates female.) The question and answer are switched according to the character selected by the player.
[0045]
If the sentence number is received in step 21 (step 22), the next question corresponding to StrAnsNo is listed from the connection data storage device 7 (step 23), and a random number is selected from the listed sentences. The next question corresponding to StrAnsNo is determined using a generator or the like and named StrNextQuesNo (step 24).
[0046]
The processing of step 24 will be specifically described based on the above example. Here, FIG. 8 shows a format of connection data stored in the connection data storage device 7.
[0047]
Referring to FIG. 8, the next question corresponding to 0002 is sentence data of sentence numbers “0016” and “0017”. Referring to FIG. 7, it is understood that the sentence numbers “0016” and “0017” are assigned to the sentence data “I am new to me for the first time” and “I love e-mails! Here, when “I am new for the first time” is selected by a random number or the like, StrNextQuesNo = 0016.
[0048]
Following step 24, the next answer corresponding to StrNextQuesNo is listed from the connection data storage device 7, and the set thereof is named StrNextAnswers (step 25).
[0049]
The processing of step 25 will be specifically described based on the above example.
[0050]
Here, referring to FIG. 8, the next answers corresponding to StrNextQuesNo = 0016 are the sentence numbers “0018”, “0019”, and “9999”. Therefore, in this case, StrNextAnswers = 0018,0019,9999.
[0051]
Subsequent to step 25, the sentence corresponding to StrNextQuesNo is used as the next question, and the sentence corresponding to StrNextAnswers is prepared as the next answer option to be prepared for display on the input / output device 1 (step 26). finish.
[0052]
The processing of step 26 will be specifically described based on the above example.
[0053]
As described above, StrNextQuesNo = 0016 and StrNextAnswers = 0018,0019,9999. Therefore, the sentence number “0016” “I am also new for the first time” is the next question. The sentence numbers “0018”, “0019”, “9999” are “What are you usually doing?” ”And the option for inputting a free mail are displayed on the
[0054]
If an error code is received in step 21, StrNextQuesNo is set to 10000 + youchar_no (step 27), and the process proceeds to step 25.
[0055]
The processing of step 27 will be specifically described based on the above example.
[0056]
Since the player has selected “male”, youchar_no = 1. Therefore, if the free mail text entered by the player is determined to be an error, StrNextQuesNo = 100 0 1 Referring to FIG. 7, the message “Hey, hey. What's your favorite story but what do you like?” Is displayed on the
[0057]
(Processing in a natural language analyzer)
Next, natural language analysis processing in the natural language analyzer 4 will be described.
[0058]
FIG. 9 is a flowchart showing a procedure of natural language analysis processing.
[0059]
The natural language analyzer 4 is composed of, for example, a ROM, a RAM, an HD, and a CPU, expands an analysis program stored in the ROM on a register, and stores input data held in the RAM and an analysis table stored in the HD. The analysis process is performed by reading and executing by the CPU.
[0060]
First, the natural language analyzer 4 analyzes a sentence input as a free mail (step 31). Next, it is determined whether or not the analysis result is an error (step 32). If there is no error, the message input to the text data storage device 6 is accumulated (step 33), the text number of the message is determined (step 34), and the text number is output (step 35). If there is an error, an error code is determined (step 36), and the error code is output (step 35).
[0061]
Here, the natural language analysis processing will be specifically described based on the above-described example.
[0062]
In Fig. 3, the player who selected "I am a beginner in mail. I am a little nervous" selected and entered a free mail in response to the mail from "Woman" saying "I am also new to you." Is shown in FIG. The player has entered the sentence “Yesterday's case is your mischief?” As a free mail.
[0063]
In step 31, the sentence is analyzed, that is, whether or not the input character string constitutes a sentence. Since the character string input by the player constitutes a sentence as described above, the process proceeds to steps 33 and 34, where it is stored in the sentence data storage device 6 and the sentence number is determined. FIG. 11 shows the format of text data in the text data storage device 6. A sentence number “0300” is assigned to the sentence input by the player, and is registered as a message of “male”. Accordingly, in this case, in step 35, the corresponding sentence number “0300” is output.
[0064]
(Processing in the connection data change machine 1)
Next, the connection data change process in the connection data change
[0065]
FIG. 12 is a flowchart showing the connection data change processing procedure.
[0066]
First, the
[0067]
Next, in the format of the connection data, StrAnsNo is added to the options before StrAnsNo, and the free mail input options are deleted (step 42). That is, here, the choice of free mail input and the StrAnsNo are interchanged.
[0068]
Next, in the connection data format, free mail input options are registered as question data following StrAnsNo (step 43).
[0069]
Next, the processing of a free mail area (free mail input option) creation machine, which will be described later, is executed (step 44), and the processing of the connection
[0070]
Here, the connection data change processing will be specifically described based on the above-described example.
[0071]
Step 4 In the process No. 1, since the sentence number input as the above-mentioned free mail is “0300”, StrAnsNo = 0300.
[0072]
Since the sentence before the sentence number “0300” is “I am also new” and the sentence number is “0016”, the options before StrAnsNo are the sentence numbers “0018”, “0019”, “9999”. (See FIG. 8). Therefore, step 4 In the
[0073]
Next steps 4 As the third process, a sentence number “9999” indicating a free mail input option is registered as question data following the sentence number “0300”. FIG. 14 shows a connection data format indicating the state changed in this way, and FIG. 15 shows a tree diagram.
[0074]
Next, the process of the free mail area preparation machine mentioned later is performed as step 44, and the process of the connection data change
[0075]
(Processing in free mail area creation machine)
Next, free mail area creation processing in the free mail area creation machine will be described. The free mail area creation machine is composed of, for example, ROM, RAM, HD, and CPU.
[0076]
FIG. 16 is a flowchart showing a free mail area creation processing procedure.
[0077]
First, in order to read the data in the connection data storage device 7 one by one from the head, the read pointer is set to 0 (step 51).
[0078]
Next, an array variable fmn [] is prepared and initialized (step 52).
[0079]
Next, one piece of data in the connection data storage device 7 is read from the position of the read pointer (step 53), and it is determined whether or not 9999 (that is, a free mail area) exists in the answer number (step 54).
[0080]
[0081]
In step 54, if 9999 does not exist in the answer number, the process proceeds to step 56.
[0082]
[0083]
Next, data is read from fmn [sk] (step 59), and it is determined whether or not the data read from fmn [sk] exceeds a certain value (step 60).
[0084]
In step 60, if the data read from fmn [sk] does not exceed a certain value, the connection data depth is n, sk × 5 ≦ n <(sk + 1) × 5, and the response number is 9999. One is randomly selected from the set of connection data having no, and 9999 is added to the answer number, and 1 is added to the number of answers (step 61).
[0085]
If the data read from fmn [sk] exceeds a certain value in step 60, it is determined whether or not fmn [] has been read to the end (step 62). Similarly, after the process of step 61 is completed, the process proceeds to step 62.
[0086]
In step 62, if fmn [] has been read to the end, the free mail area creation processing is terminated. If fmn [] has not been read to the end, 1 is added to sk (step 63), and the process returns to step 59. The next data is read and the same processing is performed.
[0087]
In the above-described processing, the connection data is roughly divided into several data groups, and a free mail area is newly set for a data group with a small free mail area. Therefore, the free mail area can be automatically generated equally, and the player's interest can always be attracted, and the increase in reality and the richness of story development can be ensured.
[0088]
(Processing in the connection data change machine 2)
Next, the connection data change process in the connection data change
[0089]
FIG. 17 is a flowchart showing a connection data change processing procedure.
[0090]
First, the
[0091]
Next, the sentence data storage device 6 is searched for a sentence having a content similar to the StrAnsNo sentence, and is named StrLike (step 72).
[0092]
In step 72, if a sentence similar to the sentence of StrAnsNo is found, the option following StrLike is added to the option following StrAnsNo (steps 73 and 74). Next, the option following StrAnsNo is added to the option following StrLike (step 75), and the process returns to step 72 to repeat the search.
[0093]
If at least one sentence similar in content to the StrAnsNo sentence has been found in step 72 (step 76), the connection data change process is terminated.
[0094]
In step 72, if no text having a content similar to the text of StrAnsNo is found (step 76), it is determined whether or not there is a valid option for StrAnsNo (step 77).
[0095]
If there is a valid option for StrAnsNo in step 77, the connection data change process is terminated.
[0096]
In step 77, if there is no valid option for StrAnsNo, an error code is output (step 78), and the connection data change process is terminated.
[0097]
Here, the connection data change processing will be specifically described based on the above-described example. As shown in FIG. 5, since it waits for a certain period of time between the processing of the connection data change
[0098]
First, FIG. 18 shows the play contents of other players according to FIG. 4 which is a tree diagram seen from the player who selected “woman”. The player selects “I am also new for the mail” from the “man” who is “Beginner of mail. I am a little nervous.” Is your mischief? "Is displayed on the
[0099]
In the processing of the subsequent step 72, since the sentence with the content similar to the sentence with the sentence number “0300” corresponds to “Yes, yesterday's case is your hobby?” As a result of the search, StrLike = 0007 It becomes.
[0100]
Step 7 4 In the above process, the options following the sentence number “0007” are sentences of the sentence numbers “0011” and “0012” with reference to FIG. Therefore, the sentences with the sentence numbers “0011” and “0012” are added to the options of StrAnsNo = 0300. Step 7 5 In this process, the sentence number “0301” which is an option following StrAnsNo = 0300 is added to the option of StrLike = 0007. The format of the connection data changed in this way is shown in FIG. 21, and a tree diagram showing the relationship between messages for the player who selected “male” is shown in FIG.
[0101]
Since the sentence having the content similar to the sentence having the sentence number “0300” is only the sentence having the sentence number “0007”, the determination in step 76 is “No”, and the connection data changing process is ended.
[0102]
As described above, the text communication system according to the embodiment of the present invention has been described by taking as an example a game in which “male” and “female” advance by exchanging mail. A sentence input by a player who selects “male” for the free mail input option (same when “female” is selected) is captured as one of sentence data output as the game progresses. In other words, newly input text data is registered in a database of output text data and related to other text data, thereby updating the database and creating a story including the newly input text data. The The text data captured in this way is output as an email to the player who has selected “man” from “man” or as an email option from the player who has selected “man” to “woman”. . In this way, the player can receive the text actually entered by other players as an email from the other party, and depending on the deployment, the player can also enter the email freely, so that the player can also exchange emails with the actual partner. You can feel as if you are doing, and the reality of the game increases. In addition, since text data and stories are proliferated by the player's input, the player is not bored even when the game is repeated. In the above example, two characters are set. However, the present invention can be similarly applied to a setting in which a conversation is performed between three or more characters.
[0103]
【The invention's effect】
As described above, according to the present invention, text data that is actually input freely in a database having a hierarchical structure made up of text data that are related to each other so as to move between levels as the story develops. It is possible to capture a story that is full of reality and never gets tired.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of main parts of a message communication system according to an embodiment of the present invention.
FIG. 2 is a flowchart showing the overall flow of the game.
FIG. 3 is a card diagram showing a relationship between “male” and “female” messages displayed on the
FIG. 4 is a card diagram showing the relationship between the “female” and “male” messages displayed on the
FIG. 5 is a flowchart illustrating a processing procedure in the calculation apparatus.
6 is a flowchart showing a processing procedure in the output sentence creation machine of FIG. 6;
FIG. 7 is a diagram showing a configuration of a text data format stored in a text data storage device.
FIG. 8 is a diagram illustrating a configuration of a connection data format stored in a connection data storage device;
FIG. 9 is a flowchart showing a processing procedure in a natural language analyzer.
FIG. 10 is a card diagram showing the play contents of the player.
FIG. 11 is a diagram showing a structure of a text data format stored in a text data storage device.
FIG. 12 is a flowchart showing a processing procedure in the
FIG. 13 is a card diagram showing a state changed by processing of the connection
FIG. 14 is a diagram showing a configuration of a connection data format showing a state changed by the processing of the connection data change
FIG. 15 is a card diagram showing a state changed by the processing of the connection data change
FIG. 16 is a flowchart showing a processing procedure in the free mail area creation machine.
FIG. 17 is a flowchart showing a processing procedure in the
FIG. 18 is a card diagram showing the play contents of the player who has selected “female” in FIG. 18;
FIG. 19 is a diagram showing a structure of a text data format changed by processing of the
FIG. 20 is a diagram showing a configuration of a connection data format changed by the processing of the
FIG. 21 is a diagram showing the configuration of the connection data format changed by the processing of the
FIG. 22 is a card diagram showing the relationship between messages for a player who has selected “male”.
[Explanation of symbols]
1 I / O device
2 calculator
3 Input type judgment machine
4 Natural language analyzer
5 Connection data change machine
6 Text data storage device
7 Connection data storage device
8 output sentence making machine
Claims (5)
テキスト通信装置との間でネットワークを介した通信が可能であり、且つ、前記データベースを備える、ホスト通信装置が、
前記データベースから読み出した第1のテキストデータを前記テキスト通信装置に送信し出力させるステップと、
前記テキスト通信装置において入力された第2のテキストデータを前記テキスト通信装置から受信するステップと、
前記第2のテキストデータを前記第1のテキストデータの子として前記データベースに登録するステップと、
前記第2のテキストデータに近似する第3のテキストデータを前記データベースから検索するステップと、
検索された第3のテキストデータを親とする第4のテキストデータを前記データベースから検索するステップと、
検索された第4のテキストデータが前記第3のテキストデータの子であるだけでなく前記第2のテキストデータの子にもなるように、前記データベースにおける前記第2のテキストデータと前記第4のテキストデータの間の親子関係の定義付けを変更するステップと、
を実行するデータベースの更新方法。A method for updating a database composed of a plurality of text data having a hierarchical structure in which a parent-child relationship between text data is defined so as to move between hierarchies as a story develops,
A host communication device capable of communicating with a text communication device via a network and comprising the database,
Sending and outputting the first text data read from the database to the text communication device;
Receiving second text data input in the text communication device from the text communication device;
Registering the second text data in the database as a child of the first text data;
Searching the database for third text data approximating the second text data;
Searching the database for fourth text data having the searched third text data as a parent;
The second text data and the fourth text data in the database are such that the retrieved fourth text data is not only a child of the third text data but also a child of the second text data. Changing the definition of the parent-child relationship between text data;
How to update the database to execute.
前記第2のテキストデータを、前記テキスト通信装置とは異なる他のテキスト通信装置に送信し出力させるステップと、
前記他のテキスト通信装置において入力された第5のテキストデータを前記他のテキスト通信装置から受信するステップと、
前記第5のテキストデータを前記第2のテキストデータの子として前記データベースに登録するステップと、
を実行する請求項1に記載のデータベースの更新方法。The host communication device is
Transmitting and outputting the second text data to another text communication device different from the text communication device;
Receiving fifth text data inputted in the other text communication device from the other text communication device;
Registering the fifth text data in the database as a child of the second text data;
The method for updating a database according to claim 1, wherein:
前記第5のテキストデータが前記第2のテキストデータの子であるだけでなく前記第3のテキストデータの子にもなるように、前記データベースにおける前記第3のテキストデータと前記第5のテキストデータの間の親子関係の定義付けを変更するステップを実行する請求項2に記載のデータベースの更新方法。The host communication device is
The third text data and the fifth text data in the database so that the fifth text data is not only a child of the second text data but also a child of the third text data. The database updating method according to claim 2, wherein the step of changing the definition of the parent-child relationship between the two is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31752199A JP4183866B2 (en) | 1999-11-08 | 1999-11-08 | Database update method and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31752199A JP4183866B2 (en) | 1999-11-08 | 1999-11-08 | Database update method and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001129261A JP2001129261A (en) | 2001-05-15 |
| JP4183866B2 true JP4183866B2 (en) | 2008-11-19 |
Family
ID=18089179
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31752199A Expired - Fee Related JP4183866B2 (en) | 1999-11-08 | 1999-11-08 | Database update method and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4183866B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3854210B2 (en) | 2002-09-11 | 2006-12-06 | 富士通株式会社 | Questionnaire method, questionnaire device, questionnaire program, computer-readable recording medium recording the questionnaire program, and respondent terminal |
| JP4659433B2 (en) * | 2004-10-26 | 2011-03-30 | 株式会社国際電気通信基礎技術研究所 | Problem automatic creation device and problem automatic creation program |
| CN103699632B (en) * | 2013-12-23 | 2017-09-08 | 深圳开立生物医疗科技股份有限公司 | A kind of UI Method for text detection and device |
| CN110227267B (en) * | 2019-06-28 | 2023-02-28 | 百度在线网络技术(北京)有限公司 | Voice skill game editing method, device and equipment and readable storage medium |
-
1999
- 1999-11-08 JP JP31752199A patent/JP4183866B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001129261A (en) | 2001-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105068661B (en) | Man-machine interaction method based on artificial intelligence and system | |
| JP3930489B2 (en) | Chat system, communication apparatus, control method thereof, and program | |
| KR101712180B1 (en) | Computer Readable Recording Medium with Program, method and apparatus for Transmitting/Receiving Message | |
| US7162197B2 (en) | Picture book production system, server for producing picture book, and recording medium | |
| JP2002109560A (en) | Animation reproduction apparatus, animation reproduction system, animation reproduction method, and computer-readable recording medium recording a program for executing the animation reproduction method | |
| JP2001228947A (en) | Expression data control system, expression data control device constituting the same, and recording medium on which the program is recorded | |
| KR20180123037A (en) | Information processing system, information processing apparatus, information processing method, and recording medium | |
| JP2002099376A (en) | Character communication device | |
| JPWO2009122745A1 (en) | Communication support device, communication support method, and communication support program | |
| JP3842563B2 (en) | Message exchange method and message exchange apparatus | |
| JP2002175296A (en) | Providing system of keyword searching game | |
| CN118761383A (en) | A method and system for generating literary scripts based on large language model | |
| CN109529344A (en) | Input method and device in game process | |
| JP4183866B2 (en) | Database update method and storage medium | |
| WO2007034829A1 (en) | Video creating device and video creating method | |
| JPH11242546A (en) | Server system, client/information supply system and medium recording processing program | |
| WO2001084367A1 (en) | Crossword puzzle supported by multi-language, crossword battle game system and method | |
| JP2002222334A (en) | Information processing apparatus, information processing method, storage medium storing information processing program, information processing program, net communication system, net communication method, storage medium storing net communication program, and net communication program | |
| CN118921345A (en) | Information sending and receiving processing method, system and computer program product | |
| JP4854424B2 (en) | Chat system, communication apparatus, control method thereof, and program | |
| JP4328441B2 (en) | Information provision system | |
| CN117732070A (en) | NPC interaction method and device, storage medium and electronic device | |
| JP3939607B2 (en) | Experience information sharing promotion device | |
| JP3916579B2 (en) | Community environment provision system | |
| JP3531675B1 (en) | GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060922 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080304 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080423 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080610 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080709 |
|
| 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: 20080819 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080903 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110912 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110912 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140912 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |