JP2009169840A - Knowledge structure configuration method of natural language interactive agent, method of creating automatic response using knowledge structure and automatic response creating device - Google Patents

Knowledge structure configuration method of natural language interactive agent, method of creating automatic response using knowledge structure and automatic response creating device Download PDF

Info

Publication number
JP2009169840A
JP2009169840A JP2008009458A JP2008009458A JP2009169840A JP 2009169840 A JP2009169840 A JP 2009169840A JP 2008009458 A JP2008009458 A JP 2008009458A JP 2008009458 A JP2008009458 A JP 2008009458A JP 2009169840 A JP2009169840 A JP 2009169840A
Authority
JP
Japan
Prior art keywords
knowledge structure
knowledge
relationship
elements
class
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.)
Granted
Application number
JP2008009458A
Other languages
Japanese (ja)
Other versions
JP4824043B2 (en
Inventor
Kiyoshi Nitta
清 新田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yahoo Japan Corp
Original Assignee
Yahoo Japan Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yahoo Japan Corp filed Critical Yahoo Japan Corp
Priority to JP2008009458A priority Critical patent/JP4824043B2/en
Publication of JP2009169840A publication Critical patent/JP2009169840A/en
Application granted granted Critical
Publication of JP4824043B2 publication Critical patent/JP4824043B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method of generating a quick and flexible automatic response. <P>SOLUTION: A computer responds to a message from a user by using a graphic structure of an expanded semantic network that can represent a relationship between an optional state belonging to a set of knowledge structures and an operation to thereby be able to quickly perform a response corresponding to the message from the user and flexibly perform construction and addition of a knowledge structure. By constructing a discourse structure in the knowledge structure to handle a dialogue based on a natural language and further constructing a following structure, a new element can be generated from elements of a knowledge structure that has been already stored. By handling a relationship between elements of the knowledge structure by using a class, expandability is secured, and an operation in response generation can be securely maintained even through an entity is huge data. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ユーザのメッセージに対応して応答するプログラムに関する。特に、ユーザが入力したメッセージからキーワードを抽出して迅速に応答するプログラムに関する。   The present invention relates to a program that responds in response to a user message. In particular, the present invention relates to a program that extracts a keyword from a message input by a user and responds quickly.

従来、利用者が入力したテキスト等に対応して自然言語の対話を行うチャットボットと言われるプログラムが存在する。これらは、ユーザが入力したメッセージからキーワードを抽出し、データベース中のワードにマッチした応答を行うプログラムである。ユーザによって入力された情報を状況特定データと照合して入力された情報に対応する状況特定データを判断し、入力された情報に対応する状況特定データに得点を加算して状況特定データが属する状況データの評価点数を集計し、評価点数の集計状況に応じて入力された情報に対して応答すべき状況データを判断して、応答出力生成手段により応答すべき状況データに関連付けられた出力形式に従って応答データを生成して出力処理するシステムが開示されている(特許文献1参照)。
また、自然言語処理に係る技術分野において、自然言語データに含まれる構成要素のデータ構造又は自然言語処理アルゴリズムの関係を取り扱うためにグラフ理論が用いられ、辺(エッジ)と頂点(ノード)を用いるグラフ構造により自然言語データの構成要素の関係を示す手法が知られている(非特許文献1参照)。
特開2006−172280号公報 ウィキペディア・フリー百科事典、「グラフ理論」[online]、平成19(2007)年10月25日(木)16時05分最終更新、[平成19(2007)年12月18日検索]、インターネット、<URL: http://ja.wikipedia.org/wiki/%E3%82%B0%E3%83%A9%E3%83%95%E7%90%86%E8%AB%96>
2. Description of the Related Art Conventionally, there is a program called a chat bot that performs a natural language dialogue corresponding to a text input by a user. These are programs that extract a keyword from a message input by a user and perform a response that matches a word in the database. The situation to which the situation identification data belongs by judging the situation identification data corresponding to the entered information by comparing the information entered by the user with the situation identification data and adding the score to the situation identification data corresponding to the inputted information Summarize the evaluation score of the data, determine the situation data that should be responded to the information entered according to the status of the assessment score, and according to the output format associated with the situation data to be responded by the response output generation means A system that generates response data and performs output processing is disclosed (see Patent Document 1).
Also, in the technical field related to natural language processing, graph theory is used to handle the data structure of components included in natural language data or the relationship between natural language processing algorithms, and edges (edges) and vertices (nodes) are used. There is known a method of showing a relationship between components of natural language data by a graph structure (see Non-Patent Document 1).
JP 2006-172280 A Wikipedia Free Encyclopedia, “Graph Theory” [online], last update on Thursday, October 25, 2007 at 16:05, [Search December 18, 2007], Internet, <URL: http://en.wikipedia.org/wiki/%E3%82%B0%E3%83%A9%E3%83%95%E7%90%86%E8%AB%96>

しかし、従来技術又は従来技術と当業公知の技術の組合せにおいては、ユーザから入力されたメッセージに対応する応答を抽出する為に、状況と動作とが対応付けられたデータベースの項目をひとつずつ当たって検索を行わなければならず、応答のための情報の抽出に時間を要するという課題があった。   However, in the conventional technique or a combination of the conventional technique and a technique known in the art, in order to extract a response corresponding to the message input by the user, the database items in which the situation and the action are associated are matched one by one. Therefore, there is a problem that it takes time to extract information for response.

本発明は、上記課題を解決するために、システムの活動によってその構成要素を外部から取り込む等の手法を有する、自己創出性を備えた知識構造を提供し、これにより自然言語対話におけるユーザへの応答を迅速にすることを目的とする。
さらに、本発明は、対話エージェントの知識構造に前記自己創出性を備えるために、意味ネットワークを拡張した拡張意味ネットワークという知識構造を提供することを目的とする。拡張意味ネットワークは、辺と頂点からなる公知のグラフ理論に加えて、辺を修飾する辺を表現する特徴を備えることにより、柔軟性と拡張性に優れた、対話エージェントの知識構造を実装することを目的とする。
In order to solve the above-mentioned problems, the present invention provides a knowledge structure with self-creativity having a method such as taking in its components from the outside by system activities, thereby providing a user with a natural language dialogue. The purpose is to speed up the response.
It is another object of the present invention to provide a knowledge structure called an extended semantic network in which the semantic network is expanded in order to provide the knowledge structure of the dialog agent with the self-creating property. In addition to the well-known graph theory consisting of edges and vertices, the extended semantic network implements the knowledge structure of interactive agents with excellent flexibility and extensibility by providing features that represent edges that modify edges. With the goal.

本発明では、以下のような解決手段を提供する。   The present invention provides the following solutions.

(1) コンピュータ処理可能な言語に含まれる状況と動作との関係を含む集合である知識構造を記憶部に作成する知識構造の構成方法であって、前記関係は始点、終点を要素に含む集合であり、前記状況を特定するための用語及び前記動作を特定するための用語を前記記憶部に記憶するステップと、前記状況及び前記動作及び前記関係のそれぞれにクラスを定義するステップと、前記状況を特定するための用語及び前記動作を特定するための用語のお互いの関係を前記要素として前記知識構造に含めて記憶するステップと、前記クラスと前記関係との所属関係又は従属関係を要素として前記知識構造に記憶するステップと、を含み、ここに前記関係は前記始点及び前記終点を共に空要素とする関係であるか、又は前記始点及び前記終点を共に前記知識構造の要素とする関係であるかのいずれかである、知識構造の構成方法。 (1) A knowledge structure forming method for creating a knowledge structure in a storage unit that is a set including a relationship between a situation and an action included in a computer-processable language, wherein the relationship includes a start point and an end point as elements. Storing a term for specifying the situation and a term for specifying the action in the storage unit, defining a class for each of the situation, the action, and the relationship, and the situation Including the relationship between the term for specifying the term and the term for specifying the action included in the knowledge structure as the element, and the membership or subordinate relationship between the class and the relationship as the element Storing in a knowledge structure, wherein the relationship is a relationship in which both the start point and the end point are empty elements, or the start point and the end point are shared. The knowledge is either a relation to an element of the structure, configuring the knowledge structure.

本発明に係る知識構造の構成方法は、コンピュータを用いて自動応答を実施するための対話プログラム等に用いられる。
本発明に係る知識構造を作成する記憶部は、コンピュータ資源に含まれ主記憶又は仮想記憶として用いうる半導体メモリ等の電気的記憶手段、磁気ディスク等の磁気的記憶手段、光磁気ディスク等の光学的記憶手段等を適宜含む。
本発明に係る知識構造の構成方法は、状況と動作の両者を要素とする言語の集合である知識構造を用意すること、及び、典型的には状況を始点とし動作を終点とする関係もまた前記知識構造の要素でありうることにおいて従来技術と共通点を有する。すなわち、公知のグラフ構造等を用いて、従来技術に係る始点と終点により関係を記述する手法は、本発明においても同様に用いることができる。ここに、グラフ構造を用いる知識構造の表現手法においては、始点及び終点は「頂点」又は「ノード」等と呼ばれ、始点から終点への関係は「辺」又は「エッジ」等と呼ばれる。
従来技術に係るグラフ理論においては、始点又は終点の集合を用意し、始点及び終点の組合せを用いて辺の集合を用意する。すなわち、辺は始点から終点に向かって定義される。
これに対して、本発明に係る知識構造に属する要素の関連付けは、頂点と辺を特に区別せずに要素を用意し、2の要素の組合せにおいて、始点及び終点が共に空要素である組合せを頂点として扱い、始点及び終端が共に空要素でない組合せを辺として扱う。すなわち、知識構造に属する2の要素を組合せることにより、当該組合せが頂点及び辺として取り扱われる。
拡張意味ネットワークは、このようにして2の要素を組合せることによりグラフ構造の頂点又は辺を表す手法である。
本発明に係る知識構造においては、知識構造に属する2の要素を組合せれば頂点でも辺でもありうる。具体的には、終点は状況でもよく動作でもよく、あるいは状況と動作の関係でもよい。この点において、本発明に係る知識構造に属する要素の関連付けは従来技術にない特徴を有する。すなわち、状況と状況の関連付け、状況と動作の関連付け、動作と動作の関連付け、さらにこれらの関連付けを1の関係とする動作と1の関係の関連付け等を実施することが可能になる。従って、本発明に係る知識構造の構成方法においては、従来の意味ネットワークに加えて、拡張意味ネットワークを提供することにより、知識構造に含まれる要素同士の関連付け及び要素と関係の関連付け等を柔軟に実施することが可能になる。
本発明に係る知識構造をグラフ構造を用いて表現することにおいては、従来技術と同様の始点から終点への関連付けに加えて、関連付けを表す辺を修飾する辺を表現しうる。すなわち、辺の終点は辺でもありうる。このような、従来技術を拡張した拡張意味ネットワークを用いて、本発明に係る知識構造の構成方法は、意味又は記憶の構造を表すための知識構造を構成しうる。
The knowledge structure construction method according to the present invention is used for a dialogue program or the like for executing an automatic response using a computer.
A storage unit for creating a knowledge structure according to the present invention includes an electrical storage unit such as a semiconductor memory that is included in computer resources and can be used as a main storage or a virtual storage, a magnetic storage unit such as a magnetic disk, and an optical unit such as a magneto-optical disk. A storage means and the like as appropriate.
The knowledge structure construction method according to the present invention also provides a knowledge structure, which is a set of languages having both situations and actions as elements, and typically has a relationship where a situation is a start point and an action is an end point. It has common points with the prior art in that it can be an element of the knowledge structure. That is, the method of describing the relationship by the start point and the end point according to the prior art using a known graph structure or the like can be similarly used in the present invention. Here, in the knowledge structure representation technique using the graph structure, the start point and the end point are called “vertices” or “nodes”, and the relationship from the start point to the end point is called “side” or “edge”.
In the graph theory according to the related art, a set of start points or end points is prepared, and a set of edges is prepared using a combination of start points and end points. That is, the edge is defined from the start point to the end point.
On the other hand, associating elements belonging to the knowledge structure according to the present invention, elements are prepared without particularly distinguishing vertices and sides, and in the combination of two elements, a combination in which both the start point and the end point are empty elements. Treats as a vertex, and treats a combination whose start and end are not empty elements as an edge. That is, by combining two elements belonging to the knowledge structure, the combination is treated as a vertex and an edge.
The extended semantic network is a technique for representing vertices or edges of a graph structure by combining two elements in this way.
In the knowledge structure according to the present invention, if two elements belonging to the knowledge structure are combined, it can be a vertex or an edge. Specifically, the end point may be a situation or an action, or a relationship between the situation and the action. In this respect, the association of elements belonging to the knowledge structure according to the present invention has a feature not found in the prior art. That is, it is possible to perform association between a situation and a situation, association between a situation and an action, association between an action and an action, and association between an action and a relation having these relations as one relation. Therefore, in the knowledge structure configuration method according to the present invention, by providing an extended semantic network in addition to the conventional semantic network, it is possible to flexibly associate elements and relationships between elements included in the knowledge structure. It becomes possible to carry out.
In expressing the knowledge structure according to the present invention using the graph structure, in addition to the association from the start point to the end point similar to the related art, an edge for modifying the edge representing the association can be represented. That is, the end point of a side can also be a side. Using such an extended semantic network that is an extension of the prior art, the knowledge structure construction method according to the present invention can construct a knowledge structure for representing a meaning or storage structure.

(2) 前記状況及び前記動作及び前記関係のそれぞれにクラスを定義するステップにおいて、クラスを定義するために以下の数式を用いる、(1)に記載の知識構造の構成方法。

Figure 2009169840
ここに、ASNは拡張意味ネットワーク(Augmanted Semantic Network)であり、EASNは拡張意味ネットワークの集合であり、eは集合Eの要素である二項組要素であり、eはEASNの要素である始点(301)等であり、eはEASNの要素である終点(302)等であり、nullは空要素であり、さらに、拡張意味ネットワークは次の要素集合を有し、
Figure 2009169840
Figure 2009169840
Figure 2009169840
ここに、ASNVEは拡張意味ネットワークASNの構成要素であり、Eは拡張意味ネットワークにおける頂点の集合であり、Eは拡張意味ネットワークにおける辺の集合である。 (2) The knowledge structure configuration method according to (1), wherein in the step of defining a class for each of the situation, the action, and the relationship, the following mathematical formula is used to define the class.
Figure 2009169840
Here, ASN is an enhanced semantic network (Augmanted Semantic Network), E ASN is a set of extended semantic network, e is a two-tuple element is an element of the set E, e s is an element of E ASN a certain starting point (301) or the like, e d is the end point (302) or the like is an element of E ASN, null is empty element further extended semantic network has the following element set,
Figure 2009169840
Figure 2009169840
Figure 2009169840
Here, ASN VE is a component of the extended semantic network ASN, E v is a set of vertices in the extended semantic network, and E e is a set of edges in the extended semantic network.

数式1は、二項組を構成するe、eは要素集合EASNの要素か、あるいは空要素nullであることを表す。
数式2は、本発明に係る拡張意味ネットワークが頂点の集合E及び辺の集合Eを構成要素とすることを表す。
数式3は、頂点の集合Eは二項組要素e、eが両方とも空要素であるときの要素e(e,e)を含むことを表す。
数式4は、辺の集合Eは二項組要素e、eが辺の集合Eに属するときの要素e(e,e)を含むことを表す。
数式3及び数式4は、共通して要素e(e,e)を用いて表現される。すなわち、本発明に係る拡張意味ネットワークにおいては、要素に含まれる辺の終点が終点eだけではなく辺e(e,e)でもありうることにおいて、公知の意味ネットワークとの相違点を有する。従って、本発明に係る拡張意味ネットワークにおいては、始点e(304)から始まる辺e(305)の終点を辺e(303)としうる。
Equation 1 indicates that the e s, e d constituting a two-tuple or elements of the element set E ASN, or an empty element null.
Formula 2 represents that the extended semantic network according to the present invention includes the vertex set E v and the edge set E e as components.
Equation 3 indicates that the vertex set E v includes elements e ( es , ed ) when the binomial elements es , ed are both empty elements.
Equation 4 is a set E e of the edge indicates that contain elements e (e s, e d) when the binary sets elements e s, e d belongs to the set E v sides.
Equations 3 and 4 are commonly expressed using elements e ( es , ed ). That is, in the extended semantic network according to the present invention, the end point of the side included in the element can be not only the end point ed but also the side e ( es , ed ). Have. Therefore, in the extended semantic network according to the present invention, the end point of the side e i (305) starting from the start point e c (304) can be set as the side e e (303).

(3) 前記状況を特定するための用語又は前記動作を特定するための用語を受信するステップと、受信した前記状況を特定するための用語又は前記動作を特定するための用語を選別して記憶するステップと、をさらに含む、(1)又は(2)に記載の知識構造の構成方法。 (3) receiving a term for specifying the situation or a term for specifying the action, and selecting and storing the received term for specifying the situation or the term for specifying the action The knowledge structure constructing method according to (1) or (2).

受信の手段は、ユーザがキーボード等を用いて入力してもよく、適宜通話解析プログラム等を用いて通話をコンピュータ処理可能な文字情報に変換して入力してもよく、詳細は問わない。
選別する手段は、予め定義したキーワード等に基づいて特定の用語を排除する等の公知の手段等でもよく、記憶する手段はコンピュータ可読媒体等でもよく、選別して記憶するための手段は適宜設計しうる。
これにより、本発明に係る知識構造の構成方法は、外部から送信された用語、語句等を受信し、選別して記憶することにより、用語等を本発明に係る知識構造に追加することが可能になる。
The receiving means may be input by the user using a keyboard or the like, or may be input by appropriately converting the call into character information that can be processed by a computer using a call analysis program or the like.
The selecting means may be a known means such as excluding a specific term based on a predefined keyword or the like, and the storing means may be a computer readable medium or the like, and the means for selecting and storing is appropriately designed. Yes.
As a result, the knowledge structure construction method according to the present invention can add terms to the knowledge structure according to the present invention by receiving, selecting and storing terms, phrases, etc. transmitted from the outside. become.

(4) 会話の場、会話履歴、会話文脈を要素に有する集合である談話構造を生成するステップと、前記会話の場をひとつの要素として前記知識構造に記憶するステップと、会話の発生を要素とする全順序つき集合を前記知識構造に記憶するステップと、前記会話の発生及び前記会話の発生の順序隣接関係を前記知識構造に記憶するステップと、をさらに含む、(1)から(3)のいずれかに記載の知識構造の構成方法。 (4) generating a discourse structure that is a set having a conversation place, conversation history, and conversation context as elements, storing the conversation place as one element in the knowledge structure, and generating the conversation (1) to (3), further comprising the steps of: storing in the knowledge structure a total ordered set as follows; and storing in the knowledge structure the occurrence of the conversation and the sequential adjacency relationship of the occurrence of the conversation. A method for constructing the knowledge structure according to any of the above.

談話構造は、特に、コンピュータ処理可能な文字コードを用いて表現される会話文脈を要素に有する集合を含む。
会話の場は、具体的には、パーソナルコンピュータ、携帯電話等のネットワーク端末を介して接続した複数のユーザが相互に文字情報又は音声情報等の交換を実質的にリアルタイムに実施しうる、チャットルームサービス、ネットワーク会議システム等のサービスを含む。
全順序付き集合は、具体的には、会話の発生ごとに会話の時間的順序を数字の大小と関連付けて規則的に記憶する手段を要素に有する集合を含む。
これにより、本発明に係る知識構造の構成方法は、会話の発生を検出すると、時間的順序を規則的に記憶する手段を用いてそれぞれの会話の発生を識別して本発明に係る知識構造に追加し、文字コードを用いて表現される会話文脈を知識構造に取り込むことが可能になる。
The discourse structure includes, in particular, a set having, as elements, a conversation context expressed using a computer-processable character code.
Specifically, a chat room is a chat room where a plurality of users connected via a network terminal such as a personal computer or a mobile phone can exchange character information or voice information with each other substantially in real time. Includes services such as services and network conferencing systems.
Specifically, the total ordered set includes a set having, as elements, means for regularly storing the temporal order of conversations in association with the magnitudes of numbers for each occurrence of conversations.
Thus, when the occurrence of a conversation is detected, the knowledge structure configuration method according to the present invention identifies the occurrence of each conversation using means for regularly storing the temporal order, and creates the knowledge structure according to the present invention. In addition, the conversation context expressed using the character code can be taken into the knowledge structure.

(5) 関係クラス、方向、到達先を要素に含む集合であるたどり構造を生成するステップと、前記知識構造に含まれる要素のうちで始点及び終点が設定されている要素を抽出するステップと、前記抽出された始点に対してそれ自身のクラス、順方向の関連付けを示すフラグ、終点の組合せをたどり構造に追加するステップと、前記抽出された終点に対してそれ自身のクラス、逆方向の関連付けを示すフラグ、始点の組合せをたどり構造に追加するステップと、をさらに含む、(1)から(4)のいずれかに記載の知識構造の構成方法。 (5) generating a tracing structure that is a set including a relation class, a direction, and a destination in the elements; extracting an element having a starting point and an ending point among elements included in the knowledge structure; Adding a combination of its own class, a flag indicating forward association to the extracted start point, and a combination of end points to the tracing structure, and its own class, reverse association to the extracted end point The method of constructing a knowledge structure according to any one of (1) to (4), further including a step of adding a flag indicating a combination of start points to the trace structure.

たどり構造を生成するステップは、すでに記憶された知識構造の要素に基づいて、新たな要素を生成するステップである。
関係クラスは、本発明に係る知識構造に含まれる要素である、状況又は動作の関係が属するクラスである。具体的には、このクラスは、当該関係が動作から動作への関係であるのか、1の状況を表すのか等を示しうる。クラスを用いてたどり構造を生成することにより、例えば同じユーザのクラスを定義しうる複数の関係を新たに生成しうる。これにより、過去に相互に関連付けのなかった要素に対して、クラスを通じてユーザが共有する手段を提供しうる。
たどり構造を生成し、順方向又は逆方向の関連付け、及び始点又は終点の組合せをたどり構造に追加することにより、本発明に係る知識構造はすでに記憶された知識構造の要素から新たな要素を生成しうる。
これにより、本発明に係る知識構造は、拡張意味ネットワークにより知識構造を柔軟に構成しうることに加えて、再帰的にたどり構造を生成することで、知識構造の構成方法に拡張性、自己改変性、共有性を備えうる。
The step of generating the tracing structure is a step of generating a new element based on the already stored knowledge structure element.
The relation class is a class to which a situation or action relation belongs, which is an element included in the knowledge structure according to the present invention. Specifically, this class can indicate whether the relationship is from operation to operation, whether it represents a single situation, or the like. By generating a tracing structure using a class, for example, a plurality of relationships that can define the class of the same user can be newly generated. Accordingly, it is possible to provide a means for the user to share through the class for elements that have not been associated with each other in the past.
The knowledge structure according to the present invention generates a new element from the elements of the already stored knowledge structure by generating a trace structure and adding a forward or reverse association and a combination of start point or end point to the trace structure. Yes.
As a result, the knowledge structure according to the present invention can be flexibly configured by an extended semantic network, and in addition to recursively generating a trace structure, the knowledge structure can be expanded and self-modified. Can be shared.

(6) (1)から(5)のいずれかに記載の前記知識構造の構成方法を用い、前記状況を特定するための用語を受信することに応答して、前記たどり構造の集合から、動作関係のクラス及び順方向の関連付けを示すフラグの組合せが存在する知識構造の要素を抽出するステップと、前記抽出された少なくとも1つの要素から、ランダムな選択規則、最初又は最後に抽出された要素を選択する規則、最も以前又は最近に抽出された要素を選択する規則、談話構造と最も関連性の高い要素を選択する規則から選ばれる規則に基づいて要素を選択するステップと、を用いて前記動作を特定するための用語を決定する、自動応答の作成方法。 (6) Using the knowledge structure construction method according to any one of (1) to (5), in response to receiving a term for specifying the situation, an operation is performed from the set of trace structures. Extracting a knowledge structure element in which a combination of a relation class and a flag indicating a forward association exists, and selecting a random selection rule, an element extracted first or last from the extracted at least one element Selecting an element based on a rule selected, a rule for selecting an element extracted earlier or most recently, a rule for selecting an element most relevant to the discourse structure, and selecting the element. How to create an automatic response that determines the terminology used to identify

状況を特定するための用語は、単語、文節、文等の、拡張意味ネットワークにおける頂点又は辺に格納されうる語句であればよい。
あるいは、本発明に係る拡張意味ネットワークは、前記用語の実体をインスタンスとして扱い、インスタンスとして扱うことのクラスを定義して当該クラスを頂点又は辺に格納してもよい。これにより、用語等の実体が巨大なデータであっても、拡張意味ネットワークにおける頂点又は辺は、クラス定義の語句又は記号を表すデータでありうる。従って、本発明に係る自動応答の作成方法は、応答を作成するためのコンピュータ・プログラムのメモリ消費量を抑えて動作を安全に維持しうる。
たどり構造の集合に属する要素は、(5)において前述のように、順方向又は逆方向の関連付けを有する。状況から動作を特定するための用語を決定することにおいては、たどり構造に含まれる順方向の関連付けを用いる。これにより、全ての知識構造に属する要素をひとつひとつ調べて応答を作成する手順は不要であり、順方向の関連付けを示すフラグに基づいて応答を作成すればよく、自動応答の作成は迅速化されうる。
また、動作を特定するための用語の決定は、談話構造と最も関連性の高い要素を選択する規則を含み、所定の規則から適宜選択しうる。これにより、内容が的確な自動応答を作成しうると共に、非論理的応答を含む自動応答を作成することが可能になり、ユーザの立場から見た自動応答の単調さを避けうる。
The term for specifying the situation may be a phrase that can be stored at a vertex or an edge in the extended semantic network, such as a word, a clause, or a sentence.
Alternatively, the extended semantic network according to the present invention may treat an entity of the term as an instance, define a class to be treated as an instance, and store the class at a vertex or an edge. As a result, even if the substance of a term or the like is huge data, the vertex or edge in the extended semantic network can be data representing a class definition word or phrase. Therefore, the method for creating an automatic response according to the present invention can suppress the memory consumption of the computer program for creating the response and safely maintain the operation.
Elements belonging to the set of tracing structures have a forward or reverse association as described above in (5). In determining a term for specifying an action from a situation, a forward association included in the tracing structure is used. As a result, it is not necessary to create a response by examining each element belonging to all knowledge structures one by one, and it is only necessary to create a response based on a flag indicating the association in the forward direction, and automatic response creation can be speeded up. .
Moreover, the determination of the term for specifying the action includes a rule for selecting an element most relevant to the discourse structure, and can be appropriately selected from predetermined rules. As a result, it is possible to create an automatic response whose contents are accurate, and it is possible to create an automatic response including an illogical response, and avoid the monotony of the automatic response from the viewpoint of the user.

(7) (1)から(6)のいずれかの各ステップをコンピュータに実行させるための、コンピュータ・プログラム。 (7) A computer program for causing a computer to execute each step of (1) to (6).

これにより、本発明に係る知識構造の構成方法及び自動応答の作成方法を、コンピュータを用いて実施することが可能になる。   As a result, the knowledge structure construction method and automatic response creation method according to the present invention can be implemented using a computer.

(8) (1)から(6)のいずれかに記載の前記知識構造の構成方法を用いる自動応答の作成装置であって、前記状況を特定するための用語及び前記動作を特定するための用語を記憶する手段と、ユーザが前記状況を特定するための用語を入力することに応答して、前記たどり構造の集合から、動作関係のクラス及び順方向の関連付けを示すフラグの組合せが存在する知識構造の要素を抽出する手段と、前記抽出された少なくとも1つの要素から、ランダムな選択規則、最初又は最後に抽出された要素を選択する規則、最も以前又は最近に抽出された要素を選択する規則、談話構造と最も関連性の高い要素を選択する規則から選ばれる規則に基づいて前記動作を特定するための用語を選択する手段と、前記選択した用語を前記ユーザに送信する手段と、を備える、自動応答の作成装置。 (8) An automatic response creation apparatus using the knowledge structure construction method according to any one of (1) to (6), wherein the term for identifying the situation and the term for identifying the action Knowledge that there is a combination of a flag indicating an association between a class of motion relations and a forward direction from the set of tracing structures in response to a user inputting a term for specifying the situation. A means for extracting structural elements; a rule for selecting a random selection rule from the extracted at least one element; a rule for selecting an element extracted first or last; a rule for selecting an element extracted the oldest or most recently Means for selecting a term for identifying the action based on a rule selected from a rule for selecting an element most relevant to the discourse structure, and transmits the selected term to the user And means that the creation system of an automatic response.

ユーザによる用語の入力のための手段は、適宜、ネットワーク端末等を用いうるが、これに限らない。
これにより、本発明に係る知識構造の構成方法の一実施形態として、(5)において前述の自動応答の作成方法を実施するための装置を提供しうる。
As a means for inputting a term by the user, a network terminal or the like can be used as appropriate, but is not limited thereto.
As a result, as an embodiment of the knowledge structure configuration method according to the present invention, an apparatus for implementing the above-described automatic response creation method in (5) can be provided.

(9) (1)から(6)のいずれかに記載の知識構造を記憶するコンピュータ可読媒体。 (9) A computer-readable medium that stores the knowledge structure according to any one of (1) to (6).

これにより、本発明に係る知識構造の構成方法において、要素が追加され又は参照される知識構造をコンピュータ可読媒体として利用することができる。コンピュータ可読媒体は計算機から取り外し可能でもよい。これにより、本発明に係る知識構造はコンピュータ可読媒体として取り扱いうる。   Thereby, in the knowledge structure construction method according to the present invention, the knowledge structure to which an element is added or referenced can be used as a computer-readable medium. The computer readable medium may be removable from the computer. Thereby, the knowledge structure according to the present invention can be handled as a computer-readable medium.

本発明によれば、自動的な応答を作成するために、状況と動作の関係を表現しうる拡張意味ネットワークの知識構造を用いて、ユーザからのメッセージにコンピュータが応答することにより、迅速にユーザのメッセージに対応する応答を行うことが出来るという効果がある。
また、本発明によれば、知識構造に含まれる頂点だけでなく辺をも修飾する辺を表現しうる拡張意味ネットワークを備えて対話エージェントが動作することにより、柔軟性と拡張性に優れた、対話エージェントの知識構造を実装することが出来るという効果がある。
また、本発明によれば、知識構造の中に談話構造を構成して自然言語に基づく会話を取り扱いうるという効果がある。また、知識構造の中にたどり構造を構成することにより、すでに記憶された知識構造の要素から新たな要素を生成しうるという効果がある。
さらに、本発明によれば、知識構造に含まれる要素にクラスを定義し、クラスを用いて要素の相互の関係を取り扱うことにより、要素の拡張を容易にすると共に、要素の実体であるインスタンスが巨大なデータであっても応答生成等のプログラムのメモリ消費を抑えて動作を安全に維持しうるという効果がある。
According to the present invention, in order to create an automatic response, the computer responds to the message from the user using the knowledge structure of the extended semantic network that can express the relationship between the situation and the action, so that the user can quickly There is an effect that a response corresponding to the message can be made.
In addition, according to the present invention, the dialog agent operates with an extended semantic network that can express not only the vertices included in the knowledge structure but also the edges to modify the edges, thereby providing excellent flexibility and extensibility. There is an effect that the knowledge structure of the dialogue agent can be implemented.
Further, according to the present invention, it is possible to handle a conversation based on a natural language by forming a discourse structure in the knowledge structure. In addition, by forming a tracing structure in the knowledge structure, there is an effect that a new element can be generated from the elements of the already stored knowledge structure.
Furthermore, according to the present invention, a class is defined for an element included in the knowledge structure, and the mutual relationship between the elements is handled by using the class, thereby facilitating the expansion of the element and the instance that is the entity of the element. Even for huge data, there is an effect that the memory consumption of a program such as response generation can be suppressed and the operation can be safely maintained.

以下、本発明の実施形態について図を参照しながら説明する。なお、本発明に係る知識構造はコンピュータ機器が有する記憶部に作成される。前記記憶部はコンピュータ資源に含まれ主記憶又は仮想記憶として用いうる半導体メモリ等の電気的記憶手段、磁気ディスク等の磁気的記憶手段、光磁気ディスク等の光学的記憶手段等を適宜含む。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the knowledge structure according to the present invention is created in the storage unit of the computer device. The storage unit appropriately includes electrical storage means such as a semiconductor memory that is included in computer resources and can be used as main memory or virtual storage, magnetic storage means such as a magnetic disk, and optical storage means such as a magneto-optical disk.

[拡張意味ネットワークの構造]
図1は、本発明及び従来技術の一実施形態に係る、知識構造の基本構造における要素の関係を示す図である。
[Structure of extended semantic network]
FIG. 1 is a diagram illustrating the relationship of elements in a basic structure of a knowledge structure according to an embodiment of the present invention and the prior art.

まず、意味又は記憶の構造を表すためのモデルに用いられる、公知の意味ネットワークの形式について説明する。
図1(b)は、意味ネットワークを表すグラフ構造を示す図である。辺e(312)は、始点v(310)及び終点v(311)で定義され、始点から終点に向かう矢印で表される。意味ネットワークは次の数式5から数式7を用いて表される形式を有する。

Figure 2009169840
Figure 2009169840
Figure 2009169840
ここに、SN:意味ネットワーク(Semantic Network)
SN:意味ネットワークに含まれる頂点(Vertex)の集合
SN:意味ネットワークに含まれる辺(Edge)の集合
v:頂点の集合Vの要素
e:辺の集合Eの要素
:始点(310)等、VSNの要素
:終点(311)等、VSNの要素
である。
数式5は、意味ネットワークが頂点の集合VSN及び辺の集合ESNで構成されることを表す。
数式6は、頂点の集合VSN要素vを有することを表す。
数式7は、辺の集合ESNは辺の要素eを有し、辺の要素eは始点v及び終点vで定義され、始点v及び終点vは頂点の集合VSNに属することを表す。 First, a known semantic network format used for a model for representing a meaning or a memory structure will be described.
FIG. 1B is a diagram illustrating a graph structure representing a semantic network. The side e (312) is defined by the start point v s (310) and the end point v d (311), and is represented by an arrow from the start point to the end point. The semantic network has a format represented by the following equations 5 to 7.
Figure 2009169840
Figure 2009169840
Figure 2009169840
Here, SN: Semantic Network
V SN : a set of vertices (Vertex) included in the semantic network
E SN : set of edges included in the semantic network
v: Element of vertex set V
e: Element of edge set E
v s : element of V SN such as start point (310)
v d : an element of V SN such as end point (311).
Equation 5 represents that the semantic network is composed of a vertex set V SN and an edge set E SN .
Equation 6 represents having a vertex set V SN element v.
Equation 7, the set E SN sides has a side of the element e, the element e of the side defined by the start v s and the end point v d, belong be the starting point v s and the end point v d is set V SN of vertices Represents.

次いで、本発明に係る拡張意味ネットワークの形式について説明する。
図1(a)は、拡張意味ネットワークを表すグラフを示す図である。辺e(303)は始点e(301)及び終点e(302)で定義され、始点から終点に向かう矢印で表される。辺e(305)は始点e(304)を有して終点は辺e(303)である。本発明に係る拡張意味ネットワークは次の形式を有する。

Figure 2009169840
ここに、ASN:拡張意味ネットワーク(Augmanted Semantic Network)
ASN:拡張意味ネットワークの集合
e:集合Eの要素である二項組要素
:始点(301)等、EASNの要素
:終点(302)等、EASNの要素
null:空要素
である。
数式8は、二項組を構成するe、eは要素集合EASNの要素か、あるいは空要素nullであることを表す。さらに、拡張意味ネットワークは、次の要素集合を有する。
Figure 2009169840
Figure 2009169840
Figure 2009169840
ここに、ASNVE:拡張意味ネットワークASNの構成要素
:拡張意味ネットワークにおける頂点の集合
:拡張意味ネットワークにおける辺の集合
である。
数式9は、本発明に係る拡張意味ネットワークが頂点の集合E及び辺の集合Eを構成要素とすることを表す。
数式10は、頂点の集合Eは二項組要素e、eが両方とも空要素であるときの要素e(e,e)を含むことを表す。
数式11は、辺の集合Eは二項組要素e、eが辺の集合Eに属するときの要素e(e,e)を含むことを表す。
数式10及び数式11は、共通して要素e(e,e)を用いて表現される。すなわち、本発明に係る拡張意味ネットワークにおいては、要素に含まれる辺の終点が終点eだけではなく辺e(e,e)でもありうることにおいて、公知の意味ネットワークとの相違点を有する。従って、本発明に係る拡張意味ネットワークにおいては、図1(a)に示したように、始点e(304)から始まる辺e(305)の終点を辺e(303)としうる。 Next, the format of the extended semantic network according to the present invention will be described.
FIG. 1A is a diagram illustrating a graph representing an extended semantic network. The side e e (303) is defined by the start point e s (301) and the end point e d (302), and is represented by an arrow from the start point to the end point. The side e i (305) has a start point e c (304) and the end point is a side e e (303). The extended semantic network according to the present invention has the following format.
Figure 2009169840
Here, ASN: Augmented Semantic Network
E ASN : Set of extended semantic networks
e: Binary element that is an element of set E
e s: starting point (301), and the like, the elements of E ASN
ed : E ASN element such as end point (302)
null: An empty element.
Equation 8 indicates that the e s, e d constituting a two-tuple or elements of the element set E ASN, or an empty element null. Further, the extended semantic network has the following element set:
Figure 2009169840
Figure 2009169840
Figure 2009169840
Where ASN VE : component of the extended semantic network ASN
E v : vertex set in the extended semantic network
E e : A set of edges in the extended semantic network.
Expression 9 represents that the extended semantic network according to the present invention includes the vertex set E v and the edge set E e as components.
Expression 10 indicates that the vertex set E v includes an element e ( es , ed ) when the binomial elements es , ed are both empty elements.
Equation 11 is a set E e of the edge indicates that contain elements e (e s, e d) when the binary sets elements e s, e d belongs to the set E v sides.
Equations 10 and 11 are commonly expressed using elements e ( es , ed ). That is, in the extended semantic network according to the present invention, the end point of the side included in the element can be not only the end point ed but also the side e ( es , ed ). Have. Therefore, in the extended semantic network according to the present invention, as shown in FIG. 1A, the end point of the side e i (305) starting from the start point e c (304) can be set as the side e e (303).

本発明に係る拡張意味ネットワーク、及び公知の意味ネットワークにおいて、頂点が概念や事象を格納するために用いられ、頂点を結ぶ辺がそれらの関係の意味付けを格納するために用いられることは共通している。また、頂点や辺の具体的な意味は外部から与えることにおいても共通である。
本発明に係る拡張意味ネットワークにおいては、辺を辺の接続対象にできるという自由度を発生させることができる。
In the extended semantic network and the known semantic network according to the present invention, it is common that vertices are used to store concepts and events, and edges connecting the vertices are used to store the meaning of their relationship. ing. In addition, the specific meanings of vertices and edges are common in giving from the outside.
In the extended semantic network according to the present invention, it is possible to generate a degree of freedom that a side can be a connection target of the side.

[知識の格納の例]
図2は、本発明及び従来技術の一実施形態に係る拡張意味ネットワークを用いて格納される知識の例を示す図である。
一例として、ユーザから、「車」を意味する英単語「car」、自然言語のひとつの文を構成する他の文言「is a」、及び前記「車」の上位概念である「乗り物」を意味する英単語「vehicle」が与えられた場合を示す。
図2(a)は、本発明の一実施形態に係る拡張意味ネットワークを用いて格納される知識の例を示す図である。英単語「car」は要素321に、文言「is a」は要素323に、英単語「vehicle」は要素322に、それぞれ格納される。要素321及び要素322は、それぞれ辺325の始点及び終点でありうる。要素323及び辺325は、それぞれ辺324の始点及び終点でありうる。
図2(b)は、従来技術に係る意味ネットワークを用いて格納される知識の例を示す図である。英単語「car]は始点331に、文言「is a」は辺333に、英単語「vehicle」は終点332に、それぞれ格納される。
[Knowledge storage example]
FIG. 2 is a diagram illustrating an example of knowledge stored using an extended semantic network according to an embodiment of the present invention and the related art.
For example, the user means an English word “car” meaning “car”, another word “is a” constituting one sentence in natural language, and “vehicle” which is a superordinate concept of the “car”. The case where the English word “vehicle” is given is shown.
FIG. 2A is a diagram illustrating an example of knowledge stored using the extended semantic network according to the embodiment of the present invention. The English word “car” is stored in the element 321, the word “is a” is stored in the element 323, and the English word “vehicle” is stored in the element 322. Element 321 and element 322 may be the start and end points of side 325, respectively. Element 323 and side 325 may be the start and end points of side 324, respectively.
FIG. 2B is a diagram illustrating an example of knowledge stored using the semantic network according to the related art. The English word “car” is stored at the start point 331, the word “is a” is stored at the side 333, and the English word “vehicle” is stored at the end point 332.

