JPH0576067B2 - - Google Patents

Info

Publication number
JPH0576067B2
JPH0576067B2 JP59047127A JP4712784A JPH0576067B2 JP H0576067 B2 JPH0576067 B2 JP H0576067B2 JP 59047127 A JP59047127 A JP 59047127A JP 4712784 A JP4712784 A JP 4712784A JP H0576067 B2 JPH0576067 B2 JP H0576067B2
Authority
JP
Japan
Prior art keywords
meaning
dependency
candidate
candidates
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59047127A
Other languages
Japanese (ja)
Other versions
JPS60193073A (en
Inventor
Toshuki Funabe
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP59047127A priority Critical patent/JPS60193073A/en
Publication of JPS60193073A publication Critical patent/JPS60193073A/en
Publication of JPH0576067B2 publication Critical patent/JPH0576067B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/268Morphological analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique

Description

【発明の詳細な説明】 技術分野 本発明は日本語解析装置、より具体的には、翻
訳機械、ワードプロセツサ、オフコン、パソコン
などの処理システムに適用され、使用者が介入す
る日本語解析装置に関する。
[Detailed Description of the Invention] Technical Field The present invention is a Japanese language analysis device, more specifically, a Japanese language analysis device that is applied to processing systems such as translation machines, word processors, office computers, and personal computers, and in which the user intervenes. Regarding.

従来技術 従来、たとえば機械翻訳などにおける日本語解
析では、大きく分けて次の3つの入力方式がとら
れていた。その1つは、入力文に修正を加えずそ
のまま入力する方式である。これは、解析結果が
複数得られて一義的に確定せず、しかも必ずしも
正しい、すなわち操作者の意図した結果が得られ
るとは限らなかつた。
Prior Art Conventionally, the following three input methods have been used for Japanese language analysis in machine translation, for example. One method is to input the input sentence as it is without making any modifications. This is because a plurality of analysis results are obtained and cannot be determined uniquely, and furthermore, the correct result, that is, the result intended by the operator is not necessarily obtained.

第2の入力方式として、入力文を修正してから
入力する方式がある。これも第1の方式と同じ欠
点があるが、得られる解析結果の数は第1の方式
より少なく、しかも正しい結果が得られる確率は
高い。
As a second input method, there is a method in which the input sentence is corrected and then input. This method also has the same drawbacks as the first method, but the number of analysis results obtained is smaller than the first method, and the probability of obtaining correct results is high.

また第3の方式として入力文が特定の形式に制
限される方式がある。これは、解析結果が一意に
確定する特長があるが、操作者がその制限を守ら
ないと、正解が得られないことがある。
Further, as a third method, there is a method in which the input sentence is limited to a specific format. This has the advantage that the analysis result is uniquely determined, but if the operator does not adhere to the restrictions, the correct answer may not be obtained.

とくに第2および第3の方式は、入力文を所定
の形式に修正するのに専門的な知識が要求される
ので、装置の操作性および有用性に難がある。
In particular, the second and third methods require specialized knowledge to modify the input sentence into a predetermined format, and therefore have difficulties in the operability and usability of the devices.

これらの問題を解決するような日本語解析装置
を実現しようとすると、その日本語文法解析プロ
グラムが非常に複雑になり、作成に多大の労力を
必要とすることになる。
If an attempt is made to realize a Japanese language analysis device that solves these problems, the Japanese grammar analysis program will become extremely complex and require a great deal of effort to create.

目 的 本発明はこのような従来技術の欠点を解消し、
使用者の意図する入力文の文法的構造を一意に決
定できる日本語解析装置を提供することを目的と
する。
Purpose The present invention solves the drawbacks of the prior art,
An object of the present invention is to provide a Japanese language analysis device that can uniquely determine the grammatical structure of an input sentence intended by a user.

構 成 本発明の構成について以下、実施例に基づいて
説明する。
Configuration The configuration of the present invention will be described below based on examples.

第1図を参照すると、本発明による日本語解析
装置の実施例は、印字出力装置としてのプリンタ
10、文字を可視表示するCRTなどのデイスプ
レイ12、およびカナなどにより日本語文を入力
できるキーボード14を有し、これらが制御装置
20に接続されている。キーボード14は、カナ
キーの他に、「次候補キー」「OKキー」などの機
能キーも備えている。次候補キーは、後述のよう
に修飾語の係り受け候補や単語の意味候補を次の
順位のものにシフトさせるための指示キーであ
る。またOKキーは、それらの候補が意図したも
のと合致しているときに操作して次の操作ステツ
プに移行させるための指示キーである。
Referring to FIG. 1, the embodiment of the Japanese language analysis device according to the present invention includes a printer 10 as a print output device, a display 12 such as a CRT that visually displays characters, and a keyboard 14 that can input Japanese sentences in kana or the like. and these are connected to the control device 20. In addition to the kana keys, the keyboard 14 also includes function keys such as a "next candidate key" and an "OK key." The next candidate key is an instruction key for shifting modifier dependency candidates and word meaning candidates to the next rank as described below. The OK key is an instruction key that is operated to move to the next operation step when the candidates match what was intended.

制御装置20は処理システムで実現され、デイ
スプレイ12の表示画面制御を含む本日本語解析
装置各部の制御を行なう。制御装置20のシステ
ムメモリとして記憶装置22が設けられている。
これは、本日本語解析装置による処理結果を一時
蓄積したり、他のプログラムやデータの記憶領域
として使用される。
The control device 20 is implemented as a processing system, and controls various parts of the Japanese language analysis device including display screen control of the display 12. A storage device 22 is provided as a system memory of the control device 20.
This is used to temporarily store the processing results of this Japanese language analysis device and as a storage area for other programs and data.

制御装置20で制御され、本日本語解析装置本
来の解析動作を実行するのが、形態素解析装置2
4、構文解析装置30、係り受け候補出力装置2
6および意味候補出力装置28である。これらの
装置24,30,26および28は、制御装置2
0の処理システムに含まれてもよく、またはこれ
と別個の処理システムで実現してもよい。
The morphological analysis device 2 is controlled by the control device 20 and executes the original analysis operation of this Japanese language analysis device.
4. Syntax analysis device 30, dependency candidate output device 2
6 and a meaning candidate output device 28. These devices 24, 30, 26 and 28 are connected to the control device 2
0 processing system, or may be implemented in a separate processing system.

形態素解析装置24には、単語相互間の接続を
規定する接続表や単語辞書が記憶されている磁気
デイスクなどのフアイル記憶装置40が接続され
ている。単語辞書は、語の表記、読み方、品詞、
意味、属性などが単語ごとに記述されている。形
態素解析装置24は、たとえばカナ漢字混在文の
形で入力された日本語入力文を、フアイル40を
索引して単語単位に分解し、各語の品詞を分析す
る装置である。
Connected to the morphological analysis device 24 is a file storage device 40 such as a magnetic disk in which connection tables and word dictionaries that define connections between words are stored. The word dictionary includes information on how to write words, how to read them, parts of speech,
The meaning, attributes, etc. are described for each word. The morphological analysis device 24 is a device that indexes a file 40, breaks down a Japanese input sentence input in the form of a kana-kanji mixed sentence into word units, and analyzes the part of speech of each word.

構文解析装置30には、解析文法を記述する文
法辞書が記憶されているフアイル記憶装置42が
接続されている。その蓄積データフオーマツト
は、第2図に示すように修飾語と被修飾語につい
て品詞および属性・意味が対応してリストされて
いる。この文法辞書に蓄積されている解析文法の
一例を部分的に第2A図に示す。第2A図におい
てαはどのような付属語であつてもよいことを示
す。なお以下の説明および図示では、説明の複雑
化を避けるため語の属性については本発明の理解
に直接関係ないので省略する。
A file storage device 42 is connected to the parsing device 30, in which a grammar dictionary describing parsing grammars is stored. In the stored data format, as shown in FIG. 2, the parts of speech and attributes/meanings of modifiers and modified words are listed in correspondence. An example of the parsed grammar stored in this grammar dictionary is partially shown in FIG. 2A. In FIG. 2A, α indicates that any adjunct may be used. In the following description and illustrations, in order to avoid complicating the description, the attributes of words will be omitted since they are not directly relevant to the understanding of the present invention.

構文解析装置30は図示のように、制御部3
2、ならびに1対のメモリスタツク34Aおよび
34Bからなる。構文解析装置30は、形態素解
析装置24で品詞に分解された入力日本語文を、
文法辞書42を索引して各語の構文構造について
解析する装置である。本実施例では、その解析結
果の文法構造は一意であり、昧さは各単語にリン
クさせて出力される。なおそれらの優先度は、各
単語の条件によつて近い方の係り受け関係が高く
なる。
As shown in the figure, the syntax analysis device 30 includes a control unit 3
2, and a pair of memory stacks 34A and 34B. The syntactic analysis device 30 analyzes the input Japanese sentence that has been decomposed into parts of speech by the morphological analysis device 24,
This device indexes the grammar dictionary 42 and analyzes the syntactic structure of each word. In this embodiment, the grammatical structure of the analysis result is unique, and ambiguity is output linked to each word. Note that the priority of these words is higher depending on the conditions of each word.

係り受け候補出力装置26には、係り受けバツ
フア44が接続され、これには、注目している
語、すなわち被処理中の語の係り得るすべての語
(被修飾語)が番号で蓄積される。その蓄積デー
タフオーマツトは、第3図に示すように被修飾語
の番号が優先度の高い方から矢印Aの順序に低い
方に順番にリストされる。係り受け候補出力装置
26は、係り受けバツフア46から係り受け候補
を選択する装置である。
A modification buffer 44 is connected to the modification candidate output device 26, in which all words (modified words) that can be modified by the word of interest, that is, the word being processed, are stored in numbers. . In the stored data format, as shown in FIG. 3, the modified word numbers are listed in order from the highest priority to the lowest in the order of arrow A. The modification candidate output device 26 is a device that selects modification candidates from the modification buffer 46.

意味候補出力装置28には意味バツフア46が
接続され、後者には注目している語の有するすべ
ての意味が蓄積される。その蓄積データフオーマ
ツトは、第4図に示すように、被修飾語の番号に
対応して各単語の意味が優先度の高い方から低い
方に矢印Bの順にリストされる。これにアクセス
して意味候補出力装置28は、修飾語の意味候補
を選択する。
A meaning buffer 46 is connected to the meaning candidate output device 28, and the latter stores all meanings of the word of interest. In the stored data format, as shown in FIG. 4, the meanings of each word are listed in the order of arrow B from highest priority to lowest priority, corresponding to the number of the modified word. By accessing this, the meaning candidate output device 28 selects meaning candidates for the modifier.

これらの装置により解析された結果のデータ
は、記憶装置22に一時的に蓄積され、その構文
解析結果のデータ形式は第5図に示すフオーマツ
トをとり、本装置による最終結果は第6図に示す
データフオーマツトをとる。なお、各修飾語の番
号を蓄積する記憶スロツトには複数の番号が含ま
れることもあり得る。
The data as a result of analysis by these devices is temporarily stored in the storage device 22, and the data format of the syntax analysis results is shown in FIG. 5, and the final result obtained by this device is shown in FIG. Take data format. Note that the memory slot that stores the number of each modifier may contain a plurality of numbers.

本装置の動作を説明する。キーボード14か
ら、たとえば「高い大理石の机」なる文を入力し
たとする。この意図する意味は、材料が大理石か
らなる高価な机であり、大理石の高さが高いので
はないとする。
The operation of this device will be explained. For example, suppose that the sentence ``tall marble desk'' is input from the keyboard 14. The intended meaning is an expensive desk made of marble, and the marble is not tall.

この入力文は制御装置20により記憶装置22
に一時蓄積され、またデイスプレイ12に可視表
示される。これとともに形態素解析装置24は、
この入力文を形態素解析する。これは接続表・単
語辞書40を使用し、従来と同様の方法で行なつ
てよい。その解析結果は第7図に示すようにな
る。これは構文解析装置30に転送され、第8A
図および第8B図に示すような形でそれぞれスタ
ツク34Aおよび34Bに蓄積される。すなわ
ち、スタツク34Aには現在注目している語(修
飾語)が、またスタツク34Bにはスタツク34
Aの語の被修飾語が蓄積される。
This input sentence is sent to the storage device 22 by the control device 20.
The data are temporarily stored and visually displayed on the display 12. Along with this, the morphological analysis device 24
Morphologically analyze this input sentence. This may be done using the connection table/word dictionary 40 in a conventional manner. The analysis results are shown in FIG. This is transferred to the parser 30 and the 8th A
They are stored in stacks 34A and 34B, respectively, as shown in Figures 3 and 8B. That is, the word (modifier) of interest is currently in the stack 34A, and the word in the stack 34B is in the stack 34B.
The modified words of the word A are accumulated.

そこで構文解析装置30は、第2A図に示すフ
アイル42の文法を索引して構文解析を行なう。
まず、スタツク34Aの各状態に応じて、この例
では文法辞書42の(1)〜(8)がチエツクされる。こ
の例では、(1)および(2)についてはスタツク34B
に「名詞+α」であつて「人物」に該当する候補
がないので、リジエクトされる。それ以外の(3)〜
(8)については、スタツク34Bに該当する候補が
あるので、第5A図に示す解析結果を得る。これ
は第5図に示すデータフオーマツトで表現されて
いる。
Therefore, the syntax analysis device 30 performs syntax analysis by indexing the grammar in the file 42 shown in FIG. 2A.
First, in this example, items (1) to (8) of the grammar dictionary 42 are checked depending on each state of the stack 34A. In this example, for (1) and (2)
Since there is no candidate that corresponds to "noun + α" and "person", it is rejected. Other (3)~
Regarding (8), since there is a corresponding candidate in stack 34B, the analysis result shown in FIG. 5A is obtained. This is expressed in the data format shown in FIG.

次に構文解析装置30は、スタツク34Aには
〃スタツク34Bから語番号2の「大理石+の」
をシフトして、スタツク34Bには語番号3の
「机」が残る。これについて同様に文法チエツク
を行ない構文解析結果を得る。
Next, the syntax analysis device 30 stores the word number 2 “marble+no” from the stack 34B in the stack 34A.
is shifted, and word number 3 "desk" remains on stack 34B. A syntax check is similarly performed on this, and a syntax analysis result is obtained.

さらに同様にして語番号3の「机」がスタツク
34Aから34Bに移送されるが、この例ではこ
れが文の末尾であるので、ここで解析を終了す
る。そこで第5B図に示す構文解析結果が得られ
る。これは制御装置20から記憶装置22に転送
され、蓄積される。なお、この構文解析結果デー
タは第5図に示すフオーマツトで記述されてい
る。
Similarly, the word number 3 "desk" is transferred from stack 34A to stack 34B, but in this example, since this is the end of the sentence, the analysis ends here. Therefore, the syntax analysis result shown in FIG. 5B is obtained. This is transferred from the control device 20 to the storage device 22 and stored. Note that this syntax analysis result data is written in the format shown in FIG.

制御装置20は構文解析の終了に応動して記憶
装置22から語番号1を抽出する。そこで、係り
受け候補出力装置26によりその係り受け候補を
係り受けバツフア44に、また意味候補出力装置
46によりその意味候補を意味候補バツフア46
に転送して蓄積させる。その状態を第3A図に示
す。
Control device 20 extracts word number 1 from storage device 22 in response to the completion of parsing. Therefore, the dependency candidate output device 26 stores the modification candidate in the dependency buffer 44, and the meaning candidate output device 46 stores the meaning candidate in the meaning candidate buffer 46.
Transfer and store the data. The state is shown in FIG. 3A.

デイスプレイ12にはこれまで入力文が表示さ
れているが、ここで、注目語、すなわち語番号1
の「高い」が本実施例では反転表示される。これ
は、第9A図にデイスプレイ12の表示画面50
においてハツチング領域52で示す。
The input sentence has been displayed on the display 12 so far, but here, the word of interest, that is, word number 1
"High" is displayed in reverse video in this embodiment. This is shown in FIG. 9A as a display screen 50 of the display 12.
This is indicated by a hatched area 52 in FIG.

そこで制御装置20は係り受け候補出力装置2
6に、係り受け候補を要求する信号を送出する。
係り受け候補出力装置26はこれに応動して係り
受けを索引し、その優先度の最も高い語、すなわ
ち第3A図左端の被修飾語番号2を索出して制御
装置20に転送する。制御装置20は語番号2に
該当する表示語「大理石」の表示をブリンクさせ
る。これを、第9B図では矩形の点線54で示
す。
Therefore, the control device 20 uses the dependency candidate output device 2.
6, a signal requesting modification candidates is sent.
In response to this, the modification candidate output device 26 indexes the modifications, retrieves the word with the highest priority, that is, the modified word number 2 at the left end in FIG. 3A, and transfers it to the control device 20. The control device 20 blinks the display word "marble" corresponding to word number 2. This is indicated by a rectangular dotted line 54 in FIG. 9B.

そこで操作者は、ブリンク中の語が意図した係
り受け語であるか否かをチエツクし、この例では
意図したものではないので、キーボード14の次
候補キーを操作する。これに応動して制御装置2
0は、前述と同様にして係り受け候補出力装置2
6に次に優先度の高い候補を要求する。これによ
つて係り受けバツフア44からは、次の順位の被
修飾語番号3が索出され、制御装置20に転送さ
れる。そこで制御装置20は、表示の「大理石」
のブリンクを停止し、「机」をブリンクさせる。
The operator then checks whether the word in the link is the intended dependent word or not, and since it is not the intended word in this example, he operates the next candidate key on the keyboard 14. In response to this, the control device 2
0 is the dependency candidate output device 2 in the same manner as described above.
6, request the next highest priority candidate. As a result, the next ranked modified word number 3 is retrieved from the dependency buffer 44 and transferred to the control device 20. Therefore, the control device 20 controls the displayed "marble"
stop blinking and make the "desk" blink.

再び操作者は、ブリンク中の語が意図したもの
であるか否かをチエツクし、この例では意図した
係り受け語であるので、キーボード14のOKキ
ーを操作する。これに応動して制御装置20は、
「机」の表示ブリンクを停止し、係り受け候補出
力装置26に候補確定を示す信号を送出し、同装
置26は係り受けバツフア44から被修飾語番号
2を消去する。
The operator again checks whether the word in the link is the intended word or not, and since it is the intended dependent word in this example, he operates the OK key on the keyboard 14. In response to this, the control device 20
The display blinking of "desk" is stopped, a signal indicating candidate confirmation is sent to the modification candidate output device 26, and the device 26 deletes the modified word number 2 from the modification buffer 44.

次に制御装置20は、意味候補出力装置28に
対して被修飾語番号3について、修飾語番号1の
意味候補を要求する信号を送出する。意味候補出
力装置28はこれに応動して意味バツフア46を
索引し、被修飾語番号3の優先度の最も高い候
補、すなわち第3A図における最上部の意味「計
量」を索出する。これは制御装置20に転送さ
れ、第9C図に示すデイスプレイ12の表示領域
56に表示される。
Next, the control device 20 sends a signal to the meaning candidate output device 28 requesting the meaning candidate of the modifier number 1 for the modified word number 3. In response, the meaning candidate output device 28 indexes the meaning buffer 46 and retrieves the candidate with the highest priority for the modified word number 3, that is, the topmost meaning "measurement" in FIG. 3A. This is transferred to the control device 20 and displayed on the display area 56 of the display 12 shown in FIG. 9C.

操作者はこの表示56により、この意味が意図
したものであるか否かをチエツクし、この例では
意図したものではないので、キーボード14の次
候補キーを操作する。これに応動して制御装置2
0は、前述と同様にして意味候補出力装置28に
次に優先度の高い候補を要求する。これによつて
意味バツフア46からは、次の順位の意味「価
値」が索出され、制御装置20に転送される。そ
こで制御装置20は、表示領域56に表示され
る。この状態を第9D図に示す。
The operator uses this display 56 to check whether the meaning is what he or she intended, and in this example, since it is not what he intended, he operates the next candidate key on the keyboard 14. In response to this, the control device 2
0 requests the meaning candidate output device 28 for the candidate with the next highest priority in the same manner as described above. As a result, the next ranking meaning "value" is retrieved from the meaning buffer 46 and transferred to the control device 20. The control device 20 is then displayed in the display area 56. This state is shown in FIG. 9D.

操作者は再度この表示56により、この意味が
意図したものであるか否かをチエツクし、この例
では意図したものであるので、キーボード14の
OKキーを操作する。これに応動して制御装置2
0は、表示画面50における注目語「高い」の反
転表示52を中止し、意味表示56を消去する。
これとともに、意味候補出力装置28に候補確定
を示す信号を送出し、同装置28は意味バツフア
46から「価値」以外の意味を消去する。この状
態を第3B図に示す。
The operator checks the display 56 again to see if this meaning is what he or she intended.
Operate the OK key. In response to this, the control device 2
0 stops the inverted display 52 of the attention word "Kai" on the display screen 50 and erases the meaning display 56.
At the same time, a signal indicating confirmation of the candidate is sent to the meaning candidate output device 28, and the device 28 erases meanings other than "value" from the meaning buffer 46. This state is shown in FIG. 3B.

制御装置20は、係り受け候補出力装置26お
よび意味候補出力装置28に対し、それぞれ係り
受けバツフア44および意味バツフア46の蓄積
内容を読み出すように指示する。また、記憶装置
22に蓄積されている構文解析結果から表記およ
び品詞(属性)を読み出し、第6A図に示すよう
にデータを編成する。
The control device 20 instructs the dependency candidate output device 26 and the meaning candidate output device 28 to read the accumulated contents of the dependency buffer 44 and the meaning buffer 46, respectively. Furthermore, the notation and parts of speech (attributes) are read out from the syntax analysis results stored in the storage device 22, and the data is organized as shown in FIG. 6A.

同様にして、入力文の以降の各語についてもこ
のような処理、解析を行ない、すべての語の処理
を終了すると、その解析結果は第6B図に示す状
態となる。
Similarly, each subsequent word of the input sentence is subjected to such processing and analysis, and when all the words have been processed, the analysis result will be in the state shown in FIG. 6B.

このように本実施例によれば、操作者と本装置
との間における対話処理の応答速度が速く、構文
解析を2度以上行なわなくてもよい特徴がある。
As described above, according to this embodiment, the response speed of the interaction process between the operator and the present device is fast, and there is no need to perform syntax analysis more than once.

第10図を参照すると、本発明の他の実施例が
示されている。以降の図において第1図と同じ構
成要素は同一の参照符号で示され、説明の重複は
避ける。
Referring to FIG. 10, another embodiment of the invention is shown. In the subsequent figures, the same components as in FIG. 1 are indicated by the same reference numerals to avoid duplication of explanation.

第1図に示す実施例と相違する点は、係り受け
候補出力装置126が文法を使用して入力文から
係り受け候補を抽出することである。したがつて
第1図に示す実施例における係り受けバツフア4
4が本実施例では設けられておらず、係り受け候
補出力装置126は意味バツフア146に接続さ
れている。
The difference from the embodiment shown in FIG. 1 is that the dependency candidate output device 126 uses grammar to extract dependency candidates from the input sentence. Therefore, the dependency buffer 4 in the embodiment shown in FIG.
4 is not provided in this embodiment, and the dependency candidate output device 126 is connected to the meaning buffer 146.

意味バツフア146は、第11図に示すように
意味候補が優先度の高い方から矢印Cの方向に低
い方に蓄積されている。意味候補出力装置128
は、意味バツフア146から意味候補を選択する
装置である。
In the meaning buffer 146, as shown in FIG. 11, meaning candidates are accumulated in the direction of arrow C from higher priority to lower priority. Meaning candidate output device 128
is a device for selecting meaning candidates from the meaning buffer 146.

構文解析装置130は、係り受け候補出力装置
126とも接続され、文法辞書42を索引して最
も近い係り受けを優先として解析を行なう。した
がつて、その解析結果に、昧さがなく、単一の解
析結果が出力されるのが特徴である。文法辞書4
2には、第2B図に示す文法が蓄積されている。
なお、これは蓄積文法の一部を示し、/(スラツ
シユ)は「または」を意味する。
The syntax analysis device 130 is also connected to the modification candidate output device 126, and indexes the grammar dictionary 42 and performs analysis with priority given to the closest modification. Therefore, the analysis results are characterized in that there is no ambiguity and a single analysis result is output. grammar dictionary 4
2 stores the grammar shown in FIG. 2B.
Note that this is a part of the storage grammar, and / (slash) means "or".

第1図の実施例の説明と同じ入力文例で第10
図の装置の動作を説明する。入力文がスタツク3
4Aおよび34Bに蓄積されるまでは第1図の実
施例と同様である。つまりその内容は第8A図お
よび第8B図に示すようになる。
10 with the same input sentence example as the explanation of the example in FIG.
The operation of the device shown in the figure will be explained. Input sentence is stuck 3
The process until the data is accumulated in 4A and 34B is the same as the embodiment shown in FIG. In other words, the contents are as shown in FIGS. 8A and 8B.

スタツク34Aの状態により文法(1)(第2B
図)がスタツク34Bの被修飾語番号2に適用さ
れる。これは文法に合うので、語番号1について
の解析を終了し、スタツク34Aに次の語をシフ
トさせる。その解析結果は第6C図に示すように
なる。文法解析が1つでも成功すれば、そこでそ
の語の解析が終了し、次の語の解析に移行する。
Grammar (1) (2nd B) depends on the state of stack 34A.
) is applied to modified word number 2 of stack 34B. Since this matches the grammar, the parsing for word number 1 is finished and the next word is shifted onto stack 34A. The analysis result is shown in FIG. 6C. If even one grammatical analysis is successful, the analysis of that word ends and the process moves on to the analysis of the next word.

同様にしてこの入力文の以降の語について解析
が行なわれ、第6D図に示す解析結果を得る。こ
れは制御装置20から記憶装置22に転送され、
蓄積される。
Subsequent words of this input sentence are analyzed in the same manner, and the analysis results shown in FIG. 6D are obtained. This is transferred from the control device 20 to the storage device 22,
Accumulated.

構文解析が終了すると制御装置20はまず、語
番号1の「高い」を記憶装置22から読み出し、
画面50上で反転表示52させる(第9A図)。
When the syntactic analysis is completed, the control device 20 first reads the word number 1 “high” from the storage device 22, and
The display is inverted 52 on the screen 50 (FIG. 9A).

次に制御装置20は、語番号1の被修飾語の項
をチエツクし、被修飾語番号2を取り出して表示
画面50上でブリンク54させる(第9B図)。
Next, the control device 20 checks the modified word section of word number 1, takes out the modified word number 2, and causes it to blink 54 on the display screen 50 (FIG. 9B).

操作者は、これが意図した係り受けと異なるの
で、次候補キーを操作する。これによつて制御装
置20は、係り受け候補出力装置126を起動す
る。係り受け候補出力装置126はこれに応動
し、語番号2以外の語を候補とし、語番号1の文
法解析を文法辞書42を索引して行なう。その結
果、第6E図に示す解析結果を得る。これらのう
ち、意味は意味バツフア146に転送してこれに
格納し、意味の項を空にして前の構文解析結果と
置き換える。この結果は、「大理石」をブリンク
表示させることで操作者に知らせる。
Since this is different from the intended modification, the operator operates the next candidate key. Accordingly, the control device 20 activates the dependency candidate output device 126. In response to this, the modification candidate output device 126 uses words other than word number 2 as candidates and performs grammatical analysis of word number 1 by indexing the grammar dictionary 42 . As a result, the analysis results shown in FIG. 6E are obtained. Among these, the meaning is transferred to the meaning buffer 146 and stored therein, and the meaning term is emptied and replaced with the previous syntax analysis result. This result is notified to the operator by displaying the "marble" in a blinking manner.

そこで操作者がOKキーを押すと、制御装置2
0はブリンクを停止し、意味候補出力装置128
に意味候補を要求する。意味候補出力装置128
は意味バツフア146の最上端から「計量」を取
り出し、制御装置20に転送する。これは第9C
図に示す状態で画面50に表示される。
When the operator presses the OK key, control device 2
0 stops blinking and the meaning candidate output device 128
to request meaning candidates. Meaning candidate output device 128
extracts “weighing” from the top of the meaning buffer 146 and transfers it to the control device 20. This is the 9th C
The state shown in the figure is displayed on the screen 50.

そこで操作者は次候補キーを押すと、制御装置
10は意味候補出力装置128に次の候補を求め
る。次の候補は第9D図に示すように表示され
る。
Then, when the operator presses the next candidate key, the control device 10 requests the meaning candidate output device 128 for the next candidate. The next candidate is displayed as shown in Figure 9D.

操作者がOKキーを押すと、制御装置はまず、
「高い」の反転表示を中止し、意味の表示を消去
する。次に解析結果を記憶装置22から取り出
し、意味の項を「価値」にする。
When the operator presses the OK key, the control device first
Stop highlighting the word "high" and erase the meaning. Next, the analysis result is retrieved from the storage device 22 and the meaning term is set to "value".

すべての語について同様の処理を行なつた結果
を第6B図に示す。
FIG. 6B shows the results of similar processing for all words.

このように本実施例では、構文解析において昧
さを扱うことがないので、無駄な処理を行なうこ
とがなく、また処理システムの記憶容量が第1図
の実施例と比較して少なくてよい特徴がある。
In this way, in this embodiment, ambiguity is not handled in syntax analysis, so no unnecessary processing is performed, and the storage capacity of the processing system is smaller than that in the embodiment shown in FIG. There is.

第12図を参照すると、本発明のさらに他の実
施例では、文法表250および意味バツフア24
6が第10図の実施例と相違する。文法表250
は、文法辞書42より簡単な、あるいは条件の弱
い文法が蓄積されている。そのデータフオーマツ
トを第13図に示す。また意味バツフア246
は、意味候補を一時記憶するもので、そのデータ
フオーマツトは第11図と同様である。
Referring to FIG. 12, yet another embodiment of the invention includes a grammar table 250 and a semantic buffer 24.
6 is different from the embodiment shown in FIG. Grammar table 250
The grammar dictionary 42 stores grammars that are simpler or have weaker conditions. The data format is shown in FIG. Also meaning Batsuhua 246
is used to temporarily store meaning candidates, and its data format is the same as that shown in FIG.

第12図の実施例の動作は、基本的には第10
図のそれと同様である。相違する点はまず、第9
A図の状態で構文解析を行なう際、第10図の実
施例では文法辞書42を参照するが、第12図の
実施例ではそうしないで文法表250を参照する
ことである。その結果、第6E図に示す解析結果
が得られる。これらの解析結果(第6E図)のう
ち、意味は意味バツフア246に転送してこれに
格納し、意味の項を空にして前の構文解析結果と
置き換える。以降、意味バツフア246から意味
候補が選択されて表示、処理が行なわれるのは、
第10図の実施例と同様である。
The operation of the embodiment shown in FIG.
It is similar to that in the figure. The difference is that the 9th
When parsing the syntax in the state shown in FIG. 10, the example shown in FIG. 10 refers to the grammar dictionary 42, but the example shown in FIG. 12 refers to the grammar table 250 instead. As a result, the analysis results shown in FIG. 6E are obtained. Among these analysis results (FIG. 6E), the meaning is transferred to and stored in the meaning buffer 246, and the meaning term is emptied and replaced with the previous syntax analysis result. From then on, meaning candidates are selected from the meaning buffer 246 and displayed and processed as follows.
This is similar to the embodiment shown in FIG.

このように第12図の実施例は、第10図の実
施例の特徴を備えている他、第1図の実施例と比
較しても処理速度が速い特徴がある。
As described above, the embodiment shown in FIG. 12 not only has the features of the embodiment shown in FIG. 10, but also has the feature of faster processing speed than the embodiment shown in FIG.

効 果 本発明によれば、文を入力する際、これを修正
する必要がなく、簡単な文法を使用することがで
き、しかも操作者は専門的な知識を要求されな
い。また、操作者が意図した文の意味および構文
構造を一意に得ることができ、解析速度が速い特
徴がある。本装置はとくに、制限文法を使用し、
ある種の制限を加えて文を入力する方式には、よ
り効果的である。
Effects According to the present invention, when inputting a sentence, there is no need to modify it, simple grammar can be used, and the operator is not required to have specialized knowledge. Furthermore, the meaning and syntactic structure of the sentence intended by the operator can be uniquely obtained, and the analysis speed is fast. In particular, the device uses a restricted grammar,
It is more effective for methods that input sentences with certain restrictions.

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

第1図は本発明による日本語解析装置の実施例
を示すブロツク図、第2図、第2A図、第2B
図、第3図、第3A図、第3B図、第4図、第5
図、第5A図、第5B図、第6図、第6A図〜第
6E図、第7図、第8A図、第8B図、第9A図
〜第9D図は、第1図に示す実施例の動作を説明
するための説明図、第10図は本発明の他の実施
例を示すブロツク図、第11図は第10図に示す
実施例の動作を説明するための説明図、第12図
は本発明のさらに他の実施例を示すブロツク図、
第13図は第12図に示す実施例の動作を説明す
るための説明図である。 主要部分の符号の説明、12……デイスプレ
イ、14……キーボード、20……制御装置、2
2……記憶装置、24……形態素解析装置、26
……係り受け候補出力装置、28……意味候補出
力装置、30……構文解析装置、42……文法辞
書、44……係り受けバツフア、46……意味バ
ツフア。
Fig. 1 is a block diagram showing an embodiment of the Japanese language analysis device according to the present invention, Fig. 2, Fig. 2A, and Fig. 2B.
Figure, Figure 3, Figure 3A, Figure 3B, Figure 4, Figure 5
5A, 5B, 6, 6A to 6E, 7, 8A, 8B, and 9A to 9D are examples of the embodiment shown in FIG. FIG. 10 is a block diagram showing another embodiment of the present invention; FIG. 11 is an explanatory diagram explaining the operation of the embodiment shown in FIG. 10; FIG. is a block diagram showing still another embodiment of the present invention,
FIG. 13 is an explanatory diagram for explaining the operation of the embodiment shown in FIG. 12. Explanation of symbols of main parts, 12...Display, 14...Keyboard, 20...Control device, 2
2...Storage device, 24...Morphological analysis device, 26
... Dependency candidate output device, 28 ... Meaning candidate output device, 30 ... Syntactic analysis device, 42 ... Grammar dictionary, 44 ... Dependency buffer, 46 ... Meaning buffer.

Claims (1)

【特許請求の範囲】 1 日本語の入力文及び指示を入力する入力手段
と、 前記入力文に含まれる形態素を解析する形態素
解析手段と、 日本語の構文を解析する構文解析文法を有し、
前記形態素解析手段によつて形態素に解析された
入力文に含まれる語の係り受け語の候補群および
意味の候補群を該文法によつて解析する構文解析
手段と、 前記形態素に解析された入力文に含まれる語の
係り受け語候補を前記構文解析手段によつて解析
された係り受け語の候補群から選択する係り受け
候補選択手段と、 前記入力文に含まれる語の意味候補を前記構文
解析手段にようて解析された意味の候補群から選
択する意味候補選択手段と、 該入力文の形態素解析結果、前記選択された係
り受け候補および意味候補、ならびに前記解析さ
れた係り受け語の候補群と意味の候補群からなる
構文解析結果を保持する蓄積手段と、 日本語を表示する表示手段と、 前記入力手段、形態素解析手段、構文解析手
段、係り受け候補選択手段、意味候補選択手段、
蓄積手段および表示手段を制御する制御手段とを
含み、 該制御手段は、前記形態素解析手段により入力
文を形態素解析し、前記構文解析手段により形態
素解析された入力文中の語の係り受け候補群と意
味候補群を得、前記係り受け候補選択手段により
係り受け候補群から係り受け候補を選択し、前記
意味候補選択手段により意味候補群から意味候補
を選択し、形態素解析結果と構文解析結果と選択
された係り受け候補と意味候補を蓄積手段に蓄積
し、前記入力文、ならびに前記選択され前記蓄積
手段に蓄積された係り受け候補および意味候補を
順次前記表示手段に表示させ、前記入力手段から
入力された指示に応動して、係り受け候補および
意味候補を再選択することにより、該入力文の解
析を行なうことを特徴とする日本語解析装置。
[Scope of Claims] 1. An input device for inputting a Japanese input sentence and an instruction, a morphological analysis device for analyzing morphemes included in the input sentence, and a parsing grammar for analyzing Japanese syntax,
a syntactic analysis means for analyzing, by the grammar, a group of dependent word candidates and a candidate meaning of a word included in the input sentence that has been analyzed into morphemes by the morphological analysis means; and the input sentence that has been analyzed into morphemes. Dependency candidate selection means for selecting a dependency word candidate for a word included in a sentence from a group of dependency word candidates analyzed by the syntactic analysis means; meaning candidate selection means for selecting from a group of meaning candidates analyzed by the analysis means; a morphological analysis result of the input sentence; the selected dependency candidates and meaning candidates; and the analyzed dependency word candidates. a storage means for holding syntactic analysis results consisting of groups and semantic candidates; a display means for displaying Japanese; the input means, a morphological analysis means, a syntactic analysis means, a dependency candidate selection means, a meaning candidate selection means,
a control means for controlling the storage means and the display means, the control means morphologically analyzing the input sentence by the morphological analysis means, and morphologically analyzing the input sentence by the syntactic analysis means and determining the dependency candidate group of words in the input sentence morphologically analyzed by the syntactic analysis means; Obtain a meaning candidate group, select a dependency candidate from the dependency candidate group by the dependency candidate selection means, select a meaning candidate from the meaning candidate group by the meaning candidate selection means, and select a morphological analysis result and a syntactic analysis result. The input sentence and the selected modification candidates and meaning candidates stored in the storage means are sequentially displayed on the display means, and inputted from the input means. 1. A Japanese language analysis device characterized in that the input sentence is analyzed by reselecting dependency candidates and meaning candidates in response to an instruction given.
JP59047127A 1984-03-14 1984-03-14 Japanese word analyzer Granted JPS60193073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59047127A JPS60193073A (en) 1984-03-14 1984-03-14 Japanese word analyzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59047127A JPS60193073A (en) 1984-03-14 1984-03-14 Japanese word analyzer

Publications (2)

Publication Number Publication Date
JPS60193073A JPS60193073A (en) 1985-10-01
JPH0576067B2 true JPH0576067B2 (en) 1993-10-21

Family

ID=12766474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59047127A Granted JPS60193073A (en) 1984-03-14 1984-03-14 Japanese word analyzer

Country Status (1)

Country Link
JP (1) JPS60193073A (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH061468B2 (en) * 1986-03-10 1994-01-05 シャープ株式会社 Japanese sentence proofreading device
JPS62154558U (en) * 1986-03-25 1987-10-01
JPS6335161U (en) * 1986-08-20 1988-03-07
JPS63113758A (en) * 1986-10-31 1988-05-18 Toshiba Corp Machine translation system
JPS63175253U (en) * 1986-11-10 1988-11-14
JPH01189763A (en) * 1988-01-25 1989-07-28 Sharp Corp Character processor
JPH01138162U (en) * 1988-03-15 1989-09-21
JPH02254564A (en) * 1989-03-29 1990-10-15 Ricoh Co Ltd Translation dictionary editing device
JPH0340172A (en) * 1989-07-07 1991-02-20 Matsushita Electric Ind Co Ltd Natural language analyzing device
JPH03188564A (en) * 1989-12-18 1991-08-16 Fujitsu Ltd Display system for analyzing result of modification

Also Published As

Publication number Publication date
JPS60193073A (en) 1985-10-01

Similar Documents

Publication Publication Date Title
US4829423A (en) Menu-based natural language understanding system
US5349368A (en) Machine translation method and apparatus
US4774666A (en) Translating apparatus
US5541838A (en) Translation machine having capability of registering idioms
JPH0433069B2 (en)
JPH0576067B2 (en)
EP0118187B1 (en) Menu-based natural language understanding system
JPH0731677B2 (en) Document creation / proofreading support device
JPS62197864A (en) Language information offering device
JPS61248160A (en) Document information registering system
JP2004213309A (en) Information display control unit and program
JPH07114565A (en) Electronic dictionary
JPH06195386A (en) Data retriever
JPH0561902A (en) Mechanical translation system
JPH0668140A (en) Electronic translation system
JPH01185724A (en) Retriever
Fokker Requirements for a user‐friendly OPAC
JP2558692B2 (en) Document file device
JP2588210B2 (en) Help guide method
JPH0821039B2 (en) Electronic dictionary search device
JPS58129534A (en) Chinese character input device
JPH04281558A (en) Document retrieving device
JPH0762840B2 (en) Document creation device
JPH0785040A (en) Inscription nonuniformity detecting method and kana/ kanji converting method
JPH0385670A (en) Two-step display system document processor