JPH03116330A - Table form knowledge debugging system - Google Patents

Table form knowledge debugging system

Info

Publication number
JPH03116330A
JPH03116330A JP1254496A JP25449689A JPH03116330A JP H03116330 A JPH03116330 A JP H03116330A JP 1254496 A JP1254496 A JP 1254496A JP 25449689 A JP25449689 A JP 25449689A JP H03116330 A JPH03116330 A JP H03116330A
Authority
JP
Japan
Prior art keywords
knowledge
conclusion
condition
tabular
decision tree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1254496A
Other languages
Japanese (ja)
Inventor
Kazuo Tajiri
田尻 和夫
Hiroyuki Furuya
古屋 博行
Fumio Hattori
服部 文夫
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1254496A priority Critical patent/JPH03116330A/en
Publication of JPH03116330A publication Critical patent/JPH03116330A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To easily verify an inputted knowledge while interlocking with a table form knowledge editor by successively displaying the stage of decision tree search by the input picture of a table form to verify knowledge base. CONSTITUTION:In a knowledge base system 1, inference is performed by a decision tree 12, which is generated by a table form knowledge editor 3 and is stored in a knowledge base 2, to verify the knowledge. In this case, a knowledge expression picture of the same table form as the table form knowledge input picture used by the table form knowledge editor 3 is displayed when a table form knowledge debugger 4 is started. When conditions are gotton one by one, columns whose attributes are designated in accordance with values of conditions are successively emphasized and displayed; and at the time of arrival at a conclusion, the conclusion is emphasized and displayed. Thus, the image of the supplied table is used as it is and the search stage of the decision tree is referred to verify the knowledge supplied in the table form, thereby improving the debugging efficiency.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、表形式知識デバッグ方式に関し、特に、知識
ベースシステムにおいて1表形式知識エディタにより表
形式で知識を表現して知識のデータの入力を行い、知識
の決定木を作成する表形式知識エディタによって、入力
した知識データを容易に検証することができる表形式知
識デバッグ方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a tabular knowledge debugging method, and in particular, in a knowledge base system, knowledge is expressed in a tabular format by a tabular knowledge editor and knowledge data is input. The present invention relates to a tabular knowledge debugging method that allows input knowledge data to be easily verified using a tabular knowledge editor that creates knowledge decision trees.

〔従来の技術〕[Conventional technology]

専門家の知識を所定の形式で表現して知識ベースに格納
し、格納された知識を用いて推論を行なうことにより専
門家に代わって問題解決を行なう知識ベースシステムが
開発されている。このような知識ベースシステムにおい
ては、専門家の知識が、所定の形式で表現して入力され
、編集して格納される。格納された所定の形式の知識を
用いて、そして、結論を導出する推論を行う。
Knowledge base systems have been developed that solve problems on behalf of experts by expressing the knowledge of experts in a predetermined format and storing it in a knowledge base, and making inferences using the stored knowledge. In such a knowledge base system, expert knowledge is input expressed in a predetermined format, edited, and stored. The stored knowledge in a predetermined form is then used to make inferences that lead to conclusions.

知識表現は、例えば、第6図に示すような木構造のデー
タとして表現される。このような木構造の知識データは
、複数の条件から結論を導出するパスを示す木構造デー
タとなっており、決定木と称されるものである。例えば
、第6図に示すような決定木は、表形式で知識を表現し
て知識データの入力を行う表形式知識エディタにより、
入力した知識の決定表から生成される。
The knowledge representation is expressed, for example, as tree-structured data as shown in FIG. Such tree-structured knowledge data is tree-structured data that indicates a path for deriving a conclusion from a plurality of conditions, and is called a decision tree. For example, a decision tree as shown in Figure 6 can be created using a tabular knowledge editor that expresses knowledge in a tabular format and inputs knowledge data.
It is generated from the decision table of the input knowledge.

第6図に示す決定木において、61.62.63は条件
判定ノードを示し、各々の条件判定ノード61゜62、
63の下に付加されたブロックの値は条件判定に対する
条件の値(判定値)を示している。この決定木における
知識表現は、例えば、条件判定ノード61の条件Aに対
して判定値がalの場合は、決定木を下にたどり、次に
条件判定ノード62の条件Bの判定を行なうことを示し
ている。そして、更に下にたどり、場合により例えば条
件判定ノード63の条件Cの判定を行う。このようにし
て、決定木の知識表現からは、決定木を順次に下にたど
り、結論1〜結論8を導出する。このように、入力され
た知識データから、第6図に示すような決定木を生成し
、生成された決定木をたどることにより、当該知識デー
タを用いた推論実行がおこなわれることになる。
In the decision tree shown in FIG. 6, 61, 62, 63 indicate condition judgment nodes, and each condition judgment node 61, 62,
The value of the block added below 63 indicates the value of the condition (determination value) for condition determination. The knowledge representation in this decision tree is such that, for example, if the decision value is al for condition A of condition decision node 61, the decision tree is traced downward and then condition B of condition decision node 62 is judged. It shows. Then, the process moves further down, and if necessary, for example, the condition C of the condition determination node 63 is determined. In this way, from the knowledge representation of the decision tree, the decision tree is sequentially traced down and Conclusions 1 to 8 are derived. In this way, a decision tree as shown in FIG. 6 is generated from the input knowledge data, and by following the generated decision tree, inference is executed using the knowledge data.

複数の条件の属性の組合せによって、異なる結論を導く
場合には、第6図に示すような決定木を生成し、条件の
値を入手しながら、この決定木を探索する方法が一般的
である。
When different conclusions are drawn by combining the attributes of multiple conditions, a common method is to generate a decision tree as shown in Figure 6 and search this decision tree while obtaining the values of the conditions. .

ところで、第6図において、条件判定ノード61の条件
Aに対する判定値al、a2.a3は、条件Aの属性を
示し、また、同様に判定値bl、・・・03等は、条件
Bの属性2条件Cの属性を示している。決定木の探索で
は、まず、条件Aの値を入手すると、その値と一致する
属性を持つ枝をたどり、次に条件Bの値を入手して、そ
の値と一致する属性を持つ枝をたどる。このように、順
次に決定木゛をたどり、条件Cについても同様にして結
論に達する。例えば結ttI′2に達するには1条件A
By the way, in FIG. 6, the judgment values al, a2 . a3 indicates the attribute of condition A, and similarly, the determination values bl, . . . 03, etc. indicate the attribute of condition B, attribute 2, and condition C. In a decision tree search, first, when we obtain the value of condition A, we trace the branches that have attributes that match that value, then we obtain the value of condition B, and trace the branches that have attributes that match that value. . In this way, the decision tree is sequentially traced and a conclusion regarding condition C is reached in the same manner. For example, to reach the conclusion ttI'2, one condition A
.

条件B、および条件Cの属性としてal、b2゜c’、
1(以下(al、b2.cl)と表記する)が指定され
ており、これと一致する条件の値が入手された結果とし
て導かれる。結論の中には一部の条件について属性につ
いては属性が指定されていない場合がある。指定されて
いない属性を11  jjで表記すれば、例えば、結論
4は(B2.− −)の属性が指定されており、条件A
の値としてB2が入手されただけで、結論4が導かれる
The attributes of condition B and condition C are al, b2゜c',
1 (hereinafter referred to as (al, b2.cl)) is specified, and the value of the condition that matches this is obtained as a result. In some conclusions, attributes may not be specified for some conditions. If the unspecified attribute is expressed as 11 jj, for example, conclusion 4 has the attribute (B2.--) specified, and condition A is satisfied.
Conclusion 4 can be drawn just by obtaining B2 as the value of .

このような決定木を生成するための知識データの入力方
法の1つの手段として、表形式で知識を編集して入力す
る表形式知識エディタがある。表形式知識エディタでは
、表の行方向および列方向にそれぞれ条件と結論を配置
し、その表の交点のカラムに条件の属性を指定して、知
識を表現して入力する。
One method for inputting knowledge data to generate such a decision tree is a tabular knowledge editor that edits and inputs knowledge in a tabular format. In the tabular knowledge editor, conditions and conclusions are placed in the rows and columns of the table, and the attribute of the condition is specified in the column at the intersection of the table to express and input knowledge.

第7図は1表形式知識エディタによる知識入力画面の一
例を示す図である。第7図の知識入力画面の例では、行
方向の結論1〜結論8に対して、列方向に条件A9条件
B2条件Cを配置して、表の交点のカラムに、結論に到
達するための各々条件の属性を指定して、知識を表現し
ている。この知識入力画面に既に入力された知識は、第
6図の決定木と対応したものとなっている。例えば結論
2については、その結論に達するための条件の属性(a
 1. ’b 2’、 c 1)は、条件Aに対応する
カラムにはalを指定し、条件B2条件Cに対応するカ
ラムにはb2.clをそれぞれ指定して、縦方向(列方
向)に並べたものとなっている。また、結論4に達する
ため条件の属性(B2.−、−)は、条件Aに対応する
カラムにはB2を指定し、条件B2条件Cに対応するカ
ラムは空欄として指定している。ここでは、その条件の
値に関係ないことを空欄により暗示で指定しているが、
これは例えば“Don”t care”、any”など
と指定して、条件の値に関係がないことを明示して指定
するようにしてもよい、また1表の行方向および列方向
の条件と結論は入れ替わって配置されていてもよい。
FIG. 7 is a diagram showing an example of a knowledge input screen using the one-table knowledge editor. In the example of the knowledge input screen in Figure 7, Conditions A9, Conditions B2, and Conditions C are arranged in the column direction for Conclusions 1 to 8 in the row direction, and in the column at the intersection of the table, the information for reaching the conclusion is Knowledge is expressed by specifying the attributes of each condition. The knowledge already input on this knowledge input screen corresponds to the decision tree shown in FIG. For example, regarding conclusion 2, the attribute of the condition for reaching that conclusion (a
1. 'b 2', c 1) specifies al in the column corresponding to condition A, and specifies b2. in the column corresponding to condition B2 and condition C. cl is specified and arranged in the vertical direction (column direction). Further, in order to reach conclusion 4, for the attribute of the condition (B2.-,-), B2 is specified in the column corresponding to condition A, and the columns corresponding to condition B2 and condition C are specified as blank. Here, the blank field implicitly specifies that it is not related to the value of the condition, but
For example, this may be specified as "Don't care" or "any" to clearly indicate that it has no relation to the value of the condition. The conclusions may be arranged interchangeably.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、上述したように、表形式知識エディタを使用
することにより、知識の投入(入力)は容易に行うこと
ができる。しかし、表形式知識エディタと連動したデバ
ッグ方式が存在しないと、投入した知識の検証が困難と
なり、投入が容易である効果を十分に活かせないという
問題がある。
By the way, as described above, by using the tabular knowledge editor, knowledge can be easily input. However, if there is no debugging method linked to the tabular knowledge editor, there is a problem in that it becomes difficult to verify the input knowledge, and the effect of easy input cannot be fully utilized.

本発明は、前記問題点を解決するためになされたもので
ある。
The present invention has been made to solve the above problems.

本発明の目的は、知識ベースシステムにおける表形式知
識エディタと連動して、入力した知識の検証を容易に行
うことができる表形式知識デバッグ方式を提供すること
にある。
An object of the present invention is to provide a tabular knowledge debugging method that can easily verify input knowledge in conjunction with a tabular knowledge editor in a knowledge base system.

本発明の前記ならびにその他の目的と新規な特徴は、本
明細書の記述及び添付図面によって明らかになるであろ
う。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

〔課題を解決するための手段〕[Means to solve the problem]

前記目的を達成するために、本発明の表形式知識デバッ
グ方式は、条件および結論をそれぞれ行方向および列方
向に配置した表の形式の入力画面を用いて、表の交点の
カラムに条件の属性を指定し1条件の属性から結論に導
く知識データの決定木を生成する表形式知識エディタと
、決定木を格納する知識ベースと、決定木により推論を
行う推論機構とを有する知識ベースシステムにおいて、
知識ベースの決定木をたどり、1つの条件に対応する行
方向の全てのカラムのうち、入手しか条件の値と一致す
る属性が指定されたカラムを強調表示する第1の処理を
行い、特定のキー入力の指示によって順次に条件を替え
て、前記第1の処理を繰り返し行い、結論に達したとき
には、当該結論を強調表示する第2の処理を行い、決定
木を探索する過程を表形式の入力画面により順次表示し
て、知識データの検証を行うことを特徴とする。
In order to achieve the above object, the tabular knowledge debugging method of the present invention uses a tabular input screen in which conditions and conclusions are arranged in rows and columns, respectively, and displays the attributes of the conditions in the columns of the intersections of the table. In a knowledge base system that includes a tabular knowledge editor that generates a decision tree of knowledge data that specifies and leads to a conclusion from the attributes of one condition, a knowledge base that stores the decision tree, and an inference mechanism that makes inferences using the decision tree,
A first process is performed to trace the decision tree of the knowledge base and highlight columns with attributes that match the value of the condition among all columns in the row direction that correspond to one condition. The first process is repeated by sequentially changing the conditions according to key input instructions, and when a conclusion is reached, the second process is performed to highlight the conclusion. It is characterized in that knowledge data is verified by sequentially displaying it on an input screen.

また、表の行あるいは列方向に配置された条件の値を全
て入手する前に結論に達した場合には、当該結論の強調
表示に先立って、当該結論に対応する列あるいは行に含
まれる未入手の条件の属性を指定するカラムを強調表示
する第3の処理を含むことを特徴とする。
In addition, if a conclusion is reached before all the values of the conditions arranged in the rows or columns of the table are obtained, before the conclusion is highlighted, The present invention is characterized by including a third process of highlighting a column specifying an attribute of an acquisition condition.

〔作用〕[Effect]

前述の手段によれば、知識ベースシステムにお・いて、
表形式知識エディタにより作成し、知識ベースに格納し
た決定木により推論を行い知識の検証を行うが、この場
合、表形式知識エディタにより知識を投入した表形式画
面を表示しながら、順次に決定木をたどって、推論過程
を表示する。すなわち、1つの条件に対応する行方向の
全てのカラムのうち、入手した条件の値と一致する属性
が指定されたカラムを強調表示する第1の処理を行い、
特定のキー入力の指示によって順次に条件を替えて、前
記第1の処理を繰り返し行う。そして、結論に達したと
きには、当該結論を強調表示する第2の処理を行う。
According to the aforementioned means, in the knowledge-based system,
Knowledge is verified by making inferences using decision trees created using the tabular knowledge editor and stored in the knowledge base. to display the inference process. That is, a first process is performed to highlight a column in which an attribute that matches the value of the obtained condition is specified among all columns in the row direction corresponding to one condition,
The first process is repeated by changing the conditions one by one in accordance with specific key input instructions. Then, when a conclusion is reached, a second process of highlighting the conclusion is performed.

