JPS6282427A - Editing system for knowledge data base in interrogation-responser - Google Patents

Editing system for knowledge data base in interrogation-responser

Info

Publication number
JPS6282427A
JPS6282427A JP22518985A JP22518985A JPS6282427A JP S6282427 A JPS6282427 A JP S6282427A JP 22518985 A JP22518985 A JP 22518985A JP 22518985 A JP22518985 A JP 22518985A JP S6282427 A JPS6282427 A JP S6282427A
Authority
JP
Japan
Prior art keywords
facts
rules
knowledge
information
storage part
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
JP22518985A
Other languages
Japanese (ja)
Inventor
Toshiyuki Tanaka
敏幸 田中
Shigeki Kuga
空閑 茂起
Nobuo Nakamura
信夫 中村
Taro Morishita
森下 太郎
Mikio Osaki
大崎 幹雄
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP22518985A priority Critical patent/JPS6282427A/en
Priority to EP86113730A priority patent/EP0218218A3/en
Priority to US06/915,021 priority patent/US4837689A/en
Publication of JPS6282427A publication Critical patent/JPS6282427A/en
Priority to US07/333,565 priority patent/US4931926A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To facilitate editing a knowledge data base by storing temporarily information related to knowledge such as facts and rules in a storage part where an operator can write freely information and transferring stored information from the storage part to the data base to store information there. CONSTITUTION:When the operator inputs rules or facts in case of editing of the knowledge data base, they are stored in a user storage part 4. It is discriminated by a CPU 3 whether these stored information contradict rules or facts in a systmem storage part 5 or not. If the discrimination results in correctness, a knowledge editer is started immediately and rules and facts in the user storage part 4 are transferred to the system storage part 5 and are stored there and the execution of the knowledge editer is stopped. If the discrimination results in uncorrectness,rules and facts stored temporarily in the user area 4 are erased and the control is returned to the start step to input again rules and facts of addition and deletion.

Description

【発明の詳細な説明】 く技術分野〉 本発明は事実、ルール等の情報を記憶する第1の記憶部
と、質問内容及びその回答内容を記憶する第2の記憶部
とから成る知識データベースを備えて、対話形式で情報
の処理を行う質問応答装置(エキスパートシステム)に
関し、特に知識データベースの編集(事実、ルールの追
加削除)方式%式% 従来、上記した質問応答装置としては各種予約システム
とか診断装置が提案されつつあるが、従来提案のこの種
の装置では知識データベースの知識の記憶領域として主
にシステムからの質問内容及びそれに対するオペレータ
の回答内容を一時的に記憶する短期記憶領域と、推論時
に用いる事実、ルールを記憶する長期記憶領域とがあシ
、これらの書き込み方法並びに参照方法は明確に区別さ
れている。
[Detailed Description of the Invention] Technical Field> The present invention provides a knowledge database consisting of a first storage section that stores information such as facts and rules, and a second storage section that stores questions and answers. Regarding question-answering devices (expert systems) that process information in an interactive manner, especially knowledge database editing (adding and deleting facts and rules) methods% type% Conventionally, the above-mentioned question-answering devices include various reservation systems, etc. Diagnostic devices are being proposed, but in conventionally proposed devices of this type, the knowledge storage area of the knowledge database is mainly a short-term storage area that temporarily stores the contents of questions from the system and the contents of the answers given by the operator. There is a long-term storage area for storing facts and rules used during inference, and methods for writing and referencing these are clearly distinguished.

すなわち、短期記憶領域はシステムが推論中にオペレー
タの答に応じて書き込まれ、オペレータが直接書き込む
事はできない。また推論中にその領域の事実のみが参照
される。一方長期記憶領域はオペレータが知識エディタ
(編集プログラム)を用いてルール、事実を岩き込むこ
とができ、寸だ推論中にそのルール、事実が参照される
ように成っている。
That is, the short-term memory area is written in response to the operator's answer while the system is inferring, and cannot be directly written by the operator. Also, only the facts of that domain are referenced during reasoning. On the other hand, in the long-term storage area, the operator can insert rules and facts using a knowledge editor (editing program), and these rules and facts can be referenced during inference.

