JPH08115217A - Grammatical rule extension system - Google Patents

Grammatical rule extension system

Info

Publication number
JPH08115217A
JPH08115217A JP6247797A JP24779794A JPH08115217A JP H08115217 A JPH08115217 A JP H08115217A JP 6247797 A JP6247797 A JP 6247797A JP 24779794 A JP24779794 A JP 24779794A JP H08115217 A JPH08115217 A JP H08115217A
Authority
JP
Japan
Prior art keywords
sentence
grammar
grammar rule
parsing
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6247797A
Other languages
Japanese (ja)
Inventor
Yutaka Sasaki
裕 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP6247797A priority Critical patent/JPH08115217A/en
Publication of JPH08115217A publication Critical patent/JPH08115217A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)

Abstract

PURPOSE: To provide a syntax rule extension system for automatically generating grammatical rules required for making a syntax unanalyzable sentence syntax analyzable. CONSTITUTION: The syntax analysis of a rephrased sentence having the same meaning as the syntax unanalyzable sentence is performed in a syntax analysis process generation device 2 by using the grammatical rules stored in a grammatical rule storage device 1 and a syntax analysis process is generated. The syntax analysis process for the rephrased sentence is converted to the syntax analysis process of the syntax unanalyzable sentence in a syntax analysis process conversion device 3 and the grammatical rules not included in the grammatical rules among the converted syntax analysis process are extracted in an extension grammatical rule extraction device 4.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、エキスパートシステ
ム、知識ベースシステム等の自然言語インタフェースに
用いられ、文法規則により記述された文法ルールを自動
的に拡張する文法規則拡張システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a grammar rule extension system which is used for a natural language interface such as an expert system and a knowledge base system and which automatically extends grammar rules described by grammar rules.

【0002】[0002]

【従来の技術】この種の文法規則拡張システムに近いシ
ステムとしては、従来、例えば特開平5−135100
号公報に記載された語句学習方法およびそのシステムが
ある。このシステムは、システムの解釈内容に対する人
間の操作指示を元に未定義語の意味を自動的に学習して
いる。
2. Description of the Related Art As a system close to this type of grammar rule expansion system, there is a conventional system, for example, Japanese Patent Laid-Open No. 5-135100.
There is a word learning method and its system described in Japanese Patent Publication. This system automatically learns the meaning of undefined words based on human operation instructions for the interpretation of the system.

【0003】[0003]

【発明が解決しようとする課題】従来の自然言語学習シ
ステムでは、上述したように、単に操作指示を元に未定
義語を登録するのみであり、構文解析に利用する文法規
則の拡張を行うものではなかった。しかしながら、自然
言語インタフェースでは、ユーザにより入力された様々
な構文を持った入力文を構文解析する必要があるため、
未定義語の操作指示情報を登録するのみならず、文法規
則自体を更新する必要がある。このような文法規則の更
新は非常に複雑かつ専門的な作業であるため、自然言語
文法に関する知識を持った専門家により行われており、
コストと時間を必要としていた。
In the conventional natural language learning system, as described above, the undefined word is simply registered based on the operation instruction, and the grammatical rule used for parsing is expanded. Was not. However, in the natural language interface, it is necessary to parse input sentences with various syntaxes input by the user,
Not only the operation instruction information of undefined words must be registered, but also the grammar rules themselves need to be updated. Since updating such grammar rules is a very complicated and specialized task, it is performed by an expert with knowledge of natural language grammar,
It required cost and time.

【0004】本発明は、上記に鑑みてなされたもので、
その目的とするところは、構文解析不能文を構文解析可
能とするために必要な文法規則を自動的に生成する文法
規則拡張システムを提供することにある。
The present invention has been made in view of the above,
It is an object of the present invention to provide a grammar rule extension system that automatically generates the grammar rules necessary for making a parsable sentence parseable.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明の文法規則拡張システムは、現在の文法規則
を用いても構文解析不能な文および該構文解析不能文と
同じ意味を持ち、現在の文法規則で構文解析可能な言い
替え文が入力されたとき、前記構文解析不能文を構文解
析可能とするために必要な文法規則を新たに生成する文
法規則拡張システムであって、現在の文法規則を格納す
る文法規則格納装置と、該文法規則格納装置に格納され
た文法規則を適用し、前記言い替え文を構文解析して、
品詞を付与した単語の順序列から構文解析過程を生成す
る構文解析過程生成装置と、前記構文解析可能な言い替
え文の構文解析過程に対して前記構文解析不能文を構成
する単語毎に対応関係の過不足を検査することにより前
記言い替え文の構文解析過程を前記構文解析不能な文の
構文解析過程に変換する構文解析過程変換装置と、該構
文解析過程変換装置により変換された前記構文解析不能
文の構文解析過程の中で前記文法規則に含まれていない
文法規則を抽出する新文法規則抽出装置とを有すること
を要旨とする。
In order to achieve the above object, the grammar rule expansion system of the present invention has the same meaning as a sentence that cannot be parsed even if the current grammar rule is used, and a sentence that cannot be parsed. (EN) A grammar rule extension system for newly generating a grammar rule necessary for enabling parsing of a non-parsable sentence when a paraphrase sentence that can be parsed by a current grammar rule is input. A grammar rule storage device that stores rules, and a grammar rule stored in the grammar rule storage device are applied, and the paraphrase sentence is parsed,
A syntactic analysis process generation device that generates a syntactic analysis process from a sequence of words to which a part of speech is given, and a correspondence relationship for each word that constitutes the non-parsizable sentence with respect to the syntactic analysis process of the parsable paraphrase sentence. A parsing process conversion device for converting a parsing process of the paraphrase sentence into a parsing process of the unparsable sentence by checking excess or deficiency, and the unparsable sentence converted by the parsing process conversion device. And a new grammar rule extracting device for extracting grammar rules not included in the grammar rules in the syntactic analysis process.

【0006】[0006]

【作用】本発明の文法規則拡張システムでは、構文解析
不能な文と同じ意味を持つ言い替え文の構文解析を文法
規則を用いて行って構文解析過程を生成し、言い替え文
についての構文解析過程を構文解析不能文の構文解析過
程に変換し、変換された構文解析過程のうち文法規則に
含まれていない文法規則を抽出する。
In the grammar rule expansion system of the present invention, the parsing process of a paraphrase sentence having the same meaning as a sentence that cannot be parsed is performed by using grammar rules to generate a parsing process, and the parsing process of the paraphrase sentence is performed. It is converted into a parsing process of an unparseable sentence, and grammar rules not included in the grammar rules are extracted from the converted parsing process.

【0007】[0007]

【実施例】以下、図面を用いて本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0008】図1は、本発明の一実施例に係る文法規則
拡張システムの構成を示すブロック図である。同図に示
す文法規則拡張システムは、現在の文法規則を格納して
いる文法規則格納装置1、該文法規則格納装置1に格納
された文法規則を適用して構文解析可能な言い替え文を
構文解析して構文解析過程を生成する構文解析過程生成
装置2、言い替え文の構文解析過程に対して構文解析不
能文を入力し、言い替え文の構文解析過程を構文解析不
能文の構文解析過程に変換する構文解析過程変換装置
3、および該構文解析過程変換装置3により変換された
構文解析不能文の構文解析過程の中で文法規則に含まれ
ていない文法規則を抽出する拡張文法規則抽出装置4か
ら構成されている。
FIG. 1 is a block diagram showing the configuration of a grammar rule extension system according to an embodiment of the present invention. The grammar rule expansion system shown in FIG. 1 applies a grammar rule storage device 1 that stores a current grammar rule and a grammar rule stored in the grammar rule storage device 1 to parse a paraphrase sentence that can be parsed. A parsing process generation device 2 for generating a parsing process by inputting an unparseable sentence to the parsing process of the paraphrase sentence and converting the parsing process of the paraphrase sentence into the parsing process of the parsing sentence. A parsing process conversion device 3 and an extended grammar rule extraction device 4 for extracting grammatical rules not included in the grammatical rules in the parsing process of the unparseable sentence converted by the parsing process conversion device 3. Has been done.

【0009】次に、図2に示すフローチャートを参照し
て、図1に示す文法規則拡張システムの作用を説明す
る。図2において、形態素解析された言い替え文が構文
解析過程生成装置2に入力されると(ステップS2
1)、構文解析過程生成装置2は文法規則格納装置1に
格納されている文法規則を使って言い替え文の構文解析
過程を生成して出力する(ステップS22)。形態素解
析された構文解析不能文が構文解析過程変換装置3に入
力文として入力される(ステップS23)。構文解析過
程変換装置3は入力文と構文解析過程生成装置2により
生成された言い替え文の構文解析過程から、入力文に関
する構文解析過程を生成し出力する(ステップS2
4)。拡張文法規則抽出装置4は文法規則格納装置1に
格納されている文法規則と変換された構文解析過程を比
較し、新文法規則を抽出し出力する(ステップS25,
S26)。
Next, the operation of the grammar rule expansion system shown in FIG. 1 will be described with reference to the flowchart shown in FIG. In FIG. 2, when the paraphrase text subjected to morphological analysis is input to the syntactic analysis process generation device 2 (step S2
1), the syntactic analysis process generation device 2 uses the grammatical rules stored in the grammar rule storage device 1 to generate and output the parsing process of the paraphrase sentence (step S22). The morphologically unanalyzable sentence is input to the syntactic analysis process conversion device 3 as an input sentence (step S23). The syntactic analysis process conversion device 3 generates and outputs a syntactic analysis process regarding the input sentence from the syntactic analysis process of the input sentence and the paraphrase sentence generated by the syntactic analysis process generation device 2 (step S2).
4). The extended grammar rule extraction device 4 compares the grammar rules stored in the grammar rule storage device 1 with the converted syntactic analysis process to extract and output new grammar rules (step S25,
S26).

【0010】本実施例の具体例として、「彼には子供が
いる」という入力文に対して、言い替え文として「彼は
子供がいる」が与えられる場合について説明する。な
お、「子供がいる」の部分については双方の文で違いが
ないため、説明を簡潔にするため、以下、違いのある
「彼には」と「彼は」の部分についてのみ説明する。
As a specific example of the present embodiment, a case will be described in which an input sentence "He has children" is given as a paraphrase sentence "He has children". In addition, since there is no difference between the sentences of "there is a child" in both sentences, in order to simplify the description, only the "he is" and "he is" parts having a difference will be described below.

【0011】まず、データ記述形式を説明する。X,
Y,Z,Wは変数であることを表す。[X|Y]はリス
トの先頭がXで残りがYであることを表している。[X
\Y]はXとYの差分リストを表している。例えば、
「[a,b,c]\[b,c]」はリスト[a,b,
c]と[b,c]の差分[a]を表している。「後置詞
([で|X]\X)」は「『で』が後置詞である」とい
う事実型文法を表わすものとして取り扱われる。また、
「後置詞句(X\Y):−名詞句(X\Xs),後置詞
(Xs\Y)」は「後置詞句は、名詞句とそれに続く、
後置詞からなる」という規則型文法を表すものとして取
り扱われる。規則型文法の「:−」の左側をヘッドと呼
び、「:−」の右側をボディと呼ぶ。以下、この記法を
用いて説明する。詳しくは、文献(Leon Sterling and
Ehud Shapiro,THE ART OF PROLOG,MIT Press,1986,松田
利夫訳、「Prologの技芸」、共立出版、1988)に記載さ
れている。また、説明のために文法規則を木構造により
表現することがある。例えば、「A:−B,C」の規則
はノードAの下に、ノードBとCがそれぞれ接続される
木構造として表現する。ノードBとCは元の規則の順序
通り、左から右の順で配置される。
First, the data description format will be described. X,
Y, Z and W represent variables. [X | Y] indicates that the head of the list is X and the rest is Y. [X
\ Y] represents a difference list between X and Y. For example,
"[A, b, c] \ [b, c]" is the list [a, b,
The difference [a] between [c] and [b, c] is shown. "Postposition ([de | X] \ X)" is treated as a factual grammar in which "de" is a postposition. Also,
"Postpositional phrase (X \ Y):-Noun phrase (X \ Xs), postpositional (Xs \ Y)" means "postpositional phrase is a noun phrase followed by it.
It is treated as a representation of a regular grammar "consisting of postpositions". The left side of ":-" in the regular grammar is called a head, and the right side of ":-" is called a body. Hereinafter, description will be made using this notation. For details, refer to the literature (Leon Sterling and
Ehud Shapiro, THE ART OF PROLOG, MIT Press, 1986, translated by Toshio Matsuda, "Techniques of Prolog", Kyoritsu Shuppan, 1988). For the sake of explanation, grammar rules may be expressed in a tree structure. For example, the rule of "A: -B, C" is expressed as a tree structure in which nodes B and C are connected under the node A, respectively. The nodes B and C are arranged in the order from left to right according to the order of the original rule.

【0012】上記の記法により、「後置詞句([彼,
に,は]\[])」と形態素解析の結果が入力文として
与えられ、「後置詞句([彼,は]\[])」が言い替
え文として与えられたとき、図2の手順に従って、文法
規則を拡張する例について説明する。図3は、本実施例
において文法規則格納装置1に登録されている内容であ
る。
According to the above notation, "postposition phrase ([he,
, Ha] \ []) ”and the result of morphological analysis are given as input sentences, and“ postposition phrase ([he, ha] \ []) ”is given as a paraphrase sentence, the procedure of FIG. 2 is followed. An example of extending the grammar rule will be described. FIG. 3 shows the contents registered in the grammar rule storage device 1 in this embodiment.

【0013】構文解析過程生成装置2は「後置詞句
([彼,は]\[])」を入力文として受け取り、文法
規則格納装置1に登録されている文法規則から、入力文
に関する構文解析過程を生成する。以下、文法規則およ
び文法規則に具体的な値を代入した規則を、説明のため
に「後置詞句([彼,は]\[])」の構文解析過程は
図4のようになる。これは、「後置詞句([彼,は]\
[])」に図3の文法規則を適用した結果である。文法
規則は次の手順で適用される。まず、「後置詞句
([彼,は]\[])」とヘッドが照合可能な文法規則
を図3の中から探す。R1のみ候補となるので、照合を
行い、対応する変数に値を代入する。照合により、図3
のR1のXに[彼,は]を、Yに[]を代入する。これ
により、「後置詞句([彼,は]\[]):−名詞句
([彼,は]\Xs)、後置詞(Xs\[])」が得ら
れる。次に、このボディを左から順に文法規則と照合し
ていく。この展開は、事実型文法規則を照合されるまで
続けられる。「名詞句([彼,は]\Xs)」はR7と
のみ照合可能である。照合の結果[彼,は]の「彼」を
除くリスト、すなわち[は]がXsに代入される。次
に、「後置詞([は]\[])」が文法規則と照合でき
るかどうかを調べると、R2とR3と照合できることが
分かる。R2に照合した結果において、そのボディの
「格助詞([は]\[])」は照合できる文法規則が図
3の中にはないので選択しない。一方、R3に照合した
結果においては、そのボディ「副助詞([は]
\[])」は事実型文法規則R6と照合できるので、選
択される。これにより、「後置詞句([彼,は]
\[]):−名詞句([彼,は]\[は]),後置詞
([は]\[])」と「後置詞([は]\[]):−副
助詞([は]\[])」が生成される。これを、構文解
析過程として木構造で表したものを図4に示す。構文解
析過程生成装置2はこの構文解析過程を出力する。
The syntactic analysis process generation device 2 receives "postpositional phrase ([he, ha] \ [])" as an input sentence, and from the grammar rules registered in the grammar rule storage device 1, parses the input sentence. Generate a process. The syntax analysis process of the "postpositional phrase ([he, ha] \ [])" for explaining the grammatical rule and the rule in which a specific value is assigned to the grammatical rule is as shown in FIG. This is a postpositional phrase ([he, ha] \
[]) ”Is the result of applying the grammatical rule of FIG. Grammar rules are applied in the following steps. First, a grammatical rule with which the head can match "postpositional phrase ([he, ha] \ [])" is searched for in FIG. Since only R1 is a candidate, collation is performed and a value is assigned to the corresponding variable. Figure 3
Substitute [he, ha] for X and [] for Y of R1. As a result, "postpositional phrase ([he, ha] \ []):-noun phrase ([he, ha] \ Xs), postposition (Xs \ [])" is obtained. Next, this body is checked against the grammar rules in order from the left. This expansion continues until the factual grammar rules are matched. "Noun phrase ([he, ha] \ Xs)" can be matched only with R7. The list of [he, ha] excluding “he”, that is, [ha] is substituted for Xs as a result of the collation. Next, if it is checked whether "postposition ([wa] \ [])" can be matched with the grammar rule, it can be seen that it can be matched with R2 and R3. In the result of matching with R2, the case particle ([wa] \ []) of the body is not selected because there is no grammatical rule that can be matched in FIG. On the other hand, in the result of matching with R3, the body “sub particle ([wa]
\ []) "Can be matched with the factual grammar rule R6 and is therefore selected. As a result, the postpositional phrase ([he, ha]
\ []):-Noun phrase ([he, ha] \ [ha]), postposition ([wa] \ []) "and" postposition ([wa] \ []):-adverb ([wa ] \ []) "Is generated. FIG. 4 shows this in a tree structure as a parsing process. The syntax analysis process generation device 2 outputs this syntax analysis process.

【0014】構文解析過程変換装置3は、構文解析過程
生成装置2により出力された構文解析過程を「後置詞句
([彼,に,は]\[])」についての構文解析過程に
変換する。まず、構文解析不能な文と言い替え文の単語
間の最も相違の少ない対応関係を見つけ、次に対応関係
に基づいて、単語の過不足を補うように構文解析過程を
変更し、最後に一般化する。
The syntactic analysis process conversion device 3 converts the syntactic analysis process output by the syntactic analysis process generation device 2 into a syntactic analysis process for "postposition phrase ([he, ni, ha] \ [])". . First, find the correspondence with the least difference between the words in the unparseable sentence and the paraphrase sentence, then change the parsing process to compensate for the excess or deficiency of the word based on the correspondence, and finally generalize. To do.

【0015】図4の構文解析過程の末端は 名詞([彼,は]\[は]) 副助詞([は]\[]) であり、 「後置詞句([彼,に,は]\[])」に現れる各単語
の品詞は、 名詞([彼|X]\X) 格助詞([に|X]\X) 副助詞([は|X]\X) である。
The end of the parsing process in FIG. 4 is a noun ([he, ha] \ [wa]), an adverb ([wa] \ []), and a "postpositional phrase ([he, ni, ha] \ The part of speech of each word appearing in []) is a noun ([he | X] \ X) a case particle ([ni | X] \ X) and a sub particle ([wa | X] \ X).

【0016】最もペアの相違の個数が少ない対応関係
は、 {<名詞([彼,は]\[は])、 名詞([彼|X]\X)> <なし、格助詞([に|X]\X)> <副助詞([は]\[])、 副助詞([は|X]\X)>} である。
The correspondence with the smallest number of pair differences is {<noun ([he, ha] \ [wa]), noun ([he | X] \ X)><none, case particle ([ni | X] \ X)><sub particle ([wa] \ []), subparticle ([wa | X] \ X)>}.

【0017】この対応関係を元に、構文解析過程を変換
する様子を図5に示す。文の初めの単語についての対応
関係から、順に変更していく。対応関係<名詞([彼,
は]\[は])、名詞([彼|X]\X)>は両者同じ
なので、変更しない。<なし、格助詞([に|X]\
X)>については、構文解析過程への格助詞([に|
X]\X)の追加が必要になる。追加できるノードは後
置詞句だけなので、そこに追加する。対応関係<副助詞
([は|X]\X)、副助詞([は|X]\X)>は両
者同じなので、変更しない。こうして、図6の構文解析
過程が得られる。
FIG. 5 shows how the parsing process is converted based on this correspondence. Change from the correspondence of the first word of the sentence in order. Correspondence <noun ([he,
Ha] \ [wa]) and noun ([he | X] \ X)> are the same, so do not change. <None, case particle ([ni | X] \
X)>, the case particle ([ni |
[X] \ X) is required. The only node that can be added is the postpositional phrase, so add it there. The correspondence <sub particle ([is | X] \ X) and sub particle ([is | X] \ X)> is the same for both, and therefore is not changed. In this way, the parsing process of FIG. 6 is obtained.

【0018】次に、構文解析過程を一般化する。まず、
図6のように各ノードの引数をすべて独立な変数に置き
換えて、図7を得る。続いて、図8のように各ノードの
変数を文法規則となるように置き換えていく。具体的に
は、親ノードの第1引数の変数を一番左にある子ノード
の第1引数と同じにし、その子ノードの第2引数は右隣
にある子ノードの第1引数と同じにする。同様にして、
隣合った子ノードの第2引数と第1引数を同じにしてい
く。最後に、一番右にある子ノードの第2引数は親ノー
ドの第2引数と同じにする。
Next, the parsing process is generalized. First,
All the arguments of each node are replaced with independent variables as shown in FIG. 6 to obtain FIG. Then, as shown in FIG. 8, the variables of each node are replaced so as to satisfy the grammar rules. Specifically, the variable of the first argument of the parent node is made the same as the first argument of the leftmost child node, and the second argument of the child node is made the same as the first argument of the child node on the right side. . Similarly,
Make the second argument and first argument of adjacent child nodes the same. Finally, the second argument of the rightmost child node is the same as the second argument of the parent node.

【0019】以上のようにして、図8のような変換され
た構文解析過程が生成され、構文解析過程変換装置3か
ら出力される。
As described above, the converted syntax analysis process as shown in FIG. 8 is generated and output from the syntax analysis process conversion device 3.

【0020】拡張文法規則抽出装置4は、変換された構
文解析過程を入力として取り、新しい文法規則を抽出し
て出力する。新しい文法規則を抽出する手順は、構文解
析過程を文法規則に分解し、文法規則格納装置1に格納
されている文法規則と分解された文法規則を比較し、文
法規則格納装置1に存在しない文法規則を新しい文法規
則として出力する。
The extended grammar rule extraction device 4 receives the converted syntax analysis process as an input, extracts a new grammar rule, and outputs it. The procedure for extracting a new grammar rule is to decompose the parsing process into grammar rules, compare the grammar rules stored in the grammar rule storage device 1 and the decomposed grammar rules, and extract the grammar rules that do not exist in the grammar rule storage device 1. Output the rule as a new grammar rule.

【0021】図8の構文解析過程は、次の2つの文法規
則R*,R#を表したものである。 (R*)後置詞句(X\W):−名詞(X\Y),格助
詞(Y\Z)後置詞(Z\W) (R#)後置詞(Z\W):−副助詞(Z\W) このうち、R#はR3と同じであるから、新文法規則で
はない。一方R*に相当する文法規則はないので、R*
は新文法規則として出力される。
The parsing process of FIG. 8 represents the following two grammar rules R * and R #. (R *) Postpositional phrase (X \ W):-Noun (X \ Y), Case particle (Y \ Z) Postpositional (Z \ W) (R #) Postpositional (Z \ W):-Adverbial (Z \ W) Of these, R # is not the new grammar rule because it is the same as R3. On the other hand, there is no grammatical rule corresponding to R *, so R *
Is output as a new grammar rule.

【0022】このようにして、「後置詞句([彼,に,
は]\[])」が入力文として与えられ、「後置詞句
([彼,は]\[])」が言い替え文として与えられた
とき、新しい文法規則R*を抽出して文法規則を拡張す
ることが可能となる。
In this way, the postpositional phrase ([he, ni,
When [] \ []) ”is given as an input sentence and“ postpositional phrase ([he, ha] \ []) ”is given as a paraphrase sentence, a new grammar rule R * is extracted and It can be expanded.

【0023】[0023]

【発明の効果】以上説明したように、本発明によれば、
構文解析不能な文と同じ意味を持つ言い替え文の構文解
析を文法規則を用いて行って構文解析過程を生成し、言
い替え文についての構文解析過程を構文解析不能文の構
文解析過程に変換し、変換された構文解析過程のうち文
法規則に含まれていない文法規則を抽出するので、従来
のように自然言語文法に関する知識を持った専門家によ
ることなく、自動的に短時間で新しい文法規則が生成さ
れ、経済化を図ることができる。
As described above, according to the present invention,
Parsing a paraphrase sentence having the same meaning as a non-parsing sentence by using grammar rules to generate a parsing process, converting the parsing process for a paraphrase sentence into a parsing process of a non-parsing sentence, Since the grammar rules that are not included in the grammar rules are extracted from the converted parsing process, new grammar rules can be automatically created in a short time without the need for an expert with knowledge of natural language grammar as in the past. It is generated and can be made economical.

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

【図1】本発明の一実施例に係る文法規則拡張システム
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a grammar rule extension system according to an exemplary embodiment of the present invention.

【図2】図1に示す文法規則拡張システムの作用を示す
フローチャートである。
FIG. 2 is a flowchart showing an operation of the grammar rule extension system shown in FIG.

【図3】図1の文法規則拡張システムに使用されている
文法規則格納装置に格納されている内容の一例を示す図
である。
FIG. 3 is a diagram showing an example of contents stored in a grammar rule storage device used in the grammar rule expansion system of FIG.

【図4】言い替え文に関する構文解析過程を木構造で示
す図である。
FIG. 4 is a diagram showing a syntax analysis process for a paraphrase sentence in a tree structure.

【図5】構文解析過程を変換する様子を示す図である。FIG. 5 is a diagram showing how a parsing process is converted.

【図6】得られた構文解析過程を示す図である。FIG. 6 is a diagram showing an obtained syntax analysis process.

【図7】図6に示す各ノードの引数を独立な変数に置き
換えた様子を示す図である。
FIG. 7 is a diagram showing how the arguments of each node shown in FIG. 6 are replaced with independent variables.

【図8】変換された構文解析過程を示す図である。FIG. 8 is a diagram showing a converted parsing process.

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

1 文法規則格納装置 2 構文解析過程生成装置 3 構文解析過程変換装置 4 拡張文法規則抽出装置 1 grammar rule storage device 2 syntactic analysis process generation device 3 syntactic analysis process conversion device 4 extended grammar rule extraction device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 現在の文法規則を用いても構文解析不能
な文および該構文解析不能文と同じ意味を持ち、現在の
文法規則で構文解析可能な言い替え文が入力されたと
き、前記構文解析不能文を構文解析可能とするために必
要な文法規則を新たに生成する文法規則拡張システムで
あって、 現在の文法規則を格納する文法規則格納装置と、 該文法規則格納装置に格納された文法規則を適用し、前
記言い替え文を構文解析して、品詞を付与した単語の順
序列から構文解析過程を生成する構文解析過程生成装置
と、 前記構文解析可能な言い替え文の構文解析過程に対して
前記構文解析不能文を構成する単語毎に対応関係の過不
足を検査することにより前記言い替え文の構文解析過程
を前記構文解析不能な文の構文解析過程に変換する構文
解析過程変換装置と、 該構文解析過程変換装置により変換された前記構文解析
不能文の構文解析過程の中で前記文法規則に含まれてい
ない文法規則を抽出する新文法規則抽出装置とを有する
ことを特徴とする文法規則拡張システム。
1. When a sentence that cannot be parsed using the current grammar rule and a paraphrase sentence that has the same meaning as the sentence that cannot be parsed and that can be parsed by the current grammar rule are input, the parsing is performed. A grammar rule expansion system for newly generating a grammar rule necessary to enable parsing of an impossible sentence, the grammar rule storage device storing a current grammar rule, and a grammar stored in the grammar rule storage device. Applying a rule, parsing the paraphrase sentence, and a parsing process generation device for generating a parsing process from a sequence of words with parts of speech added, and for the parsing process of the parsable paraphrase sentence Parsing process conversion for converting the parsing process of the paraphrase sentence into the parsing process of the unparsable sentence by checking the correspondence between each word constituting the unparseable sentence And a new grammar rule extracting device for extracting grammatical rules not included in the grammatical rules in the parsing process of the unparseable sentence converted by the parsing process converting device. Grammar rule extension system.
JP6247797A 1994-10-13 1994-10-13 Grammatical rule extension system Pending JPH08115217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6247797A JPH08115217A (en) 1994-10-13 1994-10-13 Grammatical rule extension system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6247797A JPH08115217A (en) 1994-10-13 1994-10-13 Grammatical rule extension system

Publications (1)

Publication Number Publication Date
JPH08115217A true JPH08115217A (en) 1996-05-07

Family

ID=17168802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6247797A Pending JPH08115217A (en) 1994-10-13 1994-10-13 Grammatical rule extension system

Country Status (1)

Country Link
JP (1) JPH08115217A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2407657A (en) * 2003-10-30 2005-05-04 Vox Generation Ltd Automatic grammar generator comprising phase chunking and morphological variation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2407657A (en) * 2003-10-30 2005-05-04 Vox Generation Ltd Automatic grammar generator comprising phase chunking and morphological variation
GB2407657B (en) * 2003-10-30 2006-08-23 Vox Generation Ltd Automated grammar generator (AGG)

Similar Documents

Publication Publication Date Title
Zhang et al. Learning to generate CGs from domain specific sentences
Boyer et al. Generating paraphrases from meaning‐text semantic networks
JPS6318458A (en) Method and apparatus for extracting feeling information
Harbusch et al. Incremental syntax generation with tree adjoining grammars
Arwidarasti et al. Converting an Indonesian constituency treebank to the Penn treebank format
JPH08115217A (en) Grammatical rule extension system
Zaenen et al. Language analysis and understanding
Osborne et al. Learning unification-based grammars using the Spoken English Corpus
Sengupta et al. A morpho-syntactic analysis based lexical subsystem
JP3113257B2 (en) Machine translation equipment
Mykowiecka Natural-language generation—an overview
Kübler et al. Adding context information to part of speech tagging for dialogues
JP3892227B2 (en) Machine translation system
Patil et al. A review on implementation of Sandhi Viccheda for Sanskrit words
Suhail et al. A Bottom-Up Approach applied to Dependency Parsing in Malayalam Language
JP2555921B2 (en) Word processor with translation conversion function
JP4039205B2 (en) Natural language processing system, natural language processing method, and computer program
Wang et al. Empirical study of Mandarin Chinese discourse analysis: An event-based approach
Yufeng et al. A Rich-label Constituency Tree for Constituency Parsing
JP2004086919A (en) Mechanical translation system
Le Nguyen et al. A sentence reduction using syntax control
JPH0312344B2 (en)
JP6573839B2 (en) Sentence generating apparatus, method, and program
JP3339006B2 (en) Parallel Noun Phrase Processor in Machine Translation Equipment
Chun SNePS implementation of possessive phrases

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20091124

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101124

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20111124

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20121124

Year of fee payment: 12

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20121124

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

Free format text: PAYMENT UNTIL: 20131124

Year of fee payment: 13

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250