本発明に係る拡張意味ネットワークにおいては、従来技術に係る意味ネットワークとは異なり、辺を修飾する文言を要素として扱いうる。すなわち、辺を修飾する要素を、始点又は終点になりうる要素と同様に、他の要素を修飾する又は他の要素から修飾されるオブジェクトとして扱いうる。これにより、従来技術よりも柔軟で拡張性に優れる知識構造を提供しうる。   In the extended semantic network according to the present invention, unlike the semantic network according to the prior art, a word that modifies an edge can be treated as an element. That is, an element that modifies a side can be treated as an object that modifies another element or is modified from another element in the same manner as an element that can be a start point or an end point. As a result, it is possible to provide a knowledge structure that is more flexible and more extensible than the prior art.

[自動応答出力作成システムの構成]
図3は、本発明の一実施形態に係る自動応答出力作成システムの構成を示す図である。自動応答出力作成システム20は、自動応答出力作成装置10、知識データベース(知識DB)30、ユーザ端末60、ネットワーク38等を適宜含む。ネットワーク38はイントラネットでもよく、インターネット等でもよい。ユーザ端末60は、パーソナルコンピュータ、携帯電話端末等の、ネットワーク接続可能な端末を含む。知識DB30は、ユーザから送信された文言に含まれる任意の語句、自動応答作成装置10が応答のために用いる知識及び語句、作成された応答に含まれる任意の語句、自然言語の分野における生成文法規則及び語句の頻度等の派生的な情報等を、適宜記憶する。
図3にはネットワーク38を介して相互に接続する複数機器を示したが、これに限らず、自動応答作成装置10及び知識DB30及びユーザインタフェース(図示せず)の機能を1台の機器に備えてもよい。
本発明の一実施形態に係る自動応答出力作成システムを用いることにより、ユーザの入力に対する応答を自動的に生成するシステムを提供しうる。
[Configuration of automatic response output creation system]
FIG. 3 is a diagram showing a configuration of an automatic response output creation system according to an embodiment of the present invention. The automatic response output creation system 20 appropriately includes an automatic response output creation device 10, a knowledge database (knowledge DB) 30, a user terminal 60, a network 38, and the like. The network 38 may be an intranet or the Internet. The user terminal 60 includes a terminal that can be connected to a network, such as a personal computer or a mobile phone terminal. The knowledge DB 30 includes an arbitrary word / phrase included in the word / phrase transmitted from the user, knowledge / phrase used by the automatic response generation apparatus 10 for a response, an arbitrary word / phrase included in the generated response, and a generation grammar in the field of natural language. Derived information such as the frequency of rules and phrases is stored as appropriate.
Although FIG. 3 shows a plurality of devices connected to each other via the network 38, the present invention is not limited to this, and the functions of the automatic response creation device 10, the knowledge DB 30, and the user interface (not shown) are provided in one device. May be.
By using the automatic response output generation system according to an embodiment of the present invention, a system that automatically generates a response to a user input can be provided.

