JPH0743727B2 - Pattern matching processor - Google Patents

Pattern matching processor

Info

Publication number
JPH0743727B2
JPH0743727B2 JP2193982A JP19398290A JPH0743727B2 JP H0743727 B2 JPH0743727 B2 JP H0743727B2 JP 2193982 A JP2193982 A JP 2193982A JP 19398290 A JP19398290 A JP 19398290A JP H0743727 B2 JPH0743727 B2 JP H0743727B2
Authority
JP
Japan
Prior art keywords
concept
word
tree
pattern matching
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2193982A
Other languages
Japanese (ja)
Other versions
JPH0480873A (en
Inventor
和弘 椿
太朗 森下
智之 戸谷
茂起 空閑
Original Assignee
工業技術院長
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 工業技術院長 filed Critical 工業技術院長
Priority to JP2193982A priority Critical patent/JPH0743727B2/en
Publication of JPH0480873A publication Critical patent/JPH0480873A/en
Publication of JPH0743727B2 publication Critical patent/JPH0743727B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、概念木を利用してパターンマッチ処理を行う
パターンマッチ処理装置に関し、更に詳細には木構造に
表現された概念木のデータ変換と変換されたデータをパ
ターンマッチに利用するパターンマッチ処理装置に関す
るものである。
TECHNICAL FIELD The present invention relates to a pattern matching processing device for performing pattern matching processing using a concept tree, and more specifically, data conversion of a concept tree represented in a tree structure. The present invention relates to a pattern matching processing device that uses data converted to and for pattern matching.

本発明の利用分野としては、パターンマッチ処理を行う
エキスパートシステム、データベースシステム、プログ
ラム再利用システム(CASEツール)、検索システムなど
が挙げられる。
Examples of fields of use of the present invention include an expert system that performs pattern matching processing, a database system, a program reuse system (CASE tool), and a search system.

〈従来技術〉 現在、様々な分野でエキスパートシステムが実用化され
ているが、その処理は内部知識であるプロダクションル
ールの条件部と入力された問題のパターンマッチを行
い、成功したルールの結論部を実行するというメカニズ
ムを繰り返すものである。
<Prior art> Currently, expert systems have been put to practical use in various fields, but the process is to perform pattern matching of the input problem with the condition part of the production rule, which is internal knowledge, and to find the conclusion part of the successful rule. It repeats the mechanism of execution.

この方法ではパターンの完全マッチが要求されるため、
完全マッチに成功するもの以外は処理されず、柔軟な推
論が妨げられている。これはデータベースシステムなど
においても同様である。
This method requires an exact pattern match, so
Only the ones that succeed in a perfect match are processed, preventing flexible reasoning. This also applies to database systems and the like.

そこで概念木を用いたパターンマッチ方法が注目されて
いる。このパターンマッチ方法には種々の方法がある
が、基本的にはパターンマッチの対象となる2つの要素
(パターンマッチをする側をターゲット要素、パターン
マッチをされる側をベース要素と呼ぶ)の概念木上での
キーが同一の概念木上にあるかどうかを調べてパターン
マッチの成功/失敗を判定する。もしベース要素が複数
個存在すれば、概念木での距離の小さいベース要素をタ
ーゲット要素のパターンマッチの適切なものとする。
Therefore, the pattern matching method using the concept tree is drawing attention. There are various methods for this pattern matching method, but basically the concept of two elements that are the subject of pattern matching (the side that performs pattern matching is called the target element and the side that is pattern matched is called the base element). The success / failure of pattern matching is determined by checking whether or not the keys on the tree are on the same concept tree. If there is more than one base element, the base element with the smaller distance in the concept tree is set as the appropriate pattern match for the target element.

〈発明が解決しようとする課題〉 上述の概念木を用いたパターンマッチ方法ではパターン
マッチの範囲が同一の概念木まで広げられることにな
り、パターンマッチの成功するベース要素の数が非常に
増える。
<Problems to be Solved by the Invention> In the pattern matching method using the concept tree described above, the range of pattern matching is expanded to the same concept tree, and the number of base elements for which pattern matching succeeds greatly increases.

即ち、パターンマッチの成功するベース要素とターゲッ
ト要素の組みがたくさんでき、それらの中に競合するも
のが多数発生する。このため概念木上の距離が近いもの
を適切な組とすることが行われることになるが、パター
ンマッチの成功する組の数が膨大になり、パターンマッ
チの成功/失敗の判定、及び概念木での距離の計算に膨
大な時間がかかっていた。
That is, there are many combinations of base elements and target elements for which pattern matching succeeds, and many of them compete with each other. For this reason, the ones with a short distance on the concept tree will be set as an appropriate set, but the number of sets for which pattern matching succeeds will be huge, and the success / failure of pattern matching will be determined, and the concept tree It took an enormous amount of time to calculate the distance.

この問題点に鑑み、本発明の目的は、概念木をあらかじ
めパターンマッチに適したデータへ変換し、その変換し
たデータを利用してパターンマッチの成功/失敗の判定
と距離の計算を行う機能を持ったパターンマッチ処理装
置を提供することにある。
In view of this problem, an object of the present invention is to convert a concept tree into data suitable for pattern matching in advance, and to use the converted data to determine the success / failure of pattern matching and calculate the distance. The purpose is to provide a pattern matching processing device.

〈課題を解決するための手段〉 概念単語からなる概念木を入力する手段と、 前記入力された概念木を、該概念木の各末端概念語毎に
該末端概念語から前記概念木の根の単語までに存在する
中間概念語と前記末端概念語と前記概念木の根の単語と
の概念距離とを記述したデータに変換する変換手段と、 前記末端概念語のパターンマッチを行うときに、前記変
換手段によるデータを参照して各末端概念語の前記中間
概念語の上位から順に照合を行って最下位共通概念を得
ると共に、前記中間概念語の一致回数と前記各末端概念
語と概念木の根の単語との概念木距離とに基づいて、各
末端概念語と最下位共通概念語との距離および、各末端
概念語間の照合距離を得るパターンマッチ手段と、を備
えている。
<Means for Solving the Problem> Means for inputting a concept tree consisting of concept words, and the input concept tree from the terminal concept word to the root word of the concept tree for each terminal concept word of the concept tree A conversion means for converting an intermediate concept word existing in the above and the concept distance between the terminal concept word and the word of the root of the concept tree into data, and when performing pattern matching of the terminal concept word, the data by the conversion means. While obtaining the lowest common concept by performing matching from the higher order of the intermediate concept word of each terminal concept word with reference to, the number of matches of the intermediate concept word and the concept of each terminal concept word and the root word of the concept tree Pattern matching means for obtaining the distance between each terminal concept word and the lowest common concept word and the matching distance between each terminal concept word based on the tree distance.

〈作用〉 本発明によれば、概念木が入力されると、これを概念木
の末端概念語毎に、末端概念語と、該末端概念語から概
念木の根の単語までに存在する中間概念語と、末端概念
語と概念語の根の単語との概念木距離とを記述したデー
タに変換する。
<Operation> According to the present invention, when the concept tree is input, the concept tree is input for each terminal concept word of the concept tree, and the intermediate concept word existing from the terminal concept word to the root word of the concept tree. , The concept tree distance between the terminal conceptual word and the root word of the conceptual word is converted into data describing.

そして、末端概念語のパターンマッチを行う時は、上記
変換されたデータに基づいてパターンマッチを行う。
Then, when performing the pattern matching of the terminal concept words, the pattern matching is performed based on the converted data.

即ち、各末端概念語の上位中間概念語から順に照合して
最下位共通概念を得ると共に、中間概念語の一致回数と
各末端概念語の概念木距離とにより、各末端概念語と最
下位共通概念との距離および、各末端概念語間の照合距
離を得る。
That is, the lowest common concept is obtained by sequentially collating the higher intermediate concept words of each terminal concept word, and the lowest common concept is obtained by the number of matching intermediate concept words and the concept tree distance of each terminal concept word. The distance to the concept and the matching distance between each terminal concept word are obtained.

〈実施例〉 以下、図面に基づいて本発明を詳細に説明する。<Example> Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は本発明にかかるパターンマッチ処理装置のブロ
ック構成図である。
FIG. 1 is a block diagram of a pattern matching processing device according to the present invention.

第1図において、1は概念木や問題を入力する入力手
段、2はパターンマッチの結果をファイルや他のシステ
ムなどへ出力する出力手段、3は概念木を利用したパタ
ーンマッチをおこなうパターンマッチ手段、4はパター
ンマッチ結果を使用者のためにディスプレイに表示する
表示手段、5が概念木を各手段に適した形に変換する変
換手段、6は概念木を管理する知識管理部、7は以上述
べた各手段を制御する制御手段である。
In FIG. 1, 1 is input means for inputting a concept tree or a problem, 2 is output means for outputting the result of pattern matching to a file or another system, and 3 is pattern matching means for performing pattern matching using the concept tree. Reference numeral 4 is a display unit for displaying the pattern matching result on the display for the user, 5 is a conversion unit for converting the concept tree into a form suitable for each unit, 6 is a knowledge management unit for managing the concept tree, and 7 is the above. It is a control means for controlling each of the means described above.

第2図は本発明にかかる機能ブロックの概念図である。FIG. 2 is a conceptual diagram of functional blocks according to the present invention.

第2図において、8は使用者との対話により問題を取り
込むモジュールである。9は概念木を使用者から獲得す
るための編集モジュール、11は獲得された概念木を知識
管理モジュール用のデータ表現に変換したり、パターン
マッチモジュール用のデータ表現に変換する変換モジュ
ールである。10は概念木を管理する知識管理モジュー
ル、12は入力された問題を概念木を利用してパターンマ
ッチを行うパターンマッチモジュールである。
In FIG. 2, reference numeral 8 is a module for taking in a problem by dialogue with the user. Reference numeral 9 is an editing module for acquiring a concept tree from a user, and 11 is a conversion module for converting the acquired concept tree into a data expression for a knowledge management module or a data expression for a pattern matching module. Reference numeral 10 is a knowledge management module that manages a concept tree, and 12 is a pattern matching module that performs pattern matching on the input problem using the concept tree.

編集モジュール9から説明を行う。The editing module 9 will be described.

第3図はVE(価値工学)で用いられる機能用語を基に作
成した概念木の一部である。概念木は編集モジュール9
に含まれるグラフィックインタフェースなどにより使用
者の希望する形式、例えば、図のような木構造のままで
入力を行う。概念木において木の根は、“変化”であ
り、末端は“分割”、“変形”などの単語である。末端
の単語がパターンマッチの際のキーとして使用される。
Figure 3 is a part of the concept tree created based on the functional terms used in VE (Value Engineering). The concept tree is an editing module 9
Input is performed in the format desired by the user, for example, in the tree structure as shown in the figure, using the graphic interface included in. In the concept tree, the root of the tree is “change” and the end is a word such as “split” or “transform”. The last word is used as a key for pattern matching.

変換モジュール11では入力された概念木を以下のような
データ構造(以後、編集データと呼ぶ)に変換される。
The conversion module 11 converts the input concept tree into the following data structure (hereinafter referred to as edit data).

[(root,[変化])、(変化、[形状変化、状態変
化、内容変化])、(形状変化、[分割、変形])、
(状態変化、[変身、変動])、(変動[保持、変
移])、(保持、[一時記憶、蓄える、示す])、(内
容変化、[内容変換、消去])、(内容変換、[演算、
変える])]。
[(Root, [change]), (change, [shape change, state change, content change]), (shape change, [divide, transform]),
(State change, [transformation, variation]), (variation [hold, transition]), (hold, [temporary storage, store, indicate]), (content change, [content conversion, deletion]), (content conversion, [ Calculation,
Change])].

これは、知識管理モジュール10が管理するデータ表現で
ある。このデータ構造は概念木を親と子のリストのペア
で表現するものであり、親は要素が一個、子は要素のリ
ストで表現される。即ち、(<親>,[<子1>,<子
2>・・・])の形式で表現される。<>は一つの単語
を表現している。上記データ構造を具体的に説明する
と、概念木の根は“変化”だけであり、“変化”の子は
“形状変化”、“状態変化”、“内容変化”であること
を示している。ここでは根が一つであるが、複数個指定
可能である。
This is a data representation managed by the knowledge management module 10. This data structure expresses a concept tree as a pair of a parent and a child list. The parent is represented by one element, and the child is represented by a list of elements. That is, it is expressed in the format of (<parent>, [<child 1>, <child 2> ...]). <> Represents one word. Explaining the data structure concretely, the root of the concept tree is only "change", and the children of "change" are "shape change", "state change", and "content change". Although there is only one root here, multiple roots can be specified.

次に、この変換された概念木はパターンマッチモジュー
ル12において使用される場合には、第1表のデータ構造
へ変換される。
The transformed concept tree is then transformed into the data structure of Table 1 when used in the pattern matching module 12.

第1要素 第2要素 第3要素 (一時記憶、4、 [変化、状態変化、変動、保持]) (蓄える、 4、 [変化、状態変化、変動、保持]) 第1表 上記データ構造は概念木上の“一時記憶”と“蓄える”
という要素の変換データ(以後、コンパイルデータと呼
ぶ)を表現している。各データにおいて、第一要素(一
時記憶、蓄える)は概念木の末端の概念名で、実際のパ
ターンマッチの対象となるものであり、第二要素(4、
4)は末端の概念名と概念木の根の距離を自然数で表現
するものであり、概念木距離と呼ぶ。つまり、この値は
後で述べる第三要素の要素の個数(要素数)と同値とな
る。第三要素(変化、状態変化、・・・)は根と末端概
念の間に含まれる概念をリストで表現したものであり、
中間概念リストと呼ぶ。
1st element 2nd element 3rd element (temporary storage, 4, [change, state change, change, hold]) (store, 4, [change, state change, change, hold]) Table 1 The above data structure is a concept “Temporary memory” and “store” on trees
The converted data of the element (hereinafter referred to as compiled data) is expressed. In each data, the first element (temporary storage, storage) is the concept name at the end of the concept tree, which is the target of actual pattern matching, and the second element (4,
4) expresses the distance between the end concept name and the root of the concept tree by a natural number, and is called a concept tree distance. That is, this value is the same as the number of elements (the number of elements) of the third element described later. The third element (change, state change, ...) Is a list of concepts contained between the root and end concepts,
It is called an intermediate concept list.

変換モジュール11では逆に上記コンパイルデータを上記
編集データへ変換したり、上記編集データを編集モジュ
ール用のデータへ変換することも行う。このように変換
モジュール11では各モジュール間のデータの変換を行
う。
On the contrary, the conversion module 11 also converts the compile data into the edit data, or converts the edit data into data for the edit module. In this way, the conversion module 11 converts data between the modules.

知識管理モジュール10は上述したように概念木が変換さ
れた編集データを管理する。管理内容としてはファイル
への出力やファイルからの読み込みがある。
The knowledge management module 10 manages the edited data in which the concept tree is converted as described above. Management contents include output to a file and reading from a file.

対話/推論モジュール8では問題の作成を行う。問題の
作成は比較の対象となる2つの集合から比較対象の要素
のペア(以後、要素ペアと呼ぶ)を作る。次にペアの各
要素について、要素と概念木上でのキーに関する知識
(対話/推論モジュールが管理している)を利用して概
念木に登録されているキー(単語、概念木の末端)を取
り出して、そのペア(以後、登録単語ペアと呼ぶ)を作
ることになる。
The dialogue / reasoning module 8 creates a question. To create a problem, a pair of elements to be compared (hereinafter referred to as an element pair) is created from two sets to be compared. Next, for each element of the pair, use the knowledge of the element and the key on the concept tree (managed by the dialogue / reasoning module) to find the key (word, end of the concept tree) registered in the concept tree. It will be taken out and the pair (hereinafter referred to as a registered word pair) will be created.

例えば、オフィスの構成要素の集合A(保管庫、ミーテ
ィングルーム、書籍、部長席、OA機器、課など)とマイ
クロプロセッサの構成要素の集合B(レジスタ、ALU、
バスインターフェース、プログラムカウンター、命令デ
コーダ、制御タイミング発生部、IRなど)から、(保管
庫、レジスタ)や(保管庫、ALU)等のような要素ペア
を作り、更に登録単語ペアを保管庫やレジスタと概念木
上のキーに関する知識から作り出す。
For example, a set A of office components (a storage, a meeting room, a book, a manager's seat, OA equipment, a section, etc.) and a set B of components of a microprocessor (register, ALU,
From the bus interface, program counter, instruction decoder, control timing generator, IR, etc.), create element pairs such as (storage, register) and (storage, ALU), and store registered word pairs in storage or registers. It is created from knowledge about keys on the conceptual tree.

例えば、要素ペア(保管庫、レジスタ)の場合には(蓄
える、一時記憶)という登録単語ペアを作る訳である。
For example, in the case of an element pair (storage, register), a registered word pair called (store, temporary storage) is created.

推論モジュール8はこのような処理を行って、作られた
登録単語ペアの集合をパターンマッチモジュール12へ送
る。
The inference module 8 performs such processing and sends the created set of registered word pairs to the pattern matching module 12.

パターンマッチモジュールでは各ペアの照合の成功/失
敗の検査、照合の成功する概念名(以後、最下位概念名
と呼ぶ)の獲得、末端概念語と最下位共通概念との距離
(最下位共通概念と各登録単語がどのくらいの距離で概
念木上で離れているか)および、概念木上での照合距離
(登録単語ペアの2つのキーがどのくらいの距離で概念
木上で離れているか)の計算を行い、推論モジュール8
へこれらのデータを返すことになる。推論モジュール8
がなければ、使用者との対話によりこれらの処理を行う
ことになる。
In the pattern matching module, the success / failure of the matching of each pair is checked, the concept name for which the matching is successful (hereinafter referred to as the lowest concept name) is acquired, the distance between the terminal concept word and the lowest common concept (the lowest common concept). And how far each registered word is on the concept tree) and the matching distance on the concept tree (how far the two keys of the registered word pair are on the concept tree). Do and reasoning module 8
These data will be returned to. Inference module 8
If not, these processes will be performed by the interaction with the user.

