JPS6320564A - Natural language processor - Google Patents

Natural language processor

Info

Publication number
JPS6320564A
JPS6320564A JP61163785A JP16378586A JPS6320564A JP S6320564 A JPS6320564 A JP S6320564A JP 61163785 A JP61163785 A JP 61163785A JP 16378586 A JP16378586 A JP 16378586A JP S6320564 A JPS6320564 A JP S6320564A
Authority
JP
Japan
Prior art keywords
sentence
sentence structure
structure analysis
input
analysis
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
JP61163785A
Other languages
Japanese (ja)
Inventor
Jiro Nemoto
根本 治朗
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61163785A priority Critical patent/JPS6320564A/en
Publication of JPS6320564A publication Critical patent/JPS6320564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)

Abstract

PURPOSE:To evade waste in case of analyzing a sentence structure, so that a natural language processing can be executed efficiently and quickly, by truncating and executing a sentence structure analysis processing by unit information of a phrase and a clause which are held in a sentence structure analysis unit information holding means. CONSTITUTION:Whether a sentence which is inputted from an input part 1 has been held in an input sentence holding part 2 or not is decided, and when the input sentence has been held, a sentence structure analysis processing part 3 executes a sentence structure analysis processing by using a grammar rule which is held in a sentence structure analyzing information holding part 4, and sentence structure analyzing information of a word dictionary, etc. Subsequently, whether names of a 'noun phrase' and a 'verb phrase', etc. of a sentence structure tree which is generated by the sentence structure analysis processing part 3 are contained in a sentence structure analysis unit holding part 5 or not is checked. Whether a symbol for showing the end of a sentence, such as a 'punctuation mark' and a 'question mark' (?) is contained in a part where the sentence structure analysis processing is completed by the sentence structure analysis processing part 3 or not is decided. Subsequently, the part where the sentence structure analysis processing is completed by the sentence structure analysis processing part 3 is deleted from the input sentence holding part 2, and added to a sentence structure analysis result holding part 6 as a sentence structure analysis result.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、日本語・英語等の自然言語の処理装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a processing device for natural languages such as Japanese and English.

[従来の技術] 従来の自然言語処理装置は、キーボード、マイクあるい
は入力タブレットとペン等の入力手段から入力された文
を、単語辞書・文法規則等の情報を保持した構文解析用
情報保持手段からの情報に基づき構文解析し、この構文
解析の結果をいったん保持し、さらにこの後に係り受は
解析や意味解析を行っている。
[Prior Art] Conventional natural language processing devices process sentences inputted from input means such as a keyboard, microphone, or input tablet and pen from syntactic analysis information holding means that holds information such as word dictionaries and grammar rules. The syntax is parsed based on the information, the result of this syntax analysis is temporarily held, and after this, the modification and semantic analysis are performed.

かかる構文解析では、入力された1つの文全体を1つの
構文木として構成し終るまで、構文解析をしつづけるの
が通常である。
In such syntactic analysis, the syntactic analysis is normally continued until the entire input sentence is constructed as one syntax tree.

例えは、第3図にも示す「かごから白い鳥が逃げた。」
という例文を、構文解析処理するときは、第4図に示す
如く、文頭から順次構文解析を行い、積上げて1つの構
文木として構成している。
An example is "The white bird ran away from the cage" as shown in Figure 3.
When parsing the example sentence, as shown in FIG. 4, the parsing is performed sequentially from the beginning of the sentence, and the sentences are stacked to form a single parse tree.

しかしながら、このようにしてせっかく作った構文木も
、その後の処理工程である係り受は解析や、意味解析に
おいて、不成功とみなされ再度描文解析をやり直すか、
あるいはその構文木そのものを無視してやらざるを得な
い場合がある。
However, even with the syntax tree created in this way, the subsequent processing steps such as dependency analysis and semantic analysis will be deemed unsuccessful, and the drawing analysis will have to be restarted again.
Or you may have no choice but to ignore the syntax tree itself.

すなわち、上述した例文につき説明すると、例文の有す
る意味から考察した意味ネットワークは、第5図に示す
ようになる。形容詞「白い」が名詞「鳥」を直接修飾し
主語となり、動詞“逃げた”が述語となる。
That is, to explain the above-mentioned example sentence, the semantic network considered from the meaning of the example sentence is shown in FIG. The adjective ``white'' directly modifies the noun ``bird'' and becomes the subject, and the verb ``ran away'' becomes the predicate.

ところが、第4図に示した積上げ式の構文木では、「白
い」と「鳥」が分離して解析されるので、第5図に示し
た例文本来の意味ネットワーク、&−fifi”−離数
814・: v J:5 tt ’j% 。
However, in the stacked syntax tree shown in Figure 4, "white" and "bird" are analyzed separately, so the original semantic network of the example sentence shown in Figure 5, &-fifi''-disjunction 814.: v J:5 tt 'j%.

には、第6図に示す構文木の形態に再度構成し直す必要
が生じ、このための手間がかかるという不都合がある。
This has the disadvantage that it is necessary to reconfigure it into the form of the syntax tree shown in FIG. 6, which takes time and effort.

[発明が解決しようとする問題点] そこで、本発明の目的は、上述の欠点を解消し、構文解
析における無駄を省き、処理速度の速4ン い自然35処王里装首をI足イ共することにある。
[Problems to be Solved by the Invention] Therefore, the purpose of the present invention is to eliminate the above-mentioned drawbacks, eliminate waste in syntactic analysis, and improve the processing speed of the natural 35-place Ori neck. It's about sharing.

[問題点を解決するための手段] 上記目的を達成するため、本発明は文を入力する入力手
段と、入力手段によって入力された文の構文を解析する
横文解析手段と、構文解析に使用する単語辞書・文法規
則等の情報を保持する構文解析用情報保持手段と、構文
解析手段によって構文解析された結果を保持する構文解
析結果保持手段と、句や節等の構文解析単位情報を保持
する構文解析単位情報保持手段とを備え、当該構文解析
単位情報を構文解析手段に供給して構文解析を行うよう
にしたことを特徴とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides an input means for inputting a sentence, a lateral sentence analysis means for analyzing the syntax of the sentence input by the input means, and an input means used for syntactic analysis. a syntactic analysis information holding means that holds information such as a word dictionary and grammar rules; a syntactic analysis result holding means that holds the results of syntactic analysis by the syntactic analysis means; and a syntactic analysis unit information such as phrases and clauses. The present invention is characterized in that the syntax analysis unit information is provided to the syntax analysis means to perform syntax analysis.

[作用] 上記の構成になる本発明の作用を以下説明する。[Effect] The operation of the present invention having the above structure will be explained below.

入力手段から入力された文は、構文解析用情報保持手段
に保持されている構文解析用情報を用いて、構文解析手
段によって構文解析処理される。
The sentence inputted from the input means is parsed by the parsing means using the parsing information held in the parsing information holding means.

この構文解析処理の際、句1節等の構文解析単位情報を
保持する構文解析単位情報保持手段に保持されている情
報内容を検索し、構文解析処理の結果生成された構文木
の「名詞句」や「動詞句」の名前が、保持内容に、含ま
れているか否かを調べる。含まれている場合には、この
「名詞句」等を、そのまま構文解析結果保持手段に送り
出す。
During this syntactic analysis process, the information content held in the syntactic analysis unit information holding means that holds syntactic analysis unit information such as phrase 1 clause is searched, and the "noun phrase" of the syntactic tree generated as a result of the syntactic analysis process is searched. '' or the name of a ``verb phrase'' is checked to see if it is included in the retained content. If it is included, this "noun phrase" etc. is sent as is to the parsing result holding means.

このようにして、「名詞句」あるいは「動詞句」等の単
位情報毎に構文が解析されるので、処理が高速化される
のである。
In this way, the syntax is analyzed for each unit of information such as "noun phrase" or "verb phrase", thereby speeding up the processing.

[実施例] 以下本発明の実施例を添付図面に基づき説明する。[Example] Embodiments of the present invention will be described below with reference to the accompanying drawings.

第1図は、本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

ここで、1はキーボード、マイク等のような各種形態で
文を入力する入力部である。
Here, 1 is an input unit for inputting sentences in various forms such as a keyboard, a microphone, etc.

2は入力部1から入力された文を保持する入力文保持部
である。
Reference numeral 2 denotes an input sentence holding section that holds sentences input from the input section 1.

3は入力文保持部2に保持されている文を構文解析する
構文解析処理部である。この構文解析処理部3には、た
とえば、第2図のフローチャートに従った制御プログラ
ムが格納されるエリアを有するROM 3Aを設けてお
く。
Reference numeral 3 denotes a syntactic analysis processing unit that parses the sentence held in the input sentence holding unit 2. The syntax analysis processing unit 3 is provided with a ROM 3A having an area in which a control program according to the flowchart of FIG. 2 is stored, for example.

4はかかる構文解析に必要な文法規則および単語辞書な
どの情報を保持する構文解析用情報保持部である。
Reference numeral 4 denotes a syntactic analysis information holding unit that holds information such as grammar rules and word dictionaries necessary for such syntactic analysis.

5は構文解析で用いる「句」あるいは「節jなどの構文
解析単位情報を保持する構文解析結果保持部である。
Reference numeral 5 denotes a syntactic analysis result holding unit that holds syntactic analysis unit information such as "phrase" or "clause j" used in syntactic analysis.

6は構文解析処理部2における解析結果を保持する構文
解析結果保持部である。
Reference numeral 6 denotes a parsing result holding unit that holds the parsing results of the parsing processing unit 2.

次に、上記構成になる本実施例の制御手順の一例を第2
図に示すフローチャートを参照して説明する。
Next, an example of the control procedure of this embodiment having the above configuration will be explained in a second example.
This will be explained with reference to the flowchart shown in the figure.

まず、処J里がスタートすると、ステップS1において
入力部lから入力された文が入力文保持部2に保持され
たか否かを判断する。保持されていない場合には、保持
されるまで、このステップSlを繰り返す。
First, when the program starts, it is determined in step S1 whether the sentence input from the input section 1 is held in the input sentence holding section 2 or not. If it is not held, this step Sl is repeated until it is held.

入力車が保持されたときには、ステップS2の構文解析
処理に進み、ここでは、構文解析用情報保持部4に保持
されている文法規則や単語辞書等の構文解析用情報を用
いて、構文解析処理部3が横文解析処理を行う。
When the input wheel is held, the process proceeds to step S2, where the syntactic analysis process is performed using the syntactic analysis information such as grammar rules and word dictionaries held in the syntactic analysis information storage unit 4. Section 3 performs horizontal text analysis processing.

次に、ステップS3では、構文解析処理部3で生成され
た構文木の「名詞句」とか「動詞句」等の名前が、構文
解析結果保持部5に含まれているか否かを調べる。含ま
れていないときには、ステップS2に戻り構文解析処理
をやり直す。含まれているときには、ステップS4に進
む。
Next, in step S3, it is checked whether the names of "noun phrase", "verb phrase", etc. of the syntax tree generated by the syntax analysis processing section 3 are included in the syntax analysis result holding section 5. If it is not included, the process returns to step S2 and the parsing process is repeated. If it is included, the process advances to step S4.

ステップS4では、構文解析処理部3にて構文解析処理
が完了した部分に、「句点」とか「疑問符」(?)とい
った文の終りを表わす記号が、含まれているか否かを判
断する。含まれていないときには、ステップS5に進み
、含まれているときは、ステップS6に進む。
In step S4, it is determined whether or not the portion for which the syntactic analysis process has been completed by the syntactic analysis processing unit 3 includes a symbol representing the end of a sentence, such as a "full stop" or "question mark" (?). If it is not included, the process proceeds to step S5; if it is included, the process proceeds to step S6.

ステップS5およびステップS6では、共に、構文解析
処理部3で構文解析処理が完了した部分を、入力文保持
部2から削除し、構文解析結果として構文解析結果保持
部6に加えるという処理を行う。
In both steps S5 and S6, the part for which the syntax analysis process has been completed by the syntax analysis processing section 3 is deleted from the input sentence holding section 2, and added to the syntax analysis result holding section 6 as a result of the syntax analysis.

以上の処理の後、ステップS5の場合には構文解析の途
中であるからステップS2に戻る。
After the above processing, in the case of step S5, since syntax analysis is in progress, the process returns to step S2.

一方、ステップS6では一文の構文解析は完了したこと
からエンドに移り、処理を終了する。
On the other hand, in step S6, since the syntactic analysis of one sentence has been completed, the process moves to the end and ends the process.

構文解析結果保持部6からはその後の意味解析処理等の
ために処理結果を必要な個所に送給する。
The syntax analysis result holding unit 6 sends the processing results to a necessary location for subsequent semantic analysis processing, etc.

一例として、構文解析単位情報保持部4に「名詞句」、
「形容詞句Jt  r動詞句」、「終端記号」等の解析
単位情報を保持させておいて、前に述べた例文(第3図
参照)を構文解析処理する場合を説明する。
As an example, "noun phrase" is stored in the parsing unit information holding unit 4,
A case will be described in which parsing unit information such as "adjective phrase Jtr verb phrase" and "terminal symbol" is held and the previously mentioned example sentence (see FIG. 3) is parsed.

まず、入力文保持部2に例文「かごから白い鳥が逃げた
。」が保持され、続いて構文解析処理(ステップS2)
が行われるが、「かご」+「から」が「名詞句」である
ことから、構文解析単位情報保持部4との照合の結果、
合致しくステップS3)、構文解析は中断され、入力文
保持部2から「かごから」の部分が削除され、この解析
結果である「かごから」は構文解析結果保持部6に保持
される(ステップS5)。
First, an example sentence "The white bird ran away from the cage" is stored in the input sentence storage unit 2, and then parsing processing is performed (step S2).
is performed, but since "kago" + "kara" is a "noun phrase", as a result of comparison with the parsing unit information holding unit 4,
If the match is found (step S3), the parsing is interrupted, the part "from the basket" is deleted from the input sentence holding section 2, and the parsing result "from the basket" is held in the parsing result holding section 6 (step S3). S5).

以下、同じようにステップS2に戻って処理を続けると
、「白」+「い」が「形容詞句」であることから、前述
の説明から明らかなように、この「白い」が入力文保持
部2から削除され、構文解析結果保持部6に保持される
。かかる処理が繰り返され、結局、第7図に実線で示す
構文木が得られるのである。
Hereinafter, if you return to step S2 and continue the process in the same way, since "white" + "i" is an "adjective phrase", as is clear from the above explanation, this "white" will be stored in the input sentence holding section. 2 and is retained in the parsing result retaining unit 6. This process is repeated, and in the end, the syntax tree shown by the solid line in FIG. 7 is obtained.

以後は、この構文木の意味解析処理等を行うことにより
、第5図で示したような意味ネットワークが得られる。
Thereafter, by performing semantic analysis of this syntax tree, a semantic network as shown in FIG. 5 is obtained.

要するに、前述した第6図の構文木と第7図の構文木を
対比すると明らかなように、第7図の構文木にあっては
、第6図のものとの対比上破線で示した部分の構文木を
生成しないことから、その文だけ処理が高速化されるの
である。
In short, as is clear from comparing the above-mentioned syntax tree in Figure 6 with the syntax tree in Figure 7, in the syntax tree in Figure 7, the parts indicated by broken lines are Since no syntax tree is generated, the processing speed of only that sentence is increased.

なお、上記実施例においては、入力文はいったん、入力
文保持部に保持される例につき説明したが、直接に構文
解析処理部に送り、第2図に示すステップS1を省略し
てもよい。また、構文解析用情報としては文法規則や単
語辞書の他に知識表現情報等を含ませてもよいこともち
ろんである。
In the above embodiment, an example has been described in which the input sentence is temporarily held in the input sentence holding section, but it may be sent directly to the parsing section and step S1 shown in FIG. 2 may be omitted. It goes without saying that the syntactic analysis information may include knowledge expression information in addition to grammar rules and word dictionaries.

[発明の効果] 以上の説明から明らかなように、本発明によれば、横文
解析処理を、構文解析単位情報保持手段に保持された句
や節の単位情報で打ち切りながら行うので、オミ文解析
における無駄を省き、自然言語処理が能率よく迅速に行
われる。
[Effects of the Invention] As is clear from the above description, according to the present invention, the horizontal sentence analysis process is performed while terminating using the unit information of phrases and clauses held in the syntactic analysis unit information holding means, so that the lateral sentence Natural language processing is performed efficiently and quickly by eliminating waste in analysis.

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

第1図は本発明の一実施例を示すブロック構成図、 第2図は実施例の制御手順の一例を示すフローチャート
、 第3図は構文解析処理を説明するのに用いる「例文」を
示す図、 第4図はその「例文」の従来型構文木の1つを示す図、 第5図は上記「例文」の意味ネットワークを示す図、 第6図は上記「例文」について従来型構文木の他の1つ
を示す図、 第7図は上記「例文」について本発明で用いる構文木を
示す図である。 1・・・入力部、 2・・・入力文保持部、 3・・・構文解析処理部、 3A・・・制御プログラム格納エリアをもつROM。 4・・・構文解析用情報保持部、 5・・・構文解析単位情報保持部、 6・・・構文解析結果保持部。 4−発明亥1屯イ列のプロ1.77図 第1図 冬発明實オビイ列乃フローチャート 第2図 9列文ント氷す図 第3図 上名乙贅々り丈、にフリ7の不を粂ダオ角−文ネ1禾す
図上り己府ツ文、の老、味ネツトワークと示す図第5図
FIG. 1 is a block configuration diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing an example of a control procedure of the embodiment, and FIG. 3 is a diagram showing an "example sentence" used to explain syntax analysis processing. , Figure 4 shows one of the conventional syntax trees for the "example sentence", Figure 5 shows the semantic network of the "example sentence", and Figure 6 shows the conventional syntax tree for the "example sentence". Another diagram, FIG. 7, is a diagram showing a syntax tree used in the present invention for the above-mentioned "example sentence". DESCRIPTION OF SYMBOLS 1...Input unit, 2...Input sentence holding unit, 3...Syntax analysis processing unit, 3A...ROM having a control program storage area. 4... Syntactic analysis information holding unit, 5... Syntactic analysis unit information holding unit, 6... Syntactic analysis result holding unit. 4-Invention 1.77 Figure 1 Winter Invention Actual Flow Chart Figure 2 9 Column Text Figure 3 Figure 5 shows the old and taste network of the 粂 Dao corner - Bunne 1.

Claims (1)

【特許請求の範囲】 文を入力する入力手段と、 該入力手段によって入力された文の構文を解析する構文
解析手段と、 構文解析に使用する単語辞書・文法規則等の情報を保持
する構文解析用情報保持手段と、 前記構文解析手段によって構文解析された結果を保持す
る構文解析結果保持手段と、 句や節等の構文解析単位情報を保持する構文解析単位情
報保持手段と を備え、当該構文解析単位情報を前記構文解析手段に供
給して構文解析を行うようにしたことを特徴とする自然
言語処理装置。
[Scope of Claims] An input means for inputting a sentence, a syntactic analysis means for analyzing the syntax of the sentence input by the input means, and a syntactic analysis device for holding information such as a word dictionary and grammar rules used for the syntactic analysis. a syntax analysis result retention means for retaining the results of syntax analysis by the syntax analysis means; and a syntax analysis unit information retention means for retaining syntactic analysis unit information such as phrases and clauses, A natural language processing device characterized in that parsing is performed by supplying analysis unit information to the parsing means.
JP61163785A 1986-07-14 1986-07-14 Natural language processor Pending JPS6320564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61163785A JPS6320564A (en) 1986-07-14 1986-07-14 Natural language processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61163785A JPS6320564A (en) 1986-07-14 1986-07-14 Natural language processor

Publications (1)

Publication Number Publication Date
JPS6320564A true JPS6320564A (en) 1988-01-28

Family

ID=15780661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61163785A Pending JPS6320564A (en) 1986-07-14 1986-07-14 Natural language processor

Country Status (1)

Country Link
JP (1) JPS6320564A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4852597B2 (en) * 2006-02-28 2012-01-11 Gknドライブラインジャパン株式会社 Torque transmission device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4852597B2 (en) * 2006-02-28 2012-01-11 Gknドライブラインジャパン株式会社 Torque transmission device

Similar Documents

Publication Publication Date Title
US5020021A (en) System for automatic language translation using several dictionary storage areas and a noun table
JPH0411906B2 (en)
JP2000112938A5 (en)
EP0839357A1 (en) Method and apparatus for automated search and retrieval processing
JPH04235672A (en) Translation machine
JPH0682377B2 (en) Emotion information extraction device
JPS6320564A (en) Natural language processor
JP4033093B2 (en) Natural language processing system, natural language processing method, and computer program
JPS60215282A (en) System and device for analytic syntax of natural language
JP4114580B2 (en) Natural language processing system, natural language processing method, and computer program
JPS61187077A (en) Japanese language analyzer
JP3892227B2 (en) Machine translation system
JP3972697B2 (en) Natural language processing system, natural language processing method, and computer program
JP2000207395A (en) Device and method for analyzing japanese language and storage medium recording japanese language analyzing program
JP2856736B2 (en) Dictionary reference device and dictionary reference method
JP2001337945A (en) Automatic editing device, its method, and storage medium used for it
JP4036172B2 (en) Natural language processing system, natural language processing method, and computer program
KR980004032A (en) How to Generate Phenomenon Flow by Table Drive
JPH01296373A (en) Method for processing unregistered word
JPH03225468A (en) Machine translation device
JPH02226364A (en) Syntax analyzing device
JPH0916592A (en) Japanese processing system
Trabalka et al. Realization of syntactic parser for inflectional language using XML and regular expressions
JPS63136268A (en) Mechanical translating device
JPS6244872A (en) Machine translator