[知識DBデータ構造]
図4は、本発明の一実施形態に係る、知識データベース(知識DB)のデータ構造を表す図である。
知識DBデータ構造80は、識別子82により個別に識別されるデータの1つについて関連付けられる、始点84、終点85、ラベル86、ポインタ88等を含む。これらに限らず、知識DBデータ構造80に含まれ関連付けられる情報は適宜設計しうる。
識別子82は、記憶されるデータを識別しうる形式であれば数字でも文字でもよく、適宜設計しうる。
始点84及び終点85は、知識DBデータ構造80に記憶されるデータの他のデータとの修飾の関係を示す。1つの識別子を有するデータに対して始点84及び終点85の1つずつが定義されてもよく、複数が定義されてもよく、空白でもよい。始点84及び終点85がいずれも空白であることは、そのデータが拡張意味ネットワークにおける頂点であることを示すので、拡張意味ネットワークにおいて取り扱いうるデータに含まれる。
ラベル86は、識別子82により個別に識別されるデータの1つについて、予め拡張意味ネットワークにおいて予約されるか、又は、ユーザにより定義される領域である。前記予約は、より具体的には、拡張意味ネットワークにおいて取り扱われる要素にクラスを定義し、要素が追記される等の拡張意味ネットワークの動作において生成される要素同士の関係を予め定義するためのものである。
例えば、予約されるクラスの定義には次のものが用いられうる。
(クラス1)vroot:全知識要素の開始点
(クラス2)vusr:ユーザのクラス
(クラス3)vact:動作のクラス
(クラス4)vins:インスタンス化関係のクラス
rootは、全知識要素の開始点であり、他の任意の要素を定義するための始点でありうる。vusrは、次に説明する動作クラスを目的やユーザに応じて整理するためのクラスである。vactは、本発明の実施形態に係る自動対話応答生成システムが実施する対話応答等の動作を知識要素に含めるためのクラスである。vinsは、本発明の実施形態に係る自動対話応答生成システム等において、メモリ上に配置されたデータの集合等の実体を示すためのクラスである。例えば、基本的な応答動作をとりまとめる頂点ubrは、クラスvusrのインスタンスである枝uによってvrootから接続され定義される。基本的な動作であるkeyword、relation、message等は、それぞれクラスvactのインスタンスである枝によって頂点ubrから接続され定義されうる。頂点ubrや基本的な動作を表す頂点のラベル86には、知識DB30を人が管理する際に便利な説明文字が含まれうる。
ポインタ88は、1つの識別子を有するデータであって、上述の始点84、終点85、又はラベル86以外の情報を含むデータを知識DB30に記憶し、取り扱うことができるようにするためのものである。例えば、当業に公知の文字列処理関数等は、ポインタ88に当該関数を関連付けることにより、知識DB30に取り込むことが可能になる。
[Knowledge DB data structure]
FIG. 4 is a diagram illustrating a data structure of a knowledge database (knowledge DB) according to an embodiment of the present invention.
The knowledge DB data structure 80 includes a start point 84, an end point 85, a label 86, a pointer 88, and the like that are associated with one of the data individually identified by the identifier 82. Not limited to these, information included in and associated with the knowledge DB data structure 80 can be designed as appropriate.
The identifier 82 may be a number or a character as long as it can identify stored data, and can be designed as appropriate.
The start point 84 and the end point 85 indicate a modification relationship between the data stored in the knowledge DB data structure 80 and other data. One start point 84 and one end point 85 may be defined for data having one identifier, a plurality may be defined, or a blank space may be defined. Since both the start point 84 and the end point 85 are blank, this indicates that the data is a vertex in the extended semantic network, and is included in the data that can be handled in the extended semantic network.
The label 86 is an area that is reserved in advance in the extended semantic network for one piece of data individually identified by the identifier 82 or is defined by the user. More specifically, the reservation is for defining a class for an element handled in the extended semantic network and predefining a relationship between elements generated in the operation of the extended semantic network such as an element being added. It is.
For example, the following can be used to define a reserved class:
(Class 1) v root : starting point of all knowledge elements (class 2) v usr : user class (class 3) v act : action class (class 4) v ins : instantiation-related class v root is all It is the starting point of the knowledge element and can be the starting point for defining any other element. v usr is a class for organizing operation classes described below according to purpose and user. v act is a class for including, in a knowledge element, operations such as a dialogue response performed by the automatic dialogue response generation system according to the embodiment of the present invention. v ins is a class for indicating an entity such as a set of data arranged on a memory in the automatic dialog response generation system and the like according to the embodiment of the present invention. For example, a vertex u br that organizes basic response operations is defined by being connected from v root by a branch u i that is an instance of the class v usr . The basic operations such as keyword, relation, message, and the like can be defined by being connected from the vertex u br by branches that are instances of the class v act . The apex label br and the apex label 86 representing the basic operation may include explanatory characters that are useful when the knowledge DB 30 is managed by a person.
The pointer 88 is data having one identifier, and is used for storing and handling data including information other than the above-described start point 84, end point 85, or label 86 in the knowledge DB 30. . For example, a character string processing function known to those skilled in the art can be imported into the knowledge DB 30 by associating the function with the pointer 88.

本発明の実施形態に係る自動対話生成システム等は、知識DBデータ構造80を備えることにより、拡張意味ネットワークにおいて取り扱いうるデータ、及び、拡張意味ネットワークとは特に関連性のない一般的な文字列処理関数等を、いずれも知識DB30に取り込み、用いうる。   The automatic dialog generation system or the like according to the embodiment of the present invention includes the knowledge DB data structure 80, so that data that can be handled in the extended semantic network and general character string processing that is not particularly related to the extended semantic network. Any function or the like can be taken into the knowledge DB 30 and used.

[知識構造の要素]
図5は、本発明の一実施形態に係る、拡張意味ネットワークの要素が含まれる連結グラフを示す図である。
拡張意味ネットワークの要素は知識構造を構成することに用いられる。それぞれの要素は、前述の全知識要素の開始点であるvrootとの関係を有する。この関係は、例えば、次式のように定義する連結グラフを用いて表しうる。

Figure 2009169840
ここで、Ecg(e):要素eからの連結グラフ
である。
本発明に係る知識構造の要素は、vrootを始点とする連結グラフに含まれる。
数式12の右辺に{}を用いて囲まれた4個の集合は、それぞれ、要素eの集合、始点e’及び終点e’’を有する辺e(e,e’’)の集合、辺e(e’,e)の終点である要素eの集合、辺e(e,e’)の始点である要素eの集合を表し、これらを連結グラフとして取り扱う。
図5に、これらの連結グラフの例を示す。連結グラフ340は、要素e、e、e及び、要素eから要素eへの辺、要素eから要素eへの辺を含む。
連結グラフ350についても同様である。数式12の右辺第3項に含まれる終点である要素eは、数式11を用いて前述のように、辺により修飾される辺であってもよい。例えば、連結グラフ350に、要素eを始点とし、要素eから要素e10への辺を終点とする辺を含むことができる。
本発明の一実施形態に係る知識構造の構成方法において、拡張意味ネットワークの要素を含む連結グラフを用いることにより、辺を修飾する辺等を知識構造の要素に含めることが可能になる。 [Knowledge structure elements]
FIG. 5 is a diagram illustrating a connected graph including elements of an extended semantic network according to an embodiment of the present invention.
Elements of the extended semantic network are used to construct knowledge structures. Each element has a relationship with vroot which is the starting point of all the knowledge elements described above. This relationship can be expressed using, for example, a connected graph defined as the following equation.
Figure 2009169840
Here, E cg (e v): is a connected graph from element e v.
Elements of knowledge structure according to the present invention, v is included in the connection graph starting from the root.
Four sets surrounded by {} on the right side of Equation 12 are a set of elements ev, a set of sides e e (e, e ″) having a start point e ′ and an end point e ″, A set of elements e that is the end point of the edge e e (e ′, e) and a set of elements e that are the start point of the edge e e (e, e ′) are represented, and these are handled as a connected graph.
FIG. 5 shows examples of these connection graphs. The connection graph 340 includes elements e 6 , e 7 , e 1 , an edge from the element e 6 to the element e 7, and an edge from the element e 7 to the element e 8 .
The same applies to the connection graph 350. The element e which is the end point included in the third term on the right side of Expression 12 may be an edge that is modified by an edge as described above using Expression 11. For example, the connected graph 350 can include an edge starting from the element e 5 and ending at the edge from the element e 9 to the element e 10 .
In the method for constructing a knowledge structure according to an embodiment of the present invention, by using a connected graph including elements of an extended semantic network, it is possible to include edges that modify edges in the elements of the knowledge structure.

ユーザのクラスvusrは、知識構造のユーザ関係をインスタンスとする。ユーザ関係は必ずルートvrootを開始点とする。
ユーザ関係は頂点としての到達点uを含む。知識構造は、この到達点uにより分割される。すなわち、u、u、…、u等により表される複数の到達点がある場合に、vrootを始点とする知識構造は、それぞれの到達点u、u、…、uから先の関連付けにおいては、到達点uの数に分割される。換言すれば、知識構造を分割しうる頂点uはユーザである。
The user class v usr takes the user relationship of the knowledge structure as an instance. The user relationship always starts from the root vroot .
The user relationship includes a reaching point u as a vertex. The knowledge structure is divided by this reaching point u. That, u 1, u 2, ..., when a plurality of arrival points represented by u n, etc., v knowledge structure starting from the root, each goal u 1, u 2, ..., u n In the associating process, the number of arrival points u is divided. In other words, the vertex u that can divide the knowledge structure is the user.

動作のクラスvactは、知識構造の動作関係をインスタンスとする。動作関係は必ずユーザuを開始点とする。
動作関係は頂点としての到達点aを含む。この到達点aは対話エージェント等の動作を意味する。換言すれば、ユーザuを開始点とする到達点aは動作である。
対話エージェントの動作はプログラミング言語により実装されうる。動作はプログラミング言語でコーディングされた関数等のポインタと関連付けられうる。動作は実際のデータに対してはクラスである。そのデータインスタンスがアクセスされたときに対話エージェントとしての動作を実行する。実行する動作の種類としては、発話、システム資源の操作、知識構造の変更等がある。
The action class v act takes an action relation of the knowledge structure as an instance. The operational relationship always starts with user u.
The motion relationship includes a reaching point a as a vertex. This reaching point a means the operation of the dialogue agent or the like. In other words, the arrival point a starting from the user u is an action.
The operation of the dialogue agent can be implemented by a programming language. An action may be associated with a pointer, such as a function coded in a programming language. The action is a class for the actual data. When the data instance is accessed, it acts as an interaction agent. The types of operations to be performed include utterances, system resource operations, knowledge structure changes, and the like.

インスタンス化関係のクラスvinsは、知識構造のインスタンス関係をインスタンスとする。インスタンス関係は必ず頂点cを開始点とする。
インスタンス関係の到達点は任意の要素iであり、頂点cが意味するクラスに所属することを意味する。要素iを頂点cのインスタンスと呼び、頂点cを要素iのクラスと呼ぶ。インスタンスは複数のクラスに所属してもよい。ほとんど全ての要素は少なくともひとつのクラスのインスタンスである。
The instantiation relation class v ins takes the instance relation of the knowledge structure as an instance. The instance relation always starts from the vertex c.
The arrival point of the instance relationship is an arbitrary element i, which means that it belongs to the class that the vertex c means. Element i is called an instance of vertex c, and vertex c is called a class of element i. An instance may belong to multiple classes. Almost every element is an instance of at least one class.

[自動応答出力作成装置の構成]
図6は、本発明の一実施形態に係る、自動応答出力作成装置のハードウェア構成を示す図である。以下、自動応答出力作成装置をサーバとして説明するが、パーソナルコンピュータを自動応答出力作成装置として用いる場合においても基本的には同様である。
[Configuration of automatic response output creation device]
FIG. 6 is a diagram showing a hardware configuration of an automatic response output creation device according to an embodiment of the present invention. Hereinafter, the automatic response output creation apparatus will be described as a server. However, the same applies to the case where a personal computer is used as the automatic response output creation apparatus.

自動応答出力作成装置10は、制御部108を構成するCPU110(マルチプロセッサ構成ではCPU120等複数のCPUが追加されてもよい)、バスライン107、通信I/F140、メインメモリ150、BIOS(Basic Input Output System)160、USBポート190、I/Oコントローラ170、並びにキーボード及びマウス180等の入力手段や表示装置122を備える。I/Oコントローラ170には、テープドライブ172、ハードディスク174、光ディスクドライブ176、半導体メモリ178、等の記憶部109を接続しうる。BIOS160は、サーバの起動時にCPU110が実行するブートプログラムや、サーバのハードウェアに依存するプログラム等を格納する。ハードディスク174は、サーバとして機能するための各種プログラム及び本発明の機能を実行するプログラムを記憶する。光ディスクドライブ176としては、例えば、DVD−ROMドライブ、CD−ROMドライブ、DVD−RAMドライブ、CD−RAMドライブ等を使用しうる。この場合は各ドライブに対応した光ディスク177を使用する。光ディスク177から光ディスクドライブ176によりプログラム又はデータを読み取り、I/Oコントローラ170を介してメインメモリ150又はハードディスク174に提供しうる。また、同様にテープドライブ172に対応したテープメディア171を主としてバックアップのために使用しうる。   The automatic response output generation apparatus 10 includes a CPU 110 (a plurality of CPUs such as the CPU 120 may be added in a multiprocessor configuration), a bus line 107, a communication I / F 140, a main memory 150, a BIOS (Basic Input). An output system 160, a USB port 190, an I / O controller 170, an input unit such as a keyboard and mouse 180, and a display device 122. The I / O controller 170 can be connected to a storage unit 109 such as a tape drive 172, a hard disk 174, an optical disk drive 176, and a semiconductor memory 178. The BIOS 160 stores a boot program executed by the CPU 110 when the server is started, a program depending on the server hardware, and the like. The hard disk 174 stores various programs for functioning as a server and programs for executing the functions of the present invention. As the optical disk drive 176, for example, a DVD-ROM drive, a CD-ROM drive, a DVD-RAM drive, a CD-RAM drive, or the like can be used. In this case, the optical disk 177 corresponding to each drive is used. A program or data can be read from the optical disk 177 by the optical disk drive 176 and provided to the main memory 150 or the hard disk 174 via the I / O controller 170. Similarly, the tape medium 171 corresponding to the tape drive 172 can be used mainly for backup.

サーバに提供されるプログラムは、ハードディスク174、光ディスク177、又はメモリカード等の記録媒体に格納されて提供される。このプログラムは、I/Oコントローラ170を介して、記録媒体から読み出され、又は通信I/F140を介してダウンロードされることによって、サーバにインストールされ実行されてもよい。   The program provided to the server is provided by being stored in a recording medium such as the hard disk 174, the optical disk 177, or a memory card. This program may be installed in the server and executed by being read from the recording medium via the I / O controller 170 or downloaded via the communication I / F 140.

上述のプログラムは、内部又は外部の記憶媒体に格納されてもよい。ここで、記憶媒体としては、磁気記録媒体、光磁気記録媒体、光学記録媒体、電子媒体を含むが、これらに限定されない。前記磁気記録媒体には、磁気テープ、フロッピー(登録商標)ディスク、ハードディスク174、磁気ランダムアクセスメモリ(MRAM)等を含み、光磁気記録媒体には光磁気ディスク(MO及びMD)等を含み、光学記録媒体には追記型コンパクトディスク(CD)、追記型デジタル多目的ディスク(DVD)、追記型ブルーレイディスク、追記型ホログラフィック・ディスク等を含み、電子媒体には電気書き込み可能読み出し専用メモリ、ランダムアクセスメモリ、フラッシュメモリ、シリコン・ストレージ・ディスク等を含む。また、専用通信回線やインターネット等の通信回線に接続されたサーバシステムに設けたハードディスク174又は光ディスクライブラリ等の記憶装置を記録媒体として使用し、通信回線を介してプログラムをサーバに提供してもよい。   The above-described program may be stored in an internal or external storage medium. Here, examples of the storage medium include, but are not limited to, a magnetic recording medium, a magneto-optical recording medium, an optical recording medium, and an electronic medium. The magnetic recording medium includes a magnetic tape, a floppy (registered trademark) disk, a hard disk 174, a magnetic random access memory (MRAM), etc., and the magneto-optical recording medium includes a magneto-optical disk (MO and MD), etc. Recording media include write-once compact discs (CDs), write-once digital multipurpose discs (DVDs), write-once Blu-ray discs, write-once holographic discs, etc., and electronic media are electrically writable read-only memory, random access memory , Flash memory, silicon storage disk, etc. In addition, a storage device such as a hard disk 174 or an optical disk library provided in a server system connected to a communication line such as a dedicated communication line or the Internet may be used as a recording medium, and the program may be provided to the server via the communication line. .

ここで、表示装置122は、サーバ管理者によるデータの入力を受け付ける画面を表示したり、演算処理結果の画面を表示したりするものであり、ブラウン管表示装置(CRT)、液晶表示装置(LCD)等のディスプレイ装置を含む。入力手段は、ユーザによる入力の受け付けを行うものであり、キーボード及びマウス180等により構成してもよい。通信I/F140は、サーバを専用ネットワーク又は公共ネットワークを介して端末と接続しうるようにするためのネットワーク・アダプタである。通信I/F140は、モデム、ケーブル・モデム及びイーサネット(登録商標)・アダプタを含んでよい。   Here, the display device 122 displays a screen for accepting data input by the server administrator, or displays a screen of calculation processing results. The display device 122 is a cathode ray tube display device (CRT) or a liquid crystal display device (LCD). Display devices. The input means accepts input by the user, and may be configured with a keyboard and mouse 180 or the like. The communication I / F 140 is a network adapter for enabling the server to be connected to a terminal via a dedicated network or a public network. The communication I / F 140 may include a modem, a cable modem, and an Ethernet (registered trademark) adapter.

本発明の一実施形態に係る自動応答出力作成装置10のための知識構造を記憶する手段は、上記のメインメモリ150でもよく、ハードディスク174又はメモリディスク等の記憶媒体をメインメモリの一部として用いる仮想記憶でよく、メモリとして利用しうるものであれば詳細は問わない。あるいは知識構造を内蔵記憶媒体又はネットワークアクセス可能な記憶媒体等に記憶してもよい。知識構造を記憶するためのハードウェア資源は、コンピュータ処理可能な文字情報を記憶しうる手段であれば何でもよい。   The means for storing the knowledge structure for the automatic response output creating apparatus 10 according to the embodiment of the present invention may be the main memory 150 described above, and a storage medium such as the hard disk 174 or a memory disk is used as a part of the main memory. A virtual memory may be used, and any details can be used as long as it can be used as a memory. Alternatively, the knowledge structure may be stored in a built-in storage medium or a network-accessible storage medium. The hardware resource for storing the knowledge structure may be any means capable of storing computer-processable character information.

以上の例は、自動応答出力作成装置10のハードウェア構成について主に説明したが、コンピュータに、プログラムをインストールして、そのコンピュータを自動応答出力作成装置10として動作させることにより上記で説明した機能を実現しうる。従って、本発明において一実施形態として説明した自動応答出力作成装置10により実現される機能は、上述の方法を前記コンピュータにより実行することにより、あるいは、上述のプログラムを前記コンピュータに導入して実行することによっても実現可能である。   In the above example, the hardware configuration of the automatic response output creating apparatus 10 has been mainly described. However, the functions described above are performed by installing a program in a computer and operating the computer as the automatic response output creating apparatus 10. Can be realized. Therefore, the functions realized by the automatic response output creation apparatus 10 described as one embodiment in the present invention are executed by executing the above-described method by the computer or by introducing the above-described program into the computer. Can also be realized.

[知識構造の動作、及び談話構造]
図7は、本発明の一実施形態に係る、知識構造の動作の例を示す図である。
全ての知識構造の動作は、前述の全知識要素の開始点Vroot(360)を始点とする拡張意味ネットワークを用いて記述されうる。
また、本発明に係る知識構造の要素である動作は、ユーザを開始点とする。すなわち、図7においては、ユーザu(361)はVroot(360)を始点とする辺との関連付けを有し、動作a(362)、a(363)…a(364)に対しては始点でありうる。さらに、ユーザu(361)と関連付けられうる動作a(362)、a(363)…a(364)は、それぞれの動作に関連付けられる関数ポインタf(365)、f(366)…f(367)を適宜含む。
具体的には、ユーザが発話の開始等の入力を始めることに応答して、本発明に係る知識構造の構成方法の実施手段は動作を開始しうる。例えば、本発明に係る知識構造の構成方法の実施手段は、ユーザが送信した「こんにちは」という文字情報を受信することを契機として、当該状況との関連付けを有する動作の中から、所定の規則に基づいて動作を選択し、選択された動作に含まれる会話の文脈である「お元気ですか」等の応答を生成してユーザに送信しうる。これにより、ユーザからのメッセージに対して応答を生成する動作を、コンピュータを用いて実施するための手順として作成することができる。
ここで、所定の規則には、ランダムな選択規則、最初又は最後に抽出された要素を選択する規則、最も以前又は最近に抽出された要素を選択する規則、談話構造と最も関連性の高い要素を選択する規則を含む。これにより、内容が的確な自動応答を作成しうると共に、非論理的応答を含む自動応答を作成することが可能になり、ユーザの立場から見た自動応答の単調さを避けうる。
[Operation of knowledge structure and discourse structure]
FIG. 7 is a diagram illustrating an example of operation of a knowledge structure according to an embodiment of the present invention.
The operation of all knowledge structures can be described using an extended semantic network starting from the start point Vroot (360) of all knowledge elements described above.
The operation that is an element of the knowledge structure according to the present invention starts from the user. That is, in FIG. 7, the user u 1 (361) has an association with a side starting from V root (360), and the actions a 1 (362), a 2 (363)... An (364) On the other hand, it can be the starting point. Further, operations a 1 (362), a 2 (363)... A n (364) that can be associated with user u 1 (361) are function pointers f 1 (365), f 2 (366) associated with the respective operations. ) ... f n (367) is included as appropriate.
Specifically, in response to the user starting input such as the start of utterance, the implementation means of the knowledge structure construction method according to the present invention can start operation. For example, exemplary means on how to configure the knowledge structure of the present invention, in response to receiving the text information that the user sends "Hello" from the operation which has an association with the situation, with a predetermined rule Based on the selected action, a response such as “How are you?”, Which is the context of the conversation included in the selected action, may be generated and sent to the user. Thereby, the operation | movement which produces | generates a response with respect to the message from a user can be produced as a procedure for implementing using a computer.
Here, the predetermined rule includes a random selection rule, a rule for selecting an element extracted first or last, a rule for selecting an element extracted earlier or most recently, an element most relevant to the discourse structure Contains rules for selecting. As a result, it is possible to create an automatic response whose contents are accurate, and it is possible to create an automatic response including an illogical response, and avoid the monotony of the automatic response from the viewpoint of the user.

前述の知識構造の動作において、動作a(362)、a(363)…a(364)に、会話の場、会話履歴、会話文脈を要素に含む集合である談話構造を含めてもよい。
談話構造は、特に、コンピュータ処理可能な文字コードを用いて表現される会話文脈を要素に有する集合を含む。
ユーザu(361)は、動作a…aのそれぞれにおいて談話構造として表しうる会話の文脈を発話しうる。
会話の場は、具体的にはパーソナルコンピュータ、携帯電話等のネットワーク端末を介して接続した複数のユーザが相互に文字情報又は音声情報等の交換を実質的にリアルタイムに実施しうる、チャットルームサービス、ネットワーク会議システム等のサービスを含む。会話の場は、ひとつの要素として知識構造に記憶されうる。
それぞれの動作a…aにおいて、会話の発生を要素とする全順序つき集合を知識構造に記憶してもよい。全順序付き集合は、例えば、会話の発生ごとに会話の時間的順序を数字の大小と関連付けて規則的に記憶する手段を要素に有する集合を含む。また、会話の発生及び前記会話の発生の順序隣接関係を知識構造の要素として記憶してもよい。
これにより、本発明に係る知識構造の構成方法は、会話の発生を検出すると、時間的順序を規則的に記憶する手段を用いてそれぞれの会話の発生を識別して本発明に係る知識構造に追加し、文字コードを用いて表現される会話文脈を知識構造に取り込むことが可能になる。
In the operation of the above knowledge structure, even if the operation a 1 (362), a 2 (363)... A n (364) includes a discourse structure that is a set including a conversation place, a conversation history, and a conversation context as elements. Good.
The discourse structure includes, in particular, a set having, as elements, a conversation context expressed using a computer-processable character code.
User u 1 (361) may utters context of the conversation, which can represent a discourse structure at each operation a 1 ... a n.
Specifically, a chat room service where a plurality of users connected via a network terminal such as a personal computer or a mobile phone can exchange character information or voice information with each other in real time. Including services such as network conferencing systems. The place of conversation can be stored in the knowledge structure as an element.
In each operation a 1 ... An , a fully ordered set whose conversation is an element may be stored in the knowledge structure. The total ordered set includes, for example, a set having elements as means for regularly storing the temporal order of conversations in association with the magnitude of each number of conversations. Further, the occurrence of conversation and the sequential adjacency relationship of the occurrence of conversation may be stored as elements of the knowledge structure.
Thus, when the occurrence of a conversation is detected, the knowledge structure configuration method according to the present invention identifies the occurrence of each conversation using means for regularly storing the temporal order, and creates the knowledge structure according to the present invention. In addition, the conversation context expressed using the character code can be taken into the knowledge structure.

[対話応答の例]
本発明の一実施形態に係る自動応答の作成方法として、キーワード応答を例示する。キーワード応答は、ユーザの発話中に予め定義したキーワードが出現した場合に、そのキーワードに関連付けた応答を実施する機能である。この機能を実現するために、キーワードと応答を関連付けたルールを、以下に示すように知識構造に格納する。
まず、ルールを格納する準備として、ユーザ定義キーワードへの応答を表す要素ukrを格納する。要素ukrは知識構造内のキーワード応答ルールにおける開始点である。本発明に係る知識構造においては、要素ukrを含むキーワード応答ルールの開始点は次式で表される。

