JPH0567136A - Natural language interpreting method - Google Patents

Natural language interpreting method

Info

Publication number
JPH0567136A
JPH0567136A JP3227553A JP22755391A JPH0567136A JP H0567136 A JPH0567136 A JP H0567136A JP 3227553 A JP3227553 A JP 3227553A JP 22755391 A JP22755391 A JP 22755391A JP H0567136 A JPH0567136 A JP H0567136A
Authority
JP
Japan
Prior art keywords
attribute
name
natural language
value
inquiry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3227553A
Other languages
Japanese (ja)
Other versions
JP2734826B2 (en
Inventor
Masatake Arita
正剛 有田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3227553A priority Critical patent/JP2734826B2/en
Publication of JPH0567136A publication Critical patent/JPH0567136A/en
Application granted granted Critical
Publication of JP2734826B2 publication Critical patent/JP2734826B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To develop a simplified natural language interface. CONSTITUTION:An inquiry text is interpreted as meaning representing that (show the attribute value of a certain attribute in a certain attribute table) by expressing the target field of inquiry as the set of the attribute tables that is the set of pairs of the attribute name and the attribute value. Firstly, each word in the inquiry text is classified to the attribute name, the attribute value, and others, and the attribute name is set as corresponding attribute name, and it is stored as a conditional attribute value pair group setting the attribute and that attribute as a pair (17). Thence, all the attribute tables in which the attribute name of the conditional attribute value pair group and the pair of attribute values exist are selected, and the attribute values of the attribute names existing in the corresponding attribute names of those attribute tables are outputted as answers.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データベースに対する
自然言語インタフェースの様な限定された領域ながら実
際的な自然言語での問い合わせを実現する自然言語文解
析手法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a natural language sentence analysis method for realizing a query in a practical natural language in a limited area such as a natural language interface to a database.

【0002】[0002]

【従来の技術と解決すべき課題】アメリカを中心に現
在、数多くの自然言語インタフェースシステムが作られ
ているが、実用レベルに達しているのは僅かである。従
来の自然言語インタフェースシステムの問題点として次
の二つが挙げられる。
2. Description of the Related Art Currently, many natural language interface systems have been created mainly in the United States, but only a few have reached a practical level. There are two problems with the conventional natural language interface system.

【0003】・対象世界の複雑さ 自然言語システムは、複雑な構造をもつ知識を扱わねば
ならない。知識構造が複雑になれば、入力文から取り出
さねばならない意味構造も複雑になる。しかし、必ずし
も明確ではない入力文から正確な意味構造を導くのは困
難である。
Complexity of the target world Natural language systems must deal with knowledge with complex structures. When the knowledge structure becomes complicated, the semantic structure that must be extracted from the input sentence also becomes complicated. However, it is difficult to derive an accurate semantic structure from input sentences that are not always clear.

【0004】・非文法性に対するひ弱さ 現実には人はしばしば非文法的である。しかし、多くの
自然言語インタフェースシステムは非文法的な文をうま
く処理できない。
Invulnerability to non-grammaticalities In reality, people are often non-grammatical. However, many natural language interface systems do not handle non-grammatical sentences well.

【0005】以上の問題点が従来の自然言語インタフェ
ースシステムの実用性を低下させていると思われる。
(参考文献:ウィレンスキイその他、ユーシー−アプロ
グレスレポート、Wilensky R.et.a
l.,“UC−A Progress Repor
t”,Rep.UCB/CSD87/303,198
6)。
The above problems seem to reduce the practicality of the conventional natural language interface system.
(References: Willenskiy et al., Ucy-A Progress Report, Wilensky R. et.a.
l. , "UC-A Progress Report
t ", Rep. UCB / CSD87 / 303, 198.
6).

【0006】本発明の目的は、その対象世界を属性名と
属性値の組の集まりで表し、さらに、非文法的な文をも
処理するために文法性という概念自体を放棄すること
で、前記の問題点を解決した自然言語解釈方法を提供す
ることにある。
The object of the present invention is to express the target world as a set of pairs of attribute names and attribute values, and also to abandon the concept of grammaticality itself in order to process even non-grammatical sentences. It is to provide a natural language interpretation method that solves the above problem.

【0007】[0007]

【課題を解決するための手段】第1の発明は、属性の属
性名と前記属性の属性値の組の集まりである属性テーブ
ル中のある属性値を自然言語による問い合わせにより参
照する方法において、問い合わせ文中の各単語を前記属
性名と前記属性値と前記属性名でも前記属性値でもない
語の3通りに分類し、前記属性名に分類された単語に対
しては、分類されたところの前記属性名をまとめて応答
属性名として保存し、前記属性値に分類された単語に対
しては、分類されたところの属性値を対応する属性名と
組にしてまとめて条件属性値組群として保存し、前記問
い合わせ文中の全ての構成単語の前記分類および保存が
終了した後で、前記条件属性値組群として保存された、
前記属性値と前記属性名との組が全て前記属性テーブル
中に存在するならば、前記応答属性名として保存された
前記属性名の属性値を前記問い合わせに対する回答とし
て出力し、前記条件属性値組群として保存された、前記
属性値と前記属性名との組が全て前記属性テーブル中に
存在するのでなければ、問い合わせの対象となるデータ
は存在しないという趣旨を前記問い合わせに対する回答
として出力する自然言語解釈方法である。
According to a first aspect of the present invention, an inquiry is made in a method of referring to an attribute value in an attribute table, which is a set of an attribute name of an attribute and a set of attribute values of the attribute, by an inquiry in natural language. Each word in the sentence is classified into three types, that is, the attribute name, the attribute value, and the word that is neither the attribute name nor the attribute value. For words classified in the attribute name, the attribute that is classified The names are collectively stored as a response attribute name, and for the words classified into the attribute values, the classified attribute values are grouped with the corresponding attribute name and stored as a condition attribute value set group. , After the classification and storage of all the constituent words in the inquiry sentence are completed, it is stored as the condition attribute value set group,
If all combinations of the attribute value and the attribute name exist in the attribute table, the attribute value of the attribute name stored as the response attribute name is output as a response to the inquiry, and the condition attribute value set Natural language that outputs as a response to the inquiry that there is no data to be inquired unless all pairs of the attribute value and the attribute name stored as a group are present in the attribute table It is an interpretation method.

【0008】第2の発明は、第1の発明において同じ属
性の組合せからなる複数の属性テーブルの存在を許すこ
とによって、自然言語による問い合わせに対して、第1
の発明の自然言語解釈方法によって問い合わせ文から前
記応答属性名及び前記条件属性値組群を導出し、前記条
件属性値組群にある前記属性値と前記属性名との組が全
て存在する属性テーブルを全て選択し、前記選択された
属性テーブルの、前記応答属性名にある前記属性名の属
性値を前記問い合わせに対する回答として出力する自然
言語解釈方法である。
A second aspect of the present invention provides the first invention with respect to a query in natural language by allowing the existence of a plurality of attribute tables each having the same attribute combination.
The attribute table in which the response attribute name and the condition attribute value set group are derived from the inquiry sentence by the natural language interpretation method of the invention, and all the pairs of the attribute value and the attribute name in the condition attribute value set group exist Is selected, and the attribute value of the attribute name in the response attribute name of the selected attribute table is output as a response to the inquiry.

【0009】第3の発明は、第1の発明において異なる
属性の組合せからなる複数種類の属性テーブルがそれぞ
れ複数個存在することを許すことによって、自然言語に
よる問い合わせに対して、まず前記複数種類の属性テー
ブルから検索対象にすべき属性テーブルの種類を示して
もらい、前記示された種類の属性テーブルを対象として
第2の発明の自然言語解釈方法によって問い合わせ文を
解釈し、必要であれば前記属性テーブルの種類の選択と
前記選択された種類の属性テーブルを対象にした第2の
発明の自然言語解釈方法による問い合わせ文の解釈を繰
り返すことによって、前記問い合わせに対する回答を出
力する自然言語解釈方法である。 第4の発明は、第1
の発明において、属性テーブルの属性名と同義の名前を
定義する属性名別名定義命令を持ち、問い合わせ文を解
釈する前に、前記属性名別名定義命令により、属性テー
ブル中の属性名の別名を示してもらい、前記別名を対応
する属性名と組にしてまとめて属性名別名組群として保
存しておき、問い合わせ文中の単語を分類する際、入力
文中の単語が前記属性名別名組群にあれば、対応する属
性名と同一であると見なし、前記対応する属性名に分類
する自然言語解釈方法である。
A third aspect of the present invention allows a plurality of types of attribute tables each of which has a combination of different attributes to exist in the first aspect of the invention, so that in response to a natural language inquiry, the plurality of types of attribute tables are first described. The type of the attribute table to be searched is indicated from the attribute table, the inquiry sentence is interpreted by the natural language interpretation method of the second invention for the indicated type of attribute table, and if necessary, the attribute A natural language interpretation method for outputting an answer to the inquiry by repeating selection of a table type and interpretation of a query sentence by the natural language interpretation method of the second invention for the attribute table of the selected type. .. The fourth invention is the first
In the invention, there is an attribute name alias definition command for defining a name synonymous with the attribute name of the attribute table, and the attribute name alias definition command indicates the alias of the attribute name in the attribute table before the query sentence is interpreted. If the words in the input sentence are in the attribute name alias set group when the words in the inquiry sentence are classified, the aliases are grouped with the corresponding attribute name and stored as an attribute name alias set group. , The natural language interpretation method in which the attribute names are regarded as the same as the corresponding attribute names and are classified into the corresponding attribute names.

【0010】第5の発明は、第1の発明において、属性
テーブル中の属性値と同義の名前を定義する属性値別名
定義命令を持ち、問い合わせ文を解釈する前に、前記属
性値別名定義命令により、属性テーブル中の属性値の別
名を示してもらい、前記別名を対応する属性値と組にし
てまとめて属性値別名組群として保存しておき、問い合
わせ文中の単語を分類する際、入力文中の単語が前記属
性値別名組群にあれば、対応する属性値と同一であると
見なし、前記対応する属性値に分類する自然言語解釈方
法である。
A fifth aspect of the present invention is the first aspect of the present invention, which has an attribute value alias definition command for defining a name synonymous with an attribute value in the attribute table, and the attribute value alias definition command is provided before interpreting a query statement. Asks for an alias of the attribute value in the attribute table, and stores the alias together with the corresponding attribute value as a group of attribute value alias groups. Is a natural language interpretation method in which if the word is in the attribute value alias set group, it is considered to be the same as the corresponding attribute value and is classified into the corresponding attribute value.

【0011】[0011]

【作用】第1の発明においては、自然言語による問い合
わせの目的となるデータを属性テーブルによって表現す
る。属性テーブルは、いくつかの定められた属性の属性
名と属性値との組の集合である。例えば、蔵書のデータ
を属性テーブルで表すと図6の61の様になる。自然言
語による問い合わせに対して検索すべきデータを属性テ
ーブルとして表現することにより、目的のデータを参照
するために、「属性テーブルが目的のデータを含むかと
いうこと」と属性テーブルが目的のデータを含む場合、
「属性テーブル上のどの属性が目的のデータであるかと
いうこと」の2点を問い合わせ文から導けば良い。
In the first aspect of the present invention, the data to be inquired in natural language is represented by the attribute table. The attribute table is a set of pairs of attribute names and attribute values of some defined attributes. For example, the collection table data is represented by an attribute table as shown by 61 in FIG. By expressing the data to be searched for a query in natural language as an attribute table, in order to refer to the target data, "whether the attribute table contains the target data" and the attribute table stores the target data. If included,
The two points of "which attribute on the attribute table is the target data" should be derived from the inquiry sentence.

【0012】そこで、第1の発明においては、問い合わ
せ文中の各単語を属性名と属性値と属性名でも属性値で
もない語の3つに分類し、属性名に分類された単語に対
してはその属性名をまとめて応答属性名として保存し、
属性値に分類された単語に対してはその属性値とその属
性値に対応する属性名とを組にしてまとめて条件属性値
組群として保存する。例えば、蔵書の属性テーブル61
に対して、「人間失格の著者はだれですか」という問い
合わせ文がユーザより与えられたとすると、応答属性名
として「著者」が、条件属性値組群として「(書名、人
間失格)」が保存される。「属性テーブルが目的のデー
タを含むかということ」は、属性値に分類された単語と
その単語が分類された属性値に対応する属性名との組が
決定すると考え、「属性テーブル上のどの属性が目的の
データであるかということ」は、属性名に分類された単
語が決定すると考える。したがって、条件属性値組群と
して保存された、属性値と属性名との組が全て属性テー
ブル中に存在するならば、属性テーブルに目的のデータ
が存在すると判断し、応答属性名として保存された属性
名の属性値を問い合わせに対する回答として出力し、条
件属性値組群として保存された、属性値と属性名との組
が全て属性テーブル中に存在するのでなければ、属性テ
ーブルに目的のデータは存在しないと判断し、問い合わ
せの対象となるデータは存在しないという趣旨を問い合
わせの回答として出力する。前記例文の場合、条件属性
値組群として保存された「(書名、人間失格)」は属性
テーブル61に存在するので、属性テーブル61に目的
のデータが存在すると判断し、属性テーブル61の、応
答属性名として保存された「著書」の値である「太宰
治」を回答とする。
Therefore, in the first invention, each word in the inquiry sentence is classified into three, that is, an attribute name, an attribute value, and a word that is neither an attribute name nor an attribute value. For words classified as an attribute name, Save the attribute name as a response attribute name,
For the words classified into the attribute value, the attribute value and the attribute name corresponding to the attribute value are grouped together and stored as a group of conditional attribute value groups. For example, the collection attribute table 61
On the other hand, if the user gives a query sentence "Who is the author who is disqualified as a human?", "Author" is stored as the response attribute name and "(Book title, human disqualified)" is stored as the set of condition attribute values. It "Whether the attribute table contains the target data" is considered to be determined by the combination of the word classified into the attribute value and the attribute name corresponding to the attribute value into which the word is classified. It is considered that the word classified into the attribute name determines "whether the attribute is the target data". Therefore, if all the pairs of attribute values and attribute names stored as a group of condition attribute values exist in the attribute table, it is determined that the target data exists in the attribute table and stored as the response attribute name. Outputs the attribute value of the attribute name as a response to the query, and unless all the pairs of attribute value and attribute name stored as a set of conditional attribute value pairs exist in the attribute table, the target data is not stored in the attribute table. It is determined that the data does not exist, and the fact that the data to be inquired does not exist is output as the answer to the inquiry. In the case of the above example sentence, "(book title, human disqualification)" stored as a group of conditional attribute values exists in the attribute table 61, so it is determined that the target data exists in the attribute table 61, and the response of the attribute table 61 is returned. The answer is "Osamu Dazai", which is the value of "book" saved as the attribute name.

【0013】第2の発明においては、自然言語による問
い合わせの対象を同じ属性の組合せからなり属性値だけ
が異なる複数の属性テーブルとして表現する。例えば、
蔵書のデータの場合には、図6の62,63の様にな
る。これらの属性テーブルの一つ一つに対して第1の発
明の解析方法を適用することによって自然言語による問
い合わせの回答を作成する。すなわち、第1の発明の問
い合わせの解釈方法によって問い合わせ文から応答属性
名及び条件属性値組群を導出し、条件属性値組群にある
属性値と属性名との組をどの属性テーブルが目的のデー
タを持つかを決定する条件と考え、条件属性値組群にあ
る属性値と属性名との組が全て存在する属性テーブルを
全て選択し、選択された属性テーブルの、応答属性名に
ある属性名の属性値を問い合わせに対する回答として出
力する。例えば、図6の62,63からなる蔵書の属性
テーブルの集まりに対する「人間失格の著者はだれです
か。」という問い合わせ文の場合は、条件属性値組群に
保存された「(書名,人間失格)」の存在する属性テー
ブル、すなわち属性テーブル62が選択され、属性テー
ブル62の、応答属性名として保存された「著者」の値
である「太宰治」が回答される。
In the second invention, the object of inquiry in natural language is expressed as a plurality of attribute tables which are composed of the same combination of attributes but differ only in attribute value. For example,
In the case of the data of the collection, it becomes like 62 and 63 of FIG. By applying the analysis method of the first invention to each of these attribute tables, the answer to the inquiry in natural language is created. That is, a response attribute name and a condition attribute value set group are derived from a query sentence by the query interpretation method of the first aspect of the invention, and which attribute table is the target of the set of attribute value and attribute name in the condition attribute value set group. Considering that it is a condition that determines whether or not to have data, select all the attribute tables that have all the pairs of attribute values and attribute names in the condition attribute value set group, and select the attributes in the response attribute name of the selected attribute table. The attribute value of first name is output as the answer to the inquiry. For example, in the case of the inquiry sentence "Who is the author of human disqualification?" For the collection of the attribute table of the collection of books 62 and 63 in Fig. 6, "(book title, human disqualification) saved in the condition attribute value set group. Is selected, that is, the attribute table 62 is selected, and “Dazai Osamu”, which is the value of “author” stored as the response attribute name in the attribute table 62, is answered.

【0014】第3の発明においては、さらに、複数の種
類の属性テーブルの存在を許す。すなわち、自然言語に
よる問い合わせの対象を異なる属性の組合せからなる複
数種類の属性テーブルの集まりとして表現する。この表
現方法によって、広い範囲のデータを扱うことができ
る。例えば、図6の64,65の様に、蔵書の属性テー
ブルに加えて「作家」の属性テーブルも導入すると、作
家に関する知識を用いて問い合わせ文を解釈することが
できる。まず、ユーザに属性テーブルの種類を選択して
もらい、選択された種類の属性テーブルに対して第2の
発明の自然言語解釈方法を適用し、ユーザが了承するま
でこの属性テーブルの種類の選択と第2の発明の解釈を
繰り返すことによって、問い合わせ文を処理する。例え
ば、蔵書及び作家の属性テーブル64,65に対して
「人間失格の著者の住所はどこですか」という問い合わ
せ文が与えられた場合は、まずユーザが蔵書の属性テー
ブルを選択したとすると、第2の発明の自然言語解釈方
法によって属性テーブル64より「人間失格の著者=太
宰治」が得られ、次にユーザが作家の属性テーブルを選
択したとすると属性テーブル65より目的のデータ「太
宰治の住所=青森」が得られる。
In the third invention, the existence of a plurality of types of attribute tables is further permitted. That is, the target of the inquiry in natural language is expressed as a set of a plurality of types of attribute tables each including a combination of different attributes. This expression method can handle a wide range of data. For example, if an attribute table of “writer” is introduced in addition to the attribute table of the collection as shown by 64 and 65 in FIG. 6, the inquiry sentence can be interpreted using the knowledge about the author. First, the user is asked to select the type of attribute table, the natural language interpretation method of the second invention is applied to the selected type of attribute table, and the selection of this type of attribute table is performed until the user approves. The inquiry sentence is processed by repeating the interpretation of the second invention. For example, if an inquiry sentence “where is the address of an author who has been disqualified as a human being” is given to the attribute tables 64 and 65 of the book collection and the writer, if the user first selects the attribute table of the book collection, According to the natural language interpretation method of the invention of claim 1, "human disqualified author = Osamu Dazai" is obtained from the attribute table 64, and if the user next selects the attribute table of the writer, the target data "Address of Osamu Dazai" is selected from the attribute table 65. = Aomori ”is obtained.

【0015】第4の発明においては、属性名別名定義命
令を用意し、ユーザに属性名の別名を登録してもらう。
これによって、属性名を忘れても、その別名によって目
的の属性を参照することが可能になる。例えば、図6の
61の属性テーブルに対し、属性名別名定義命令によっ
て、「著者」の別名として「筆者」を登録しておけば、
「人間失格の筆者はだれですか。」という問い合わせ文
も、第1の発明の自然言語解釈方法によって正しく解釈
することができる。
According to the fourth aspect of the invention, an attribute name alias definition command is prepared to ask the user to register an alias for the attribute name.
This makes it possible to refer to a target attribute by its alias even if you forget the attribute name. For example, if "writer" is registered as an alias of "author" by the attribute name alias definition command in the attribute table 61 of FIG. 6,
The inquiry sentence "Who is the disqualified human being?" Can also be correctly interpreted by the natural language interpretation method of the first invention.

【0016】第5の発明は、属性値別名定義命令を用意
し、第4の発明と同様の処理を属性値に対して行うもの
である。例えば、図6の65の作家の属性テーブルに対
し、属性値別名定義命令によって、「太宰治」の別名と
して「太宰」を登録しておけば、「太宰の住所はどこで
すか。」という問い合わせ文も、第1の発明の自然言語
解釈方法によって正しく解釈することができる。
A fifth aspect of the present invention prepares an attribute value alias definition command and performs the same processing as that of the fourth aspect on the attribute value. For example, if "Dazai" is registered as an alias for "Osamu Dazai" by the attribute value alias definition command in the attribute table 65 of the writer in FIG. 6, the inquiry sentence "Where is Dazai's address?" Can also be correctly interpreted by the natural language interpretation method of the first invention.

【0017】[0017]

【実施例】第1の発明を実施例によって説明する。書
名,著者,出版社という3つの属性からなる属性テーブ
ルを用意する。属性・書名の属性名を書名、属性値を人
間失格、属性・著者の属性名を著者、属性値を太宰治、
属性・出版社の属性名を出版社、属性値を新潮社とす
る。この属性テーブルを図6の61に示す。この属性テ
ーブル61に対して、「人間失格の著者はだれですか」
という問い合わせ文の処理を見ながら、第1の発明の処
理の流れを説明する。
EXAMPLES The first invention will be described with reference to examples. Prepare an attribute table consisting of three attributes: book title, author, and publisher. The attribute name of the attribute / book name is the book name, the attribute value is human disqualification, the attribute name of the attribute / author is author, the attribute value is Osamu Dazai,
Attribute-Publisher attribute name is publisher, and attribute value is Shinchosha. This attribute table is shown at 61 in FIG. For this attribute table 61, "who is the disqualified human being?"
The processing flow of the first invention will be described with reference to the processing of the inquiry sentence.

【0018】図1に、第1の発明のフローチャートを示
す。まず、ブロック11において、入力文は形態素解析
されて、単語のリストに変換される。[人間失格、の、
著者、は、だれ、です、か]。形態素解析については本
発明は何ら新しい方法を主張するものではないので、既
存の方法を用いる。次に、ブロック12においてリスト
が空でないことを確認し、ブロック13において先頭の
1語「人間失格」を取り出す。「人間失格」は属性値で
あるから、ブロック14は失敗しブロック16が成功す
るので、ブロック17において「人間失格」はその属性
名「書名」と組にして条件属性値組群に(書名、人間失
格)として保存される。次に、再びブロック12に戻り
リストが空でないことを確認し、ブロック13でリスト
から新たに先頭の語を取り出し、前記と同様の処理をリ
ストが空になるまで繰り返す。「の」の属性名でも属性
値でもなく、「著者」は属性名であり、「は」,「だ
れ」,「です」,「か」は属性名でも属性値でもないの
で、結局、応答属性名として「著者」、条件属性値組群
として「(書名、人間失格)」が保存される。次に、ブ
ロック18において、条件属性値組群として保存された
属性値とその属性名の組は「(書名、人間失格)」であ
り、属性テーブル61に存在するので、属性テーブル6
1が目的のデータを含むとし、応答属性名として保存さ
れた属性名は著者であるから、ブロック19において、
属性テーブル61の属性・著者の値である「太宰治」を
回答として出力する。もし、条件属性値組群として保存
された属性値とその属性名の組が前記属性テーブルに存
在しないのならブロック20において、対象となるデー
タは存在しないという趣旨の回答を出力する。
FIG. 1 shows a flowchart of the first invention. First, in block 11, the input sentence is morphologically analyzed and converted into a list of words. [Human disqualification,
Who is the author?]. Regarding the morphological analysis, the present invention does not claim any new method, and therefore the existing method is used. Next, in block 12, it is confirmed that the list is not empty, and in block 13, the first word "human disqualification" is taken out. Since "human disqualification" is an attribute value, block 14 fails and block 16 succeeds. Therefore, in block 17, "human disqualification" is paired with its attribute name "book name" to create a group of conditional attribute values (book name, Saved as human disqualification). Next, returning to block 12 again, it is confirmed that the list is not empty, a new head word is extracted from the list in block 13, and the same processing as described above is repeated until the list becomes empty. Neither attribute name nor attribute value of "no", "author" is attribute name, and "ha", "who", "is", and "ka" are neither attribute name nor attribute value. “Author” is stored as the name, and “(book title, human disqualification)” is stored as the group of conditional attribute values. Next, in block 18, since the set of the attribute value and the attribute name stored as the condition attribute value set group is “(book title, human disqualification)” and exists in the attribute table 61, the attribute table 6
Since 1 contains the target data and the attribute name saved as the response attribute name is the author, in block 19,
“Osamu Dazai”, which is the value of the attribute / author in the attribute table 61, is output as an answer. If the set of attribute values and the attribute name stored as the set of condition attribute value sets does not exist in the attribute table, a response indicating that the target data does not exist is output in block 20.

【0019】図2に、第2の発明のフローチャートを示
す。書名,著者,出版者という3つの属性からなる属性
テーブルとして、図6に「書名:人間失格、著者:太宰
治、出版社:A社」という属性テーブル62と「書名:
金閣寺、著者:三島由紀夫、出版社:B社」という属性
テーブル63を用意し、自然言語による問い合わせの対
象が属性テーブル62と属性テーブル63よりなるとす
る。「人間失格の著者はだれですか」という問い合わせ
文の処理を説明する。まず、ブロック21において、属
性テーブルを1つ取り出す。属性テーブル62を取り出
したとする。次に、ブロック22において、第1の発明
の処理を属性テーブル62に対して行う。「太宰治」が
回答として出力される。次に、ブロック23において、
まだ処理していない属性テーブルがあるかを見る。まだ
処理していない属性テーブルとして属性テーブル63が
あるので、再び、ブロック21に戻り、属性テーブル6
3を取り出して、ブロック22において、第1の発明の
処理を属性テーブル63に対して行う。「対象となるデ
ータは存在しない」という趣旨の回答を何も出力しない
ことで表す。ブロック23に進み、未処理の属性テーブ
ルがないことを確認して、終了する。
FIG. 2 shows a flowchart of the second invention. As an attribute table consisting of three attributes of a book title, an author, and a publisher, FIG. 6 shows an attribute table 62 "Book title: disqualified human, author: Osamu Dazai, publisher: Company A" and "Book title:
It is assumed that an attribute table 63 “Kinkakuji, author: Yukio Mishima, publisher: Company B” is prepared, and the object of inquiry in natural language is the attribute table 62 and the attribute table 63. The processing of the inquiry sentence "who is the author who is disqualified as a human being" is explained. First, in block 21, one attribute table is retrieved. It is assumed that the attribute table 62 is taken out. Next, in block 22, the process of the first invention is performed on the attribute table 62. "Osamu Dazai" is output as an answer. Next, in block 23,
See if there are any attribute tables that have not yet been processed. Since the attribute table 63 is an attribute table that has not been processed yet, the process returns to the block 21 again and the attribute table 6
3 is taken out, and in block 22, the process of the first invention is performed on the attribute table 63. It is represented by not outputting any answer to the effect that "target data does not exist". Proceed to block 23, confirm that there is no unprocessed attribute table, and end.

【0020】図3に、第3の発明のフローチャートを示
す。図6の、書名,著者,出版社という3つの属性から
成る種類1の属性テーブル64「書名:人間失格、著
者:太宰治、出版社:A社」と氏名,住所という2つの
属性から成る種類2の属性テーブル65「氏名:太宰
治、住所:青森」との集まりである問い合わせの対象に
対して、「人間失格の著者の住所はどこですか」という
問い合わせ文の処理を説明する。まず、ブロック31に
おいて、ユーザの指示により属性テーブルの種類を選択
する。種類1が選択されたとする。次にブロック32に
おいて、選択された種類1の属性テーブルを対象とし
て、第2の発明により問い合わせ文を解釈する。属性テ
ーブル64より「著者=太宰治」が得られ、「著者=太
宰治」を出力する。次に、ブロック33において、ユー
ザに終了してよいか問い合わせる。ユーザがここで処理
の続行を望んだとすると、再びブロック31に戻り、
「著者=太宰治」を得ているので、元の問い合わせ文の
「人間失格の著者」を「太宰治」に変換した「太宰治の
住所はどこですか」という文を解釈する。今度は、属性
テーブルの種類として種類2が選択されたとすると、ブ
ロック32において、第2の発明の解釈方法を適用し、
属性テーブル65より「住所=青森」が得られ、「住所
=青森」を回答として出力し、ブロック33でユーザの
承認を得て終了する。
FIG. 3 shows a flowchart of the third invention. Attribute table 64 of type 1 consisting of three attributes of book title, author, and publisher in FIG. 6 "type of book: name disqualified by human, author: Osamu Dazai, publisher: company A", and two attributes of name and address The processing of the inquiry sentence "Where is the address of the author who is disqualified as a human being" is explained for the object of the inquiry, which is a collection of the attribute table 65 "name: Osamu Dazai, address: Aomori". First, in block 31, the type of attribute table is selected according to a user's instruction. It is assumed that the type 1 is selected. Next, in block 32, the query sentence is interpreted according to the second invention with respect to the selected type 1 attribute table. “Author = Osamu Dazai” is obtained from the attribute table 64, and “author = Osamu Dazai” is output. Next, at block 33, the user is queried for exit. If the user wishes to continue the process here, it returns to block 31 again,
Since "author = Osamu Dazai" is obtained, the sentence "where is the address of Osamu Dazai" converted from "the author of disqualified human being" in the original inquiry sentence to "Osamu Dazai"? Now, assuming that type 2 is selected as the type of attribute table, in block 32, the interpretation method of the second invention is applied,
“Address = Aomori” is obtained from the attribute table 65, “address = Aomori” is output as an answer, and the process ends with the user's approval in block 33.

【0021】図4に第4の発明のフローチャートを示
す。図6に、書名,著者,出版社という3つの属性から
成る属性テーブル61「書名:人間失格、著者:太宰
治、出版社:A社」を用意する。この属性テーブル61
に対して、まず、属性名別名定義命令によってユーザに
「著者=筆者」と指示された後で、「人間失格の筆者は
だれですか」という問い合わせ文を処理する場合を例と
して説明する。まず、ユーザが「著者=筆者」という入
力を与えたとする。ブロック41において、前記の入力
は別名の定義であると判断され、ブロック42におい
て、属性名別名定義命令によって(著者、筆者)が属性
名別名組群として保存されて、終了する。次に、ユーザ
が「人間失格の筆者はだれですか」という問い合わせ文
を入力したとする。ブロック41において前記の入力は
別名の定義ではないとされ、ブロック43に進み、前記
の入力文はリストに変換される。[人間失格、の、筆
者、は、だれ、です、か]。このリストの各語に対し、
ブロック44からブロック411までにおいて、第1の
発明と同様の処理が行われる。ただし、リスト中の「筆
者」に対しては、次の処理が行われる。属性名別名組群
に「筆者」が(著者、筆者)として存在するので、ブロ
ック46が成功し、ブロック47において、「著者」を
応答属性名として保存する。リスト中の各語の処理が終
われば、ブロック412において図1の出力部の処理を
行い、「太宰治」を出力して終了する。
FIG. 4 shows a flowchart of the fourth invention. In FIG. 6, an attribute table 61 "book name: human disqualification, author: Osamu Dazai, publisher: company A", which is composed of three attributes of a book name, an author, and a publisher, is prepared. This attribute table 61
On the other hand, first, a case will be described as an example in which the user is instructed by the attribute name alias definition command to be “author = author” and then the inquiry sentence “who is the disqualified author” is processed. First, it is assumed that the user gives an input of “author = author”. In block 41, the input is determined to be the definition of an alias, and in block 42, the attribute name alias definition command saves (author, writer) as a set of attribute name alias groups, and ends. Next, suppose that the user inputs a query sentence "who is the disqualified author?". In block 41, the input is not defined as an alias, and in block 43 the input sentence is converted into a list. [Who is the author's disqualification?]. For each word in this list,
In blocks 44 to 411, the same processing as in the first aspect of the invention is performed. However, the following process is performed for the "writer" in the list. Since "writer" exists in the attribute name alias group group as (author, writer), block 46 is successful, and "author" is saved as a response attribute name in block 47. When the processing of each word in the list is completed, the processing of the output unit of FIG. 1 is performed in block 412, "Dazai Osamu" is output, and the processing ends.

【0022】図5に第5の発明のフローチャートを示
す。図6に、氏名,住所という2つの属性から成る属性
テーブル65「氏名:太宰治、住所:青森」を用意す
る。この属性テーブル65に対して、まず、属性値別名
定義命令によってユーザに「太宰治=太宰」と指示され
た後で、「太宰の住所はどこですか」という問い合わせ
文を処理する場合を例として説明する。まず、ユーザが
「太宰治=太宰」という入力を与えたとする。ブロック
51において、前記の入力は別名の定義であると判断さ
れ、ブロック52において、属性値別名定義命令によっ
て(太宰治、太宰)が属性値別名組群として保存され
て、終了する。次に、ユーザが「太宰治の住所はどこで
すか」という問い合わせ文を入力したとする。ブロック
51において前記の入力は別名の定義ではないとされ、
ブロック53に進み、前記の入力文はリストに変換され
る。[太宰、の、住所、は、どこ、です、か]のリスト
の各語に対し、ブロック54からブロック511までに
おいて、第1の発明と同様の処理が行われる。ただし、
リスト中の「太宰」に対しては、次の処理が行われる。
属性値別名組群に「太宰」が(太宰治、太宰)として存
在するので、ブロック56が成功し、ブロック57にお
いて、「(氏名、太宰治)」を条件属性値組群として保
存する。リスト中の各語の処理が終われば、ブロック5
12において図1の出力部の処理を行い、「青森」を出
力して終了する。
FIG. 5 shows a flowchart of the fifth invention. In FIG. 6, an attribute table 65 “name: Osamu Dazai, address: Aomori” having two attributes of name and address is prepared. For this attribute table 65, an example will be described in which, first, the attribute value alias definition command instructs the user to “Dazai Osamu = Dazai”, and then the inquiry sentence “where is Dazai's address” is processed. To do. First, it is assumed that the user inputs “Dazai Osamu = Dazai”. In block 51, it is determined that the input is a definition of an alias, and in block 52, the attribute value alias definition command saves (Dazai Osamu, Dazai) as an attribute value alias group set, and ends. Next, it is assumed that the user inputs an inquiry sentence "Where is the address of Osamu Dazai?" In block 51, said input is not an alias definition,
Proceeding to block 53, the input sentence is converted into a list. For each word in the list [where is Dazai's, address, where is?], From block 54 to block 511, the same processing as in the first invention is performed. However,
The following process is performed for "Dazai" in the list.
Since "Dazai" exists in the attribute value alias group group as (Dazai Osamu, Dazai), block 56 is successful, and in block 57, "(name, Dazai Osamu)" is saved as a conditional attribute value group group. After processing each word in the list, block 5
In 12, the processing of the output unit of FIG. 1 is performed, “Aomori” is output, and the processing ends.

【0023】[0023]

【発明の効果】本発明によれば、単純な方法で自然言語
による問い合わせを解釈することができるので、自然言
語インタフェースシステムを実用化する上で、有効な手
段となる効果がある。
According to the present invention, a query in natural language can be interpreted by a simple method, which is an effective means for putting a natural language interface system into practical use.

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

【図1】第1の発明の実施例を示す流れ図である。FIG. 1 is a flowchart showing an embodiment of the first invention.

【図2】第2の発明の実施例を示す流れ図である。FIG. 2 is a flow chart showing an embodiment of the second invention.

【図3】第3の発明の実施例を示す流れ図である。FIG. 3 is a flowchart showing an embodiment of the third invention.

【図4】第4の発明の実施例を示す流れ図である。FIG. 4 is a flowchart showing an embodiment of the fourth invention.

【図5】第5の発明の実施例を示す流れ図である。FIG. 5 is a flow chart showing an embodiment of the fifth invention.

【図6】第1,第2,第3,第4,第5の発明の実施例
を説明するための補助的な概念図である。
FIG. 6 is an auxiliary conceptual diagram for explaining an embodiment of the first, second, third, fourth and fifth inventions.

【符号の説明】[Explanation of symbols]

61〜65 属性テーブル 61-65 attribute table

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】属性の属性名と前記属性の属性値の組の集
まりである属性テーブル中のある属性値を自然言語によ
る問い合わせにより参照する方法において、問い合わせ
文中の各単語を前記属性名と前記属性値と前記属性名で
も前記属性値でもない語の3通りに分類し、前記属性名
に分類された単語に対しては、分類されたところの前記
属性名をまとめて応答属性名として保存し、前記属性値
に分類された単語に対しては、分類されたところの属性
値を対応する属性名と組にしてまとめて条件属性値組群
として保存し、前記問い合わせ文中の全ての構成単語の
前記分類および保存が終了した後で、前記条件属性値組
群として保存された、前記属性値と前記属性名との組が
全て前記属性テーブル中に存在するならば、前記応答属
性名として保存された前記属性名の属性値を前記問い合
わせに対する回答として出力し、前記条件属性値組群と
して保存された、前記属性値と前記属性名との組が全て
前記属性テーブル中に存在するのでなければ、問い合わ
せの対象となるデータは存在しないという趣旨を前記問
い合わせに対する回答として出力する自然言語解釈方
法。
1. A method of referring to a certain attribute value in an attribute table, which is a set of a set of an attribute name of an attribute and an attribute value of the attribute, by a natural language inquiry, wherein each word in the inquiry sentence is referred to as the attribute name and the Attribute values and words that are neither the attribute name nor the attribute value are classified into three types, and for words classified into the attribute name, the classified attribute names are collectively stored as a response attribute name. For the words classified into the attribute values, the classified attribute values are grouped together with the corresponding attribute name and stored as a group of conditional attribute values, and all the constituent words in the inquiry sentence are stored. After the classification and storage are completed, if all the combinations of the attribute value and the attribute name stored as the condition attribute value set group exist in the attribute table, they are stored as the response attribute name. The attribute value of the attribute name is output as a response to the inquiry, and if all the pairs of the attribute value and the attribute name stored as the condition attribute value pair group do not exist in the attribute table, A natural language interpretation method for outputting, as an answer to the inquiry, the fact that there is no data to be inquired about.
【請求項2】請求項1記載の自然言語解釈方法において
同じ属性の組合せからなる複数の属性テーブルの存在を
許すことによって、自然言語による問い合わせに対し
て、請求項1記載の自然言語解釈方法によって問い合わ
せ文から前記応答属性名及び前記条件属性値組群を導出
し、前記条件属性値組群にある前記属性値と前記属性名
との組が全て存在する属性テーブルを全て選択し、前記
選択された属性テーブルの、属性応答属性名にある前記
属性名の属性値を前記問い合わせに対する回答として出
力する自然言語解釈方法。
2. The natural language interpreting method according to claim 1, wherein the natural language interpreting method according to claim 1 allows the existence of a plurality of attribute tables having the same combination of attributes to respond to a query in natural language. The response attribute name and the condition attribute value set group are derived from the inquiry sentence, and all the attribute tables in which the set of the attribute value and the attribute name in the condition attribute value set group all exist are selected and selected. A natural language interpretation method for outputting the attribute value of the attribute name in the attribute response attribute name of the attribute table as a response to the inquiry.
【請求項3】請求項1記載の自然言語解釈方法において
異なる属性の組合せからなる複数種類の属性テーブルが
それぞれ複数個存在することを許すことによって、自然
言語による問い合わせに対して、まず前記複数種類の属
性テーブルから検索対象にすべき属性テーブルの種類を
示してもらい、前記示された種類の属性テーブルを対象
として請求項2記載の自然言語解釈方法によって問い合
わせ文を解釈し、必要であれば前記属性テーブルの種類
の選択と前記選択された種類の属性テーブルを対象にし
た請求項2記載の自然言語解釈方法による問い合わせ文
の解釈を繰り返すことによって、前記問い合わせに対す
る回答を出力する自然言語解釈方法。
3. The natural language interpretation method according to claim 1, wherein a plurality of types of attribute tables each of which has a combination of different attributes are allowed to exist, so that in response to a natural language inquiry, the plurality of types of attribute tables From the attribute table, the type of the attribute table to be searched is indicated, the inquiry sentence is interpreted by the natural language interpretation method according to claim 2 for the attribute table of the indicated type, and if necessary, the 3. A natural language interpretation method for outputting a response to the inquiry by repeating the selection of the type of attribute table and the interpretation of the inquiry sentence by the natural language interpretation method according to claim 2 for the selected type of attribute table.
【請求項4】属性テーブル中の属性名と同義の名前を定
義する属性名別名定義命令を持ち、問い合わせ文を解釈
する前に、前記属性名別名定義命令により、属性テーブ
ル中の属性名の別名を示してもらい、前記別名を対応す
る属性名と組にしてまとめて属性名別名組群として保存
しておき、問い合わせ文中の単語を分類する際、入力文
中の単語が前記属性名別名組群にあれば、対応する属性
名と同一であると見なし、前記対応する属性名に分類す
る請求項1記載の自然言語解釈方法。
4. An attribute name alias definition command for defining a name synonymous with an attribute name in the attribute table, wherein the attribute name alias definition command is executed by the attribute name alias definition command before interpreting the inquiry sentence. , The aliases are grouped together with the corresponding attribute name and stored as an attribute name alias group group, and when classifying the words in the inquiry sentence, the words in the input sentence are added to the attribute name alias group group. The natural language interpretation method according to claim 1, wherein if there is, the attribute name is considered to be the same as the corresponding attribute name and is classified into the corresponding attribute name.
【請求項5】属性テーブル中の属性値と同義の値を定義
する属性値別名定義命令を持ち、問い合わせ文を解釈す
る前に、前記属性値別名定義命令により、属性テーブル
中の属性値の別名を示してもらい、前記別名を対応する
属性値と組にしてまとめて属性値別名組群として保存し
ておき、問い合わせ文中の単語を分類する際、入力文中
の単語が前記属性値別名組群にあれば、対応する属性値
と同一であると見なし、前記対応する属性値に分類する
請求項1記載の自然言語解釈方法。
5. An attribute value alias definition command for defining a value synonymous with an attribute value in the attribute table, the alias of the attribute value in the attribute table being defined by the attribute value alias definition command before interpreting a query statement. , The aliases are grouped with corresponding attribute values and stored as an attribute value alias group set, and when the words in the inquiry sentence are classified, the words in the input sentence are added to the attribute value alias group group. The natural language interpretation method according to claim 1, wherein if there is, the attribute value is considered to be the same as the corresponding attribute value and is classified into the corresponding attribute value.
JP3227553A 1991-09-09 1991-09-09 Natural language interpretation method Expired - Fee Related JP2734826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3227553A JP2734826B2 (en) 1991-09-09 1991-09-09 Natural language interpretation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3227553A JP2734826B2 (en) 1991-09-09 1991-09-09 Natural language interpretation method

Publications (2)

Publication Number Publication Date
JPH0567136A true JPH0567136A (en) 1993-03-19
JP2734826B2 JP2734826B2 (en) 1998-04-02

Family

ID=16862710

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3227553A Expired - Fee Related JP2734826B2 (en) 1991-09-09 1991-09-09 Natural language interpretation method

Country Status (1)

Country Link
JP (1) JP2734826B2 (en)

Also Published As

Publication number Publication date
JP2734826B2 (en) 1998-04-02

Similar Documents

Publication Publication Date Title
Sneiders Automated question answering using question templates that cover the conceptual model of the database
JPH02302876A (en) Conversational language analyzer
CN109710935B (en) Museum navigation and knowledge recommendation method based on cultural relic knowledge graph
JP3702414B2 (en) Information search support method, computer-readable storage medium, and information search device
CN112115252A (en) Intelligent auxiliary writing processing method and device, electronic equipment and storage medium
JP2792287B2 (en) Information retrieval device
CN109753557B (en) Answer output method, device, equipment and storage medium of question-answering system
KR101497411B1 (en) A converting apparatus and a method for a literary style, a storage means and a service system and a method for automatic chatting
JPH0962684A (en) Information retrieval method and information retrieval device, and information guiding method and information guiding device
JP2734826B2 (en) Natural language interpretation method
JP2638187B2 (en) Text summarization device
JPH03191475A (en) Document summarizing system
Yamakata et al. A case study on start-up of dataset construction: In case of recipe named entity corpus
JP3489326B2 (en) Table generation method
JPS60247770A (en) Character processor
JPS61123947A (en) Intelligence editing method
JP2012181685A (en) Representative sentence extraction device and program
JPH08272660A (en) Data base inquiry statement generator
JPH05242147A (en) Natural language interpreting method
JPH05257966A (en) Machine translator
JPH03273360A (en) Method and device for machine translation
JPH05114000A (en) Document managing device
JPH11312032A (en) Interactive help system, method therefor and storage medium stored with program related with the method
JPH0561906A (en) Language conversion system
JPH02108130A (en) Document knowledge editing system for knowledge arrangement editor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080109

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090109

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100109

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees