JPH0583950B2 - - Google Patents

Info

Publication number
JPH0583950B2
JPH0583950B2 JP62305377A JP30537787A JPH0583950B2 JP H0583950 B2 JPH0583950 B2 JP H0583950B2 JP 62305377 A JP62305377 A JP 62305377A JP 30537787 A JP30537787 A JP 30537787A JP H0583950 B2 JPH0583950 B2 JP H0583950B2
Authority
JP
Japan
Prior art keywords
node
word
words
semantic
nodes
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
JP62305377A
Other languages
Japanese (ja)
Other versions
JPH01145722A (en
Inventor
Takashi Onoyama
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP87305377A priority Critical patent/JPH01145722A/en
Publication of JPH01145722A publication Critical patent/JPH01145722A/en
Publication of JPH0583950B2 publication Critical patent/JPH0583950B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、単語間意味関係判定方式に関し、特
に、単語間の意味関係を木構造データとして表現
し、単語間の意味の包含関係の意味解析を行う自
然言語データの意味解析を行う自然言語処理シス
テムにおいて、高速に単語間の意味の包含関係を
判定する単語間意味関係判定方式に関するもので
ある。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for determining semantic relationships between words, and in particular, expresses the semantic relationships between words as tree-structured data, and determines the meaning of the inclusion relationship between words. The present invention relates to an inter-word semantic relationship determination method for quickly determining the semantic inclusion relationship between words in a natural language processing system that performs semantic analysis of natural language data to be analyzed.

〔従来の技術〕[Conventional technology]

機械翻訳などの自然言語処理システムにおいて
は、構文を解析して、各単語間の意味的結合、構
文の意味等を表現するため、木構造データを生成
する。この木構造データは、各ノードに単語を対
応づけ、各ノードをリンクして、各ノードの結合
関係により、各単語の間の意味関係を表現してい
るものである。次の段階の単語間の意味関係の意
味解析の処理では、木構造データを探索して、単
語間の意味関係を判定する。木構造データを解析
するための探索法としては、横型探索法、縦型探
索法、深さ優先探索法などの探索法がある。ま
た、木構造データの解析処理としては、木の上位
ノードの情報を下位のノードに付加する方法など
がある。しかし、いずれの処理においても、木構
造データの解析処理では、各ノードを順次に探索
するため、木のノード数に比例して、多くの処理
時間を要するものとなつている。
In natural language processing systems such as machine translation, tree-structured data is generated in order to analyze syntax and express the semantic connections between words, the meaning of the syntax, etc. This tree structure data associates a word with each node, links each node, and expresses the semantic relationship between each word by the connection relationship of each node. In the next stage of semantic analysis of the semantic relationships between words, the tree structure data is searched to determine the semantic relationships between words. Search methods for analyzing tree-structured data include horizontal search methods, vertical search methods, and depth-first search methods. Further, as an analysis process for tree structure data, there is a method of adding information of upper nodes of the tree to lower nodes. However, in either process, each node is sequentially searched in the tree structure data analysis process, which requires a large amount of processing time in proportion to the number of nodes in the tree.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで、自然言語処理システムにおいて、単
語間の意味関係を木構造データとして表現した自
然言語データの意味解析を行う場合、木構造デー
タを解析して、その意味関係を判定することにな
るが、この木構造データの解析処理では、木構造
データのノードを順次に探索して、各ノードのデ
ータを解析する。この処理は、ノードに対応する
メモリのセルのポインタをたどつて、順次に次の
ノードに対応するメモリのセルの内容を参照する
処理であるので、扱う単語の数が増大した場合に
は、処理時間が急激に増加する。このため、取り
扱う単語の数が増大すると、処理時間が増大し、
実時間で意味解析処理を行うことは、非常に困難
であるという問題があつた。
By the way, when performing semantic analysis of natural language data in which the semantic relationships between words are expressed as tree-structured data in a natural language processing system, the tree-structured data is analyzed to determine the semantic relationships. In the tree structure data analysis process, the nodes of the tree structure data are sequentially searched and the data of each node is analyzed. This process follows the pointer of the memory cell corresponding to the node and sequentially refers to the contents of the memory cell corresponding to the next node, so when the number of words to be handled increases, Processing time increases rapidly. Therefore, as the number of words to be handled increases, processing time increases.
There was a problem in that it was extremely difficult to perform semantic analysis processing in real time.

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

本発明の目的は、自然言語処理システムにおい
て、木構造データで表現された単語間の意味関係
を高速に判定できる単語間意味関係判定方式を提
供することにある。
An object of the present invention is to provide a method for determining semantic relationships between words that can quickly determine semantic relationships between words expressed in tree-structured data in a natural language processing 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 for solving problems]

上記目的を達成するため、本発明においては、
各単語を木の各ノードに対応づけ、各ノードの間
をリンクして、単語間の意味関係を木構造データ
として表現し、単語間の意味の包含関係の意味解
析を行う自然言語処理システムにおいて、予め深
さ優先探索により木構造データの各ノードの探索
を行い、該各ノードの下位に含まれるノード範囲
を示す下位ノード数を求め、この下位ノード数を
各ノードの探索順位に対応して格納した意味テー
ブルを備え、該意味テーブルに格納した各ノード
の下位ノード数の大小関係と、各ノードの探索順
位をそれぞれ比較し、単語間の意味の包含関係を
判定することを特徴とする。
In order to achieve the above object, in the present invention,
In a natural language processing system that associates each word with each node of a tree, links between each node, expresses the semantic relationship between words as tree-structured data, and performs semantic analysis of the semantic inclusion relationship between words. , Search each node of the tree structure data in advance by depth-first search, find the number of lower nodes indicating the range of nodes included under each node, and calculate this number of lower nodes according to the search order of each node. The present invention is characterized in that it includes a stored meaning table, and compares the number of subordinate nodes of each node stored in the meaning table with the search order of each node to determine the inclusion relationship of meanings between words.

〔作用〕[Effect]

前記手段によれば、各単語を木の各ノードに対
応づけ、各ノードの間をリンクして、単語間の意
味関係を表現した木構造データに対して、予め深
さ優先探索により木構造データの各ノードの探索
を行い、該各ノードの下位に含まれるノード範囲
を示す下位ノード数を求め、この下位ノード数を
各ノードの探索順位に対応して格納した意味テー
ブルが備えられる。この意味テーブルには、テー
ブルデータとして、深さ優先探索で各ノードを探
索した探索順位に対応して、木構造データの当該
各ノードの下位に含まれる下位ノード数が格納さ
れている。このため、このテーブルデータによれ
ば、ある順位におけるノードの下位ノード数のデ
ータは、当該順位のテーブルデータから降順に進
んで、包含関係にあるノードのデータ(下位ノー
ド数)を格納したテーブルデータまでの数を示し
ていることになる。したがつて、各ノードの包含
関係は、テーブルデータの順位の大小関係と、そ
の探索順位の大小関係との数値比較を行うことに
より、判定できる。すなわち、あるノードに対し
て、当該ノードとの関係を調べる対象ノードが、
順位の大小関係を比較することにより順位が上で
あり、かつ順位差と順位に対応して格納されてい
る対象ノードの下位ノード数とを比較することに
より、順位差が下位ノード数より小さければ、対
象ノードは上位ノードであると判定される。
According to the means, each word is associated with each node of a tree, each node is linked, and the tree-structured data expressing the semantic relationship between the words is searched in advance by a depth-first search. A meaning table is provided in which the number of lower nodes indicating the range of nodes included under each node is determined by searching each node, and the number of lower nodes is stored in correspondence with the search order of each node. This meaning table stores, as table data, the number of lower nodes included below each node in the tree structure data, corresponding to the search order of each node in the depth-first search. Therefore, according to this table data, the data on the number of lower nodes of a node in a certain rank is obtained from the table data in descending order from the table data of the relevant rank, and stores the data (number of lower nodes) of nodes in an inclusion relationship. It shows the number up to. Therefore, the inclusion relationship of each node can be determined by numerically comparing the magnitude relationship of the rankings of table data with the magnitude relationship of its search rankings. In other words, the target node to check the relationship with a certain node is
If the rank is higher by comparing the magnitude relationship of the ranks, and if the rank difference is smaller than the number of lower nodes by comparing the rank difference and the number of lower nodes of the target node stored corresponding to the rank, then , the target node is determined to be an upper node.

このように、単語間の意味関係を表現した木構
造データから、ルートノードから深さ優先探索で
の探索順位に対応して各ノードの下位に含まれる
下位ノード数を格納したテーブルデータを生成し
て、単語間の意味の包含関係の判定は、テーブル
データの参照および比較演算を行うことにより、
単語間の意味関係を判定する。
In this way, from tree-structured data expressing the semantic relationships between words, table data is generated that stores the number of subordinate nodes included below each node in accordance with the search order in depth-first search starting from the root node. Therefore, the inclusion relationship between words can be determined by referencing table data and performing comparison operations.
Determine the semantic relationships between words.

これにより、意味の包含関係の判定処理におい
ては、判定のための木構造データの探索を回避す
ることができ、テーブルデータの参照および2回
の比較演算により、単語間の意味の包含関係を高
速に判定することができる。
This makes it possible to avoid searching for tree-structured data for judgment in the process of determining semantic inclusion relationships, and quickly evaluates semantic inclusion relationships between words by referencing table data and performing two comparison operations. can be determined.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例にかかる処理シス
テムの概略構成を示すブロツク図である。第1図
において、1はキーボード、2は字句解析装置、
3は単語辞書、4は意味解析装置、5は意味辞
書、6は単語間意味関係判定装置、7は表示装置
である。字句解析装置2は、キーボード1より入
力した文字列データから単語辞書3を参照して、
単語を切分ける。各単語は意味解析装置4によ
り、意味辞書5とマツチングされ、各単語の意味
が解析される。意味解析装置4では、意味辞書5
を参照して、単語の品詞を求め、形容詞と名詞の
修飾関係を求め、単語間の係り受け関係を判定す
る。すなわち、単語の意味付の品詞、品詞データ
からの単語間の修飾関係、単語間の包含関係等の
判定処理が行われる。
FIG. 1 is a block diagram showing a schematic configuration of a processing system according to an embodiment of the present invention. In FIG. 1, 1 is a keyboard, 2 is a lexical analyzer,
3 is a word dictionary, 4 is a semantic analysis device, 5 is a semantic dictionary, 6 is an inter-word semantic relationship determination device, and 7 is a display device. The lexical analysis device 2 refers to the word dictionary 3 from the character string data input from the keyboard 1, and
Separate words. Each word is matched with a meaning dictionary 5 by a meaning analysis device 4, and the meaning of each word is analyzed. In the semantic analysis device 4, the semantic dictionary 5
With reference to , the part of speech of a word is determined, the modification relationship between an adjective and a noun is determined, and the dependency relationship between words is determined. That is, determination processing is performed on parts of speech with meanings of words, modification relationships between words from part of speech data, inclusion relationships between words, and the like.

このように、意味解析装置4は、意味辞書5に
格納されている各単語の品詞、意味情報を参照し
て、各単語間の意味解析を行い、単語間の意味、
文の意味を判定する。意味解析装置4は、各単語
間の意味解析を行うため、単語間意味関係判定装
置6により、単語間の意味の上下関係を解析し、
単語間の意味の包含関係の判定を行う。
In this way, the semantic analysis device 4 refers to the part of speech and semantic information of each word stored in the semantic dictionary 5, performs semantic analysis between each word, and determines the meaning between the words.
Determine the meaning of a sentence. In order to perform semantic analysis between each word, the semantic analysis device 4 uses an inter-word semantic relationship determining device 6 to analyze the hierarchical relationship between words,
Determines the inclusion relationship between words.

単語間の意味の包含関係は、例えば、第2図に
示すような木構造データとして表現される。この
木構造データは、木の各ノードに各単語を対応づ
け、各ノードの間をリンクして、単語間の意味関
係を表現しているものである。第2図の木構造デ
ータでは、「会議」という単語をルートノード11
に対応づけ、ルートノード11にリンクされる一方
の次の下位ノード12には「役員会議」という単語
を対応づけ、ルートノード11にリンクされる他方
の次の下位ノード16には「部長会議」という単語
を対応づける。更に、「役員会議」ノード12にリ
ンクされる次の下位ノード13には「経営方針会
議」という単語を対応づける。このように、木構
造データでは、単語の意味関係から、木の各ノー
ドに各単語を対応づけられ、各ノードの間をリン
クして、単語間の意味関係が表現されている。
The semantic inclusion relationship between words is expressed, for example, as tree-structured data as shown in FIG. This tree structure data associates each word with each node of the tree, links each node, and expresses the semantic relationship between words. In the tree structure data in Figure 2, the word "meeting" is placed at the root node 11.
, the next lower node 12 linked to the root node 11 is associated with the word "board meeting", and the other next lower node 16 linked to the root node 11 is associated with the word "manager's meeting". Match the words. Furthermore, the next lower node 13 linked to the "executives meeting" node 12 is associated with the word "management policy meeting." In this way, in the tree structure data, each word is associated with each node of the tree based on the semantic relationships between the words, and the semantic relationships between the words are expressed by links between the nodes.

したがつて、入力された各単語の意味関係を判
定するには、入力された単語が、この各単語の意
味関係を表現する木構造データを参照して、木構
造データのどのノード位置にあるかの解析を行つ
て、意味関係を判定することになる。この判定の
処理は、ここでは意味解析装置4が行うが、意味
解析装置4は、まず、この単語間の意味関係を表
現する木構造データに対して、次の手順で意味関
係を表す一次元配列データを生成して、意味テー
ブルを生成する。
Therefore, in order to determine the semantic relationship of each input word, in which node position of the tree structure data the input word is located by referring to the tree structure data that expresses the semantic relationship of each word. By performing this analysis, the semantic relationships will be determined. This judgment process is performed here by the semantic analysis device 4. First, the semantic analysis device 4 analyzes the tree-structured data expressing the semantic relationship between words using the following procedure. Generate array data and generate a semantic table.

まず、深さ優先探索により木構造データの各ノ
ードを探索する。この深さ優先探索の探索順序
は、木構造データの一番上位のノード(ルートノ
ード)から下位のノードに順次にたどる順序であ
るが、下位ノードがある場合には、下位ノードを
優先してたどり、左側のノードから先に探索する
順序で探索を行う。例えば、具体的には、第2図
の木構造データの探索の場合、まず、先頭のルー
トノードの「会議」ノード11から探索が順次に始
まり、左側のノードから先に探索して、下位を優
先して探索を行う探索順序で探索を進める。この
ため、次の探索順序は、その左下の「役員会議」
ノード12、次に更に下の「経営方針会議」ノード
13、次には更にその左下の「上期経営方針会議」
ノード14と、まず、上位ノードから左下に順次に
進む。そして、下位にそれ以上ノードの無いノー
ドに到達すれば、その一段上位のノードに戻り、
一つ右の下位ノードに進む。すなわち、下位にそ
れ以上ノードの無いノードの「上期経営方針会
議」ノード14に到達すれば、このノードから一段
上位ノードの「経営方針会議」ノード13に戻り、
次に一つ右の下位ノードの「下期経営方針会議」
ノード15に進む。未探索の下位ノードが無くなれ
ば、一段上位のノードに戻り、一つ右の下位ノー
ドに進む探索を繰り返し行う。このようにして、
第2図の木構造データの探索を順次に行つた場合
の探索順序は、1「会議」→2「役員会議」→3
「経営方針会議」→4「上期経営方針会議」→5
「下期経営方針会議」→6「部長会議」→7「経理
部長会議」→8「予算審議会」→9「設計部長会
議」→10「研究会議」→11「工程会議」となる。
First, each node of the tree structure data is searched by depth-first search. The search order of this depth-first search is from the top node (root node) of the tree-structured data to the lower nodes, but if there are lower nodes, the lower nodes are given priority. The search is performed in the order in which the nodes on the left are searched first. For example, specifically, in the case of searching the tree-structured data in Figure 2, the search starts sequentially from the first root node "Meeting" node 11, and the nodes on the left are searched first, and then the lower nodes are searched. Proceed with the search in a search order that gives priority to the search. Therefore, the next search order is "Board Meeting" at the bottom left.
Node 12, then the "Management Policy Meeting" node further down
13.Next, the "First Half Management Policy Meeting" on the lower left
From Node 14, first, proceed sequentially from the upper node to the lower left. Then, when it reaches a node that has no lower nodes, it returns to the node one level above it,
Go to the next lower node to the right. In other words, when reaching the "first half management policy meeting" node 14, which is a node that has no lower nodes, it returns from this node to the "management policy meeting" node 13, which is a node one level higher, and
Next, the next lower node to the right is “Second Half Management Policy Meeting”
Proceed to node 15. When there are no unsearched lower nodes, the search is repeated by returning to the next higher node and proceeding to the lower node one level to the right. In this way,
When searching the tree structure data in Figure 2 sequentially, the search order is 1 "meeting" → 2 "executive meeting" → 3
"Management Policy Meeting" → 4 "First Half Management Policy Meeting" → 5
"Second half management policy meeting" → 6 "Manager's meeting" → 7 "Accounting manager's meeting" → 8 "Budget council" → 9 "Design manager's meeting" → 10 "Research meeting" → 11 "Process meeting"

この木構造データの各ノードの探索の処理によ
り、各ノードに対応して、当該ノードの下位に含
まれるノード数が求められる。
By searching each node of this tree-structured data, the number of nodes included in the lower order of the node is determined for each node.

次に、木構造データの探索処理の結果、第3図
に示すような、木構造データの各ノードに対応さ
せている各単語に対して、各単語とその探索順位
をエントリ番号として対応づけた単語テーブル3
0を生成する。この単語テーブル30には、必要
に応じて、各単語対応に各単語の品詞等の単語の
意味データが付加される。この単語テーブル30
により、単語間の意味関係の判定を行う場合、入
力された単語からエントリ番号が求められる。
Next, as a result of the tree-structured data search process, each word and its search order are associated as entry numbers for each word that corresponds to each node in the tree-structured data, as shown in Figure 3. word table 3
Generates 0. In this word table 30, word meaning data such as the part of speech of each word is added to each word as necessary. This word table 30
When determining the semantic relationship between words, the entry number is determined from the input word.

続いて、木構造データの探索で求めた各ノード
に対する当該ノードの下位に含まれるノード数の
データから、第4図に示すような、各ノードの下
位に含まれるノード数に自己ノードの数も含めて
1加算した数を下位ノード数として、各ノードの
探索順位対応のエントリ番号に対応させた意味テ
ーブル40を生成する。具体的には、この意味テ
ーブル40は、探索順位対応のエントリ番号に対
応して、各ノードの下位に含まれるノード範囲を
示す下位ノードの数が自己ノードを含めた数とし
て格納されている。例えば、ここでの木構造デー
タの例では、探索順位が1である「会議」ノード
では自分自身も含めて、その下位ノード数が11で
あるので、意味テーブル40では、エントリ番号
の1に対応して、下位ノード数は11が格納されて
いる。また、探索順位が2である「役員会議」ノ
ードでは自分自身も含めて、その下位ノード数は
4であるので、意味テーブル40では、エントリ
番号の2に対応して、下位ノード数は4が格納さ
れている。同様にして、探索順位が3の「経営方
針会議」ノードの下位ノード数は3であるので、
エントリ番号3に対応して下位ノード数は3とな
つている。探索順位が4の「上期経営方針会議」
ノード、探索順位が5の「上期経営方針会議」ノ
ードは、最も下位ノードであり、下位ノード数は
1であるので、それぞれ、エントリ番号4に対応
して下位ノード数は1、エントリ番号5に対応し
て下位ノード数は1が格納されている。このよう
にして、探索順位対応のエントリ番号に対して下
位ノード数が格納された意味テーブル40を生成
する。
Next, from the data on the number of nodes included below each node for each node found by searching the tree structure data, we calculate the number of self-nodes in the number of nodes included below each node, as shown in Figure 4. The meaning table 40 is generated which corresponds to the entry number corresponding to the search order of each node, with the number added by 1 as the number of lower nodes. Specifically, in this meaning table 40, the number of lower nodes indicating the range of nodes included under each node, including the self node, is stored in correspondence with the entry number corresponding to the search order. For example, in this example of tree structure data, the "meeting" node whose search order is 1 has 11 subordinate nodes, including itself, so in the meaning table 40, it corresponds to entry number 1. Therefore, the number of lower nodes is 11. In addition, in the "board meeting" node whose search order is 2, the number of subordinate nodes is 4, including itself, so in the meaning table 40, corresponding to the entry number 2, the number of subordinate nodes is 4. Stored. Similarly, the number of lower nodes of the "Management Policy Meeting" node with a search order of 3 is 3, so
The number of lower nodes is 3 corresponding to entry number 3. “First half management policy meeting” with a search ranking of 4
The "first half management policy meeting" node with a search order of 5 is the lowest node and the number of lower nodes is 1, so the number of lower nodes is 1 corresponding to entry number 4, and the number of lower nodes is 1 corresponding to entry number 5. Correspondingly, 1 is stored as the number of lower nodes. In this way, a meaning table 40 is generated in which the number of lower nodes is stored for the entry number corresponding to the search order.

このようにして、予め単語テーブル30、意味
テーブル40を生成しておき、次に、この単語テ
ーブル30および意味テーブル40を用いて、単
語間意味関係判定装置6が入力された単語間の意
味の包含関係の判定処理を行う。
In this way, the word table 30 and the meaning table 40 are generated in advance, and then, using the word table 30 and the meaning table 40, the inter-word semantic relation determining device 6 determines the meaning between the input words. Performs inclusion relationship determination processing.

第5図は、単語間の意味の包含関係の判定処理
を示すフローチヤートである。第5図を参照して
入力された各単語間の意味の包含関係を判定する
処理を説明する。
FIG. 5 is a flowchart showing a process for determining the inclusion relationship of meanings between words. The process of determining the semantic inclusion relationship between input words will be described with reference to FIG.

単語間の意味の包含関係の判定処理を行うべき
単語A、単語Bが入力されると、ステツプ51にお
いて、単語テーブル30(第3図)および意味テ
ーブル40(第4図)を参照して、まず、単語
A、単語Bと単語テーブル30の単語データとの
マツチングをとり、単語Aに対してエントリ番号
E(A)を、単語Bに対してエントリ番号E(B)を求
め、さらに、このエントリ番号E(A)、E(B)により
意味テーブル40から、それぞれに対応する下位
ノード数N(A)、N(B)を読み出す。次にステツプ52
で、エントリ番号E(A)とE(B)とを比較し、E(A)=
E(B)の場合には、ステツプ53に進み、A=Bと判
定される。すなわち、単語Aと単語Bととの間の
包含関係はなく、同位と判定される。この場合
は、単語Aと単語Bとは同じ単語であり、単語テ
ーブル30から同じエントリ番号が読出されてい
る場合である。
When words A and B are input for which the inclusion relationship of meanings between words should be determined, in step 51, the word table 30 (FIG. 3) and the meaning table 40 (FIG. 4) are referred to. First, match the word A and word B with the word data in the word table 30, find the entry number E(A) for word A, and the entry number E(B) for word B. Based on the entry numbers E(A) and E(B), the corresponding numbers N(A) and N(B) of lower nodes are read from the meaning table 40, respectively. Next step 52
Then, compare entry numbers E(A) and E(B), and find that E(A)=
In the case of E(B), the process proceeds to step 53, where it is determined that A=B. That is, there is no inclusive relationship between word A and word B, and it is determined that they are of the same rank. In this case, word A and word B are the same word, and the same entry number is read from the word table 30.

一方、ステツプ52において、E(A)<E(B)の場合
には、ステツプ54に進み、エントリ番号の差[E
(B)−E(A)]を変数Dとし、次にステツプ55で、こ
の変数Dと単語Aに対応する下位ノード数N(A)と
の比較を行う。この比較において、N(A)>Dの場
合、ステツプ56に進み、A⊃Bと判定される。す
なわち、単語Aは単語Bを包含する関係にあり、
単語Aは単語Bの上位であると判定される。ま
た、N(A)>Dでない場合、ステツプ57に進み、関
係なしと判定される。この場合、単語Aと単語B
との間の包含関係はない。
On the other hand, in step 52, if E(A)<E(B), the process advances to step 54, where the difference in entry numbers [E
(B)-E(A)] is set as a variable D, and then in step 55, this variable D is compared with the number N(A) of lower nodes corresponding to the word A. In this comparison, if N(A)>D, the process proceeds to step 56 and it is determined that A⊃B. In other words, word A is in a relationship that includes word B,
Word A is determined to be higher in rank than word B. If N(A)>D is not true, the process proceeds to step 57, where it is determined that there is no relationship. In this case, word A and word B
There is no containment relationship between.

また、ステツプ52において、E(A)>E(B)の場合
には、ステツプ58に進み、エントリ番号の差[E
(A)−E(B)]を変数Dとし、次にステツプ59で、こ
の変数Dと単語Bに対応する下位ノード数N(B)と
の比較を行う。この比較において、N(B)>Dの場
合、ステツプ60に進み、B⊃Aと判定される。す
なわち、単語Aは単語Bに包含される関係にあ
り、単語Aは単語Bの下位であると判定される。
また、N(B)>Dでない場合、ステツプ57に進み、
関係なしと判定される。この場合、単語Aと単語
Bとの間の包含関係はない。
Further, in step 52, if E(A)>E(B), the process advances to step 58, and the difference in entry numbers [E
(A)-E(B)] is set as variable D, and then in step 59, this variable D is compared with the number of lower nodes N(B) corresponding to word B. In this comparison, if N(B)>D, the process proceeds to step 60 and it is determined that B⊃A. That is, word A is included in word B, and word A is determined to be subordinate to word B.
Also, if N(B) > D, proceed to step 57,
Determined to be unrelated. In this case, there is no inclusion relationship between word A and word B.

例えば、第2図の役員会議12と部長会議16
との意味関係を考えた場合、役員会議12のエン
トリ番号=2、下位ノード数=4であり、部長会
議16のエントリ番号=6となる。この場合、比
較のために順位の高いエントリ番号の下位ノード
数のみが必要になる。
For example, the executive meeting 12 and manager meeting 16 in Figure 2
When considering the semantic relationship with , the entry number for the executive board meeting 12 = 2, the number of lower nodes = 4, and the entry number for the manager's meeting 16 = 6. In this case, only the number of lower nodes of the higher ranking entry number is required for comparison.

ステツプ54でエントリ番号の低い方と高い番号
との差を求める。すると、その結果は、「4=6
−2」となる。
In step 54, the difference between the lower and higher entry numbers is calculated. Then, the result is “4=6
-2".

次に、ステツプ55において、差「4」とエント
リ番号順位の高い役員会議12の下位ノード数と
を比較すると、4>4となるので、この両者の意
味関係はないと判定される。
Next, in step 55, when the difference "4" is compared with the number of lower nodes of the board meeting 12 having a higher entry number rank, 4>4, so it is determined that there is no semantic relationship between the two.

ここで、ステツプ54において順位差を求めてい
る理由は、比較対象となるエントリ順位の高い方
は自分のノードの下に下位ノードを幾つ持つてい
るか、すなわちどの範囲まで持つているかを調べ
るためである。
Here, the reason why the rank difference is calculated in step 54 is to find out how many subordinate nodes the entry with a higher rank to be compared has under its own node, that is, to what extent. be.

この例では、役員会議12は、エントリ番号=
2、下位ノード数=4であるので、エントリ番号
2、3、4、5までのノードを持つていることに
なる。ステツプ55においては、このエントリ番号
2、3、4、5までのエントリの中に、部長会議
16のエントリ番号「6」が含まれているかどう
かを調べていることになる。結果としては、含ま
れていないので、両者は意味関係はないと判定さ
れる。
In this example, board meeting 12 has entry number=
2. Since the number of lower nodes = 4, it has nodes with entry numbers 2, 3, 4, and 5. In step 55, it is checked whether the entry number "6" of the manager's meeting 16 is included among the entries with entry numbers 2, 3, 4, and 5. As a result, since they are not included, it is determined that there is no semantic relationship between the two.

このようにして、単語間の意味の包含関係が、
テーブルデータを読出し、その大小関係の数値の
比較処理により高速に判定することができる。
In this way, the semantic inclusion relationship between words is
A high-speed determination can be made by reading the table data and comparing the numerical values in the magnitude relationship.

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

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

以上、説明したように、本発明によれば、2つ
の単語間の意味の包含関係の判定処理が、テーブ
ルデータを参照し、2回の数値比較演算を行う処
理により行えるので、高速に処理できる。対象と
する単語数が増大しても、処理時間が増大するこ
となく、単語間の意味の包含関係の判定処理は実
時間で処理可能となる。
As described above, according to the present invention, the process of determining the semantic inclusion relationship between two words can be performed by referring to table data and performing two numerical comparison operations, so that the process can be performed at high speed. . Even if the number of target words increases, the processing time does not increase, and the process of determining the semantic inclusion relationship between words can be performed in real time.

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

第1図は、本発明の一実施例にかかる処理シス
テムの概略構成を示すブロツク図、第2図は、単
語間の意味関係を表現する木構造データを説明す
る図、第3図は、木構造データの各ノードの単語
とその探索順位をエントリ番号として対応づけた
単語テーブルを示す図、第4図は、各ノードの探
索順位対応のエントリ番号に対応させた意味テー
ブルを示す図、第5図は、単語間の意味の包含関
係の判定処理を示すフローチヤートである。 図中、1……キーボード、2……字句解析装
置、3……単語辞書、4……意味解析装置、5…
…意味辞書、6……単語間意味関係判定装置、7
……表示装置。
FIG. 1 is a block diagram showing a schematic configuration of a processing system according to an embodiment of the present invention, FIG. 2 is a diagram illustrating tree-structured data expressing semantic relationships between words, and FIG. FIG. 4 is a diagram showing a word table in which the words of each node of the structural data are associated with their search rankings as entry numbers; FIG. The figure is a flowchart illustrating a process for determining a semantic inclusion relationship between words. In the figure, 1...keyboard, 2...lexical analyzer, 3...word dictionary, 4...semantic analyzer, 5...
...Semantic dictionary, 6...Semantic relationship determination device between words, 7
...Display device.

Claims (1)

【特許請求の範囲】 1 各単語を木の各ノードに対応づけ、各ノード
間をリンクして、単語間の意味関係を木構造デー
タとして表現し、単語間の意味の包含関係の意味
解析を行う自然言語処理システムにおいて、 予め深さ優先検索により木構造データの各ノー
ドの探索を行い、該各ノードの下位に含まれるノ
ード範囲を示す下位ノード数を求め、この下位ノ
ード数を各ノードの探索順位に対応して格納した
意味テーブルを備え、該意味テーブルに格納した
各ノードの下位ノード数の大小関係と、各ノード
の探索順位をそれぞれ比較し、単語間の意味の包
含関係を判定することを特徴とする単語間意味関
係判定方式。
[Claims] 1. Each word is associated with each node of a tree, each node is linked, the semantic relationship between words is expressed as tree structure data, and the semantic analysis of the inclusion relationship of meanings between words is performed. In a natural language processing system, each node of tree-structured data is searched in advance by depth-first search, the number of lower nodes indicating the range of nodes included under each node is determined, and this number of lower nodes is calculated as the number of lower nodes of each node. It has a meaning table stored in correspondence with the search order, and compares the number of subordinate nodes of each node stored in the meaning table with the search order of each node to determine the inclusion relationship of meanings between words. A method for determining semantic relationships between words.
JP87305377A 1987-12-01 1987-12-01 Inter-word semantic relation deciding system Granted JPH01145722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP87305377A JPH01145722A (en) 1987-12-01 1987-12-01 Inter-word semantic relation deciding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP87305377A JPH01145722A (en) 1987-12-01 1987-12-01 Inter-word semantic relation deciding system

Publications (2)

Publication Number Publication Date
JPH01145722A JPH01145722A (en) 1989-06-07
JPH0583950B2 true JPH0583950B2 (en) 1993-11-30

Family

ID=17944384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP87305377A Granted JPH01145722A (en) 1987-12-01 1987-12-01 Inter-word semantic relation deciding system

Country Status (1)

Country Link
JP (1) JPH01145722A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006178013A (en) 2004-12-20 2006-07-06 Canon Inc Device and method for creating database

Also Published As

Publication number Publication date
JPH01145722A (en) 1989-06-07

Similar Documents

Publication Publication Date Title
US10664530B2 (en) Control of automated tasks executed over search engine results
JP2640793B2 (en) Co-occurrence dictionary construction device and sentence analysis device using this co-occurrence dictionary
US7318021B2 (en) Machine translation system, method and program
CN109240901B (en) Performance analysis method, performance analysis device, storage medium, and electronic apparatus
CN107203468B (en) AST-based software version evolution comparative analysis method
US20020161752A1 (en) Apparatus for and method of searching
WO2019169858A1 (en) Searching engine technology based data analysis method and system
US20090125542A1 (en) Systems and Methods for Modular Information Extraction
CN111061828B (en) Digital library knowledge retrieval method and device
US6278990B1 (en) Sort system for text retrieval
JPH0844771A (en) Information retrieval device
JPH0583950B2 (en)
JPH03191475A (en) Document summarizing system
US20080027935A1 (en) Anchored search engine results display
JP4074687B2 (en) Summary sentence creation support system and computer-readable recording medium recording a program for causing a computer to function as the system
CN117235829B (en) Innovative design opportunity identification and characterization method and system
JP5142897B2 (en) Sentence retrieval device, sentence retrieval program, and sentence retrieval method
JPH0333977A (en) Grammatical error discovering method for syntax analyzer
Bird A lexical database tool for quantitative phonological research
Ahmad et al. SDRED: smart data retrieval engine for databases
Bigolin et al. An experience using context in translation from systems requirements to conceptual model
Maksimov et al. Information Seek and Retrieval Mechanisms Based on Interactive Dynamics Linking Technology
Basili et al. HIRMA: Hypertextual information retrieval system managed by ARIOSTO
Bodine et al. Harvey Mudd College Math Clinic 2002-2003 Three Methods for Improving Relevance Ordering for Web Search
JPH02143331A (en) Natural language interaction device