Figure 2009169840
ここに、eur1:ユーザ関係を表す辺
:eur1がユーザ関係であることを表す辺
:iがインスタンス関係であることを表す辺
である。ユーザ関係を示す辺eur1はルートvrootから頂点ukrを結ぶ。辺eur1はユーザクラスvusrのインスタンスである。辺iは辺eur1がユーザ関係であることを示し、辺iは辺iがインスタンス関係であることを示す。辺iもインスタンス関係を意味するが、これを説明する辺は無限ネストを避けるために省略される。
次いで、動作キーワード、メッセージ、関係をそれぞれ表す要素akw、amsg、arelを格納する。要素akwは応答ルールのキーワード動作のクラスを、amsgは応答メッセージ動作のクラスを、arelはキーワードから応答メッセージ間への対応関係動作のクラスを、それぞれ意味する。本発明に係る知識構造においては、これらの要素は次式で表される。
Figure 2009169840
ここに、ear1、ear2、ear3は動作関係を示す辺である。
動作関係を示す辺ear1、ear2、ear3はユーザukrからそれぞれ頂点akw、amsg、arelを結ぶ。辺ear1、ear2、ear3は動作クラスvactのインスタンスである。辺i、i、iはそれぞれ辺ear1、ear2、ear3が動作関係であることを示し、辺i、i、iはそれぞれ辺i、i、iがインスタンス関係であることを示す。辺i、i、iもインスタンス関係を意味するが、これを説明する辺は無限ネストを避けるために省略される。
これらのルールを格納する準備の後に、ルールデータを格納する。
一例として、「カレー」というキーワードに対して、「おいしいですね!」という応答を行うルールを示す。キーワードインスタンスを意味する要素をk、応答メッセージインスタンスを意味する要素をmとする場合に、「カレー」というキーワードで「おいしいですね!」という応答を行うルールは、本発明に係る知識構造において、次式で表される。
Figure 2009169840
データ要素k、m、rはそれぞれ動作akw、amsg、arelのインスタンスである。辺i10、i12、i14はそれぞれ辺i、i11、i13がインスタンス関係であることを示す。辺i10、i12、i14もインスタンス関係を意味するが、これを説明する辺は無限ネストを避けるために省略される。 [Example of interactive response]
A keyword response is illustrated as an automatic response creation method according to an embodiment of the present invention. The keyword response is a function for executing a response associated with a keyword when a predefined keyword appears during the user's utterance. In order to realize this function, a rule that associates a keyword with a response is stored in a knowledge structure as shown below.
First, as a preparation for storing a rule, an element u kr representing a response to a user-defined keyword is stored. The element u kr is the starting point in the keyword response rule in the knowledge structure. In the knowledge structure according to the present invention, the starting point of the keyword response rule including the element u kr is expressed by the following equation.
Figure 2009169840
Where e ur1 : side representing user relationship
i 1 : edge indicating that eur 1 is a user relationship
i 2 : An edge indicating that i 1 is an instance relationship. The edge e ur1 indicating the user relationship connects the vertex u kr from the route v root . The edge e ur1 is an instance of the user class v usr . The side i 1 indicates that the side e ur1 has a user relationship, and the side i 2 indicates that the side i 1 has an instance relationship. Side i 2 also means an instance relationship, but the side describing this is omitted to avoid infinite nesting.
Next, elements a kw , a msg , and a rel representing the operation keyword, message, and relationship are stored. The element a kw means the class of the response rule keyword action, a msg means the response message action class, and a rel means the correspondence action class from the keyword to the response message. In the knowledge structure according to the present invention, these elements are represented by the following equations.
Figure 2009169840
Here, e ar1 , e ar2 , and e ar3 are sides indicating operational relationships.
The sides e ar1 , e ar2 , and e ar3 indicating the operation relationship connect vertices a kw , a msg , and a rel from the user u kr , respectively. The sides e ar1 , e ar2 , and e ar3 are instances of the action class v act . Sides i 3 , i 5 , and i 7 indicate that the sides e ar1 , e ar2 , and e ar3 are in an operational relationship, respectively, and sides i 4 , i 6 , and i 8 are sides i 3 , i 5 , and i 7 , respectively. Indicates an instance relationship. The sides i 4 , i 6 , and i 8 also mean instance relationships, but the sides that explain this are omitted to avoid infinite nesting.
After preparing to store these rules, the rule data is stored.
As an example, a rule for making a response “delicious!” To the keyword “curry” is shown. When the element meaning a keyword instance is k 1 and the element meaning a response message instance is m 1 , the rule for making a response “delicious!” With the keyword “curry” is the knowledge structure according to the present invention. Is expressed by the following equation.
Figure 2009169840
Data elements k 1 , m 1 , r 1 are instances of operations a kw , a msg , a rel , respectively. Sides i 10 , i 12 , and i 14 indicate that the sides i 9 , i 11 , and i 13 are in an instance relationship, respectively. The sides i 10 , i 12 , and i 14 also mean instance relationships, but the sides that explain this are omitted to avoid infinite nesting.

このように知識構造に格納されたデータを用いることにより、本発明に係る自動応答の生成方法の実施手段は、例えば、次の(R1)〜(R9)のような応答を生成して送信する動作を行いうる。
(R1)ユーザの発話「今日は暑いけどカレーは欠かせない。」を受信する。
(R2)ルートvrootからユーザ関係をたどり、ユーザukrを特定する。
(R3)動作関係をたどり、キーワード動作クラスakwを特定する。
(R4)クラスakwのインスタンスデータ要素を順に調べ、その要素に関連付けられる文字列がユーザ発話に出現したかどうかを調べる。
(R5)要素kに関連付けられる文字列「カレー」が出現したことを検出する。
(R6)要素kから関係動作クラスarelのインスタンス辺rをたどって要素mに到達し、実行を試みる。
(R7)要素mのクラスがamsgであることを検出する。
(R8)動作クラスamsgはそのインスタンスデータ要素に結び付けられた文字列を応答メッセージとして出力する関数のポインタと関連付いている。この関数を起動する。
(R9)要素mに結び付けられた文字列「おいしいですね!」を応答として送信する。
動作クラスの関数ポインタは未定義であってもよく、具体的な動作の対象となりうる動作クラスのインスタンスデータを示さずに、他の動作から参照される属性情報等を提供してもよい。要素kには複数のarelインスタンスが接続していてもよい。その接続先に具体的な動作の対象となりうる要素が複数ある場合は、そのうちのひとつをランダムに選
んで実行してもよく、複数の要素から具体的な動作を選択する規則は適宜設計しうる。
By using the data stored in the knowledge structure in this way, the implementation means of the automatic response generation method according to the present invention generates and transmits responses such as the following (R1) to (R9), for example. Action can be taken.
(R1) The user's speech “Today is hot but curry is indispensable” is received.
(R2) The user relationship is traced from the route v root and the user u kr is specified.
(R3) Follow the operation relationship and specify the keyword operation class a kw .
(R4) The instance data elements of class a kw are checked in order, and it is checked whether or not the character string associated with the element appears in the user utterance.
(R5) It is detected that the character string “curry” associated with the element k 1 has appeared.
(R6) from the element k 1 following the instance sides r 1 relationship operation class a rel reached elements m 1, it attempts to execute.
(R7) It is detected that the class of the element m 1 is a msg .
(R8) The action class a msg is associated with a function pointer that outputs a character string associated with the instance data element as a response message. Invoke this function.
(R9) The character string “is delicious!” Linked to the element m 1 is transmitted as a response.
The function class function pointer may be undefined, and may not provide instance data of an action class that can be a specific action target, and may provide attribute information or the like that is referred to by another action. A plurality of a rel instance may be connected to the element k 1. If there are multiple elements that can be the target of a specific action at the connection destination, one of them may be selected at random, and the rules for selecting a specific action from the multiple elements can be designed as appropriate .

本発明に係る知識構造の構成方法を用いて対話構造を構成することにより、要素の関連付けをたどる手順を用いてキーワード応答等の自動対話を生成しうる。すなわち、本発明においては、知識構造に含まれる全ての要素を逐一調べる必要はなく、迅速な応答の生成を実現しうる。   By constructing the dialogue structure using the knowledge structure construction method according to the present invention, an automatic dialogue such as a keyword response can be generated using a procedure for tracing the association of elements. That is, in the present invention, it is not necessary to examine every element included in the knowledge structure one by one, and a quick response generation can be realized.

[対話スクリプト追跡及びたどり構造の例]
図8を用いて、本発明の一実施形態に係る対話スクリプト追跡及びたどり構造をグラフ 構造として表す例を示す。
ここでたどり構造とは、本発明に係る拡張意味ネットワークの知識構造を用いて図示しうる、要素間の関係を含む集合である。具体的には、たどり構造は、関係クラス、方向、到達先を要素に含む集合でありうる。
図8は、本発明の一実施形態に係る、知識構造の構成方法におけるスクリプト追跡のためのデータを示す図である。
知識構造内の対話スクリプトにおける開始点である要素udst(390)、及び、対話チャネルにおいて知識構造内のスクリプトポインタ等にアクセスする際の開始点である要素uca(392)は、いずれもユーザのクラスvusr(381)により全知識要素の開始点vroot(380)と関連付けられる。
ここで動作のクラスvact(382)に属する動作により、ユーザのクラスvusr(381)は選択(asel)(410)、選択メッセージ(asm)(412)、選択ルール(asr)(414)と関連付けられる。同様に、対話チャネルのアクセスはコンテキスト(a)(420)、最終選択(als)(422)、最終応答(alr)(424)と関連付けられ、さらに、インスタンスのクラス(384)により、対話チャネルのアクセスは対話動作と関連付けられる要素(430、432、434)と関連付けられる。
このように、本発明の一実施形態に係る対話スクリプトは、本発明に係るグラフ構造として表すことができる。すなわち、本発明の一実施形態に係る対話スクリプトは、本発明に係るグラフ構造を用いて追跡しうる。
[Example of dialogue script tracking and tracing structure]
FIG. 8 is used to show an example in which the interactive script tracking and tracing structure according to an embodiment of the present invention is represented as a graph structure.
Here, the tracing structure is a set including relationships between elements that can be illustrated using the knowledge structure of the extended semantic network according to the present invention. Specifically, the tracing structure can be a set including a relation class, a direction, and a destination as elements.
FIG. 8 is a diagram showing data for script tracking in the knowledge structure construction method according to an embodiment of the present invention.
Both the element u dst (390), which is the starting point in the dialogue script in the knowledge structure, and the element u ca (392), which is the starting point when accessing the script pointer in the knowledge structure in the dialogue channel, are the user. Is associated with the starting point vroot (380) of all knowledge elements by class v usr (381).
Here, the user class v usr (381) is selected (a sel ) (410), the selection message (a sm ) (412), and the selection rule (a sr ) (a) by the operation belonging to the operation class v act (382). 414). Similarly, interaction channel access is associated with context (a c ) (420), final selection (a ls ) (422), final response (a lr ) (424), and further by the instance class (384): Interaction channel access is associated with the elements (430, 432, 434) associated with the interaction.
As described above, the dialogue script according to the embodiment of the present invention can be represented as a graph structure according to the present invention. That is, the dialogue script according to an embodiment of the present invention can be tracked using the graph structure according to the present invention.

対話スクリプト追跡機能は、予め定義したスクリプトに従って対話を行う機能である。スクリプトは分岐があってもよい。この機能はポインタを保持し、これによりスクリプトのどの場所まで対話が進んだかを記憶する。
まず、スクリプト追跡を表すユーザの要素であるudstと、スクリプトを動作させるチャネルの番号を表すucaを格納する。要素udstは知識構造内の対話スクリプトにおける開始点である。要素ucaは、対話チャネルにおいて、知識構造内のスクリプトポインタ等にアクセスする際の開始点である。本発明に係る知識構造においては、要素udstを含むスクリプトの開始点は次式で表される。

Figure 2009169840
各要素の詳細説明はキーワード応答と同様であり省略する。
数式16は、図8を用いて説明したグラフ構造の、vroot(380)、vusr(381)、udst(390)、及びuca(392)を含む。さらに、数式16はインスタンスのクラスvins(384)が式中の関連付けに含まれうることも表す。
次いで、スクリプトの動作の集合に次の要素が含まれると仮定する。すなわち要素として、選択(asel)、選択メッセージ(asm)、選択ルール(asr)のそれぞれを、ユーザudstに関連付けて格納する。
さらに、スクリプトの動作の集合に次の要素が含まれると仮定する。すなわち要素として、コンテキスト(a)、最終選択(als)、最終応答(alr)のそれぞれの初期値を、ユーザucaに関連付けて格納する。
要素aselはスクリプト内選択肢動作のクラスを、asmは選択肢メッセージ動作のクラスを、asrはスクリプト構造の開始点を、aは文脈ポインタ動作のクラスを、alsは最終選択肢ポインタ動作のクラスを、alrは最終応答ポインタ動作のクラスを、それぞれ表す。
これらのスクリプトの動作に含まれる要素は、次式で表される。
Figure 2009169840
次いで、ポインタのインスタンスを表す要素を格納する。例えば、文脈ポインタ動作のインスタンス(pi)、最終選択肢ポインタ動作のインスタンス(pils)、及び最終応答ポインタ動作のインスタンス(pilr)を用いる。これらのインスタンスと他の要素との関係は次式で表される。
Figure 2009169840
数式17及び数式18は、図8にグラフ構造として示した要素と要素の関連付けを含む。これにより、スクリプトに含まれるユーザのクラス、動作のクラス、インスタンスのクラス、ポインタのインスタンスを表す要素を、本発明に係る知識構造の構成方法に格納し、スクリプトの動作を追跡しうる。 The dialogue script tracking function is a function for performing dialogue according to a predefined script. Scripts may be branched. This function maintains a pointer, which remembers where in the script the dialog has progressed.
First, u dst that is a user element representing script tracking and u ca that represents a channel number on which the script is operated are stored. The element u dst is the starting point in the dialogue script in the knowledge structure. The element u ca is a starting point when accessing a script pointer or the like in the knowledge structure in the dialogue channel. In the knowledge structure according to the present invention, the start point of the script including the element u dst is expressed by the following equation.
Figure 2009169840
Detailed description of each element is the same as the keyword response, and is omitted.
Equation 16 includes v root (380), v usr (381), u dst (390), and u ca (392) of the graph structure described with reference to FIG. Furthermore, Equation 16 also indicates that the instance class v ins (384) can be included in the association in the equation.
Then, assume that the set of script actions includes the following elements: That is, each of selection (a sel ), selection message (a sm ), and selection rule (a sr ) is stored as an element in association with user u dst .
Assume further that the set of script actions includes the following elements: That is, the initial values of the context (a c ), final selection (a ls ), and final response (a lr ) are stored in association with the user u ca as elements.
The element a sel is the class of the choice action in the script, a sm is the class of the choice message action, a sr is the starting point of the script structure, a c is the class of the context pointer action, and a ls is the final choice pointer action A lr represents the class of the final response pointer operation.
Elements included in the operations of these scripts are represented by the following expressions.
Figure 2009169840
Then, an element representing an instance of the pointer is stored. For example, an instance of context pointer action (pi c ), an instance of final choice pointer action (pi ls ), and an instance of final response pointer action (pi lr ) are used. The relationship between these instances and other elements is expressed by the following equation.
Figure 2009169840
Equations 17 and 18 include the association of elements shown in FIG. 8 as a graph structure. Thus, the elements representing the user class, the action class, the instance class, and the pointer instance included in the script can be stored in the knowledge structure construction method according to the present invention, and the action of the script can be traced.

数式17は本発明に係る知識構造の要素を表し、また、関係クラス、方向、到達先を要素に含む集合であるたどり構造を含む。例えば、数式17において、辺要素i20は終点に辺要素i19を含み、辺要素i19は終点に要素ear4を含むことから、これらの要素間に、関係クラスが所属であり、方向が逆であり、i20からの到達先はi19である等のたどり構造を構成しうる。すなわち、たどり構造は、すでに記憶された知識構造の要素に基づいて、新たな要素を生成し、集合であるたどり構造に含めうる。
また、たどり構造は要素に関係クラスを含み、クラスを用いてたどり構造を生成することにより、例えば同じユーザのクラスを定義しうる複数の関係を新たに生成しうる。これにより、過去に相互に関連付けのなかった要素に対して、クラスを通じてユーザが共有する手段を提供しうる。
たどり構造を生成し、順方向又は逆方向の関連付け、及び始点又は終点の組合せをたどり構造に追加することにより、本発明に係る知識構造はすでに記憶された知識構造の要素から新たな要素を生成しうる。
これにより、本発明に係る知識構造は、拡張意味ネットワークにより知識構造を柔軟に構成しうることに加えて、再帰的にたどり構造を生成することで、知識構造の構成方法に拡張性、自己改変性、共有性を備えうる。
また、たどり構造を利用することによって、グラフ更新操作に制約を加えることなく、グラフの到達先を効率的に取得することができる。たどり構造を利用しない場合はグラフの規模に比例した計算時間が必要であるが、たどり構造を利用する場合は一定の計算時間で済む。
Expression 17 represents elements of the knowledge structure according to the present invention, and includes a tracing structure that is a set including a relation class, a direction, and a destination. For example, in Equation 17, since the side element i 20 includes the side element i 19 at the end point and the side element i 19 includes the element ear4 at the end point, the relation class belongs to these elements, and the direction is is reversed, the destinations from i 20 may constitute the follow structure etc. is i 19. That is, the tracing structure can generate a new element based on the already stored knowledge structure element and include it in the tracing structure as a set.
Further, the tracing structure includes a relation class in the element, and by generating the tracing structure using the class, for example, a plurality of relations that can define a class of the same user can be newly generated. Accordingly, it is possible to provide a means for the user to share through the class for elements that have not been associated with each other in the past.
The knowledge structure according to the present invention generates a new element from the elements of the already stored knowledge structure by generating a trace structure and adding a forward or reverse association and a combination of start point or end point to the trace structure. Yes.
As a result, the knowledge structure according to the present invention can be flexibly configured by an extended semantic network, and in addition to recursively generating a trace structure, the knowledge structure can be expanded and self-modified. Can be shared.
Further, by using the trace structure, it is possible to efficiently acquire the destination of the graph without restricting the graph update operation. When the trace structure is not used, calculation time proportional to the scale of the graph is required. However, when the trace structure is used, a certain calculation time is sufficient.

<実施例1>
一例として、「カレー」というキーワードに対して、カレーのタイプ、レストランのエリアを質問し、レストラン名を提案するスクリプトを示す。
図9に、本発明に係る対話スクリプト追跡における知識構造の要素間の関係の例を示し、図9に含まれる各要素について、まず表を用いて説明する。
表1に、対話スクリプト追跡例データの文字列対応の例を示す。

Figure 2009169840
まず、本発明に係る知識構造に、選択キーワードインスタンスを意味する要素sr(k=1、2、…、n、以下同様)、選択肢インスタンスを意味する要素s、応答メッセージインスタンスを意味する要素m、スクリプト順序関係インスタンスを意味する要素r、選択肢メッセージインスタンスを意味する要素sm、を格納する。
表1に示すように、要素srは文字列データと結び付いているとする。ここで、要素mの「×××」には具体的なレストランの名称等が入る。簡便のため、選択ルールasrのインスタンスsr、…、sr、及び、選択aselのインスタンスs、s、s、メッセージamsgのインスタンスm、…、mは省略する。
次に辺要素の具体例を、インスタンスに関する辺を省略して、次式で示す。
Figure 2009169840
Figure 2009169840
Figure 2009169840
図9に、数式19、数式20、数式21を用いて示した、レストラン名を提案するスクリプトにおける各辺要素の関係をグラフ構造として示す。
選択ルールasl(440)は選択ルールのインスタンスsr(442)と関連付けられ、選択sにより次の選択ルールのインスタンスsr(446)及びメッセージm(460)と関連付けられる。これ以降についても同様であり、本発明に係る知識構造の構成方法に、スクリプトに含まれる選択ルール、選択、メッセージを格納することができる。 <Example 1>
As an example, for a keyword “curry”, a script for asking a curry type and a restaurant area and proposing a restaurant name is shown.
FIG. 9 shows an example of the relationship between the elements of the knowledge structure in the interactive script tracking according to the present invention, and each element included in FIG. 9 will be described first using a table.
Table 1 shows an example of correspondence with the character string of the interactive script tracking example data.
Figure 2009169840
First, in the knowledge structure according to the present invention, an element sr k (k = 1, 2,..., N, the same shall apply hereinafter) meaning a selected keyword instance, an element s k meaning an option instance, and an element meaning a response message instance m k , an element r k indicating a script order relation instance, and an element sm k indicating a choice message instance are stored.
As shown in Table 1, and the elements sr k is associated with the character string data. Here, specific restaurants such as the name is entered in the "×××" of the element m 4. For convenience, the instance sr 1 selection rule a sr, ..., sr 8, and select a instance s 1 of sel, s 2, s 3, instance m 1 message a msg, ..., m 9 will be omitted.
Next, a specific example of a side element is represented by the following formula, omitting sides related to instances.
Figure 2009169840
Figure 2009169840
Figure 2009169840
FIG. 9 shows, as a graph structure, the relationship between each side element in the script for proposing a restaurant name, which is shown using Equations 19, 20, and 21.
Selection rule a sl (440) is associated with selection rule instance sr 1 (442), and selection s 1 is associated with the next selection rule instance sr 2 (446) and message m 2 (460). The same applies to the subsequent steps, and the selection rule, selection, and message included in the script can be stored in the knowledge structure configuration method according to the present invention.

<実施例2>
前述のように知識構造に格納されたデータを用いて、本発明に係る自動応答の作成方法の実施手段が行いうる動作の例を、次の(K1)〜(K11)に示す。以下、行頭の「U」はユーザの行動を、「A」は本発明に係る自動応答の作成方法の実施手段の動作を、それぞれ示す。
(K1)(U)「今日は暑いけどカレーが食べたい。」と発話する。
(K2)(A)始点vrootからユーザ関係をたどり、ユーザudstを発見し、さらに動作関係をたどり、スクリプト構造の開始点asrを発見する。また、始点vrootからユーザ関係をたどり、ユーザucaを発見し、さらに動作関係をたどり、クラスaを経由して文脈ポインタpiを発見する。要素piと同様に、クラスalsを経由して最終選択肢ポインタpilsを、クラスalrを経由して最終応答ポインタpilrを発見する。
(K3)(A)要素piの関係先がnullであることを確認する。要素asrからarel関係でたどった先の要素に順にアクセスし、その要素に結び付けられた文字列がユーザ発話に出現したかどうかを調べ、要素srに結び付けられた文字列「カレー」が出現したことを検知する。
(K4)(A)要素srからarel関係でたどった先の要素sの実行を試みる。要素sのクラスaselは選択肢動作を実行する関数のポインタと関連付いている。要素sからasm関係でたどった先の要素mに結び付けられた文字列「カレーのタイプは?」を応答し、要素sからarel関係でたどった先の要素sr、srにそれぞれ結び付けられた文字列「インド」、「南インド」を選択肢候補として応答する。文脈ポインタpiの関係先にsを、最終選択肢ポインタpilsの関係先にsrを、最終応答ポインタpilrの関係先にmを設定する。
(K5)(U)「インド」と発話する。
(K6)(A)要素piの関係先sからarel関係でたどった先の要素に結び付けられた文字列を調べ、要素srに結び付けられた文字列「インド」が出現したことを検知する。
(K7)(A)要素srからarel関係でたどった先の要素sのクラスも選択肢動作aselであり、要素sからasm関係でたどった先の要素mに結び付けられた文字列「エリアは?」を応答し、要素sからarel関係でたどった先の要素sr、sr、srにそれぞれ結び付けられた文字列「六本木」、「銀座」、「お茶の水」を選択肢候補として応答する。文脈ポインタpiの関係先にsを、最終選択肢ポインタpilsの関係先にsrを、最終応答ポインタpilrの関係先にmを設定する。
(K8)(U)「六本木」と発話する。
(K9)(A)要素piの関係先sからarel関係でたどった先の要素に結び付けられた文字列を調べ、要素srに結び付けられた文字列「インド」が出現したことを検知する。
(K10)(A)要素srからarel関係のたどり先で実行可能な要素はm、mと複数あるため、ランダム選択を行い、mの実行を試みる。
(K11)(A)要素mのクラスは応答メッセージを行うamsgであり、mに結び付けられた文字列「×××がお勧めです。」を応答する。文脈ポインタpiの関係先は変更せず、最終選択肢ポインタpilsの関係先にsrを、最終応答ポインタpilrの関係先にmを設定する。
表2に、上述の本発明に係る自動応答の作成方法の実施手段の動作を含む対話であるダイアログを、プログラムの内部の動作を除く端末装置等に表示されうる文字列として例示する。

Figure 2009169840
<Example 2>
The following (K1) to (K11) show examples of operations that can be performed by the implementation means of the method for creating an automatic response according to the present invention using the data stored in the knowledge structure as described above. In the following, “U” at the beginning of the line indicates the user's action, and “A” indicates the operation of the implementation means of the automatic response creation method according to the present invention.
(K1) (U) Says “I want to eat curry, though it ’s hot today”.
(K2) (A) follows the user relationship from the start point v root, it found user u dst, further follow operation relationship, to find the starting point a sr script structure. Further, following the user relationship from the start point v root, it found user u ca, further follow operational relationship to discover context pointer pi c via the class a c. Like the elements pi c, the final choice pointers pi ls via a class a ls, via the class a lr finding a final response pointer pi lr.
(K3) (A) participant elements pi c is checked to ensure that it is null. The elements a sr to the previous element traced in the a rel relationship are accessed in order, and it is checked whether the character string associated with the element appears in the user utterance. The character string “curry” associated with the element sr 1 is Detect the appearance.
(K4) (A) An attempt is made to execute the preceding element s 1 traced from the element sr 1 in the a rel relationship. Class a sel of element s 1 is associated with a pointer to a function that performs the choice operation. It responds with the character string “What is the type of curry?” Associated with the previous element m 2 traced from the element s 1 to the a sm relation, and the previous elements sr 2 and sr 3 traced from the element s 1 to the a rel relation The character strings “India” and “South India” respectively associated with are responded as option candidates. The s 1 to participant context pointer pi c, the sr 1 to participant final choice pointers pi ls, sets the m 2 in relation destination final response pointer pi lr.
(K5) (U) Say “India”.
(K6) (A) elements from related parties s 1 of pi c examine the string tied to the earlier of the elements followed by a rel relationship, that the string tied to the element sr 2 "India" has emerged Detect.
(K7) (A) The class of the previous element s 2 traced from the element sr 2 in the a rel relation is also an option action a sel and is associated with the previous element m 3 traced in the a sm relation from the element s 2 Responds with the character string “What is the area?” And the character strings “Roppongi”, “Ginza”, “Ochanomizu” associated with the previous elements sr 4 , sr 5 , sr 6 traced from the element s 2 in the a rel relationship, respectively. As a choice candidate. The s 2 in relation destination context pointer pi c, the sr 2 to participant final choice pointers pi ls, sets the m 3 in relation destination final response pointer pi lr.
(K8) (U) Say “Roppongi”.
(K9) (A) element pi from related parties s 2 of c examine the string tied to the earlier of the elements followed by a rel relationship, that the string tied to the element sr 4 "India" has emerged Detect.
(K10) (A) Since there are a plurality of elements m 4 and m 5 that can be executed from the element sr 4 to the destination of the a rel relationship, random selection is performed, and execution of m 4 is attempted.
(K11) (A) The class of the element m 4 is a msg which performs a response message, and responds with the character string “xxx is recommended” linked to the m 4 . Participant the context pointer pi c does not change, the sr 4 to related parties of the final choice pointers pi ls, sets the m 4 to related parties of the final response pointer pi lr.
Table 2 exemplifies a dialog that is a dialogue including the operation of the above-described automatic response creation method according to the present invention as a character string that can be displayed on a terminal device or the like excluding the internal operation of the program.
Figure 2009169840

このように、本発明に係る自動応答の作成方法を用いることにより、自然言語を含むユーザからのメッセージに対して、迅速に柔軟な応答を自動的に作成しうる。
また、自動応答により作成されるメッセージも本発明に係る知識構造の要素でありうる。従って、本発明に係る自動応答の作成方法の実施手段は、自動応答の動作を繰り返すことにより、関連付けを有する選択ルール、応答メッセージ等を次々に知識構造に追加し、より多くの関連付けを記憶して知識構造を自ら構築しうる。これにより、本発明に係る知識構造は、自己創出性を備えることが可能である。
As described above, by using the method for creating an automatic response according to the present invention, a flexible response can be automatically created quickly and in response to a message from a user including a natural language.
A message created by an automatic response can also be an element of the knowledge structure according to the present invention. Therefore, the execution means of the method for creating an automatic response according to the present invention repeats the operation of the automatic response to successively add selection rules, response messages, etc. having associations to the knowledge structure and store more associations. Can build their own knowledge structure. Thereby, the knowledge structure according to the present invention can be self-creating.

以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施例に記載されたものに限定されるものではない。   As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.

本発明及び従来技術の一実施形態に係る、知識構造の基本構造における要素の関係を示す図である。It is a figure which shows the relationship of the element in the basic structure of a knowledge structure based on one Embodiment of this invention and a prior art. 本発明及び従来技術の一実施形態に係る意味ネットワークを用いて格納される知識の例を示す図である。It is a figure which shows the example of the knowledge stored using the semantic network which concerns on one Embodiment of this invention and a prior art. 本発明の一実施形態に係る、自動応答出力作成システムの構成を示す図である。It is a figure which shows the structure of the automatic response output production system based on one Embodiment of this invention. 本発明の一実施形態に係る、知識DBのデータ構造を表す図である。It is a figure showing the data structure of knowledge DB based on one Embodiment of this invention. 本発明の一実施形態に係る、拡張意味ネットワークの要素が含まれる連結グラフを示す図である。FIG. 6 is a diagram illustrating a connected graph including elements of an extended semantic network according to an embodiment of the present invention. 本発明の一実施形態に係る、自動応答出力作成装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the automatic response output production apparatus based on one Embodiment of this invention. 本発明の一実施形態に係る、知識構造の動作の例を示す図である。FIG. 4 is a diagram illustrating an example of operation of a knowledge structure according to an embodiment of the present invention. 本発明の一実施形態に係る、対話スクリプトをグラフ構造として表す図である。FIG. 4 is a diagram representing a dialogue script as a graph structure according to an embodiment of the present invention. 本発明の一実施形態に係る、対話スクリプト追跡における知識構造の要素間の関係の例を示す図である。FIG. 4 is a diagram illustrating an example of a relationship between elements of a knowledge structure in dialogue script tracking according to an embodiment of the present invention.

符号の説明Explanation of symbols

10 自動応答出力作成装置
20 自動応答出力作成システム
30 知識DB
38 ネットワーク
60 ユーザ端末
80 知識DBデータ構造
82 識別子
84 始点
85 終点
86 ラベル
88 ポインタ
301、302、304、321、322、323 要素
303、305、312、324、325、333 辺
310、331 始点
311、332 終点
340、350 連結グラフ
361 ユーザ
362、363、364 動作
365、366、367 関数ポインタ
360、380 全知識構造の始点
381 ユーザのクラス
382 行動のクラス
384 インスタンスのクラス
390、392、ユーザ
410 選択
412 選択メッセージ
414 選択ルール
420 コンテキスト
422 最終選択
424 最終応答
440 選択ルール
442、446、447、450、452、454、456、458 選択ルールのインスタンス
460、462、464、466,468、470、472、474 メッセージのインスタンス
444、448、449 選択
10 Automatic response output creation device 20 Automatic response output creation system 30 Knowledge DB
38 Network 60 User terminal 80 Knowledge DB data structure 82 Identifier 84 Start point 85 End point 86 Label 88 Pointer 301, 302, 304, 321, 322, 323 Element 303, 305, 312, 324, 325, 333 Side 310, 331 Start point 311, 332 End point 340, 350 Connected graph 361 User 362, 363, 364 Operation 365, 366, 367 Function pointer 360, 380 Start point of all knowledge structure 381 User class 382 Action class 384 Instance class 390, 392, User 410 selection 412 Selection message 414 Selection rule 420 Context 422 Final selection 424 Final response 440 Selection rule 442, 446, 447, 450, 452, 454, 456, 458 Instance 460,462,464,466,468,470,472,474 instance 444,448,449 selection of messages

Claims (8)

コンピュータ処理可能な言語に含まれる状況と動作との関係を含む集合である知識構造を記憶部に作成する知識構造の構成方法であって、前記関係は始点、終点を要素に含む集合であり、
前記状況を特定するための用語及び前記動作を特定するための用語を前記記憶部に記憶するステップと、
前記状況及び前記動作及び前記関係のそれぞれにクラスを定義するステップと、
前記状況を特定するための用語及び前記動作を特定するための用語のお互いの関係を前記要素として前記知識構造に含めて記憶するステップと、
前記クラスと前記関係との所属関係又は従属関係を要素として前記知識構造に記憶するステップと、
を含み、
ここに前記関係は前記始点及び前記終点を共に空要素とする関係であるか、又は前記始点及び前記終点を共に前記知識構造の要素とする関係であるかのいずれかである、知識構造の構成方法。
A knowledge structure configuration method for creating a knowledge structure in a storage unit that includes a relationship between a situation and an action included in a computer-processable language, wherein the relationship is a set including a start point and an end point as elements,
Storing a term for specifying the situation and a term for specifying the action in the storage unit;
Defining a class for each of the situation and the action and the relationship;
Storing the relationship between the term for specifying the situation and the term for specifying the action included in the knowledge structure as the element;
Storing the affiliation or subordinate relationship between the class and the relationship as an element in the knowledge structure;
Including
Here, the relationship is either a relationship in which both the start point and the end point are empty elements, or a relationship in which both the start point and the end point are elements of the knowledge structure. Method.
前記状況及び前記動作及び前記関係のそれぞれにクラスを定義するステップにおいて、クラスを定義するために以下の数式を用いる、請求項1に記載の知識構造の構成方法。
Figure 2009169840
ここに、ASNは拡張意味ネットワーク(Augmanted Semantic Network)であり、EASNは拡張意味ネットワークの集合であり、eは集合Eの要素である二項組要素であり、eはEASNの要素である始点(301)等であり、eはEASNの要素である終点(302)等であり、nullは空要素であり、さらに、拡張意味ネットワークは次の要素集合を有し、
Figure 2009169840
Figure 2009169840
Figure 2009169840
ここに、ASNVEは拡張意味ネットワークASNの構成要素であり、Eは拡張意味ネットワークにおける頂点の集合であり、Eは拡張意味ネットワークにおける辺の集合である。
The method for constructing a knowledge structure according to claim 1, wherein, in the step of defining a class for each of the situation, the action, and the relationship, the following mathematical formula is used to define the class.
Figure 2009169840
Here, ASN is an enhanced semantic network (Augmanted Semantic Network), E ASN is a set of extended semantic network, e is a two-tuple element is an element of the set E, e s is an element of E ASN a certain starting point (301) or the like, e d is the end point (302) or the like is an element of E ASN, null is empty element further extended semantic network has the following element set,
Figure 2009169840
Figure 2009169840
Figure 2009169840
Here, ASN VE is a component of the extended semantic network ASN, E v is a set of vertices in the extended semantic network, and E e is a set of edges in the extended semantic network.
前記状況を特定するための用語又は前記動作を特定するための用語を受信するステップと、
受信した前記状況を特定するための用語又は前記動作を特定するための用語を選別して記憶するステップと、
をさらに含む、請求項1又は請求項2に記載の知識構造の構成方法。
Receiving a term to identify the situation or a term to identify the action;
Selecting and storing the received term for specifying the situation or the term for specifying the action;
The method for constructing a knowledge structure according to claim 1, further comprising:
会話の場、会話履歴、会話文脈を要素に有する集合である談話構造を生成するステップと、
前記会話の場をひとつの要素として前記知識構造に記憶するステップと、
会話の発生を要素とする全順序つき集合を前記知識構造に記憶するステップと、
前記会話の発生及び前記会話の発生の順序隣接関係を前記知識構造に記憶するステップと、
をさらに含む、請求項1から請求項3のいずれかに記載の知識構造の構成方法。
Generating a discourse structure that is a set having a conversation place, a conversation history, and a conversation context as elements;
Storing the conversation field as one element in the knowledge structure;
Storing in the knowledge structure a fully ordered set whose elements are conversation occurrences;
Storing the occurrence of the conversation and the sequential adjacency relationship of the occurrence of the conversation in the knowledge structure;
The method for constructing a knowledge structure according to any one of claims 1 to 3, further comprising:
関係クラス、方向、到達先を要素に含む集合であるたどり構造を生成するステップと、
前記知識構造に含まれる要素のうちで始点及び終点が設定されている要素を抽出するステップと、
前記抽出された始点に対してそれ自身のクラス、順方向の関連付けを示すフラグ、終点の組合せをたどり構造に追加するステップと、
前記抽出された終点に対してそれ自身のクラス、逆方向の関連付けを示すフラグ、始点の組合せをたどり構造に追加するステップと、
をさらに含む、
請求項1から請求項4のいずれかに記載の知識構造の構成方法。
Generating a tracing structure that is a set including a relation class, a direction, and a destination as elements;
Extracting an element having a start point and an end point among elements included in the knowledge structure;
Adding a combination of its own class, a forward link flag, and an end point to the extracted start point to the tracing structure;
Adding its own class, a flag indicating reverse association to the extracted endpoint, and a combination of starting points to the tracing structure;
Further including
The method for constructing a knowledge structure according to any one of claims 1 to 4.
請求項1から請求項5のいずれかに記載の前記知識構造の構成方法を用い、
前記状況を特定するための用語を受信することに応答して、
前記たどり構造の集合から、動作関係のクラス及び順方向の関連付けを示すフラグの組合せが存在する知識構造の要素を抽出するステップと、
前記抽出された少なくとも1つの要素から、ランダムな選択規則、最初又は最後に抽出された要素を選択する規則、最も以前又は最近に抽出された要素を選択する規則、談話構造と最も関連性の高い要素を選択する規則から選ばれる規則に基づいて要素を選択するステップと、
を用いて前記動作を特定するための用語を決定する、自動応答の作成方法。
Using the method for constructing the knowledge structure according to any one of claims 1 to 5,
In response to receiving a term to identify the situation,
Extracting a knowledge structure element in which a combination of a flag indicating an association of a motion relation class and a forward direction exists from the set of trace structures;
Random selection rule from the extracted at least one element, rule for selecting the first or last extracted element, rule for selecting the oldest or most recently extracted element, most relevant to discourse structure Selecting an element based on a rule selected from rules for selecting an element;
A method for creating an automatic response, wherein a term for specifying the action is determined using the method.
請求項1から請求項6のいずれかのステップをコンピュータに実行させるための、コンピュータ・プログラム。   The computer program for making a computer perform the step in any one of Claims 1-6. 請求項1から請求項6のいずれかに記載の前記知識構造の構成方法を用いる自動応答の作成装置であって、
前記状況を特定するための用語及び前記動作を特定するための用語を記憶する手段と、
ユーザが前記状況を特定するための用語を入力することに応答して、
前記たどり構造の集合から、動作関係のクラス及び順方向の関連付けを示すフラグの組合せが存在する知識構造の要素を抽出する手段と、
前記抽出された少なくとも1つの要素から、ランダムな選択規則、最初又は最後に抽出された要素を選択する規則、最も以前又は最近に抽出された要素を選択する規則、談話構造と最も関連性の高い要素を選択する規則から選ばれる規則に基づいて前記動作を特定するための用語を選択する手段と、
前記選択した用語を前記ユーザに送信する手段と、
を備える、自動応答の作成装置。
An automatic response creation device using the knowledge structure construction method according to any one of claims 1 to 6,
Means for storing a term for identifying the situation and a term for identifying the action;
In response to the user entering a term to identify the situation,
Means for extracting an element of a knowledge structure in which a combination of flags indicating behavioral relation classes and forward association exists from the set of trace structures;
Random selection rule from the extracted at least one element, rule for selecting the first or last extracted element, rule for selecting the oldest or most recently extracted element, most relevant to discourse structure Means for selecting a term for identifying the action based on a rule selected from rules for selecting an element;
Means for transmitting the selected term to the user;
A device for creating an automatic response.
JP2008009458A 2008-01-18 2008-01-18 Knowledge structure construction method of natural language dialogue agent, automatic response creation method and automatic response creation apparatus using knowledge structure Active JP4824043B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008009458A JP4824043B2 (en) 2008-01-18 2008-01-18 Knowledge structure construction method of natural language dialogue agent, automatic response creation method and automatic response creation apparatus using knowledge structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008009458A JP4824043B2 (en) 2008-01-18 2008-01-18 Knowledge structure construction method of natural language dialogue agent, automatic response creation method and automatic response creation apparatus using knowledge structure

Publications (2)

Publication Number Publication Date
JP2009169840A true JP2009169840A (en) 2009-07-30
JP4824043B2 JP4824043B2 (en) 2011-11-24

Family

ID=40970906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008009458A Active JP4824043B2 (en) 2008-01-18 2008-01-18 Knowledge structure construction method of natural language dialogue agent, automatic response creation method and automatic response creation apparatus using knowledge structure

Country Status (1)

Country Link
JP (1) JP4824043B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011065582A (en) * 2009-09-18 2011-03-31 Yahoo Japan Corp Device and method for gradually developing natural language user interface
JP2014157465A (en) * 2013-02-15 2014-08-28 Yahoo Japan Corp Interactive script operation instruction execution device, interaction script operation instruction execution method, and program
JP2015212926A (en) * 2014-05-06 2015-11-26 バイドゥ オンライン ネットワーク テクノロジー (ベイジン) カンパニー リミテッド Searching method and searching apparatus
CN109213867A (en) * 2018-10-26 2019-01-15 湖北大学 A kind of mass knowledge base construction method precisely predicted towards big data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0554067A (en) * 1991-08-23 1993-03-05 Nec Corp Meaning analyzing system
JP2001022779A (en) * 1999-07-09 2001-01-26 Nissan Motor Co Ltd Interactive information retrieval device, method for interactive information retrieval using computer, and computer-readable medium where program performing interactive information retrieval is recorded

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0554067A (en) * 1991-08-23 1993-03-05 Nec Corp Meaning analyzing system
JP2001022779A (en) * 1999-07-09 2001-01-26 Nissan Motor Co Ltd Interactive information retrieval device, method for interactive information retrieval using computer, and computer-readable medium where program performing interactive information retrieval is recorded

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011065582A (en) * 2009-09-18 2011-03-31 Yahoo Japan Corp Device and method for gradually developing natural language user interface
JP2014157465A (en) * 2013-02-15 2014-08-28 Yahoo Japan Corp Interactive script operation instruction execution device, interaction script operation instruction execution method, and program
JP2015212926A (en) * 2014-05-06 2015-11-26 バイドゥ オンライン ネットワーク テクノロジー (ベイジン) カンパニー リミテッド Searching method and searching apparatus
US10083228B2 (en) 2014-05-06 2018-09-25 Baidu Online Network Technology (Beijing) Co., Ltd. Searching method and apparatus
CN109213867A (en) * 2018-10-26 2019-01-15 湖北大学 A kind of mass knowledge base construction method precisely predicted towards big data

Also Published As

Publication number Publication date
JP4824043B2 (en) 2011-11-24

Similar Documents

Publication Publication Date Title
US11409425B2 (en) Transactional conversation-based computing system
CN109313667B (en) System and method for constructing state-specific multi-round contextual language understanding system
US10360300B2 (en) Multi-turn cross-domain natural language understanding systems, building platforms, and methods
US11586689B2 (en) Electronic apparatus and controlling method thereof
US9697198B2 (en) Guiding a conversation based on cognitive analytics
US10754885B2 (en) System and method for visually searching and debugging conversational agents of electronic devices
JP5368924B2 (en) Apparatus and method for progressive development of natural language user interfaces
TW200900966A (en) Client input method
WO2020191828A1 (en) Graph-based context association reply generation method, computer and medium
US11683283B2 (en) Method for electronic messaging
Pérez-Soler et al. Towards Conversational Syntax for Domain-Specific Languages using Chatbots.
CN114168718A (en) Information processing apparatus, method and information recording medium
US11449683B2 (en) Disentanglement of chat utterances
JP2016015026A (en) Operation object determination program, operation object determination device, and operation object determination method
JP4824043B2 (en) Knowledge structure construction method of natural language dialogue agent, automatic response creation method and automatic response creation apparatus using knowledge structure
JP2020154491A (en) Communication support system and program
JP4881903B2 (en) Script creation support method and program for natural language dialogue agent
JP2021108095A (en) Method for outputting information on analysis abnormality in speech comprehension
JPWO2018173943A1 (en) Data structuring device, data structuring method and program
CN117314139A (en) Modeling method and device for business process, terminal equipment and storage medium
WO2022206307A1 (en) Method for electronic messaging using image based noisy content
US10432700B2 (en) Conversation connected visualization of items based on a user created list
CN114118937A (en) Information recommendation method and device based on task, electronic equipment and storage medium
KR102192447B1 (en) Method and for providing automatic translation in user conversation using multiple languages
US20210157881A1 (en) Object oriented self-discovered cognitive chatbot

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110509

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110801

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4824043

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140916

Year of fee payment: 3

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

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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