パターンマッチモジュール12では送られて来た登録単語
ペアの集合を上記コンパイルデータを利用して照合を行
う。その処理アルゴリズムを第4図に示す。
In the pattern matching module 12, the set of registered word pairs sent is compared using the above-mentioned compiled data. The processing algorithm is shown in FIG.

このアルゴリズムは登録単語ペア一つごとに適用され
る。このアルゴリズムを要素ペア(保管庫、レジスタ)
の登録単語ペアである(蓄える、一時記憶)のパターン
マッチの例にしたがって説明する。
This algorithm is applied for each registered word pair. This algorithm is a pair of elements (storage, register)
An example of pattern matching of (stored, temporary storage) which is a registered word pair of will be described.

まず、ステップ16で登録単語ペアの各々のコンパイルデ
ータの選択が行われる。例えば、(蓄える、一時記憶)
のペアに対しては概念木のすべてのコンパイルデータの
中から第1表のコンパイルデータを選択してくる訳であ
る。
First, in step 16, the compilation data of each registered word pair is selected. For example, (store, temporary memory)
For the pair, the compile data in Table 1 is selected from all the compile data of the concept tree.

次に、ステップ17で選択された2つのコンパイルデータ
の比較を概念木の根から照合していくことになる。例で
は“蓄える”の“変化”と“一時記憶”の“変化”の照
合が行われる。この場合には“蓄える”の“状態変化”
と“一時記憶”の“状態変化”の照合が行われ、成功す
る。そしてこのステップ19の処理が照合に失敗するか、
照合する中間概念が無くなる(ステップ21の処理がnoに
なる)まで繰り返される。照合が失敗するとステップ20
の処理に移り、最下位概念名の獲得と概念木上での照合
距離の計算が行われる。最下位概念名の獲得はステップ
19の処理の失敗する前のステップ19の処理において照合
に成功した概念名になる。獲得した最下位共通概念と各
末端概念語との距離は、コンパイルデータの第二要素で
ある概念木距離からステップ19の処理が成功した回数を
引いたものとなる。概念木上での照合距離はこれらの最
下位共通概念と各末端概念語との距離の和となる。照合
する概念が無くなると、ステップ20と同様の処理がステ
ップ22により行われる。
Next, the comparison of the two compile data selected in step 17 is collated from the root of the concept tree. In the example, “change” of “store” and “change” of “temporary storage” are collated. In this case, "restore""statechange"
And “temporary memory” “state change” are collated and succeed. And if the processing in step 19 fails in matching,
The process is repeated until there is no intermediate concept to match (the process of step 21 becomes no). Step 20 if verification fails
Then, the lowest concept name is acquired and the matching distance on the concept tree is calculated. Obtaining the lowest concept name is a step
The concept name has been successfully collated in the process of step 19 before the process of 19 fails. The distance between the acquired lowest common concept and each terminal concept word is the concept tree distance, which is the second element of the compiled data, minus the number of times the processing in step 19 was successful. The matching distance on the concept tree is the sum of the distances between these lowest common concepts and each terminal concept word. When the concept of collation disappears, the same process as step 20 is performed by step 22.

そして、ステップ23とステップ24では照合が成功したこ
とを示すフラグがつけられる。
Then, in step 23 and step 24, a flag indicating that the matching is successful is added.

この例では照合に失敗することはなく、照合する概念が
無くなることにより、ステップ22の処理が行われて、最
下位概念名“保持”が得られる。また、最下位共通概念
語“保持”と末端概念語“一時記憶”との距離は、コン
パイルデータの第二要素である“4"から照合回数“3"を
引いた“1"となる。同様に最下位共通概念語“保持”と
末端概念語“蓄える”との距離も“1"となり、概念木上
での照合距離はこれらの和である“2"となる。
In this example, the collation does not fail and the concept to be collated disappears, so that the process of step 22 is performed and the lowest concept name “hold” is obtained. Further, the distance between the lowest common concept word “hold” and the end concept word “temporary storage” is “1” which is obtained by subtracting the collation count “3” from “4” which is the second element of the compiled data. Similarly, the distance between the lowest common concept word “hold” and the end concept word “store” is also “1”, and the matching distance on the concept tree is the sum “2”.

各登録単語ペアすべてについての処理が終了すると、対
話/推論モジュール8にデータが返されて、使用者への
パターンマッチの結果の表示が行われたり、また推論モ
ジュール用のデータとして使用されたりする。
When the processing for each registered word pair is completed, the data is returned to the dialogue / inference module 8 and the result of the pattern matching is displayed to the user or used as the data for the inference module. .

このように、概念木を根の単語から調べることによりパ
ターンマッチ成功/失敗の処理を高速に行うことができ
る。即ち、概念木上でのパターンマッチの失敗は中間概
念の最初の一個を調べるだけですむこととなる。また照
合距離についても照合の成功した回数を管理しておくだ
けで簡単に計算することが可能である。
In this way, pattern matching success / failure processing can be performed at high speed by examining the concept tree from the root word. That is, the failure of the pattern matching on the concept tree only needs to examine the first one of the intermediate concepts. Further, the matching distance can be easily calculated only by managing the number of successful matchings.

〈発明の効果〉 本発明によれば、パターンマッチに利用する概念木を予
めパターンマッチに適したデータへ変換することによっ
て処理速度の高速化を図ることができる。これは概念木
が大きければ大きい程、その効果は大きい。
<Effects of the Invention> According to the present invention, the processing speed can be increased by previously converting the concept tree used for pattern matching into data suitable for pattern matching. The larger the concept tree, the greater the effect.

また、即座に中間概念語の一致回数と各末端概念語の概
念木距離とに基づいて、各末端概念語と最下位共通概念
との距離および、各末端概念語間の照合距離を得ること
が可能である。この計算にかかるコストは概念木の末端
から照合距離を計算するのに比べてかなり小さく、複数
マッチする場合に、概念木上での距離が一番近いものを
適切な組みとして判断する場合に有用である。
Further, it is possible to immediately obtain the distance between each terminal concept word and the lowest common concept and the matching distance between each terminal concept word based on the number of matches of the intermediate concept words and the concept tree distance of each terminal concept word. It is possible. The cost of this calculation is much smaller than that of calculating the matching distance from the end of the concept tree, and when multiple matches are found, it is useful when the one with the closest distance on the concept tree is determined as an appropriate set. Is.

更に、パターンマッチ成功の際に照合の成功する最下位
概念を同時に獲得することができる。
Furthermore, when the pattern matching is successful, the lowest-ranked concept that succeeds in matching can be acquired at the same time.

又、使用者が概念木を編集(入力)する際には編集のや
り易い形で行うことができるため、利用し易い点も効果
の一つに挙げられる。
In addition, when the user edits (inputs) the concept tree, the concept tree can be edited in a form that is easy to edit.

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

第1図は本発明装置のブロック構成図、第2図は機能ブ
ロックの概念図、第3図は概念木の例、第4図はパター
ンマッチアルゴリズムである。 1……入力手段、2……出力手段、3……パターンマッ
チ手段、4……表示手段、5……変換手段、6……知識
管理部、7……制御手段、8……対話/推論モジュー
ル、9……編集モジュール、10……変換モジュール、11
……知識管理モジュール、12……パターンマッチモジュ
ール。
FIG. 1 is a block diagram of the device of the present invention, FIG. 2 is a conceptual diagram of functional blocks, FIG. 3 is an example of a conceptual tree, and FIG. 4 is a pattern matching algorithm. 1 ... Input means, 2 ... Output means, 3 ... Pattern matching means, 4 ... Display means, 5 ... Conversion means, 6 ... Knowledge management section, 7 ... Control means, 8 ... Dialogue / reasoning Module, 9 ... Editing module, 10 ... Conversion module, 11
…… Knowledge management module, 12 …… Pattern match module.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭63−282837(JP,A) 特開 昭62−194533(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-63-282837 (JP, A) JP-A-62-194533 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】概念単語からなる概念木を入力する手段
と、 前記入力された概念木を、該概念木の各末端概念語毎に
該末端概念語から前記概念木の根の単語までに存在する
中間概念語と前記末端概念語と前記概念木の根の単語と
の概念距離とを記述したデータに変換する変換手段と、 前記末端概念語のパターンマッチを行うときに、前記変
換手段によるデータを参照して各末端概念語の前記中間
概念語の上位から順に照合を行って最下位共通概念を得
ると共に、前記中間概念語の一致回数と前記各末端概念
語と概念木の根の単語との概念木距離とに基づいて、各
末端概念語と最下位共通概念語との距離および、各末端
概念語間の照合距離を得るパターンマッチ手段と、を備
えたパターンマッチ処理装置。
1. A means for inputting a concept tree made up of concept words, and an intermediate part of the input concept tree existing from the terminal concept word to the root word of the concept tree for each terminal concept word of the concept tree. A conversion unit that converts the concept word, the terminal concept word, and the concept distance between the root word of the concept tree into data describing the concept word, and when performing pattern matching of the terminal concept word, refer to the data by the conversion unit. While obtaining the lowest common concept by performing matching from the higher order of the intermediate concept words of each terminal concept word, the number of matches of the intermediate concept word and the concept tree distance between each terminal concept word and the root word of the concept tree. A pattern matching processing device comprising: a pattern matching means for obtaining a distance between each terminal conceptual word and the lowest common conceptual word and a matching distance between each terminal conceptual word based on the above.
JP2193982A 1990-07-24 1990-07-24 Pattern matching processor Expired - Lifetime JPH0743727B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2193982A JPH0743727B2 (en) 1990-07-24 1990-07-24 Pattern matching processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2193982A JPH0743727B2 (en) 1990-07-24 1990-07-24 Pattern matching processor

Publications (2)

Publication Number Publication Date
JPH0480873A JPH0480873A (en) 1992-03-13
JPH0743727B2 true JPH0743727B2 (en) 1995-05-15

Family

ID=16317008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2193982A Expired - Lifetime JPH0743727B2 (en) 1990-07-24 1990-07-24 Pattern matching processor

Country Status (1)

Country Link
JP (1) JPH0743727B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62194533A (en) * 1986-02-21 1987-08-27 Hitachi Ltd Pattern matching system for tree structure data
JP2695783B2 (en) * 1987-05-15 1998-01-14 株式会社日立製作所 Concept search method

Also Published As

Publication number Publication date
JPH0480873A (en) 1992-03-13

Similar Documents

Publication Publication Date Title
Geoffrion Computer-based modeling environments
US4680705A (en) Automatic data restructurer
CN112256584A (en) Internet number making method and system
CN111309852A (en) Method, system, apparatus and storage medium for generating a visual decision tree (set) model
JPH0743727B2 (en) Pattern matching processor
JP2596260B2 (en) Correspondence table use database search device
Fuchß et al. Three selected case studies in verification
JPH0194431A (en) Software parts synthesizer
JP5275087B2 (en) Program generating apparatus and block diagram generating apparatus
Denzinger et al. Analysis and representation of equational proofs generated by a distributed completion based proof system
JPH04153832A (en) Automatic construction processing system for design assisting tool
JP3463277B2 (en) Information retrieval apparatus and information retrieval method
Seibert Towards dialogue based, computer aided software requirements elicitation
CN112906402B (en) Music response data generation method, device, equipment and storage medium
JPH0778681B2 (en) Man-machine interface of plant
JP2551944B2 (en) Graphical language processing system
JPH02259873A (en) Method for synthesizing table processing program
JP2723072B2 (en) Database structure conversion method and apparatus
Tairas et al. Coclorep: A dsl for code clones
CN114840555A (en) Script optimization method, device, equipment and storage medium
CN118260406A (en) Text retrieval enhancement generation method and system with enhanced diversity
JPH06119156A (en) Automatic program generating method
JP2000181694A (en) Method and device for retrieving control program design example
JPS6247743A (en) Processing system for formation of data block flow diagram
CN116303538A (en) Training method of calculation engine selection model, calculation engine selection method and device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term