このように、決定木をたどり1表形式の知識入力画面の
条件の欄のカラムを順次に強調表示し。
In this way, the decision tree is followed and columns in the condition column of the knowledge input screen in table format are highlighted one after another.

結論に至る決定木を探索する過程を順次に表示して知識
データの検証を行う。
Knowledge data is verified by sequentially displaying the process of searching a decision tree that leads to a conclusion.

また、結論に到達する場合に当該条件の値が関係しない
条件の値を指示するカラムに対しては。
Also, for columns that indicate the value of a condition whose value is not relevant when reaching a conclusion.

表の行あるいは列方向に配置された条件の値を全て入手
する前に結論に達してしまうので、この場合には、当該
結論の強調表示に先立って、当該結論に対応する列ある
いは行に含まれる未入手の条件の属性を指定するカラム
を強調表示する。
Since the conclusion is reached before all the values of the conditions arranged in the rows or columns of the table are obtained, in this case, before highlighting the conclusion, Highlight columns that specify attributes for unobtained conditions.

これにより、知識ベースに格納した知識をデバッグする
際に、表形式知識エディタで用した表形式知識入力画面
と同様な表形式の知識表現画面が表示され、操作者によ
る特定のキー入力を契機にして、条件が1つずつ入手さ
れると、条件の値に応じて属性が指定されたカラムを順
次強調表示され、結論に達したときには、当該結論を強
調表示されるので、表形式で知識表現を入力した入力画
面上と同様な表形式画面上で決定木の探索過程を可視化
される。したがって、操作者は、例えば入力を行った表
形式画面と同じ画面で、知識の検証が容易に行えること
になる。
As a result, when debugging knowledge stored in the knowledge base, a tabular knowledge expression screen similar to the tabular knowledge input screen used in the tabular knowledge editor is displayed, and when a specific key input by the operator is triggered, As the conditions are obtained one by one, the columns with attributes specified according to the value of the conditions are highlighted in sequence, and when a conclusion is reached, the conclusion is highlighted, so knowledge can be expressed in a table format. The search process of the decision tree can be visualized on a tabular screen similar to the input screen where the information was entered. Therefore, the operator can easily verify his or her knowledge on the same screen as the tabular screen on which the input was made, for example.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて具体的に説明す
る。
Hereinafter, one embodiment of the present invention will be specifically described using the drawings.

第1図は、本発明の一実施例にかかる知識ベースシステ
ムの構成要部を示すブロック図である。
FIG. 1 is a block diagram showing the main components of a knowledge base system according to an embodiment of the present invention.

第1図において、1は知識ベースシステム、2は知識ベ
ース、3は表形式知識エディタ、4は表形式知識デバッ
ガ、5は推論機構である。表形式知識エディタ3は、専
門家6からの知識入力を表形式の画面で受は付けて、表
形式で知識を表現した決定表13を生成する。決定表1
3は、表の行と列のそれぞれに条件項目と結論項目を対
応させ、各結論項目に対応する各条件項目の条件の値を
表の要素として指定して生成した表であり、知識表現を
所定形式の表形式で統一して取り扱えるようにして、容
易に知識を表現して入力可能としたものである。また1
表形式知識エディタ3は、生成した決定表13から各条
件項目の条件値から結論を導出する決定木12を生成し
、生成した決定木12を知識ベース2に格納して推論処
理において参照できるようにする。例えば、今、利用者
7が知識ベースシステム1に対して質問を入力すると、
推論機構5が上述のように生成した決定木12に基いて
、推論処理を行い、結論を導出する。また、表形式知識
デバッガ4は、知識ベース2に格納した知識である例え
ば決定木12を、表形式の表示画面で検証する処理を行
うプロセスである。
In FIG. 1, 1 is a knowledge base system, 2 is a knowledge base, 3 is a tabular knowledge editor, 4 is a tabular knowledge debugger, and 5 is an inference mechanism. The tabular knowledge editor 3 receives knowledge input from the expert 6 on a tabular screen, and generates a decision table 13 expressing the knowledge in a tabular format. Decision table 1
3 is a table generated by associating condition items and conclusion items with each row and column of the table, and specifying the condition value of each condition item corresponding to each conclusion item as an element of the table. This allows knowledge to be easily expressed and input by allowing unified handling in a predetermined tabular format. Also 1
The tabular knowledge editor 3 generates a decision tree 12 that derives a conclusion from the condition values of each condition item from the generated decision table 13, and stores the generated decision tree 12 in the knowledge base 2 so that it can be referenced in inference processing. Make it. For example, if user 7 inputs a question to knowledge base system 1,
Based on the decision tree 12 generated as described above, the inference mechanism 5 performs inference processing and derives a conclusion. Further, the tabular knowledge debugger 4 is a process that verifies the knowledge stored in the knowledge base 2, such as the decision tree 12, on a tabular display screen.

表形式知識デバッガ4を起動すると、表形式知識エディ
タ3で用した表形式知識入力画面と同様な表形式の知識
表現画面が表示される。そして、知識を投入した専門家
などの操作者により特定のキー入力を契機にして、条件
が1つずつ入手されると、条件の値に応じて属性が指定
されたカラムを順次強調表示される。そして、結論に達
したときには、当該結論が強調表示される。
When the tabular knowledge debugger 4 is activated, a tabular knowledge expression screen similar to the tabular knowledge input screen used in the tabular knowledge editor 3 is displayed. Then, when the conditions are obtained one by one by a specific key input by an operator such as an expert with knowledge, columns with specified attributes are highlighted in sequence according to the value of the condition. . When a conclusion is reached, the conclusion is highlighted.

このように表形式で知識表現を入力した入力画面上と同
様な表形式画面上で決定木の探索過程を可視化される。
In this way, the decision tree search process can be visualized on a tabular screen similar to the input screen on which the knowledge representation is input in tabular form.

したがって、操作者は、例えば入力を行った表形式画面
と同じ画面で、知識の検証が容易に行えることになる。
Therefore, the operator can easily verify his or her knowledge on the same screen as the tabular screen on which the input was made, for example.

第2図は、表形式知識デバッガによるデバッグ処理の処
理フローの一例を示したフローチャートである。また、
第3図、第4図、および第5図は、それぞれ表形式知識
デバッガによるデバッグ処理の表示画面の一例を示す図
である。
FIG. 2 is a flowchart showing an example of the processing flow of debugging processing by the tabular knowledge debugger. Also,
FIG. 3, FIG. 4, and FIG. 5 are diagrams each showing an example of a display screen of debug processing by the tabular knowledge debugger.

表形式知識エディタ3により表形式で投入した知識を検
証するために、表形式知識デバッガ4を起動すると、表
形式知識デバッガ4は、第2図のフローチャートに示す
処理を行い、第3図、第4図、および第5図にそれぞれ
示す画面表示を行って、デバッグ処理を進める。すなわ
ち、まず、ステップ21において一表形式画面により、
デバグ対象の表を画面表示し、次に、ステップ22にお
いて、条件の値を入手して決定木をたどり、決定木を探
索する。次のステップ23では、入手した値と一致する
属性が指定されている表のカラムを強調表示する。この
例では、1つの条件の値を入手して決定木を探索すると
、次の条件の入手を行う前に、直前に入手した条件の値
と一致する属性が指定された表のカラムを強調表示する
。このとき、その条件に対して属性が指定されていない
場合には、すなわち表の条件に対応するカラムが空欄と
なったカラム(第7図)を併せて強調表示しする。この
処理は、ステップ24において、入手した値と一致する
属性となる表の空欄のカラムを強調表示することにより
行う。このような表形式知識画面において、該当する条
件の値のカラムを強調表示する処理は、例えば、画面表
示中の表の内容を例えば構造体として保持しておき、全
ての結論に対して、看目する条件に与えられた属性を調
べ、画面のアトリビュートをリバース表示に変定する等
によって画面のカラムを強調表示することにより実現す
る。
When the tabular knowledge debugger 4 is started in order to verify the knowledge input in tabular form by the tabular knowledge editor 3, the tabular knowledge debugger 4 performs the processing shown in the flowchart of FIG. The screen displays shown in FIG. 4 and FIG. 5 are performed to proceed with the debugging process. That is, first, in step 21, a table format screen is displayed,
The table to be debugged is displayed on the screen, and then, in step 22, the values of the conditions are obtained and the decision tree is traced to search the decision tree. In the next step 23, columns of the table in which attributes matching the obtained values are specified are highlighted. In this example, when the value of one condition is obtained and the decision tree is traversed, the columns of the table whose attributes match the value of the previously obtained condition are highlighted before the next condition is obtained. do. At this time, if no attribute is specified for the condition, that is, the column corresponding to the condition in the table is also highlighted (FIG. 7), where the column is blank. This process is performed in step 24 by highlighting blank columns in the table whose attributes match the obtained values. On such a tabular knowledge screen, the process of highlighting the column of the value of the applicable condition can be done by, for example, retaining the contents of the table being displayed on the screen as a structure and checking all the conclusions. This is achieved by examining the attributes given to the conditions being viewed and highlighting columns on the screen by changing the attributes on the screen to reverse display, etc.

次に、ステップ25において、結論に達したか否かを判
断し、この時点でまだ結論に達していない場合には、ス
テップ26に進み1画面表示をそのまま維持したまま、
ファンクシ式ンキーが押下されたか否かを判定する。フ
ァンクションキーの押下を判定できると、ステップ22
に戻り、次の条件に対して、ステップ22からの同様な
処理を行う。このように、表形式知識デバッガの操作者
からの特定のキー入力の押下を待ち、キー入力が行われ
ると、次の条件に対して、条件の値を入手し、決定木の
探索を行い、入手した値と一致する属性が指定されてい
る表のカラムを強調表示する。
Next, in step 25, it is determined whether or not a conclusion has been reached. If the conclusion has not yet been reached at this point, the process advances to step 26, where the one-screen display is maintained as is.
Determine whether or not the funky key has been pressed. If it is determined that the function key has been pressed, step 22
Returning to step 22, the same process from step 22 is performed for the next condition. In this way, it waits for a specific key input from the operator of the tabular knowledge debugger, and when the key input is made, the value of the condition is obtained for the next condition, and the decision tree is searched. Highlight the columns in the table that have attributes that match the obtained values.

一方、結論に達した場合には、ステップ27に進み、当
該結論に含まれる全ての表のカラムを強調表示する。そ
して、次に、ステップ28において、結論基を強調表示
して処理を終了する。
On the other hand, if a conclusion has been reached, the process proceeds to step 27, where columns of all tables included in the conclusion are highlighted. Then, in step 28, the conclusion base is highlighted and the process ends.

ところで、探索処理で結論に達した場合には、特定のフ
ラグをセットすることにより、結論の到達の判断処理で
は、該フラグを判定して結論に達したか否かを判定する
。結論に達した場合には、表形式で表現している知識の
表において結論基を表示したカラムを強調表示すること
により、当該結論の強調表示を行う。また、結論基の強
調表示の処理に先立って、当該結論基の下に縦方向に並
んだ全てのカラムを強調表示する。
By the way, when a conclusion is reached in the search processing, a specific flag is set, and in the conclusion reaching determination processing, the flag is determined to determine whether or not a conclusion has been reached. When a conclusion is reached, the conclusion is highlighted by highlighting the column in which the conclusion base is displayed in the knowledge table expressed in a table format. Furthermore, prior to the process of highlighting a conclusion group, all columns arranged vertically under the conclusion group are highlighted.

以上の処理フローに従って、知識ベースシステムに投入
した知識の検証を行った場合の表示画面の変化を、第7
図および第6図にそれぞれ示すように表形式画面により
投入した知識の決定木に関して、検証を行う場合を例に
して例示すると、第3図、第4図、および第5図に示す
ような表示画面となる。
According to the above processing flow, the changes in the display screen when the knowledge input to the knowledge base system is verified are explained in the seventh section.
To illustrate the case where a decision tree of input knowledge is verified using a tabular screen as shown in Fig. 3 and Fig. 6, respectively, the display as shown in Fig. 3, Fig. 4, and Fig. 5 is shown. It becomes a screen.

第3図の表示画面の例は、例えば、最初に条件Aの値と
してa3が入手された直後に、この条件の値を判定して
、該当する表のカラムを強調表示した表示画面である。
The example of the display screen in FIG. 3 is a display screen in which, for example, immediately after a3 is first obtained as the value of condition A, the value of this condition is determined and the corresponding column of the table is highlighted.

ここでは、条件Aの欄の右側に横方向に並んだカラムの
うちa3の属性が指定されたカラム、すなわち結論5〜
結論8の下のカラムが強調表示される(ステップ22.
23)。
Here, among the columns arranged horizontally on the right side of the condition A column, the column in which the a3 attribute is specified, that is, the conclusion 5 to
The column under Conclusion 8 is highlighted (step 22.
23).

残りの4つのカラム、すなわち結論1〜結論4の下のカ
ラムは、条件の値が無指定の空欄でないため、強調表示
されることはない(ステップ24)。
The remaining four columns, that is, the columns below Conclusions 1 to 4, are not highlighted because the condition values are not unspecified blanks (step 24).

この状態でファンクションキーの押下待ちとなる。In this state, the system waits for the function key to be pressed.

操作者が、第3図の画面表示を確認した時点で、ファン
クションキーを押下すると、次の条件の入手が行われて
、同様な処理が行われる。この場合には、第6図の決定
木から明らかなように、探索に必要な次の条件は条件B
である。ここで、条件Bの値としてblが入手されると
、直ちに結論5が導かれる。このとき、条件Bの値のb
lが入手されると、条件Bの欄の右側に横方向に並んだ
カラムのうち、blの属性が指定されたカラム、すなわ
ち結論1および結論5の下のカラムが強調表示され、更
に、さらに残りの6つのカラムのうち空欄のカラム、す
なわち、結論4の下のカラムも強調表示されて、第4図
に示すような表示画面となる。
When the operator presses the function key after confirming the screen display shown in FIG. 3, the next condition is obtained and similar processing is performed. In this case, as is clear from the decision tree in Figure 6, the next condition necessary for the search is condition B.
It is. Here, when bl is obtained as the value of condition B, conclusion 5 is immediately drawn. At this time, b of the value of condition B
When l is obtained, among the columns arranged horizontally on the right side of the column for condition B, the columns in which the attribute of bl is specified, that is, the columns under conclusion 1 and conclusion 5, are highlighted, and furthermore, Among the remaining six columns, the blank column, that is, the column below conclusion 4, is also highlighted, resulting in a display screen as shown in FIG.

この状態において、決定木の探索では、既に結論5に達
しているので、次に、結論5の結論基が指定されたカラ
ムを強調表示する。この場合、決定木の探索で結論5が
得られるまでに、条件Cの値は入手されていないが、条
件Cに対する値に対応する空欄のカラムも強調表示され
る。これは、結論に到達すると、結論に含まれる全ての
表のカラムを強調表示する処理(ステップ27)により
実行される処理である。このようにして、結論に到達す
ると、第5図に示すような表示画面となる。
In this state, the decision tree search has already reached conclusion 5, so next, the column in which the conclusion base of conclusion 5 is specified is highlighted. In this case, by the time conclusion 5 is obtained by searching the decision tree, the blank column corresponding to the value for condition C is also highlighted, although the value for condition C has not been obtained. This is a process executed by highlighting all table columns included in the conclusion (step 27) when the conclusion is reached. In this way, when a conclusion is reached, a display screen as shown in FIG. 5 appears.

これにより、結論5の縦方向に並んだ全てのカラムの強
調表示を加えて、結論5に到達する条件の値のカラムお
よび結論基のカラムが強調表示される。
As a result, in addition to highlighting all the columns arranged in the vertical direction of conclusion 5, the column of the value of the condition that reaches conclusion 5 and the column of the conclusion base are highlighted.

以上、本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。
The present invention has been specifically explained above based on examples, but
It goes without saying that the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the spirit thereof.

〔発明の効果〕〔Effect of the invention〕

以上、説明したように、本発明の表形式知識デバッグ方
式によれば、表形式で投入した知識の検証を、投入した
表のイメージをそのまま用いて、決定木の探索過程を見
ながら行うことができるので、デバグの効率を大幅に向
上できる効果がある。
As explained above, according to the tabular knowledge debugging method of the present invention, it is possible to verify knowledge input in tabular format while observing the decision tree search process using the image of the input table as is. This has the effect of greatly improving debugging efficiency.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は、本発明の一実施例にかかる知識ベースシステ
ムの構成要部を示すブロック図、第2図は、表形式知識
デバッガによるデバッグ処理の処理フローの一例を示し
たフローチャート、第3図、第4図、および第5図は、
それぞれ表形式知識デバッガによるデバッグ処理の表示
画面の−例を示す図、 第6図は、第5図の知識表現の決定表から生成される決
定木の一例を示す図、 第7図は、表形式知識エディタによる知識入力画面の一
例を示す図である。 図中、1・・・知識ベースシステム、2・・・知識ベー
ス、3・・・表形式知識エディタ、4・・・表形式知識
デバッガ、5・・・推論機構。
FIG. 1 is a block diagram showing the main components of a knowledge base system according to an embodiment of the present invention, FIG. 2 is a flowchart showing an example of the processing flow of debugging by a tabular knowledge debugger, and FIG. , FIG. 4, and FIG.
Figure 6 shows an example of a display screen for debugging by a tabular knowledge debugger, Figure 6 shows an example of a decision tree generated from the knowledge representation decision table in Figure 5, and Figure 7 shows a table. It is a figure which shows an example of a knowledge input screen by a formal knowledge editor. In the figure, 1...Knowledge base system, 2...Knowledge base, 3...Tabular knowledge editor, 4...Tabular knowledge debugger, 5...Inference mechanism.

Claims (2)

【特許請求の範囲】[Claims] (1)条件および結論をそれぞれ行方向および列方向に
配置した表の形式の入力画面を用いて、表の交点のカラ
ムに条件の属性を指定し、条件の属性から結論に導く知
識データの決定木を生成する表形式知識エディタと、決
定木を格納する知識ベースと、決定木により推論を行う
推論機構とを有する知識ベースシステムにおいて、知識
ベースの決定木をたどり、1つの条件に対応する行方向
の全てのカラムのうち、入手した条件の値と一致する属
性が指定されたカラムを強調表示する第1の処理を行い
、特定のキー入力の指示によって順次に条件を替えて、
前記第1の処理を繰り返し行い、結論に達したときには
、当該結論を強調表示する第2の処理を行い、決定木を
探索する過程を表形式の入力画面により順次表示して、
知識データの検証を行うことを特徴とする表形式知識デ
バッグ方式。
(1) Using an input screen in the form of a table in which conditions and conclusions are arranged in rows and columns, specify the attributes of the conditions in the columns at the intersections of the table, and determine the knowledge data that will lead to the conclusion from the attributes of the conditions. In a knowledge base system that has a tabular knowledge editor that generates a tree, a knowledge base that stores decision trees, and an inference mechanism that makes inferences based on the decision tree, the decision tree of the knowledge base is traced and a row that corresponds to one condition is Out of all the columns in the direction, perform the first process of highlighting the column with the specified attribute that matches the value of the obtained condition, and then change the condition one by one according to the instructions of a specific key input.
The first process is repeatedly performed, and when a conclusion is reached, a second process is performed to highlight the conclusion, and the process of searching the decision tree is sequentially displayed on a tabular input screen,
A tabular knowledge debugging method characterized by verifying knowledge data.
(2)表の列方向に配置された条件の値を全て入手する
前に結論に達した場合には、当該結論の強調表示に先立
って、当該結論に対応する列に含まれる未入手の条件の
属性を指定するカラムを強調表示する第3の処理を含む
ことを特徴とする請求項1に記載の表形式知識デバッグ
方式。
(2) If a conclusion is reached before all the values of the conditions arranged in the column direction of the table are obtained, the unobtained conditions included in the column corresponding to the conclusion are highlighted before the conclusion is highlighted. 2. The tabular knowledge debugging method according to claim 1, further comprising a third process of highlighting a column specifying an attribute.
JP1254496A 1989-09-29 1989-09-29 Table form knowledge debugging system Pending JPH03116330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1254496A JPH03116330A (en) 1989-09-29 1989-09-29 Table form knowledge debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1254496A JPH03116330A (en) 1989-09-29 1989-09-29 Table form knowledge debugging system

Publications (1)

Publication Number Publication Date
JPH03116330A true JPH03116330A (en) 1991-05-17

Family

ID=17265862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1254496A Pending JPH03116330A (en) 1989-09-29 1989-09-29 Table form knowledge debugging system

Country Status (1)

Country Link
JP (1) JPH03116330A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996005555A1 (en) * 1994-08-09 1996-02-22 Komatsu Ltd. Cause inferring device
JP2013097594A (en) * 2011-11-01 2013-05-20 Bank Of Tokyo-Mitsubishi Ufj Ltd Inference device and inference method
JP2016029582A (en) * 2007-04-10 2016-03-03 アビニシオ テクノロジー エルエルシー Methods, computer programs and systems for editing and compiling business rules

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996005555A1 (en) * 1994-08-09 1996-02-22 Komatsu Ltd. Cause inferring device
AU680144B2 (en) * 1994-08-09 1997-07-17 Komatsu Limited Cause inferring device
US5950183A (en) * 1994-08-09 1999-09-07 Komatsu Ltd. Cause inferring device
JP2016029582A (en) * 2007-04-10 2016-03-03 アビニシオ テクノロジー エルエルシー Methods, computer programs and systems for editing and compiling business rules
JP2013097594A (en) * 2011-11-01 2013-05-20 Bank Of Tokyo-Mitsubishi Ufj Ltd Inference device and inference method
US8856059B2 (en) 2011-11-01 2014-10-07 The Bank of Tokyo—Mitsubishi UFJ, Ltd. Inference device and inference method

Similar Documents

Publication Publication Date Title
US5659790A (en) System and method for globally scheduling multimedia stories
US20110131253A1 (en) System and Method of Schema Matching
Pretorius et al. Visual analysis of multivariate state transition graphs
CN111078094B (en) Distributed machine learning visualization device
JP3625084B2 (en) Reuse system for software parts
JPH03116330A (en) Table form knowledge debugging system
US9727635B2 (en) Combined code searching and automatic code navigation
JPH07141186A (en) Method and device for displaying succeeding relation
JP2019200631A (en) Kpi tree generation support system and kpi tree generation support method
JPH06214768A (en) Program part generation method and automatic program generation method
JPH08179966A (en) Program test device
JP3646376B2 (en) Information management apparatus and information management method
JP2001337988A (en) Similar candidate narrowing system and similar candidate narrowing method
JPH0683884A (en) Parameter setting method in cad/cam device
JP2560608B2 (en) Micro program check system
JPH0378088A (en) Network system generation and display device
JPH01309146A (en) Process monitor device and production of network chart used for the same
JPS61202230A (en) Rule action monitor system
JPH05225280A (en) Analysis device for logical simulation result
JPH04148328A (en) State transition converter
JPH0215371A (en) Information retrieving device
CN114897153A (en) Dragging type PyTorch neural network model visualization system
JPH09128406A (en) Device and method for retrieving document
JPS6017549A (en) Data base retrieval device
JP2000003401A (en) Form preparation processing system