従来、このように形成された知識データベースの編集、
すなわち新たな事実、ルールを追加I〜たり、或いは既
に在る事実、ルールからある事実、ルールを削除する場
合には第4図に示すような順序で行なわれる。
Traditionally, editing the knowledge database formed in this way,
That is, when adding a new fact or rule, or deleting a fact or rule from an existing fact or rule, the process is performed in the order shown in FIG.

すなわち、寸ず知識エディタ(編集プログラム)を起動
しくnl)、長期記憶領域に対して直接ルーノペ事実の
追加削除を行なう(n2)。そして、一応追加削除を終
えると、推論部すなわち推論プログラムを起動して(n
4)、追加あるいは削除1〜だルール、事実の検証つま
り追加あるいは削除したルール、事実について他の既に
記憶されているルール、事実と整合(マツチ)するか、
又は正しいかを判定しくn5.n6)、整合しておれば
推論部を終了する(n8)。一方、整合していなければ
ステップn7で一旦推論部を終了したのち、再びステッ
プn1に戻ってやり直すようになっている。
That is, the user starts the Tsuzu knowledge editor (editing program) (nl) and directly adds and deletes the Lounope facts from the long-term storage area (n2). Once the additions and deletions have been completed, the inference section, that is, the inference program is started (n
4) Add or delete 1-1 rules, verification of facts, i.e., whether the added or deleted rules match other already memorized rules and facts;
Or judge whether it is correct n5. n6), and if they match, the inference section ends (n8). On the other hand, if they do not match, the inference section is once terminated in step n7, and then the process returns to step n1 to start over.

このように、従来は知識データベースの編集にあたって
、検証の結果が正しくなければ今一度知識エディタの起
動終了、推論部の起動終了というように実行していかな
ければならないために、容易に知識データベースの編集
を行うことが出来なかった。
In this way, in the past, when editing a knowledge database, if the verification result was incorrect, the knowledge editor had to start and finish once again, the inference part started and finished, and so on, so it was easy to edit the knowledge database. I couldn't edit it.

〈目 的〉 本発明はこのような従来の問題点に鑑みて成されたもの
で、その目的とするところは、従来の如く直接知識エデ
ィタを用いて長期記憶領域に対してルール、事実の追加
削除を行なわず、一旦その情報をオペレータが自由に書
き込める記憶部に格納して検証し、正しければその情報
を知識データベースの前記長期記憶領域もしくはそれに
相当する領域に格納するようにして、知識データベース
の編集を容易に行なえるようにした質問応答装置におけ
る知識データベースの編集方式を捺供せんとするもので
ある。
<Purpose> The present invention has been made in view of such conventional problems, and its purpose is to add rules and facts to a long-term storage area using a direct knowledge editor as in the past. Rather than deleting the information, the operator stores the information in a storage area that can be written freely, verifies it, and if it is correct, stores the information in the long-term storage area of the knowledge database or an area equivalent to it. This paper aims to provide an editing method for a knowledge database in a question answering device that allows easy editing.

〈実施例〉 以下図にもとづいて本発明方式を詳細に説明す第1図は
本発明方式を採用した質問応答装置の概略構成図である
<Embodiment> The method of the present invention will be explained in detail based on the following figures. FIG. 1 is a schematic diagram of a question answering device employing the method of the present invention.

図において、II″iカナ文字列を入力するためのキー
ボード、2UCRT表示装置、3は中央演算処理装置、
4はオペレータが自由に書き込み可能なユーザ記憶部で
あり、ここにはシステムからの質問内容とそれに対する
オペレータの回答内容、並びに編集時の追加削除に関す
る事実、ルールが一時的((記憶される。5はシステム
記憶部であり、これは従来の長期記憶領域に対応し、同
様に知識エディタ(編集プログラム)(テよって記憶内
容の書き替えを行なえるもので、これらユーザ記憶部4
とシステム記憶部5とで所謂知識データベースを構成し
ている。
In the figure, II''i is a keyboard for inputting a kana character string, 2 is a UCRT display device, 3 is a central processing unit,
Reference numeral 4 denotes a user storage section that can be freely written by the operator, and here the contents of questions from the system and the contents of the operator's answers thereto, as well as facts and rules regarding additions and deletions during editing, are temporarily stored. Reference numeral 5 denotes a system storage unit, which corresponds to a conventional long-term storage area, and similarly includes a knowledge editor (editing program) (which allows rewriting of memory contents).
and the system storage unit 5 constitute a so-called knowledge database.

6はフロッピーディスク等の外部メモリであり、このメ
モリは主にシステム記憶部5の拡張用吉して使用される
。7はコマンド対応表メモリ、8はカナ漢字システム辞
書メモリ、9はパーザ(文章解析)用辞書メモリ、10
uパ一ザ用文法メモリである。
6 is an external memory such as a floppy disk, and this memory is mainly used for expanding the system storage section 5. 7 is a command correspondence table memory, 8 is a kana-kanji system dictionary memory, 9 is a parser (text analysis) dictionary memory, 10
This is a grammar memory for the u password.

なお、この実施例装置はたとえば日本語を用いて対話形
式で情報処理を行なえるタイプのものであり、ベタ入力
カナ漢字変換部、パーザ部(文章解析部)、質問応答部
から構成されていて、キーボード■でタイプしたベタ入
力のカナ列はカナ漢字変換部において辞書及びテーブル
8の使用によりカナ漢字混り文に変換され、さらにこの
変換過程で同時に各単語の区切り情報(ここで単語とは
、名詞、助詞、活用語尾といった形態素を指す)や品詞
情報の形態素情報が得られる。そして、パーザ部ではこ
の形態素情報を利用するとともにパーザ用文法規則メモ
IJ I Oとパーザ用辞書メモリ9を使用して各単語
の構文解析を行ない入力文の構文解析木を生成する。そ
してパーザ部1’j:得られた解析木から質問応答部が
利用可能な形式である単文化及び単文間の関係を生成す
るように構成されている。
The device of this embodiment is of a type that can perform information processing in an interactive manner using, for example, Japanese, and is composed of a solid input kana-kanji conversion section, a parser section (text analysis section), and a question answering section. , the solid input kana string typed on the keyboard ■ is converted into a kana-kanji mixed sentence in the kana-kanji conversion section using the dictionary and Table 8, and during this conversion process, the delimiter information of each word (here, what is a word? , refers to morphemes such as nouns, particles, and conjugated endings) and part-of-speech information can be obtained. Then, the parser section utilizes this morpheme information and parses each word using the parser grammar rule memo IJIO and the parser dictionary memory 9 to generate a parse tree of the input sentence. Parser section 1'j: is configured to generate monocultures and relationships between simple sentences in a format that can be used by the question answering section from the obtained parse tree.

第2図はこの装置における知識データベースの編集フロ
ーである。
FIG. 2 shows the knowledge database editing flow in this device.

図中、■の部分はユーザ記憶部4に書き込まれたルーノ
ペ事実の検証を行うフロー、■の部分はシステム記憶部
5に検証済の正しいルール、事実を書き込むフローを示
す。
In the figure, the part marked ■ shows the flow for verifying the Lounope facts written in the user storage unit 4, and the part marked ■ shows the flow for writing the verified correct rules and facts into the system storage unit 5.

この装置の特徴の1つは、スタート時に既に推論部が起
動可能状態にあって、必要時に直ちに推論できる状態に
あり、したがって、まずオペレータが知識データベース
の編集にあたって、ルールあるいは事実を入力すると、
それらはユーザ記憶部4の一部に貯蔵される(nl)。
One of the features of this device is that the inference section is already ready to start when it is started, and is ready to make inferences immediately when necessary. Therefore, when the operator first inputs rules or facts when editing the knowledge database,
They are stored in a part of the user storage unit 4 (nl).

次に貯蔵された情報についてシステム記憶部5のルール
、事実との間に矛盾がないか判断され(n2)、結果が
正しければ(n3)、直ちに知識エディタを起動して(
n4)、ユーザ記憶部4のルール、もしくは事実をシス
テム記憶部に転送して記憶したのち(n5)、知識エデ
ィタの実行を中止する(n6)。
Next, it is determined whether there is any contradiction between the stored information and the rules and facts in the system storage unit 5 (n2), and if the result is correct (n3), the knowledge editor is immediately started (
n4), after transferring the rules or facts in the user storage unit 4 to the system storage unit and storing them (n5), execution of the knowledge editor is stopped (n6).

一方、先のステップ03において、結果が正しくなけれ
ばユーザ領域4に一旦格納したルールもしくは事実を消
去したのちステップn1に戻ってやり直す。すなわち、
この例では検証の結果がおもわしくなくて、再度初めか
ら編集を行う場合でもいちいち知識エディタと推論部の
起動終了を行うことなく、先に入力したルール、事実を
単に消去して、新らたに追加削除のルール、事実を入力
するだけで足りる。
On the other hand, in step 03, if the result is incorrect, the rules or facts stored in the user area 4 are deleted, and the process returns to step n1 to start over. That is,
In this example, if the verification result is not interesting and you want to edit from the beginning again, you can simply delete the previously input rules and facts without restarting the knowledge editor and inference section, and then start a new one. All you have to do is enter the rules and facts for addition/deletion.

第3図は第2図の■の部分の詳細な処理フローであり、
この図にもとづいて今少し説明する。この例では、ユー
ザ記憶部4への書き込みか或いは推論部の起動かは入力
された文章によって判断されるようになっている。すな
わち、入力された文章が疑問文又は命令文の場合には推
論部を起動し、それ以外の場合はユーザ記憶部4に書き
込まれる。
Figure 3 shows the detailed processing flow of the part marked ■ in Figure 2.
Let me explain a little bit based on this figure. In this example, whether to write to the user storage unit 4 or to activate the inference unit is determined based on the input sentence. That is, if the input sentence is an interrogative sentence or an imperative sentence, the inference section is activated, and otherwise it is written into the user storage section 4.

今、知識データベースの編集のために、追加或いは削除
のルール、事実を入力してやると、そのデータはユーザ
記憶部4に一旦格納される(nl。
Now, when rules and facts for addition or deletion are input to edit the knowledge database, the data is temporarily stored in the user storage unit 4 (nl).

n2)。次にこのデータの検証のために、そのデータに
応じた疑問文又は命令文を入力してやるさ、ステップn
3に移行してユーザ記憶部4を参照して推論(検証のだ
めの推論)を行ない、その結果が成功ならば(n4)、
次にシステム記憶部5を参照して推論を行なう(n5)
。そして、その結果が成功ならば再度ユーザ記憶部4を
参照して推論を行なう(n6.n7)。
n2). Next, to verify this data, input a question or an imperative sentence according to the data, step n.
3, performs inference (inference without verification) by referring to the user storage unit 4, and if the result is successful (n4),
Next, perform inference with reference to the system storage unit 5 (n5)
. If the result is successful, the user storage section 4 is referred to again for inference (n6, n7).

ここで、上記ステップn7において再度ユーザ記憶部4
の参照による推論が行なわれるのは次の理由からである
。つまり推論中(n8.n5)に確定しない条件がある
とシステムはオペレータに質関し、オペレータからの回
答の入力を待つ状態吉なってステップn1が呼び出され
るが、ここで仮りに質問に対する回答以外の事実、ルー
ルが入力されると、それはユーザ記憶部4に書き込まれ
、それについての推論を再度ユーザ記憶部4を用いて行
なう必要があるためである。
Here, in the above step n7, the user storage unit 4
The reason why inference is made by reference is as follows. In other words, if there is an undetermined condition during inference (n8, n5), the system asks the operator a question, waits for an answer from the operator, and then calls step n1. In fact, when a rule is entered, it is written into the user memory 4 and reasoning about it has to be done again using the user memory 4.

このようにして、ユーザ記憶部4に、書き込まれた事実
、ルールについて、ユーザ記憶部4の内容とシステム記
憶部5の内容を参照しながら推論を進め、事実、ルール
に対する整合(マツチング)について検証が成され、以
後ステップn8.n9を経てステップn1に戻る。
In this way, inferences are made regarding the facts and rules written in the user storage unit 4 while referring to the contents of the user storage unit 4 and the contents of the system storage unit 5, and consistency (matching) with the facts and rules is verified. is completed, and thereafter step n8. The process returns to step n1 via n9.

この実施例では、入力文が事実、ルールであればオペレ
ータが自由に書き込めるユーザ記憶部4に一旦記憶され
、入力文が疑問文又は命令文であれば自動的に推論部が
起動されて、ユーザ記憶部4とシステム記憶部5を参照
しながら推論が進められ、これによってユーザ記憶部4
に一旦書き込まれた事実、ルールについての検証を行っ
たのち、正しければその事実、ルールをシステム記憶部
5へ格納する方式であり、特に編集に肖って知識エディ
タの起動終了を行なう必要がなく、又推論部の起動が自
動的に行なわれるので非常に簡単にシステム記憶部5の
事実、ルールを編集することが出来る。
In this embodiment, if the input sentence is a fact or a rule, it is temporarily stored in the user storage unit 4 where the operator can write freely, and if the input sentence is an interrogative sentence or an imperative sentence, the inference unit is automatically activated and the user Inference proceeds while referring to the storage unit 4 and the system storage unit 5, and thereby the user storage unit 4
After verifying the facts and rules written in the knowledge editor, if they are correct, the facts and rules are stored in the system storage unit 5, and there is no need to start and close the knowledge editor when editing. Also, since the inference section is automatically activated, facts and rules in the system storage section 5 can be edited very easily.

く効 果〉 以上詳細に説明したように、本発明に係る質問応答装置
における知識データベースの編集方式は、事実、ルール
に関する追加、削除等の編集情報を少なくともオペレー
タが自由に書き込める記憶部に一旦記憶し、その記憶部
の編集情報について検証を行ない、結果が正しければそ
の編集情報を前記知識データベース記憶部へ転送格納す
るようにしたから、きわめて容易に知識データベースの
編集を行なうことが出来る。
Effects> As explained in detail above, the editing method of the knowledge database in the question answering device according to the present invention temporarily stores editing information such as additions, deletions, etc. regarding facts and rules at least in the storage section where the operator can freely write. However, since the editing information in the storage section is verified and if the result is correct, the editing information is transferred and stored in the knowledge database storage section, the knowledge database can be edited very easily.

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

第1図は本発明方式を実施した質問応答装置の概略構成
図、第2図は知識データベースの編集フロー図、第3図
(d第2図の■の部分の詳細なフローを示す図、第4図
は従来方式を説明するだめの図である。 1 idキーボード、2はCRT表示装置、3id中央
演算処理装置、4けユーザ記憶部、5(d′システム記
憶部、6は外部メモリ 代理人 弁理士 福 士 愛 彦(他2名)第1図
Figure 1 is a schematic configuration diagram of a question answering device that implements the method of the present invention, Figure 2 is a knowledge database editing flow diagram, Figure 3 (d) is a diagram showing the detailed flow of the part marked ■ in Figure 2, Figure 4 is a diagram for explaining the conventional system. 1 ID keyboard, 2 CRT display device, 3 ID central processing unit, 4-digit user storage section, 5 (d' system storage section, 6 external memory agent) Patent attorney Aihiko Fukushi (and 2 others) Figure 1

Claims (1)

【特許請求の範囲】[Claims] 1、事実、ルール等の情報を記憶する第1の記憶部と、
質問内容及びその回答内容を記憶する第2の記憶部とか
ら成る知識データベースを備えて、対話形式で情報の処
理を行う質問応答装置に於て、事実、ルールに関する追
加、削除等の編集情報を少なくともオペレータが自由に
書き込める記憶部に一旦記憶し、その記憶部の編集情報
について検証を行ない、結果が正しければその編集情報
を前記知識データベース記憶部へ転送格納するようにし
て成ることを特徴とする質問応答装置における知識デー
タベースの編集方式。
1. A first storage unit that stores information such as facts and rules;
In a question answering device that processes information in an interactive manner, it is equipped with a knowledge database consisting of a second storage section that stores the contents of questions and the contents of their answers. It is characterized in that the information is temporarily stored in a storage section into which at least an operator can freely write, the editing information in the storage section is verified, and if the result is correct, the editing information is transferred and stored in the knowledge database storage section. A knowledge database editing method in a question answering device.
JP22518985A 1985-10-07 1985-10-07 Editing system for knowledge data base in interrogation-responser Pending JPS6282427A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP22518985A JPS6282427A (en) 1985-10-07 1985-10-07 Editing system for knowledge data base in interrogation-responser
EP86113730A EP0218218A3 (en) 1985-10-07 1986-10-03 An inputting system and an editing system in an inquiry-and-answer system
US06/915,021 US4837689A (en) 1985-10-07 1986-10-03 Inputting and editing system in a knowledge based inquiry and answer system
US07/333,565 US4931926A (en) 1985-10-07 1989-04-05 Inputting system and an editing system in an inquiry-and-answer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22518985A JPS6282427A (en) 1985-10-07 1985-10-07 Editing system for knowledge data base in interrogation-responser

Publications (1)

Publication Number Publication Date
JPS6282427A true JPS6282427A (en) 1987-04-15

Family

ID=16825357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22518985A Pending JPS6282427A (en) 1985-10-07 1985-10-07 Editing system for knowledge data base in interrogation-responser

Country Status (1)

Country Link
JP (1) JPS6282427A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6183369B1 (en) 1996-06-05 2001-02-06 Gkn Automotive Ag Sealing assembly for a cross member unit for universal joints
JP2005533322A (en) * 2002-07-18 2005-11-04 ロウ エヌ ビー カンパニー リミテッド Consultation system using communication network, content production method thereof, and recording medium storing program for performing the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6183369B1 (en) 1996-06-05 2001-02-06 Gkn Automotive Ag Sealing assembly for a cross member unit for universal joints
JP2005533322A (en) * 2002-07-18 2005-11-04 ロウ エヌ ビー カンパニー リミテッド Consultation system using communication network, content production method thereof, and recording medium storing program for performing the same

Similar Documents

Publication Publication Date Title
US4931926A (en) Inputting system and an editing system in an inquiry-and-answer system
Wilensky et al. Talking to UNIX in English: An overview of UC
US6292792B1 (en) System and method for dynamic knowledge generation and distribution
JP2007172657A (en) Method and system for identifying and analyzing commonly confused word with natural language parser
US8930296B2 (en) Method and system for programming virtual robots using a template
EP1247174A2 (en) Any-to-any component computing system
JPS61221873A (en) Question and answer system using natural language
JPS6282427A (en) Editing system for knowledge data base in interrogation-responser
Wilensky Talking to UNIX in English: an overview of an on-line UNIX consultant
Bennett et al. Exploration of non-seen diagrams
US8346560B2 (en) Dialog design apparatus and method
Nirenburg et al. Interlingua design for TRANSLATOR
US20230140480A1 (en) Utterance generation apparatus, utterance generation method, and program
JPH0557613B2 (en)
Danlos A French and English syntactic component for generation
Winiwarter et al. Applying language engineering techniques to the question support facilities in VIENA Classroom
Sheremetyeva Towards Designing Natural Language Interfaces
Winiwarter et al. Syntactic disambiguation by using categorial parsing in a DOOD framework
JP3357213B2 (en) Information processing device
JPS6050575A (en) Electronic grammer learning machine
Lesmo et al. A Deterministic Analyzer for the Interpretation of Natural Language Commands.
JPS61221874A (en) Data base converting system for natural language
JPS6050573A (en) Electronic grammer learning machine
JPH04217066A (en) Character processor
Simmons et al. Generating English Discourse from Semantic Networks.