JP4677051B1 - Conversation system and conversation sentence processing method - Google Patents

Conversation system and conversation sentence processing method Download PDF

Info

Publication number
JP4677051B1
JP4677051B1 JP2010170505A JP2010170505A JP4677051B1 JP 4677051 B1 JP4677051 B1 JP 4677051B1 JP 2010170505 A JP2010170505 A JP 2010170505A JP 2010170505 A JP2010170505 A JP 2010170505A JP 4677051 B1 JP4677051 B1 JP 4677051B1
Authority
JP
Japan
Prior art keywords
sentence
user
keyword
answer
conversation
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
Application number
JP2010170505A
Other languages
Japanese (ja)
Other versions
JP2012032928A (en
Inventor
友資 工藤
Original Assignee
アット・イー・デザイン株式会社
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 アット・イー・デザイン株式会社 filed Critical アット・イー・デザイン株式会社
Priority to JP2010170505A priority Critical patent/JP4677051B1/en
Application granted granted Critical
Publication of JP4677051B1 publication Critical patent/JP4677051B1/en
Publication of JP2012032928A publication Critical patent/JP2012032928A/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

【課題】会話の入力文章に対する回答を記憶するDBを予め用意しなくても、ユーザとの会話を実現する。
【解決手段】ユーザの複数の端末装置と、ネットワークを介して端末装置に接続される管理サーバを有する会話システムにおいて、管理サーバは、端末装置から送信された、ユーザによって作成された文章に対して固有の文章IDを生成し、文章を解析して文章タイプを決定し、文章中に特徴となるキーワードが有るかをチェックしてキーワードが有る場合にはキーワードを抽出し、かつ回答としての文章を作成する文章処理部と、文章IDに対応して、取得した文章と、キーワードを記憶する文章DBを有する。文章処理部は、取得した文章中にキーワードが有る場合には、文章DBを検索して、同じキーワードを含む同じ文章タイプの文章を抽出し、抽出した文章を用いて回答を作成して端末装置へ送信する。
【選択図】図1
The present invention realizes a conversation with a user without preparing in advance a DB for storing answers to conversation input sentences.
In a conversation system having a plurality of user terminal devices and a management server connected to the terminal device via a network, the management server responds to a sentence created by the user transmitted from the terminal device. Generate a unique sentence ID, analyze the sentence, determine the sentence type, check if there is a keyword that is characteristic in the sentence, and if there is a keyword, extract the keyword, and select the sentence as the answer A sentence processing unit to be created, and a sentence DB that stores acquired sentences and keywords in correspondence with the sentence IDs. If there is a keyword in the acquired sentence, the sentence processing unit searches the sentence DB, extracts sentences of the same sentence type including the same keyword, creates an answer using the extracted sentence, and the terminal device Send to.
[Selection] Figure 1

Description

本発明は、会話システム及び会話文章処理方法に係り、特に、ユーザが携帯端末を管理サーバに接続して、音声又は文章により会話を行う会話システム及び会話文章処理方法に関するものである。   The present invention relates to a conversation system and a conversation sentence processing method, and more particularly, to a conversation system and a conversation sentence processing method in which a user connects a portable terminal to a management server and has a conversation by voice or sentences.

ユーザが携帯電話などのような携帯端末を操作しながら、携帯端末の表示画面に表示されたキャラクタと音声又は文章により会話を行う会話システムが種々提案されている。
例えば、特許文献1には、使用者とキャラクタが自由に擬似的な会話をする疑似会話システムにおいて、キーワードに対応する回答を格納する回答データベース(DB)を有するコンテンツサーバで、クライアント端末から入力された文章の中から所定のキーワードを抽出し、回答データベースを検索して、抽出された所定のキーワードに対応する回答を得て、クライアント端末に配信するシステムが開示されている。
Various conversation systems have been proposed in which a user interacts with a character displayed on a display screen of a mobile terminal by voice or text while operating a mobile terminal such as a mobile phone.
For example, in Patent Document 1, in a pseudo-conversation system in which a user and a character freely have a pseudo-conversation, a content server having an answer database (DB) that stores answers corresponding to keywords is input from a client terminal. A system is disclosed in which a predetermined keyword is extracted from a sentence, a response database is searched, an answer corresponding to the extracted predetermined keyword is obtained, and distributed to a client terminal.

特開2007−323551公報JP 2007-323551 A

然るに、特許文献1に記載の技術は、回答を格納する回答DBを予め用意しなければならない。しかも会話文章に使用されるキーワードには色々なものがあるが、それら全てのキーワードに対応した回答文を回答DBに用意する必要がある。全ての回答文を用意するには膨大な作業時間を要する。また、会話の入力文章中に想定したキーワードが存在しない場合もある。仮に、入力文章にキーワードが存在するとしても、予め回答DBに用意された回答文はキーワードには対応しているが、ユーザが使用する言葉(会話文章)に回答文が合致するとは限らない場合もあり得る。   However, the technique described in Patent Document 1 must prepare an answer DB for storing answers in advance. Moreover, there are various keywords used in the conversation text, but it is necessary to prepare answer sentences corresponding to all the keywords in the answer DB. It takes a lot of work time to prepare all the answers. In some cases, the assumed keyword does not exist in the input sentence of the conversation. Even if a keyword exists in the input sentence, the answer sentence prepared in advance in the answer DB corresponds to the keyword, but the answer sentence does not always match the word (conversation sentence) used by the user. There is also a possibility.

本発明は、ユーザより会話として入力される文章をDBに蓄積しておき、このDB内の文章を用いて回答を作成することにより、入力文章に対する回答を記憶するDBを予め用意しなくても、ユーザとの会話を実現することができる会話システム及び会話文章処理方法を提供することにある。   The present invention accumulates sentences input as conversations by the user in the DB and creates an answer using the sentences in the DB, so that it is not necessary to prepare in advance a DB for storing answers to the input sentences. Another object of the present invention is to provide a conversation system and conversation sentence processing method capable of realizing a conversation with a user.

本発明に係る会話システムは、好ましくは、会話のための文章を入力する入力器と文章を表示する表示器を有するユーザの複数の端末装置とネットワークを介して接続される管理サーバを有する会話システムであって、
該管理サーバは、該端末装置から送信された、ユーザによって作成された文章に対して固有の文章IDを生成し、該文章を解析して文章タイプを決定し、該文章中に特徴となるキーワードが有るかをチェックして該キーワードが有る場合には該キーワードを抽出し、かつ回答用の文章を作成する文章処理部と、該文章IDに対応して、取得した該文章と、該キーワードを記憶する文章DB(第1文章DB)と、を有し、
かつ該文章処理部は、取得した該文章中に該キーワードが有る場合には、該文章DBを検索して、同じ該キーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信することを特徴とする会話システムとして構成される。
The conversation system according to the present invention is preferably a conversation system having a management server connected via a network to a plurality of terminal devices of a user having an input device for inputting a sentence for conversation and a display for displaying the sentence. Because
The management server generates a unique sentence ID for a sentence created by a user transmitted from the terminal device, analyzes the sentence, determines a sentence type, and a keyword that is characteristic in the sentence If the keyword exists, the keyword is extracted, and a sentence processing unit that creates a reply sentence; the acquired sentence corresponding to the sentence ID; and the keyword A sentence DB (first sentence DB) to be stored;
In addition, when the keyword is included in the acquired sentence, the sentence processing unit searches the sentence DB, extracts sentences including the same keyword, and creates an answer using the extracted sentence. And a conversation system characterized by being transmitted to the terminal device.

好ましい例では、前記管理サーバは、更に、取得した文章に対する回答となる文章を予め記憶する第2文章DBを有し、
前記文章処理部は、取得した該文章中に該キーワードが無い場合には、該第2文章DBを検索して、回答となる文章を抽出して該端末装置へ送信する。
In a preferred example, the management server further includes a second sentence DB that stores in advance a sentence that is an answer to the acquired sentence,
When there is no keyword in the acquired sentence, the sentence processing unit searches the second sentence DB, extracts a sentence as an answer, and transmits it to the terminal device.

また、好ましくは、前記管理サーバは、更に、ユーザに固有に付与されるユーザIDに対応して、該ユーザの個人的関係の人を特定するIDを登録するユーザ情報DBを有し、
かつ前記第1文章DBは、該文章IDに対応して文章を入力したユーザのユーザIDを登録し、
前記文章処理部は、取得した該文章に対する回答の作成時に、該ユーザ情報DBを参照して、該ユーザについて個人的関係の人として登録されたユーザのユーザIDを得て、該個人的関係の人のユーザIDについて該第1文章DBを検索して、同じキーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信する。
Preferably, the management server further includes a user information DB for registering an ID for identifying a person having a personal relationship with the user corresponding to the user ID uniquely given to the user,
And said 1st sentence DB registers the user ID of the user who input the sentence corresponding to this sentence ID,
The sentence processing unit refers to the user information DB at the time of creating an answer to the acquired sentence, obtains a user ID of a user registered as a person having a personal relationship with the user, and The first sentence DB is searched for a human user ID, a sentence including the same keyword is extracted, an answer is created using the extracted sentence, and the answer is transmitted to the terminal device.

また、本発明に係る会話文章処理方法は、好ましくは、会話のための文章を入力する入力器と文章を表示する表示器を有する複数の端末装置とネットワークを介して接続される管理サーバを有する会話システムにおける会話文章処理方法であって、
該管理サーバにおいて、該端末装置から送信された文章に固有の文章IDを生成するステップと、
該管理サーバにおいて、該端末装置から送信された文章を解析して文章タイプを決定すると共に、該文章中に特徴となるキーワードが有る場合には該キーワードを抽出するステップと、
該管理サーバにおいて、該文章IDに対応して、取得した該文章と、該キーワードを文章DB(第1文章DB)に記憶するステップと、
該管理サーバにおいて、該文章を解析した結果、該文章中にキーワードが有る場合、該第1文章DBを検索して、同じキーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信するステップを有することを特徴とする会話文章処理方法として構成される。
The conversational sentence processing method according to the present invention preferably has a management server connected via a network to a plurality of terminal devices having an input unit for inputting a sentence for conversation and a display unit for displaying the sentence. A conversation sentence processing method in a conversation system,
In the management server, generating a text ID unique to the text transmitted from the terminal device;
In the management server, the sentence transmitted from the terminal device is analyzed to determine the sentence type, and when there is a characteristic keyword in the sentence, the keyword is extracted;
In the management server, corresponding to the sentence ID, storing the acquired sentence and the keyword in a sentence DB (first sentence DB);
In the management server, as a result of analyzing the sentence, when there is a keyword in the sentence, the first sentence DB is searched, a sentence including the same keyword is extracted, and an answer is created using the extracted sentence Then, it is configured as a conversational sentence processing method characterized by having a step of transmitting to the terminal device.

好ましい例では、前記管理サーバは、取得した文章に対する回答となる文章を第2文章DBに予め記憶しておき、
前記管理サーバは、取得した該文章中に該キーワードが無い場合には、該第2文章DBを検索して、回答となる文章を抽出して該端末装置へ送信する。
In a preferred example, the management server stores in advance in the second sentence DB a sentence that is an answer to the acquired sentence,
When there is no keyword in the acquired sentence, the management server searches the second sentence DB, extracts a sentence as a reply, and transmits it to the terminal device.

また、好ましくは、前記管理サーバは、更に、ユーザに固有に付与されるユーザIDに対応して、該ユーザの個人的関係の人を特定するIDをユーザ情報DBに登録し、
かつ文章IDに対応して、文章を入力したユーザのユーザIDを前記第1文章DBに登録し、
前記管理サーバは、入力文章に対する回答の作成時に、該ユーザ情報DBを参照して、該ユーザについて個人的関係の人として登録されたユーザのユーザIDを得て、該個人的関係の人のユーザIDについて該第1文章DBを検索して、同じキーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信する。
Preferably, the management server further registers, in the user information DB, an ID for identifying a person having a personal relationship with the user, corresponding to the user ID uniquely given to the user,
And corresponding to the sentence ID, the user ID of the user who entered the sentence is registered in the first sentence DB,
The management server refers to the user information DB at the time of creating an answer to the input text, obtains the user ID of the user registered as a person of personal relation about the user, and obtains the user of the person of personal relation The first sentence DB is searched for the ID, a sentence including the same keyword is extracted, an answer is created using the extracted sentence, and the answer is transmitted to the terminal device.

本発明によれば、会話の入力文章に対する回答用のDBを予め用意しなくても、ユーザの端末装置から入力される文章を文章DBに蓄積し、この文章DB内の文章を用いて回答を作成することが可能となる。これにより、回答を予め用意するための膨大な作業時間を節約することができる。   According to the present invention, it is possible to accumulate sentences input from a user's terminal device in a sentence DB and prepare an answer using the sentences in the sentence DB without preparing a DB for reply to conversation input sentences in advance. It becomes possible to create. This can save enormous work time for preparing answers in advance.

一実施例による会話システムの全体構成を示す図。The figure which shows the whole structure of the conversation system by one Example. 一実施例による会話システムおける携帯端末の構成例を示す図。The figure which shows the structural example of the portable terminal in the conversation system by one Example. 一実施例による会話システムにおける文章DB41の例を示す図。The figure which shows the example of sentence DB41 in the conversation system by one Example. 一実施例による会話システムにおけるユーザ情報DB3の例を示す図。The figure which shows the example of user information DB3 in the conversation system by one Example. 一実施例による会話システムにおける文章処理のフローチャートを示す図。The figure which shows the flowchart of the text process in the conversation system by one Example. 他の実施例による会話システムにおける文章処理のフローチャートを示す図。The figure which shows the flowchart of the text process in the conversation system by another Example.

図1は、会話システムの全体構成例を示す。
会話システムは、ユーザが使用する多数の携帯端末2と、通信ネットワーク9を介して携帯端末2と接続される管理サーバ1を有して構成される。
管理サーバ1は、携帯端末2のユーザに対して会話サービスを提供するコンピュータであり、本実施例では、ユーザの携帯端末3の表示器に動物やアニメのキャラクタを表示し、表示中のキャラクタと会話する文章をユーザが携帯端末から入力することで、会話を進めていくことを実現する。
FIG. 1 shows an example of the overall configuration of a conversation system.
The conversation system includes a large number of mobile terminals 2 used by a user and a management server 1 connected to the mobile terminals 2 via a communication network 9.
The management server 1 is a computer that provides a conversation service to the user of the portable terminal 2. In this embodiment, the management server 1 displays animals and animated characters on the display of the portable terminal 3 of the user, It is realized that the user proceeds with the conversation by inputting the conversation text from the mobile terminal.

管理サーバ1のハードウェア構成は図示していないが、プロセッサ(CPU)、メモリ、ハードディスクのような外部記憶装置、入力器、表示器等を有し、特徴的なアプリケーションプログラムをCPUで実行することで、会話のための文章を処理する機能を実現する。
携帯端末2は、例えば携帯電話のような端末であるが、ユーザが通常使用するPC(パーソナルコンピュータ)のような端末装置でもよい。携帯端末2のハードウェア構成については、図2を参照して後述する。
Although the hardware configuration of the management server 1 is not illustrated, the management server 1 has a processor (CPU), a memory, an external storage device such as a hard disk, an input device, a display device, etc., and executes a characteristic application program on the CPU. And realize the function to process sentences for conversation.
The mobile terminal 2 is a terminal such as a mobile phone, but may be a terminal device such as a PC (personal computer) normally used by a user. The hardware configuration of the mobile terminal 2 will be described later with reference to FIG.

会話サービスを実現するために、管理サーバ1は、携帯端末2のユーザの情報を登録するユーザ情報登録部102と、携帯端末2より取得した会話の文章を解析し、かつ回答として携帯端末に送信する文章を作成する処理を行う文章処理部103を有する。また、データベース(DB)として、ユーザ情報を登録するユーザ情報DB3(図参照)と、会話用文章を登録する文章DB4(文章DB41と文章DB42)を有する。文章DB41は、携帯端末2より取得した会話の文章(入力文章)及びその解析結果のデータを記憶する(図参照)。文章DB41は、ユーザオリジナルな文章DBと言える。文章DB42はサービス提供者がシステム上予め用意したものであり、回答用の簡単な文章を予め記憶する。
In order to realize the conversation service, the management server 1 analyzes the conversation text acquired from the user information registration unit 102 for registering the information of the user of the portable terminal 2 and the portable terminal 2 and transmits it as an answer to the portable terminal. A sentence processing unit 103 that performs a process of creating a sentence to be performed. Moreover, it has user information DB3 (refer FIG. 4 ) which registers user information as a database (DB), and text DB4 (text DB41 and text DB42) which registers the text for conversation. The sentence DB 41 stores conversation sentences (input sentences) acquired from the portable terminal 2 and data of the analysis results (see FIG. 3 ). The sentence DB 41 can be said to be a user original sentence DB. The sentence DB 42 is prepared in advance by the service provider on the system, and stores simple sentences for answers in advance.

本発明に特徴的なことは、入力文章を解析の結果、特徴となる単語(キーワード)が発見されれば、当該キーワードについて、文章DB41を検索して文章を得て、その文章を用いて回答を作成する。一方、入力文章中にキーワードが発見できなければ、予め文章DB42から文章を抽出して回答文とする。
なお、ここで、文章処理部103及び文章DB4は説明の都合上の名称であり、例えば、会話部とか会話DBと呼んでもよく、実質的に端末装置を用いてユーザとキャラクタが会話を行うためのものであれば、他の呼称でもよい。

What is characteristic of the present invention is that if a characteristic word (keyword) is found as a result of analyzing the input sentence, the sentence DB 41 is searched for the keyword to obtain a sentence, and the sentence is used as an answer. Create a statement . On the other hand, if a keyword cannot be found in the input sentence, the sentence is extracted in advance from the sentence DB 42 and used as an answer sentence.
Here, the sentence processor 103 and text DB4 1 is the name of convenience of description, for example, may be referred to as a conversation part Toka conversation DB, the user and character performs a conversation using essentially the terminal device Other names may be used as long as they are intended.

図2は携帯端末2の構成を示す。
携帯端末2は、種々のアプリケーションプログラム等を実行するプロセッサ(CPU)202、データやプログラムを格納するメモリ203、入力器204、表示器205、及び通信ネットワーク9に対してデータの送受信を行う無線通信器206を有して構成される。携帯端末2のユーザには固有の識別情報(ユーザID)が付与され、そのユーザIDはメモリ203に記憶されている。
ユーザは、入力器204を操作して会話に必要な文章を入力する。入力された文章は、CPU202で処理されて表示器205に表示され、管理サーバ1へ逐次送信される。なお、会話のための文章は、入力器204からの入力に限らず、音声入力器から入力するようしてもよい。この場合、携帯端末のCPU202は、音声入力器(図示せず)から入力された音声を認識するための音声認識プログラムを実行しながら、入力された音声を逐次、文章に変換して表示器に表示する。
FIG. 2 shows the configuration of the mobile terminal 2.
The portable terminal 2 includes a processor (CPU) 202 that executes various application programs, a memory 203 that stores data and programs, an input device 204, a display 205, and wireless communication that transmits and receives data to and from the communication network 9. The device 206 is configured. Unique identification information (user ID) is given to the user of the portable terminal 2, and the user ID is stored in the memory 203.
The user operates the input device 204 to input sentences necessary for conversation. The input text is processed by the CPU 202 and displayed on the display 205, and is sequentially transmitted to the management server 1. Note that the text for conversation is not limited to being input from the input device 204, but may be input from a voice input device. In this case, the CPU 202 of the mobile terminal converts the input speech into sentences sequentially while executing a speech recognition program for recognizing speech input from a speech input device (not shown), and displays it on the display device. indicate.

次に、図3、図4を参照して、各DBの構成内容について説明する。
図3は、文章DB41の構成例を示す。
文章DB41は、文章処理部103の処理の下、携帯端末2から送信され取得された文章及びその解析結果によるデータを記憶する。即ち、入力される文章毎に付与される固有の文章ID、入力文章、ユーザに固有のユーザID、記憶する文章の文章タイプ、文章から抽出された特徴的な単語であるキーワード、及び文章の種類が挨拶文の場合、その挨拶の種類(朝、昼、夜)を登録する。文章タイプは、予め定められた17種類(コーパス分類)の文章のうちから、文章処理部103で解析された何れかの文章タイプをコードで示す。これについては後述する。
なお、文章DB42の内容については、図示していないが、これについては、後述する入力文章の構文解析結果に対する回答文の生成の説明から、その内容が理解されるであろう。即ち、後述のコーパス分類の結果、入力文章中に特徴単語が発見できなかった場合における例示した回答文が文章DB42に記憶されている。
Next, the contents of each DB will be described with reference to FIGS.
FIG. 3 shows a configuration example of the sentence DB 41.
Sentence DB41 memorize | stores the data and the data by the analysis result which were transmitted and acquired from the portable terminal 2 under the process of the sentence process part 103. FIG. That is, a unique sentence ID assigned to each inputted sentence, an input sentence, a user ID unique to the user, a sentence sentence type to be stored, a keyword that is a characteristic word extracted from the sentence, and a kind of sentence If is a greeting, the type of greeting (morning, noon, night) is registered. The sentence type indicates one of the sentence types analyzed by the sentence processing unit 103 from among 17 predetermined (corpus classification) sentences. This will be described later.
Although the contents of the sentence DB 42 are not shown, the contents will be understood from the explanation of the generation of an answer sentence for the syntax analysis result of the input sentence described later. That is, as a result of corpus classification to be described later, the exemplified answer sentence when the feature word cannot be found in the input sentence is stored in the sentence DB 42.

図4は、ユーザ情報DB3の構成例を示す。
ユーザ情報DB3は、携帯端末2を用いてサービスを受けるユーザの個人情報(例えば性別、生年月日、職業、住所(図示せず))を登録する。本発明に特徴的な項目として、各ユーザに固有に付与されたユーザID、ユーザの名前(ニックネームでもよい)、友人の各データが登録される。複数の友人の項目は、ユーザが自分の友人を逐次追加して登録する。友人は、この会話サービスを受けることができる人の中から選択されるものとし、各友人には既に固有のユーザIDが付与されている。図4に例示の友人の欄には、名字が記載されているが、ユーザIDが特定できるものであれば、通称やニックネームでもよい。或いは、DB上では、名字ではなくてユーザIDでもよい。
後述するが、友人を登録する理由は、文章処理部103が回答として選択する範囲を、登録された友人からの入力文章も含めて検索できるようにして、回答文の検索許容範囲を拡大する趣旨である。
FIG. 4 shows a configuration example of the user information DB 3.
The user information DB 3 registers personal information (for example, gender, date of birth, occupation, and address (not shown)) of a user who receives a service using the mobile terminal 2. As items characteristic of the present invention, user IDs uniquely assigned to each user, user names (may be nicknames), and friend data are registered. In the case of a plurality of friend items, the user sequentially adds and registers his / her friend. A friend is selected from those who can receive this conversation service, and a unique user ID is already assigned to each friend. In the friend column illustrated in FIG. 4, a surname is described, but a common name or a nickname may be used as long as the user ID can be specified. Alternatively, the user ID may be used instead of the last name on the DB.
As will be described later, the reason for registering the friend is to expand the search allowable range of the answer sentence so that the sentence processing unit 103 can select the answer including the input sentence from the registered friend. It is.

ユーザ情報の登録は、最初、ユーザ情報登録部102の処理の下、ユーザの携帯端末2で入力され送信されたユーザの個人情報に対して固有のユーザIDが付与されて、ユーザ情報DB3に登録される。その後、ユーザが必要な情報を逐次入力して送信することで、例えば友人に関するデータが追加(又は削除)するように更新される。
なお、このユーザ情報DBは、各ユーザの友人を登録するので、フレンドDBと呼んでもよい。また、ユーザIDに加えてユーザのパスワードが付与される場合もあるが、その場合には、ユーザパスワードもユーザ情報の1つとして登録される。
User information is registered in the user information DB 3 by first assigning a unique user ID to the user's personal information input and transmitted by the user's mobile terminal 2 under the processing of the user information registration unit 102. Is done. After that, when the user sequentially inputs and transmits necessary information, for example, the data related to the friend is updated to be added (or deleted).
In addition, since this user information DB registers each user's friend, you may call it friend DB. In some cases, a user password is given in addition to the user ID. In this case, the user password is also registered as one piece of user information.

次に、図5のフローチャートを参照しながら、管理サーバ1における会話の文章処理動作について説明する。この処理は、アプリケーションプログラムが管理サーバ1のCPUで実行されることで行われる。
ユーザは、携帯端末2からサービス提供先のWebサイトにアクセスして、携帯端末2の表示器205にキャラクタを表示して会話を行う。このWebサイトから会話サービスを受けるためには、ユーザは予めユーザ情報DB3に所定の個人情報を登録している。また、当該Webサイトへのアクセスに際しては、ユーザIDやユーザパスワードが一致することが条件である。
Next, the conversation sentence processing operation in the management server 1 will be described with reference to the flowchart of FIG. This process is performed by the application program being executed by the CPU of the management server 1.
The user accesses a service providing website from the mobile terminal 2 and displays a character on the display 205 of the mobile terminal 2 to have a conversation. In order to receive a conversation service from this Web site, the user registers predetermined personal information in the user information DB 3 in advance. In addition, when accessing the Web site, the user ID and the user password must match.

さて、携帯端末2がWebサイトに接続された後、ユーザは携帯端末2に会話用の文章を入力して、管理サーバ1へ送信する。携帯端末2から送信される文章には、ユーザIDが含まれている。管理サーバ1の文章処理部103は、携帯端末2から送信された入力文章を取得すると、固有の文章IDを生成してその文章に付与する(S501)。取得した文章は、図示しないメモリに一時保管される。   Now, after the mobile terminal 2 is connected to the Web site, the user inputs a text for conversation to the mobile terminal 2 and transmits it to the management server 1. The text transmitted from the portable terminal 2 includes a user ID. When the text processing unit 103 of the management server 1 acquires the input text transmitted from the mobile terminal 2, the text processing unit 103 generates a unique text ID and assigns it to the text (S501). The acquired text is temporarily stored in a memory (not shown).

次に、文章処理部103は、入力文章の構文解析を行う(S502)。入力文章の構文解析については後で詳述する。簡単に言えば、まず入力文章を品詞分解して一次分類を行い、次にその文章を解析して予め定められた17種類のいずれかに分類して(二次分類(コーパス分類ともいう))、文章タイプを決定する。更に、この二次分類において、文章中に特徴となる単語(キーワード)が有るかをチェックし、その結果、特徴単語があれば、1又は複数の特徴単語を抽出する(S503)。
次に、先に生成した文章IDに対応して、取得した入力文章、ユーザID、解析結果となる文章タイプ及びキーワードを、文章DB41に記憶する(S504)。
Next, the sentence processing unit 103 performs syntax analysis of the input sentence (S502). The parsing of the input sentence will be described in detail later. To put it simply, the input sentence is first decomposed into parts of speech and subjected to primary classification, then the sentence is analyzed and classified into one of 17 predetermined types (secondary classification (also called corpus classification)). Determine the sentence type. Further, in this secondary classification, it is checked whether or not there is a word (keyword) that is a characteristic in the sentence. As a result, if there is a characteristic word, one or a plurality of characteristic words are extracted (S503).
Next, corresponding to the sentence ID generated previously, the acquired input sentence, user ID, sentence type and keyword as an analysis result are stored in the sentence DB 41 (S504).

次に、入力文章に対する回答の文章(回答文)の作成処理に移る(S505)。この場合、文章処理部103は、先の構文解析の結果、入力文章中に特徴単語が有るかを確認して(S506)、その結果特徴単語が有れば、当該特徴単語について文章DB41を検索する(S507)。文章DB41には、他のユーザ及び自ユーザが過去にキャラクタと会話した時の文章及びキーワードが文章IDと共に記憶されている。図3を参照するに、例えば、ユーザIDが「U012685」のユーザの入力文章から人名「ユミ」が特徴単語として抽出されてキーワード1に記憶されているとする。今回の文章ID「P0005」の文章「ユミは横浜に住んでいるよ」から、特徴単語として「ユミ」と「横浜」が抽出された場合、その回答文としては、特徴単語「ユミ」について、文章DB41を検索した結果、「私はユミが好きです」という、同じユーザの過去の文章が回答として選択されることがある。   Next, the process proceeds to a process of creating a reply sentence (answer sentence) for the input sentence (S505). In this case, the sentence processing unit 103 confirms whether there is a feature word in the input sentence as a result of the previous syntax analysis (S506), and if there is a feature word as a result, searches the sentence DB 41 for the feature word. (S507). In the sentence DB 41, sentences and keywords when other users and the own user have conversed with the character in the past are stored together with the sentence ID. Referring to FIG. 3, for example, it is assumed that the personal name “Yumi” is extracted as a feature word from the input text of the user with the user ID “U012585” and stored in the keyword 1. If “Yumi” and “Yokohama” are extracted as feature words from the sentence “Yumi lives in Yokohama” with the sentence ID “P0005” this time, As a result of searching the sentence DB 41, a past sentence of the same user “I like Yumi” may be selected as an answer.

また、図3には図示していないが、他のユーザからの文章として「ユミ、今日はもう帰るよ」の文章が文章DB41に記憶されている場合、上記文章の回答として当該文章「ユミ、今日はもう帰るよ」が選択されることがある(S508)。選択された回答文は、管理サーバ1からユーザの携帯端末2へ送信され、表示器205に表示される(S509)。回答文は恰もキャラクタからの返事のように、画面に表示中のキャラクタの動きに合わせて文字表示又はキャラクタの音声として出力される。ユーザは、表示された回答文を見て(又は音声を聞いて)、さらに会話を続けて文章を入力する。
なお、文章DB41を検索した結果、同じキーワードについて、複数の回答文がヒット(hit)した場合には、例えば、現在時刻を乱数の種として、該当する複数の回答文の中から乱数に従って1つの回答文を選択するものとする。
In addition, although not shown in FIG. 3, when a sentence “Yumi, I'm home today” is stored in the sentence DB 41 as a sentence from another user, the sentence “Yumi, There is a case where “I'm back home today” is selected (S508). The selected answer sentence is transmitted from the management server 1 to the user's portable terminal 2 and displayed on the display 205 (S509). The answer sentence is output as a character display or a voice of the character in accordance with the movement of the character being displayed on the screen, like a reply from the character. The user looks at the displayed answer sentence (or listens to the voice), and further continues the conversation and inputs the sentence.
As a result of searching the sentence DB 41, when a plurality of answer sentences hit the same keyword, for example, the current time is used as a seed of random numbers, and one of the corresponding answer sentences is selected according to the random number. An answer sentence shall be selected.

一方、入力文章中に特徴単語が有るかの確認において(S506)、特徴単語が発見できなかった場合には、文章DB42を検索して(S517)、解析構文毎に予め用意してあった回答文を選択する(S518)。選択された回答文は、同様にしてユーザの携帯端末2へ送信される。ここで、文章DB42から回答文を選択するルールは曖昧なものである。例えば、「**は好き?」と聞かれた場合は、「好きです」または「嫌いです」というような具体的に決めてよい。また他の例として、「**はかわいいね」などの形容詞文であれば、その形容詞文に自然に繋がり得る回答文を選択して、「かわいい」をテンプレートに当てはめてそれを回答文とするようにしてもよい。いずれもしても、文章DB42には、入力文章に対して適確に合致するような厳格な回答文を用意しておく必要はない。   On the other hand, in confirming whether there is a feature word in the input sentence (S506), if the feature word cannot be found, the sentence DB 42 is searched (S517), and the answer prepared in advance for each analysis syntax. A sentence is selected (S518). The selected answer sentence is transmitted to the user's portable terminal 2 in the same manner. Here, the rule for selecting an answer sentence from the sentence DB 42 is ambiguous. For example, when asked “Do you like **?”, You may decide specifically “I like it” or “I do n’t like it”. As another example, if it is an adjective sentence such as “** is cute”, an answer sentence that can be naturally connected to the adjective sentence is selected, and “cute” is applied to the template as the answer sentence. You may do it. In any case, the sentence DB 42 does not need to prepare a strict answer sentence that accurately matches the input sentence.

次に、図6のフローチャートを参照して、他の例による会話の文章処理動作について説明する。図5を参照した上記実施例と比較して、図6の例は、ステップS621〜S623の処理(即ち回答文の作成処理)が相違する。その相違部分についての処理について、以下説明する。
文章処理部103は、取得した文章に対する回答文の作成時に、ユーザ情報DB3を検索して(S621)、現在会話中のユーザのユーザIDについて登録された友人のユーザIDを取得する(S622)。例えば、ユーザID「000002」のユーザ(鈴木さん)は、「工藤さん」のユーザID「U****」を取得する。そして、先に抽出していた特徴単語について、文章DB41の当該ユーザID「U****」と自分のユーザID「000002」のユーザIDのエントリを検索する。検索の結果、特徴単語が含まれる回答文が選択される。
Next, with reference to the flowchart of FIG. 6, a sentence processing operation for conversation according to another example will be described. Compared with the above-described embodiment with reference to FIG. 5, the example of FIG. 6 is different in the processing of steps S621 to S623 (that is, the process of creating an answer sentence). The process for the difference will be described below.
The sentence processing unit 103 searches the user information DB 3 at the time of creating an answer sentence for the acquired sentence (S621), and acquires the user ID of the friend registered for the user ID of the user who is currently talking (S622). For example, the user (Mr. Suzuki) with the user ID “000002” acquires the user ID “U ***” of “Mr. Kudo”. Then, the entry of the user ID “U ***” and the user ID “000002” in the sentence DB 41 is searched for the feature word extracted previously. As a result of the search, an answer sentence including the characteristic word is selected.

図5の例では、文章DB41の全てのエントリを検索して、同じ特徴単語が含まれる文章を回答文として選択しているので、場合によっては、入力文章に対して突飛な内容の回答文が選択される可能性がある。しかし、図6の例によれば、入力文章に対する検索は、ユーザ本人と友人のエントリのみであるので、選択される回答文の言葉使いも似かより、また友人との日常の会話に使われる言葉が回答文として選択される可能性が高い。その結果、回答文に親近感がわき、ユーザはキャラクタとの会話を一層楽しく進めることが期待できる。   In the example of FIG. 5, all entries in the sentence DB 41 are searched, and sentences containing the same characteristic word are selected as answer sentences. May be selected. However, according to the example of FIG. 6, the search for the input sentence is only for the entry of the user himself / herself and the friend. A word is likely to be selected as an answer sentence. As a result, the answer sentence has a sense of familiarity, and the user can expect the conversation with the character to proceed more happily.

次に、入力文章の構文解析について説明する。
入力文章の解析は、1〜3の3段階を経て行われる。
1.一次分類
まず、入力文章を品詞分解する。その中から、「自分の名前の有無」、「名詞の有無」、「動詞の有無」、「命令形動詞の有無」、「形容詞の有無」、「コーパス自体が疑問形であるか?」の判断を行う(一次分類)。
Next, the syntax analysis of the input sentence will be described.
The input sentence is analyzed through three stages 1 to 3.
1. Primary classification First, the part of speech is decomposed. Among them, “the presence or absence of one's name”, “the presence or absence of a noun”, “the presence or absence of a verb”, “the presence or absence of an imperative verb”, “the presence or absence of an adjective”, “whether the corpus itself is a questionable form” Make a decision (primary classification).

2.二次分類(コーパス分類)
一次分類の結果から下記17種に分類する(コーパス分類)。
(1)理解不能例:「あすらりてほめましこ」
(2)理解不能且つ呼びかけ例:「(プログラムの名前)ー!」
(3)理解不能疑問文例:「**なの?」
(4)自分宛疑問文例:「(プログラムの名前)は**なの?」
(5)名詞文例:「*は*だね」
(6)名詞文疑問系例:「*は*かな?」
(7)自分宛名詞文疑問系例:「*は*かな?」
(8)形容詞文例:「*はかわいいね」
(9)形容詞文疑問系例:「*はかわいいかな?」
(10)自分宛形容詞文例:「(プログラムの名前)はかわいいね」
(11)自分宛形容詞文疑問系例:「(プログラムの名前)はかわいいかな?」
(12)動詞文例:「*が*を食べた」
(13)自分宛動詞文例:「(プログラムの名前)が*を食べるのか」
(14)動詞文疑問系例:「*が*を食べるの?」
(15)自分宛動詞文疑問系例:「(プログラムの名前)が*を食べるの?」
(16)動詞文命令形例:「食べろ!」
(17)挨拶例:「おはよう」
3.コーパス分類による回答文の処理
(1)理解不能
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42に記憶された全文章からランダムに選択して回答文とする。
2. Secondary classification (corpus classification)
Based on the results of the primary classification, the following 17 types are classified (corpus classification).
(1) Incomprehensible example: “Asurari praises”
(2) Incomprehensible and calling example: "(Program name)-!"
(3) Sample sentences that cannot be understood: “What is **?”
(4) Example of a question for yourself: “(Name of program) is **?”
(5) Noun example: “* is *”
(6) Examples of noun sentence questions: “* is *?”
(7) Examples of questions about noun sentences for oneself: “Is ***?”
(8) Example adjective sentence: “* is cute”
(9) Adjective sentence questioning example: “Is * cute?”
(10) Example of adjective addressed to me: “(Program name) is cute”
(11) Adjective sentence questioning example addressed to me: “Is (program name) cute?”
(12) Verb example: “* ate *”
(13) Verb sentence addressed to me: "Does the name of the program eat *?"
(14) Verb sentence question example: “* eats *?”
(15) Verb sentence question example for oneself: “(name of program) eats *?”
(16) Verb sentence command example: “Eat!”
(17) Greeting example: “Good morning”
3. Processing of answer sentence by corpus classification (1) When a characteristic word is found in an incomprehensible sentence, a sentence including the characteristic word is randomly set as an answer sentence. If no feature word is found, the answer sentence is selected at random from all the sentences stored in the sentence DB 42.

(2)理解不能且つ呼びかけ
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「え〜? なにそれ?」
(3)理解不能疑問文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「なんのことだかよくわからないよ〜…」
(4)自分宛疑問文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「うんうん!」
(5)名詞文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「そうなんだー!!」
(6)名詞文疑問系
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「さぁ…よくわかんないや」
(7)自分宛名詞文疑問系
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「さぁ…よくわかんないや」
この処理は上記の名詞文疑問形と同一ですが将来の拡張の為に分類しています。
(2) When a feature word is found in an incomprehensible and calling sentence, a sentence including the feature word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “Eh? What is it?”
(3) When a characteristic word is found in an unintelligible question sentence, a sentence including the characteristic word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “I do n’t know what it is…”
(4) When a characteristic word is found in the question sentence sentence addressed to itself, a sentence including the characteristic word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “Yeah!”
(5) When a characteristic word is found in a noun sentence sentence, a sentence including the characteristic word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “That's right!”
(6) When a feature word is found in a noun sentence question system sentence, a sentence including the feature word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “Oh ... I'm not sure”
(7) If a characteristic word is found in the noun sentence questioning sentence addressed to itself, a sentence including the characteristic word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “Oh ... I'm not sure”
This process is the same as the above noun sentence question form, but is classified for future expansion.

(8)形容詞文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:入力文章が「うさぎってかわいいよね」の場合は、「すっごいかわいい!」の回答文とする。
(8) When a characteristic word is found in an adjective sentence sentence, a sentence including the characteristic word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: If the input text is “Rabbit is cute, is n’t it?”

(9)形容詞文疑問系
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「わかんな〜い。」
(10)自分宛形容詞文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:入力文章が「(プログラムの名前)ってかわいいよね」の場合は、「えーかわいいかなぁ?」の回答文とする。
(9) When a characteristic word is found in an adjective sentence questioning sentence, a sentence including the characteristic word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “I do n’t know.”
(10) When a characteristic word is found in the adjective sentence addressed to itself, a sentence including the characteristic word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: If the input sentence is "(Program name) is cute, isn't it?"

(11)自分宛形容詞文疑問系
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:入力文章が「(プログラムの名前)は楽しい?」だった場合は、
例:「うん、楽しいね!!」等と回答文とする。
(11) When a feature word is found in an adjective sentence questioned sentence addressed to itself, a sentence including the feature word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: If the input text is "(Program name) is fun?"
Example: “Yeah, it ’s fun!”

(12)動詞文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。例:「そうなんだー!」。
(12) Verb sentence When a characteristic word is found in a sentence, a sentence including the characteristic word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence. Example: “That's right!”.

(13)自分宛動詞文
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:入力文章が「(プログラムの名前)はお菓子食べる?」の場合は、「もちろん食べるよ!」の回答文とする。
(13) When a feature word is found in the verb sentence sentence addressed to itself, a sentence including the feature word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: If the input sentence is "(Program name) eats sweets?", The answer is "Of course I will eat!"

(14)動詞文疑問系
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:「え? よくわかんない」
(15)自分宛動詞文疑問系
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:「そうだね!」。
(14) When a characteristic word is found in a verb sentence interrogative sentence, a sentence including the characteristic word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: “Huh? I ’m not sure”
(15) When a feature word is found in a question sentence related to a verb sentence addressed to itself, a sentence including the feature word is randomly selected as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: "That's right!"

(16)動詞文命令形
文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする。特徴単語が発見されなかった場合は、文章DB42から選択して回答文とする。
例:入力文章が「お菓子を食べろ!」の場合は、「(ユーザの名前)が食べろよ〜!」の回答文とする。
(16) When a feature word is found in a verb sentence command-type sentence, a sentence including the feature word is randomly set as an answer sentence. If a feature word is not found, it is selected from the sentence DB 42 as an answer sentence.
Example: If the input text is “Eat sweets!”, The response will be “Eat (user name)!

(17)挨拶
挨拶は、内部で”朝の挨拶”、”昼の挨拶”、”夜の挨拶”、”帰宅時の挨拶”、”別れるときの挨拶”、”初対面の挨拶”にさらに細分化される。
挨拶の場合、入力文章を文章DB41に記憶する時に、朝、昼、夜に分類して記憶しておく。その後回答を作成する時に、その時間及び状況にあった回答を選択する。例えば、午前6時〜午前10時の時間帯であれば朝の挨拶、午前10時〜午後6時の時間帯であれば昼の挨拶、午後6時〜翌日午前6時までは夜の挨拶を選択する。また、「はじめまして」といった特殊な挨拶に対しては、「はじめまして、よろしくお願いします」などの回答文を文章DB41に用意しておき、回答文の作成時にこれを選択するようにすればよい。
(17) Greetings Greetings are further subdivided into “morning greetings”, “daytime greetings”, “night greetings”, “greetings when returning home”, “greetings when parting”, and “first greetings” Is done.
In the case of greeting, when the input sentence is stored in the sentence DB 41, it is classified and stored in the morning, noon, and night. Then, when creating an answer, select the answer that matches the time and situation. For example, a morning greeting if it is from 6:00 am to 10:00 am, a day greeting if it is from 10 am to 6:00 pm, and a night greeting from 6:00 pm to 6:00 am the next day. select. For special greetings such as “Nice to meet you”, an answer sentence such as “Nice to meet you” may be prepared in the sentence DB 41 and selected when creating the answer sentence.

なお、上記説明において、「文章中に特徴単語が発見された場合は、その特徴単語を含む文章をランダムに回答文とする」なる表現が各所にある。これは、例えば、現在時刻を乱数の種として、該当する複数の回答文の中から乱数によりランダムに選択するものである。   In the above description, there are various expressions such as “when a feature word is found in a sentence, a sentence including the feature word is randomly selected as an answer sentence”. In this method, for example, the current time is used as a seed of random numbers, and randomly selected from a plurality of corresponding answer sentences using random numbers.

以上、本発明の実施例について説明したが、本発明は上記実施例に限定されることなく、種々変形、応用して実施することができる。
例えば、上記実施例では、入力文章中に特徴単語が発見されなかった場合は、文章DB42から選択して回答文とするとしたが、予め回答文を記憶しておく文章DB42は必ずしも必要はない。例えば、入力文章中に特徴単語が発見されなかった場合は、定常的に「わからないや」の回答文としてもよい。この場合、「わからないや」の簡単な単一の文章は、文章DB42に記憶するまでもなく、プログラム内で生成することが可能である。
As mentioned above, although the Example of this invention was described, this invention is not limited to the said Example, It can implement by various deformation | transformation and application.
For example, in the above embodiment, when no feature word is found in the input sentence, the sentence is selected from the sentence DB 42 as the answer sentence. However, the sentence DB 42 for storing the answer sentence in advance is not necessarily required. For example, when a feature word is not found in the input sentence, a reply sentence “I don't know” may be used regularly. In this case, a simple single sentence “I don't know” can be generated in the program without being stored in the sentence DB 42.

入力文章中に特徴単語が発見されなかった場合の更に他の例として、当該入力文章のユーザIDをキーとして文章DB41を検索して、当該ユーザが過去に入力した文章を選択して回答文としてもよい。この場合、例えば、入力文章が「お菓子を食べろ!」の場合、回答文として同じ文章「お菓子食べろ!」が選択されることもある。更に他の例として、「おはよう」の入力文章に対して、「おはよう」の回答文が選択されることもある。   As yet another example in the case where no feature word is found in the input sentence, the sentence DB 41 is searched using the user ID of the input sentence as a key, and the sentence input by the user in the past is selected as an answer sentence. Also good. In this case, for example, when the input sentence is “Eat sweets!”, The same sentence “Eat sweets!” May be selected as an answer sentence. As yet another example, an answer sentence of “Good morning” may be selected for an input sentence of “Good morning”.

また、図6に示した文章処理の変形例として、文章DB41の特別なエントリを検索するのは、ユーザの友人に限らない。例えば、ユーザの両親や兄弟、子供のように特別な個人的関係にある人のユーザIDのエントリを検索することも可能である。この場合、図4のユーザ情報DB3には、ユーザの友人だけでなく、特別な個人的関係の人のユーザIDを登録しておくことになる。   Further, as a modification of the text processing shown in FIG. 6, searching for a special entry in the text DB 41 is not limited to the user's friend. For example, it is possible to search for an entry of a user ID of a person who has a special personal relationship such as a user's parents, siblings, or children. In this case, in the user information DB 3 of FIG. 4, not only the user's friends but also user IDs of persons having a special personal relationship are registered.

1:管理サーバ 2:携帯端末 9:ネットワーク
102:ユーザ情報登録部 103:文章処理部 3:ユーザ情報DB 4:文章DB 41:文章DB1 42:文章DB2
202:CPU 203:メモリ 204:入力器 205:表示器 206:無線通信器。
1: Management server 2: Mobile terminal 9: Network
102: User information registration unit 103: Text processing unit 3: User information DB 4: Text DB 41: Text DB1 42: Text DB2
202: CPU 203: Memory 204: Input device 205: Display device 206: Wireless communication device

Claims (5)

会話のための文章を入力する入力器と文章を表示する表示器を有するユーザの複数の端末装置とネットワークを介して接続される管理サーバを有する会話システムであって、
該管理サーバは、
該端末装置から送信され取得した、ユーザによって作成された文章に対して固有の文章IDを生成し、更に該文章を品詞分解して一次分類を行い、その後、一次分類された文章が予め定められた複数種類のコーパス分類の何れの分類であるかの二次分類を行うことにより文章の構文解析をして文章タイプを決定し、かつ二次分類された該文章中に特徴となるキーワードが有るかをチェックして該キーワードが有る場合には該キーワードを抽出し、更に回答用の文章を作成する文章処理部と、
該文章処理部で構文解析された該文章と、抽出された該キーワードと、該構文解析によって決定された該文書タイプとを、該文章IDに対応して記憶する第1文章DBと、
複数種類の該コーパス分類に対応して、回答用の文章を予め記憶する第2文章DBとを有し、
該文章処理部は、前記構文解析の結果、二次分類された該文章中に該キーワードが有る場合に、該第1文章DBを検索して同じ該キーワードを含む文章を抽出し、抽出した該文章を用いて回答用の文章を作成して該端末装置へ送信し、
該文章処理部は、前記構文解析の結果、二次分類された該文章中に該キーワードが無い場合に、該第2文章DBを検索して該二次分類によって決定された該コーパス分類に対応する該回答用の文章を抽出して該端末装置へ送信する
することを特徴とする会話システム。
A conversation system having a management server connected via a network to a plurality of terminal devices of a user having an input device for inputting a text for conversation and a display for displaying the text,
The management server
A unique sentence ID is generated for the sentence created by the user transmitted and acquired from the terminal device, and the sentence is further decomposed into parts of speech to perform primary classification, and then the primary classified sentence is determined in advance. The sentence type is determined by performing a secondary classification as to which of the multiple types of corpus classifications, and the sentence type is determined, and there are characteristic keywords in the secondary classification of the sentence. And if there is the keyword, the keyword is extracted, and further a sentence processing unit for creating a reply sentence;
And said sentences are parsed by the text processing unit, and said keywords extracted, and the document type determined by the parsing, a first sentence DB for storing in response to said text ID,
Corresponding to a plurality of types of the corpus, the second sentence DB for storing the answer sentence in advance ,
The sentence processing unit, the syntax analysis result, if the keyword is present in the secondary Classified said sentence extracting a sentence including the same said keyword by searching the first sentence DB, extracted the create a sentence for the answer by using the text into a text sent to the terminal device,
The sentence processing unit searches the second sentence DB and corresponds to the corpus classification determined by the secondary classification when the keyword is not found in the secondary classified sentence as a result of the syntax analysis. A conversation system, wherein the sentence for answering is extracted and transmitted to the terminal device .
前記管理サーバは、更に、ユーザに固有に付与されるユーザIDに対応して、該ユーザの個人的関係の人を特定するIDを登録するユーザ情報DBを有し、
かつ前記第1文章DBは、該文章IDに対応して文章を入力したユーザのユーザIDを登録し、
前記文章処理部は、前記文章の構文解析の結果、二次分類された該文章中に該キーワードが有る場合に、該ユーザ情報DBを参照して、該ユーザについて個人的関係の人として登録されたユーザのユーザIDを得て、該個人的関係の人のユーザIDについて該第1文章DBを検索して、同じキーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信することを特徴とする請求項1記載の会話システム。
The management server further includes a user information DB for registering an ID for identifying a person having a personal relationship with the user corresponding to the user ID uniquely given to the user,
And said 1st sentence DB registers the user ID of the user who input the sentence corresponding to this sentence ID,
The sentence processing unit refers to the user information DB when the keyword is included in the sentence that is secondarily classified as a result of syntactic analysis of the sentence, and is registered as a person having a personal relationship with the user. The first sentence DB is searched for the user ID of the person who has the personal relationship, the sentence including the same keyword is extracted, and an answer is created using the extracted sentence. The conversation system according to claim 1, wherein the conversation system is transmitted to the terminal device.
会話のための文章を入力する入力器と文章を表示する表示器を有する複数の端末装置とネットワークを介して接続される管理サーバを有する会話システムにおける会話文章処理方法であって、
該管理サーバにおいて、該端末装置から送信され取得した、ユーザによって作成された文章に対して固有の文章IDを生成し、更に該文章を品詞分解して一次分類を行い、その後、一次分類された文章が予め定められた複数種類のコーパス分類の何れの分類であるかの二次分類を行うことにより文章の構文解析をして文章タイプを決定し、かつ二次分類された該文章中に特徴となるキーワードが有るかをチェックして該キーワードが有る場合には該キーワードを抽出するステップと、
該管理サーバにおいて、該文章処理で構文解析された該文章と、抽出された該キーワードと、該構文解析によって決定された該文書タイプとを、該文章IDに対応して第1文章DBに記憶するステップと、
前記文章の構文解析の結果、二次分類された該文章中に該キーワードが有る場合には、該第1文章DBを検索して、同じ該キーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信するステップと、
前記文章の構文解析の結果、二次分類された該文章中に該キーワードが無い場合には、複数種類の該コーパス分類に対応して回答用の文章が予め記憶された第2文章DBを検索して、該二次分類によって決定された該コーパス分類に対応する該回答用の文章を抽出して該端末装置へ送信するステップと
を有することを特徴とする会話文章処理方法。
A conversation sentence processing method in a conversation system having a management server connected via a network with a plurality of terminal devices having an input device for inputting sentences for conversation and a display device for displaying sentences,
In the management server, a unique sentence ID is generated with respect to the sentence created by the user transmitted and acquired from the terminal device, and the sentence is further decomposed to perform primary classification, and then the primary classification is performed. The sentence type is determined by performing a secondary classification to determine which of a plurality of types of corpus classifications the sentence is in advance, and the sentence type is determined, and features are included in the secondary classified sentence Checking if there is a keyword to be extracted, and if there is the keyword, extracting the keyword;
In the management server, and the sentence is parsed by the text processing, and the keyword extracted, and the document type determined by the parsing, corresponds to the sentence ID and stored in the first sentence DB And steps to
Result of parsing of the sentence, if the keyword is present in the secondary sorted the sentence, by searching the first sentence DB, extracting a sentence including the same said keyword, the extracted the sentence Using to create an answer and send it to the terminal device;
If the keyword is not found in the secondary classified sentence as a result of syntactic analysis of the sentence, the second sentence DB in which answer sentences corresponding to a plurality of types of the corpus classification are stored in advance is searched. And extracting the response text corresponding to the corpus classification determined by the secondary classification and transmitting it to the terminal device .
前記管理サーバは、更に、ユーザに固有に付与されるユーザIDに対応して、該ユーザの個人的関係の人を特定するIDを登録するユーザ情報DBを有しており、
かつ前記第1文章DBは、該文章IDに対応して文章を入力したユーザのユーザIDを登録し、
前記文章の構文解析の結果、二次分類された該文章中に該キーワードが有る場合には、該ユーザ情報DBを参照して、該ユーザについて個人的関係の人として登録されたユーザのユーザIDを得て、該個人的関係の人のユーザIDについて該第1文章DBを検索して、同じキーワードを含む文章を抽出し、抽出した該文章を用いて回答を作成して該端末装置へ送信することを特徴とする請求項3記載の会話文章処理方法。
The management server further includes a user information DB for registering an ID for identifying a person having a personal relationship with the user corresponding to the user ID uniquely given to the user,
And said 1st sentence DB registers the user ID of the user who input the sentence corresponding to this sentence ID,
As a result of syntactic analysis of the sentence, when the keyword is included in the sentence that is secondarily classified, with reference to the user information DB, the user ID of the user registered as a person having a personal relationship with the user The first sentence DB is searched for the user ID of the person having the personal relationship, the sentence including the same keyword is extracted, and an answer is created using the extracted sentence and transmitted to the terminal device. The conversational sentence processing method according to claim 3, wherein:
前記管理サーバの前記文章処理において、前記第1文章DBを検索した結果、同じキーワードを含む複数の文章を抽出した場合、乱数を用いて該複数の文章の中か1つ文章を選択して、回答用の文章を作成することを特徴とする請求項3または4記載の会話文章処理方法。In the sentence processing of the management server, when a plurality of sentences including the same keyword are extracted as a result of searching the first sentence DB, one sentence is selected from among the plurality of sentences using a random number, 5. A method for processing a conversational sentence according to claim 3 or 4, wherein a sentence for answering is created.
JP2010170505A 2010-07-29 2010-07-29 Conversation system and conversation sentence processing method Expired - Fee Related JP4677051B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010170505A JP4677051B1 (en) 2010-07-29 2010-07-29 Conversation system and conversation sentence processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010170505A JP4677051B1 (en) 2010-07-29 2010-07-29 Conversation system and conversation sentence processing method

Publications (2)

Publication Number Publication Date
JP4677051B1 true JP4677051B1 (en) 2011-04-27
JP2012032928A JP2012032928A (en) 2012-02-16

Family

ID=44080076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010170505A Expired - Fee Related JP4677051B1 (en) 2010-07-29 2010-07-29 Conversation system and conversation sentence processing method

Country Status (1)

Country Link
JP (1) JP4677051B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6365915B2 (en) 2016-06-13 2018-08-01 日本電気株式会社 Response device, response system, response method, and recording medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003330920A (en) * 2002-05-13 2003-11-21 Canon Inc Data accumulation type conversation device
JP2007323551A (en) * 2006-06-05 2007-12-13 Meme Studio:Kk Virtual dialog system and program therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003330920A (en) * 2002-05-13 2003-11-21 Canon Inc Data accumulation type conversation device
JP2007323551A (en) * 2006-06-05 2007-12-13 Meme Studio:Kk Virtual dialog system and program therefor

Also Published As

Publication number Publication date
JP2012032928A (en) 2012-02-16

Similar Documents

Publication Publication Date Title
JP7163355B2 (en) Identification of tasks in messages
US10303758B2 (en) Systems methods and computer-readable storage media for real-time automated conversational agent
KR102030078B1 (en) Method of and system for inferring user intent in search input in a conversαtional interaction system
US8977573B2 (en) System and method for identifying customers in social media
US20170092273A1 (en) Intelligent contextually aware digital assistants
JP6246951B2 (en) Data settings for user contact entries
US10928996B2 (en) Systems, devices and methods for electronic determination and communication of location information
US20160226811A1 (en) System and method for priority email management
US20030182391A1 (en) Internet based personal information manager
US20180203833A1 (en) Data collection for a new conversational dialogue system
US20150286943A1 (en) Decision Making and Planning/Prediction System for Human Intention Resolution
US11488599B2 (en) Session message processing with generating responses based on node relationships within knowledge graphs
CN107992513B (en) Information processing system and method for realizing information processing
CA3061788A1 (en) Electronic communication system with drafting assistant and method of using same
JPWO2015102082A1 (en) Terminal device, program, and server device for providing information in response to user data input
WO2019005360A1 (en) Categorizing electronic content
US20180357303A1 (en) Determining feature scores for message features
JP6576847B2 (en) Analysis system, analysis method, and analysis program
US20200327283A1 (en) Information processing apparatus, computer program product, and computer readable medium
JPWO2016021160A1 (en) Danger detection device, danger detection method, and danger detection program
US20130198229A1 (en) Method and device for processing continuous queries
JP4677051B1 (en) Conversation system and conversation sentence processing method
JP2020129239A (en) Post Analysis System, Post Analysis Device, and Post Analysis Method
KR101113938B1 (en) Community system for providing communication service with dead person and Community method thereof
JP4109091B2 (en) Schedule management apparatus and method, program

Legal Events

Date Code Title Description
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

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140204

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4677051

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees