JPH02297150A - Text processor - Google Patents

Text processor

Info

Publication number
JPH02297150A
JPH02297150A JP1063258A JP6325889A JPH02297150A JP H02297150 A JPH02297150 A JP H02297150A JP 1063258 A JP1063258 A JP 1063258A JP 6325889 A JP6325889 A JP 6325889A JP H02297150 A JPH02297150 A JP H02297150A
Authority
JP
Japan
Prior art keywords
sentence
text
information
editing
input
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
JP1063258A
Other languages
Japanese (ja)
Other versions
JP3039655B2 (en
Inventor
Takanari Ueda
隆也 上田
Tsuyoshi Yagisawa
津義 八木沢
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 JP1063258A priority Critical patent/JP3039655B2/en
Priority to US07/493,104 priority patent/US5170349A/en
Publication of JPH02297150A publication Critical patent/JPH02297150A/en
Application granted granted Critical
Publication of JP3039655B2 publication Critical patent/JP3039655B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To easily correct a sentence in an understandable form by displaying the modified structure of the sentence as a sentence structure graphic and reflecting an editing result on the graphic on the original sentence. CONSTITUTION:The processor is constituted by including a modified information holding part 3 holding information on a modified relation being the analysis result of a sentence analysis processing part 2 which analyzes and outputs a text stored in a text storage means 1, a surface sentence preparation processing part 4 preparing a surface sentence from information on the modified relation which the modified information holding part 3 holds and a word dictionary 5. Modified information which the modified information holding part 3 holds is converted into data of the sentence structure graphic in a sentence structure graphic conversion processing part 8, is held in a sentence structure graphic data holding part 9 and is displayed in a display part 10. The editing processing of the text structure graphic is reflected on the surface sentence in accordance with an input from a user. Thus, the sentence can be corrected in the more understandable form by a simple operation on the sentence structure graphic.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文の構造を図を用いてわかりやすい形で示し
、その図を編集することによフて文の語順等を修正する
ことが可能な文章処理装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention shows the structure of a sentence in an easy-to-understand form using a diagram, and by editing the diagram, it is possible to correct the word order of the sentence. The present invention relates to a possible text processing device.

[従来技術] 最近ワードプロセッサで文章を作成することか普及して
きている。これに伴い、従来の入力(かな漢字変換)や
編集などの機能以外の機能も提供されるようになった。
[Prior Art] Recently, it has become popular to create sentences using a word processor. Along with this, functions other than conventional input (kana-kanji conversion) and editing functions have also been provided.

文章校正支援機能はこのひとつである。これは文意中の
誤字・脱字や誤った言葉使いなどを検出してユーザに指
摘してくれるものである。
One of these is the grammar proofing support function. This detects typos, omissions, and incorrect wording in sentences and points them out to the user.

[発明が解決しようとしている課題] しかしながら、上記従来例では主として単語レベルでの
誤りを指摘するだけなので、他の人がその文章を読んだ
ときに感じる読みにくさ、さらには誤って解釈される可
能性というものは指摘することができなかった。
[Problems to be Solved by the Invention] However, in the above conventional example, errors are mainly pointed out at the word level, so when other people read the text, it may be difficult to read, and furthermore, it may be misinterpreted. I couldn't point out the possibility.

文の書き手は自分の書いている文の内容が頭の中にある
ので、このような文のあいまいさ、わかりにくさに気づ
きにくい。
Writers have the content of what they are writing in their head, so it is difficult to notice ambiguity or difficulty in understanding such sentences.

一方、文のあいまいさ、わかりにくさを機械によって自
動的かつ正確に検出することは、現在の技術ではまだま
だ困難であり、従って人間が注意深く推敲していくこと
に頼らざるを得なかった。
On the other hand, it is still difficult with current technology for machines to automatically and accurately detect ambiguity and incomprehensibility in sentences, so humans have had to rely on careful elaboration.

[課題を解決するための手段] 本発明は文章を記憶する文章記憶手段と、前記文章を解
析して出力する文章解析手段と、前記解析手段の出力か
ら文章を生成する文章生成手段と、前記文章解析手段の
出力から文章の構造を表す情報を生成する構造生成手段
と、前記構造生成手段からの文章の構造を表す情報を表
示する表示手段と、前記表示手段に表示されている文章
の構造を表す情報を編集する為の編集情報を入力する入
力手段と、前記入力手段の編集情報に基づき前記文章解
析手段の出力を編集する編集手段と、前記編集手段の編
集結果の文章を前記表示手段に表示させる表示制御手段
とに文章処理装置を実現するものである。
[Means for Solving the Problem] The present invention provides a text storage means for storing a text, a text analysis means for analyzing and outputting the text, a text generation means for producing a text from the output of the analysis means, and a text generation means for generating a text from the output of the analysis means. a structure generation means for generating information representing the structure of a sentence from the output of the sentence analysis means; a display means for displaying information representing the structure of the sentence from the structure generation means; and a structure of the sentence displayed on the display means. an input means for inputting editing information for editing information representing information; an editing means for editing the output of the text analysis means based on the editing information of the input means; and a display means for displaying the text as a result of editing by the editing means. A text processing device is realized as a display control means for displaying images on a screen.

[実施例] 第1図は本発明の一実施例に係る装置の構成を示すブロ
ック図である。同図において1は文を保持する表層文保
持部、2は表層文保持部1に保持されている文を解析し
て文節間の係り受は関係を求める文解析処理部、3は文
解析処理部2の解析結果である係り受は関係に関する情
報を保持する係り受は情報保持部、4は文解析処理部2
とは逆に、係り受は情報保持部3に保持されている係り
受は関係に間する情報から表層文を生成する表層文生成
処理部、5は文解析処理部2と表層文生成処理部4で用
いる単語辞書である。6は文解析処理部2と表層文生成
処理部4で用いる文法規則を記憶しているメモリである
。7は表層文生成部4で用いるもので、よりわかりやす
い表層文を作成するための規則である表層文生成規則を
記憶しているメモリである。8は係り受は情報保持部3
に保持された係り受は関係に関する情報を、文の構造を
表した図である文構造図のデータに変換する文構造図変
換処理部、9は文構造図変換処理部8の出力である文構
造図データを保持する文構造図データ保持部、10は文
構造図データ保持部9に保持された文構造部データによ
って文構造図を表示したり、表層文保持部1に保持され
た表層文を表示したりする表示部、11はユーザがさま
ざまな操作をするためキーボード、マウスを有する操作
入力部、12は操作入力部11からの入力を解釈する操
作入力解釈部である。さらに13は編集している文章全
体を保持する文章保持部である。
[Embodiment] FIG. 1 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention. In the figure, 1 is a surface sentence holding unit that holds sentences, 2 is a sentence analysis processing unit that analyzes the sentences held in the surface sentence holding unit 1 and finds relationships between clauses, and 3 is a sentence analysis process. The modification that is the analysis result of part 2 is the information holding part that holds information about the relationship, and 4 is the sentence analysis processing part 2.
On the contrary, the modification is held in the information holding unit 3. The modification is the surface sentence generation processing unit that generates the surface sentence from the information between the relationships, and 5 is the sentence analysis processing unit 2 and the surface sentence generation processing unit. This is a word dictionary used in 4. Reference numeral 6 denotes a memory that stores grammar rules used by the sentence analysis processing section 2 and the surface sentence generation processing section 4. Reference numeral 7 denotes a memory used by the surface sentence generation unit 4, which stores surface sentence generation rules, which are rules for creating easier-to-understand surface sentences. 8 is related to information holding unit 3
The dependency held in is a sentence structure diagram conversion processing unit that converts information about relationships into data of a sentence structure diagram that is a diagram representing the structure of a sentence, and 9 is a sentence structure diagram that is the output of the sentence structure diagram conversion processing unit A sentence structure diagram data holding unit 10 holds structure diagram data, and a sentence structure diagram data holding unit 10 displays a sentence structure diagram using the sentence structure data held in the sentence structure diagram data holding unit 9, and displays the surface sentence stored in the surface sentence holding unit 1. 11 is an operation input section having a keyboard and mouse for the user to perform various operations, and 12 is an operation input interpretation section that interprets input from the operation input section 11. Furthermore, 13 is a text holding section that holds the entire text being edited.

第2図は第1図に示した装置における動作の処理手順を
示すフローチャートである。本図を参照しながら本発明
の一実施例の動作を説明する。
FIG. 2 is a flowchart showing the processing procedure of the operation in the apparatus shown in FIG. The operation of an embodiment of the present invention will be described with reference to this figure.

まずステップS1で、表層文保持部1に保持された文を
解析して、その結果を係り受は情報保持部3に保持する
。このステップでは、単語辞書5と文法規則6を参照し
ながら、表層文保持部1に保持されている文を単語に分
割したあと、文節としてまとめ、各文節がどの文節に係
っているか、またその修飾関係が連用修飾なのか、ある
いは連体修飾なのかなどを解析する。この処理は例えば
一般に知られている係り受は解析(長尾真監修「日本語
情報処理」、電子通信学会1984)によって実現でき
る。
First, in step S1, the sentence held in the surface sentence holding unit 1 is analyzed, and the result is held in the dependent information holding unit 3. In this step, referring to the word dictionary 5 and grammar rules 6, the sentences held in the surface sentence holding unit 1 are divided into words, and then grouped into phrases, and it is possible to determine which phrase each phrase relates to, and Analyze whether the modification relationship is a conjunctive modification or an adjunctive modification. This processing can be realized, for example, by the commonly known dependency analysis (Supervised by Makoto Nagao, "Japanese Information Processing", Institute of Electronics and Communication Engineers, 1984).

次にステップS2で、係り受は情報保持部3に保持され
ている係り受は情報を文構造図変換処理部8で文構造図
のデータに変換し、文構造図データ保持部9に保持する
。文構造図としてはどのようなものを選んでもよいが、
ここでは第7図に示すように各文節を箱(四角形)で表
し、連体修飾を矢印で、連用修飾を実線で表すものとす
る。なお、文構造図変換処理も特定の手法に依らなくて
よいが、例えば、同時出願の特許(へ木沢)(上田)の
ようにすることができる。文構造図データ保持部9に保
持されたデータはステップs3で表示部10に表示する
Next, in step S2, the modification information held in the information storage section 3 is converted into sentence structure diagram data by the sentence structure diagram conversion processing section 8, and is stored in the sentence structure diagram data storage section 9. . You can choose any sentence structure diagram, but
Here, as shown in FIG. 7, each phrase is represented by a box (rectangle), adjunctive modifications are represented by arrows, and adjunctive modifications are represented by solid lines. Note that the sentence structure diagram conversion process does not need to depend on a specific method, but it can be performed, for example, as in the patents (Hekizawa) (Ueda) that were filed simultaneously. The data held in the sentence structure diagram data holding section 9 is displayed on the display section 10 in step s3.

ここで、ステップS4においてユーザからの編集入力を
待つ。人力があるまでステップs4とステップS5を繰
り返す。この入力は操作人力部11からの入力であるが
、ここではマウスによるメニュー選択とする。人力があ
ると、ステップS6に穆り、その入力が編集終了を要求
するものであるかどうかを調べる。そうである場合は処
理を終了する。そうでない場合は、その入力は何らかの
命令に相当する。ここでは、命令を1.係り先変更、2
1語順変更、30文表示の三種類とする。ステップS7
では、まず入力が文表示要求か・どうかを調べる。
Here, in step S4, an editing input from the user is awaited. Step s4 and step S5 are repeated until there is enough manpower. This input is from the human operator unit 11, but here it is assumed that menu selection is performed using a mouse. If there is human power, the process goes to step S6, and it is checked whether the input is a request to end editing. If so, the process ends. Otherwise, the input corresponds to some instruction. Here, the command is 1. Change of contact, 2
There are three types: 1 word order change and 30 sentence display. Step S7
First, check whether the input is a sentence display request.

文表示要求でない場合は、ステップS8で、要求された
命令に合わせて、ユーザに操作を支持する。これは画面
上にメツセージを表示することなどによって行う。例え
ば、係り先変更の場合は、係り先を変更する文節と新し
い係り先の文節とを指定するように指示する。次にステ
ップS9゜SIOでユーザからの人力を待つ。これはユ
ーザからの入力があるまで繰り返すユーザからの入力は
例えば文構造図上で、指定すべき文節の箇所をマウスで
クリックすることによって行う。ユーザからの入力があ
るとステップSllで、入力された内容が正しいかどう
かを確認する。指示したように人力がなされなかった場
合や、入力に従りて文構造図のI集ができない場合には
、再びステップS8に戻る。ステップSllで操作内容
が正しい場合には、ステップS12で、人力に従って、
係り受は情報保持部3の内容を更新する。そして、ステ
ップS2に戻り、更新された係り受は情報に基いて、文
構造図変換処理を行う。
If it is not a sentence display request, in step S8, the user is prompted to perform an operation in accordance with the requested command. This is done by, for example, displaying a message on the screen. For example, in the case of changing the dependency, an instruction is given to specify the clause to change the dependency and the new clause. Next, in step S9° SIO, the system waits for manual input from the user. This is repeated until an input is received from the user.Input from the user is performed, for example, by clicking on the sentence structure diagram with a mouse at the location of the phrase to be specified. When there is an input from the user, it is checked in step Sll whether the input content is correct. If it is not done manually as instructed or if the I set of sentence structure diagrams cannot be created according to the input, the process returns to step S8. If the operation details are correct in step Sll, in step S12, according to human power,
The modification updates the contents of the information holding unit 3. Then, the process returns to step S2, and the updated modification is subjected to sentence structure diagram conversion processing based on the information.

一方、ステップS7で、ユーザからの人力が文表示要求
であった場合は、ステップS13で表層文生成処理を行
う。係り受は情報保持部3に保持された係り受は情報を
使って、表層文生成処理部4で表層文を生成し、表層文
保持部1に保持する。生成された表層文は表示部1oに
表示する。
On the other hand, in step S7, if the user's request is to display a sentence, surface sentence generation processing is performed in step S13. The modification information stored in the information storage unit 3 is used to generate a surface sentence in the surface sentence generation processing unit 4, and is stored in the surface sentence storage unit 1. The generated surface sentence is displayed on the display unit 1o.

表層文生成処理部では、単語辞書5と文法規則6のほか
に表層文生成規則7を用いる。文生成手法は一般に知ら
れているどのような手法を用いてもよい。表層文生成規
則は、より読みやすい文を生成するための規則である。
The surface sentence generation processing section uses surface sentence generation rules 7 in addition to the word dictionary 5 and grammar rules 6. Any generally known method may be used as the sentence generation method. Surface sentence generation rules are rules for generating sentences that are easier to read.

例えば第3図に示す読点付加規則、第4図に示す語順変
更規則などを考えることができる。(「日本語の作文技
術」本田勝−著、朝日新聞社、1982) 一般に一つの係り受は情報から生成される表層文は複数
あるので、ステップS14でその中からユーザに選択さ
せる。これは複数の候補を一度に表示して選択させるよ
うにしてもよいし、候補を一つずつ表示して選択させる
ようにしてもよい。
For example, the comma addition rule shown in FIG. 3, the word order change rule shown in FIG. 4, etc. can be considered. ("Japanese Writing Techniques" by Masaru Honda, Asahi Shimbun, 1982) Generally, one dependency has a plurality of surface sentences generated from information, so the user is prompted to select one from among them in step S14. This may be done by displaying a plurality of candidates at once for selection, or by displaying candidates one by one for selection.

候補の選択の方法は任意に選んでよい。次にステップS
15で、ユーザが候補を選択したかどうかを調べる。候
補を選択した場合は、ステップS16で文章保持部13
に保持されている元の文を、ユーザが選択した文と置き
換える。これによって文の書き換えが行われる。このあ
と、ステップS4に戻る。ステップS15で候補を選択
しなかった場合は、そのままステップS4に戻る。
The method for selecting candidates may be arbitrarily selected. Next step S
At 15, it is determined whether the user has selected a candidate. If a candidate is selected, in step S16 the text holding unit 13
Replaces the original sentence held in , with the sentence selected by the user. This rewrites the sentence. After this, the process returns to step S4. If no candidate is selected in step S15, the process returns to step S4.

次に第5図に示す文が、表層文保持部1に保持されてい
る場合を例にとり、本実施例の説明を行う0文解析処理
S1の結果、第6図に示すような係り受は情報が係り受
は情報保持部3に保持される。この係り受は情報を文構
造図データに変換しくS2)、文構造図として表示した
(S3)ものが第7図である。書き手の意図としては、
「泣きながら」は「走り去る」に係っているつもりだと
すると、表示された図は意図に合っていない。これは、
この文が誤って読まれる可能性があることを示している
。そこで、ユーザはr係り先変更」の操作を指示する。
Next, taking as an example the case where the sentence shown in FIG. 5 is held in the surface sentence holding unit 1, as a result of the 0-sentence analysis process S1 for explaining this embodiment, the modification shown in FIG. The information is held in the information holding unit 3. This modification involves converting the information into sentence structure diagram data (S2), and the result displayed as a sentence structure diagram (S3) is shown in FIG. The writer's intention is to
If you think that ``while crying'' is related to ``running away,'' the displayed diagram does not match your intention. this is,
Indicates that this sentence may be misread. Therefore, the user instructs the operation of ``r change party''.

システム側から係り先を変更する文節と新しい係り先の
文節を指定するように指示して<38)、その指示に従
ってユーザが操作したのが第8図である。「泣きなから
」を「走り去る」にかけるように指示している(口で示
す)。これに従って係り受は情報を更新した(S12)
のが、第10図であり、第10図に示す係り受は情報に
従って文構造図を描き直した(32,S3)のが第9図
である。ここで、第9図に相当する表層文を表示させる
と表層文生成処理S13の結果、第11図の文が生成さ
れる。第3図の読点付加規則に従って「麻知子は」の後
ろに読点が付加されている。
FIG. 8 shows that the system instructs the user to specify the clause to which the dependency is to be changed and the clause of the new dependency <38), and the user operates according to the instructions. He instructs the children to put ``Don't cry'' into ``Run away'' (indicates this verbally). The agent updated the information accordingly (S12)
This is shown in FIG. 10, and FIG. 9 shows that the sentence structure diagram has been redrawn (32, S3) according to the information for the dependencies shown in FIG. Here, when the surface sentence corresponding to FIG. 9 is displayed, the sentence shown in FIG. 11 is generated as a result of the surface sentence generation process S13. A comma is added after ``Machiko wa'' according to the rules for adding commas in Figure 3.

第9図において、「追いかけたJに係る二つの修飾語句
の順序を変えたい場合は、ステップS4で、ユーザが語
順変更を指示する。すると、システム側はステップS8
で、語順を変更する句を指定するように指示し、ユーザ
はそれに従って第12図にOで示すように指定する。こ
れはマウスで、修飾関係を示す実線をクリックすること
によって行う。さきほどと同様に係り受は情報保持部3
の内容が更新され、それに従って文構造図を書き換えた
ものが、第13図である。これに相当する表層文を表示
させると、第14図の文が生成される。これを選択する
と、文章保持部13に保持されている第5図の文が第1
4図の文と置き換えられる。
In FIG. 9, "If the user wants to change the order of the two modifiers related to the chased J, the user instructs to change the word order in step S4. Then, the system side
, the user is instructed to specify the phrase whose word order is to be changed, and the user specifies accordingly as shown by O in FIG. 12. This is done by clicking with the mouse on the solid line indicating the modification relationship. As before, the modification is in the information holding unit 3
The contents of the text have been updated and the sentence structure diagram has been rewritten accordingly, as shown in Fig. 13. When a surface sentence corresponding to this is displayed, the sentence shown in FIG. 14 is generated. When this is selected, the sentence in FIG. 5 held in the sentence holding section 13 will be
It can be replaced with the sentence in Figure 4.

以上のようにすることにより、文章構造図上の簡単な操
作で、文をよりわかりやすい形に直すことができるとい
う効果が得られる。
By doing the above, it is possible to obtain the effect that a sentence can be changed into a more easily understandable form by simple operations on the sentence structure diagram.

上述の実施例をプログラム制御的に実現する例を前述の
例との比較の上で行なう。
An example of realizing the above-described embodiment under program control will be described in comparison with the above-mentioned example.

第15図に於いて、CPUは処理部で、解析・変換・生
成等を制御手順に従って実行する。
In FIG. 15, the CPU is a processing unit that executes analysis, conversion, generation, etc. according to control procedures.

M、E M 1はメモリで、前述の文章保持部、表層文
保持部、係り受は情報保持部、文構造図データ保持部、
ワーキングエリア等を有する。
M, E M 1 is a memory, which includes the above-mentioned sentence holding section, surface sentence holding section, information holding section for modification, sentence structure diagram data holding section,
It has a working area etc.

MEM2はメモリで、前述の表層文生成処理手順単語辞
書、文法規則、表層文生成規則、文解析lA31手順、
文構造図変換処理手順、操作入力解釈手順及び第16図
に示す手順が入っている。
MEM2 is a memory that stores the above-mentioned surface sentence generation processing procedure word dictionary, grammar rules, surface sentence generation rules, sentence analysis IA31 procedure,
It includes a sentence structure diagram conversion processing procedure, an operation input interpretation procedure, and the procedure shown in FIG. 16.

KBはキーボード、マウスを有する入力部で、文章、命
令等を人力する。なお文章入力は光学的に入力したり、
通信回線で入力したり、外部記憶により人力しても良い
。DPは表示部で、表示データを記憶するメモリを有す
る。
The KB is an input unit with a keyboard and mouse, and sentences, commands, etc. are entered manually. Text input can be done optically,
It may be entered manually via a communication line or from external memory. DP is a display unit and has a memory for storing display data.

Bはバスで、制御、アドレス、データ等を切りとりする
B is a bus for cutting control, addresses, data, etc.

以上の実施例の作動を前述の例文等を用いて説明する。The operation of the above embodiment will be explained using the above-mentioned example sentences.

まずステップSOで、表示部で表示されたメモリMEM
 1の表層文保持部に保持された文の内の1部をカーソ
ルで指定し、ステップS1で当該文を処理部CPUで解
析して、その結果をMEMIの係り受は情報保持部に保
持する。このステップでは、メモリMEM2の単語辞書
と文法規則を参照しながら、メモリMEM 1の表層文
保持部に保持されている文章を単語に分割したあと文節
としてまとめ、各文節がどの文節に係っているか、また
その修飾関係が連用修飾なのか、あるいは連体修飾なの
かなどを解析する。
First, in step SO, the memory MEM displayed on the display unit
A part of the sentence held in the surface sentence holding unit 1 is specified with a cursor, and in step S1, the processing unit CPU analyzes the sentence, and the result is held in the information holding unit of MEMI. . In this step, while referring to the word dictionary and grammar rules in the memory MEM2, the sentences held in the surface sentence storage section of the memory MEM1 are divided into words and then grouped into phrases, and each phrase is related to which phrase. and whether the modification relationship is a conjunctive modification or an adjunctive modification.

次にステップS2で、メモリMEM 1の係り受は情報
保持部に保持されている係り受は情報を、処理部CPU
で文構造図のデータに変換し、メモリMEM 1の文構
造図データ保持部に保持する。
Next, in step S2, the modification of the memory MEM 1 transfers the information held in the information storage unit to the processing unit CPU.
The data is converted into sentence structure diagram data and held in the sentence structure diagram data holding section of the memory MEM1.

文構造図としてはどのようなものを選んでもよいが、こ
こでは第7図に示すように各文節を箱(四角形)で表し
、連体修飾を矢印で、連用修飾を実線で表すものとする
。なお、文構造図変換処理も特定の手法に依らなくてよ
いが、例えば、同時出願の特許(へ木沢)(上田)のよ
うにすることができる、メモリMEMIの文構造図デー
タ保持部に保持されたデータはステップS3で表示部D
Pに送り、表層文が表示されている画面上にウィンドウ
を切って文構造を表示する。
Any sentence structure diagram may be chosen, but here, as shown in Figure 7, each clause is represented by a box (rectangle), adjunctive modifications are represented by arrows, and conjunctive modifications are represented by solid lines. Note that the sentence structure diagram conversion process does not need to depend on a specific method, but for example, it can be stored in the sentence structure diagram data storage section of the memory MEMI, which can be done as in the concurrently filed patent (Hekizawa) (Ueda). The displayed data is displayed on the display section D in step S3.
P, and a window is opened on the screen where the surface sentence is displayed to display the sentence structure.

ここで、ステップS4においてユーザからの編集入力を
待つ。人力があるまで、ステップS4とステップS5を
繰り返す。この入力は入力部KBからの入力であるが、
ここではマウスによる表示部DPに表示されているメニ
ュー選択方式とする0人力があると、ステップS6に移
り、その人力が編集終了を要求するものであるかどうか
を調べる。そうで、ある場合は処理を終了する。そうで
ない場合は、その入力は何らかの命令に相当する。ここ
では、命令を1.係り先変更、21語順変更、39文表
示の三種類とする。ステップS7では、まず入力が文表
示要求かどうかを調べる。
Here, in step S4, an editing input from the user is awaited. Step S4 and step S5 are repeated until there is enough manpower. This input is from the input section KB,
Here, if there is no human effort required for the menu selection method displayed on the display section DP using the mouse, the process moves to step S6, and it is checked whether or not that human effort requests the end of editing. If so, the process ends. Otherwise, the input corresponds to some instruction. Here, the command is 1. There are three types: changing the dependency, changing the order of 21 words, and displaying 39 sentences. In step S7, it is first checked whether the input is a sentence display request.

文表示要求でない場合は、ステップS8で、要求された
命令に合わせて、ユーザに操作を指示する。これは画面
上にメツセージを表示することなどによって行う。例え
ば、係り先変更の場合は、係り先を変更する文節と新し
い係り先の文節とを指定するように指示する。次にステ
ップS9゜SIOでユーザからの入力を待つ。これはユ
ーザからの入力があるまで繰り返すユーザからの人力は
、例えば文構造図上で、指定すべき文節の箇所をマウス
でクリックすることによって行う。ユーザからの入力が
あるとステップSitで入力された内容が正しいかどう
かを確認する。指示したように入力がなされなかった場
合や、入力に従って文構造図の編集ができない場合には
、再びステップS8に戻る。ステップS11で操作内容
が正しい場合には、ステップS12で、入力に従ってメ
モリMEMIの、係り受は情報保持部の内容を更新する
。そして、ステップS2に戻り、更新された係り受は情
報に基いて、文構造図変換処理を処理部CPUで行う。
If it is not a sentence display request, the user is instructed to operate in accordance with the requested command in step S8. This is done by, for example, displaying a message on the screen. For example, in the case of changing the dependency, an instruction is given to specify the clause to change the dependency and the new clause. Next, in step S9° SIO, an input from the user is awaited. This is repeated until an input is received from the user.The user manually performs this by, for example, clicking on a sentence structure diagram with a mouse at the location of the phrase to be specified. When there is input from the user, it is checked in step Sit whether the input contents are correct. If the input is not made as instructed or if the sentence structure diagram cannot be edited according to the input, the process returns to step S8 again. If the operation contents are correct in step S11, the contents of the modification information holding section of the memory MEMI are updated in accordance with the input in step S12. Then, the process returns to step S2, and the processing unit CPU performs sentence structure diagram conversion processing on the updated dependency based on the information.

しかる後、再編集された文が表示部DPで表示される。Thereafter, the re-edited sentence is displayed on the display section DP.

一方、ステップS7で、ユーザからの入力が文表示要求
であった場合は、ステップS13で表層文生成処理を行
う。メモリMEM 1の係り受は情報保持部に保持され
た係り受は情報を使って、処理部CPUで表層文を生成
し、メモリMEMIの表層文保持部に保持する。生成さ
れた表層文は表示部DPに送り表示する。表層文生成処
理部では、メモリMEM2の単語辞書と文法規則のほか
に表層文生成規則を用いる。表層文生成規則は、より読
みやすい文を生成するための規則である。
On the other hand, if the input from the user is a sentence display request in step S7, surface sentence generation processing is performed in step S13. The modification of the memory MEM1 uses the information held in the information holding unit to generate a surface sentence in the processing unit CPU, and holds it in the surface sentence holding unit of the memory MEMI. The generated surface sentence is sent to the display section DP and displayed. The surface sentence generation processing unit uses surface sentence generation rules in addition to the word dictionary and grammar rules in the memory MEM2. Surface sentence generation rules are rules for generating sentences that are easier to read.

例えば第3図に示す読点付加規則、第4図に示す語順変
更規則などを考えることができる。
For example, the comma addition rule shown in FIG. 3, the word order change rule shown in FIG. 4, etc. can be considered.

一般に一つの係り受は情報から生成される表層文は複数
あるので、ステップS14でその中からユーザに選択さ
せる。これは複数の候補を一度に表示して選択させるよ
うにしてもよいし、候補を一つずつ表示して選択させる
ようにしてもよい。
Generally, one modification has a plurality of surface sentences generated from information, so the user is asked to select one from among them in step S14. This may be done by displaying a plurality of candidates at once for selection, or by displaying candidates one by one for selection.

候補の選択の方法はカーソルで選択しても良いし、番号
で選択しても良い。次にステップS15で、ユーザが候
補を選択したかどうかを調べる。
Candidates may be selected using a cursor or by number. Next, in step S15, it is checked whether the user has selected a candidate.

候補を選択した場合は、ステップS16でメモリMEM
I(75文章保持部に保持されている元の文を、ユーザ
が選択した文と置ぎ換える。これによって文の書き換え
が行われる。このあと、ステップS4に戻る。ステップ
315で候補を選択しなかった場合は、そのままステッ
プS4に戻る。
If a candidate is selected, the memory MEM is selected in step S16.
I (75 Replaces the original sentence held in the sentence holding unit with the sentence selected by the user. This rewrites the sentence. After this, the process returns to step S4. In step 315, a candidate is selected. If not, the process directly returns to step S4.

次に第5図に示す文がメモリMEMIの表層文保持部に
保持されている場合を例にとり、本実施例のさらなる説
明を行う。文解析処理S1の結果、第6図に示す様な係
り受は情報がメモリMEM1の係り受は情報保持部に保
持される。この係り受は情報を文構造図データに変換し
くS2)、文構造図として表示した(S3)ものが第7
図である。書き手の意図としては、「泣きながら」は「
走り去る」に係っているつもりだとすると、表示された
図は意図に合っていない。これは、この文が誤って読ま
れる可能性があることを示している。そこで、ユーザは
「係り先変更」の操作を指示する。システム側から係り
先を変更する文節と新しい係り先の文節を指定するよう
に指示して(Sa)、その指示に従ってユーザが操作し
たのが第8図である。「泣きながら」を「走り去る」に
かけるように指示している(口で示す)。これに従って
係り受は情報を更新した(S 12)のが、第10図で
あり、第10図に示す係り受は情報に従って文構造図を
描き直した(S2.S3)のが第9図である。ここで、
第9図に相当する表層文を表示させると表層文生成処理
S13の結果、第11図の文が生成される。第3図の読
点付加規則に従って、「麻知子は」の後ろに読点が付加
されている。
Next, the present embodiment will be further explained by taking as an example the case where the sentence shown in FIG. 5 is held in the surface sentence holding section of the memory MEMI. As a result of the sentence analysis processing S1, the modification information as shown in FIG. 6 is held in the information storage unit in the memory MEM1. This modification involves converting the information into sentence structure diagram data (S2), and displaying it as a sentence structure diagram (S3) is the seventh
It is a diagram. As for the writer's intention, ``while crying'' is ``
If you are thinking that it is related to "Running away", the displayed diagram does not match your intention. This indicates that this sentence may be misread. Then, the user instructs the operation of "change party". FIG. 8 shows that the system instructs the user to specify the clause to which the dependency is to be changed and the clause of the new dependency (Sa), and the user operates according to the instructions. He instructs the students to add ``while crying'' to ``running away'' (indication by mouth). Figure 10 shows that the modification information has been updated according to this information (S12), and Figure 9 shows that the sentence structure diagram for the modification shown in Figure 10 has been redrawn according to the information (S2 and S3). . here,
When the surface sentence corresponding to FIG. 9 is displayed, the sentence shown in FIG. 11 is generated as a result of the surface sentence generation process S13. According to the rules for adding commas in Figure 3, a comma is added after ``Machiko wa''.

第9図において、「追いかけた」に係る二つの修飾語句
の順序を変えたい場合は、ステップS4で、ユーザが゛
語順変更を入力部KB(マウス)から指示すると、ステ
ップS8で語順を変更する句を指定するように指示し、
ユーザはそれに従って第12図にOで示すように指定す
る。これはマウスで、修飾関係を示す実線をクリックす
ることによって行う。さきほどと同様に係り受は情報保
持部3の内容が更新され、それに従って文構造図を書き
換えたものが、第13図である。これに相当する表層文
を表示させると、第14図の文が生成される。これを選
択すると、メモリMEM 1の文章保持部に保持されて
いる第5図の文が第14図の文と置き換えられる。
In FIG. 9, if the user wants to change the order of the two modifiers related to "chased", the user instructs to change the word order from the input section KB (mouse) in step S4, and the word order is changed in step S8. ask them to specify a phrase,
The user specifies accordingly as shown by O in FIG. This is done by clicking with the mouse on the solid line indicating the modification relationship. As before, the contents of the modification information holding section 3 have been updated, and the sentence structure diagram has been rewritten accordingly, as shown in Fig. 13. When a surface sentence corresponding to this is displayed, the sentence shown in FIG. 14 is generated. When this is selected, the sentence shown in FIG. 5 held in the sentence holding section of the memory MEM 1 is replaced with the sentence shown in FIG. 14.

以上のようにすることにより文章構造図上の簡単な操作
で、文をよりわかりやすい形に直すことができるという
効果が得られる。
By doing the above, you can obtain the effect that a sentence can be changed into a more understandable form by simple operations on the sentence structure diagram.

[他の実施例] ・文構造図の形式は、実施例で示したような、箱と実線
と矢印によるもの以外であっても構わない。例えば連体
修飾を−、連用修飾を中で表してもよい。
[Other Examples] - The format of the sentence structure diagram may be other than the box, solid line, and arrow shown in the example. For example, a conjunctive modification may be expressed as -, and a conjunctive modification may be expressed within.

・実施例では、操作入力をマウスによるものとしたが、
これはキーボードからの入力であってもよいし、他の手
段によってもよい。また、これらの手段の混合であって
も構わない。
- In the example, operation input was performed using a mouse, but
This may be input from a keyboard or by other means. Further, a mixture of these means may be used.

・実施例では、文解析手法として係り受は解析を用いた
が、実施例と同様の係り受は情報を出力するものであれ
ば、他の手法であってもよい。
- In the embodiment, modification analysis was used as a sentence analysis method, but other modification methods may be used as long as the same modification as in the embodiment outputs information.

・実施例では、ユーザによる操作として、係り先変更/
語順変更/文表示の三種類を考えたが、他の操作を加え
てよいし、またこのうちの一部であってもよい。
- In the example, the user's operations include changing/
Although three types of operations, word order change/sentence display, have been considered, other operations may be added, or some of these may be used.

・実施例では、表層文生成規則として、読点付加規則と
語順変更規則を考えたが、さらに他の規則を加えてもよ
いし、またこのうちの一部であってもよい。
- In the embodiment, comma addition rules and word order change rules are considered as surface sentence generation rules, but other rules may be added, or a part of them may be used.

[発明の効果] 以上説明したように、本発明によれば、文の係り受は構
造を文構造図として表示し、その図の上での編集結果を
元の文に反映させるようにすることにより、容易に文を
よりわかりやすい形に修正することができるという効果
がある。
[Effects of the Invention] As explained above, according to the present invention, the structure of sentence dependency is displayed as a sentence structure diagram, and the editing results on the diagram are reflected in the original sentence. This has the effect of making it easier to modify the sentence into a more understandable form.

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

第1図は本発明の一実施例に係る装置の構成を示すブロ
ック図、 第2図は本発明の一実施例に係る処理手順を示すフロー
チャート、 第3図、第4図は本発明の一実施例で用いる、よりわか
りやすい文を生成するための規則の例を示す図、 第5図は本発明の一実施例を説明するための例文を示す
図、 第6図〜第14図は第5図の例文を使って処理を進めた
ときの、文構造図や係り受は情報を示す図、 第15図は他の実施例を示すブロック図、第16図は制
御手順を示す図、 1・・・表層文保持部 2・・・文解析処理部 3・・・係り受は情報保持部 4・・・表層文生成処理部 5・・・単語辞書 6・・・文法規則 7・・・表層文生成規則 8・・・文構造変換処理部 9・・・文構造データ保持部 10・・・表示部 11・・・操作入力部 12・・・操作入力解釈部 13・・・文章保持部 〃 づ 図 談声、41カrJ苅躬 話ノ号i1蚕]j;;烈】−リ 囁 関 Kr1″ 弔 図
FIG. 1 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention, FIG. 2 is a flowchart showing a processing procedure according to an embodiment of the present invention, and FIGS. Figure 5 is a diagram showing an example of a rule for generating easier-to-understand sentences used in the embodiment. The sentence structure diagram and dependencies are diagrams showing information when processing is proceeded using the example sentences in the figure. Figure 15 is a block diagram showing another embodiment. Figure 16 is a diagram showing the control procedure. 1. ...Surface sentence holding unit 2...Sentence analysis processing unit 3...Depends on information holding unit 4...Surface sentence generation processing unit 5...Word dictionary 6...Grammar rule 7...Surface layer Sentence generation rule 8...Sentence structure conversion processing section 9...Sentence structure data holding section 10...Display section 11...Operation input section 12...Operation input interpretation section 13...Sentence holding section Zu Zudansei, 41 Karr J Karibanwa No. i1 Silkworm]j;;Retsu]-Risai Seki Kr1'' Funeral diagram

Claims (3)

【特許請求の範囲】[Claims] (1)文章を記憶する文章記憶手段と、 前記文章を解析して出力する文章解析手段と、前記解析
手段の出力から文章を生成する文章生成手段と、 前記文章解析手段の出力から文章の構造を表す情報を生
成する構造生成手段と、 前記構造生成手段からの文章の構造を表す情報を表示す
る表示手段と、 前記表示手段に表示されている文章の構造を表す情報を
編集する為の編集情報を入力する入力手段と、 前記入力手段の編集情報に基づき前記文章解析手段の出
力を編集する編集手段と、 前記編集手段の編集結果の文章を前記表示手段に表示さ
せる表示制御手段とを有する文章処理装置。
(1) A text storage means for storing sentences; a text analysis means for analyzing and outputting the text; a text generation means for generating a text from the output of the analysis means; and a structure of the text from the output of the text analysis means. structure generating means for generating information representing the structure of the sentence; display means for displaying the information representing the structure of the sentence from the structure generating means; and editing for editing the information representing the structure of the sentence displayed on the display means. It has an input means for inputting information, an editing means for editing the output of the text analysis means based on the editing information of the input means, and a display control means for displaying the text as a result of editing by the editing means on the display means. Sentence processing device.
(2)編集された前記文章に基づき前記構造生成手段に
より再び文章の構造を表す情報生成し、表示させる手段
を有する請求項1の文章処理装置。
(2) The text processing apparatus according to claim 1, further comprising means for causing the structure generation means to generate and display information representing the structure of the text again based on the edited text.
(3)編集された前記文章に基づき前記文章生成手段に
より文章を作成し、前記文章解析手段により解析させる
手段を有する請求項1の文章処理装置。
(3) The text processing apparatus according to claim 1, further comprising means for causing the text generation means to create a text based on the edited text and for the text analysis means to analyze the text.
JP1063258A 1989-03-14 1989-03-14 Text processing apparatus and method Expired - Fee Related JP3039655B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1063258A JP3039655B2 (en) 1989-03-14 1989-03-14 Text processing apparatus and method
US07/493,104 US5170349A (en) 1989-03-14 1990-03-13 Text processing apparatus using modification relation analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1063258A JP3039655B2 (en) 1989-03-14 1989-03-14 Text processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH02297150A true JPH02297150A (en) 1990-12-07
JP3039655B2 JP3039655B2 (en) 2000-05-08

Family

ID=13224062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1063258A Expired - Fee Related JP3039655B2 (en) 1989-03-14 1989-03-14 Text processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3039655B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5598518A (en) * 1993-03-10 1997-01-28 Fuji Xerox Co., Ltd. Text editing apparatus for rearranging sentences

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60225979A (en) * 1984-04-25 1985-11-11 Matsushita Electric Ind Co Ltd Retrieval device
JPS61278970A (en) * 1985-06-03 1986-12-09 Hitachi Ltd Method for controlling display and calibration of analyzed result of sentence structure in natural language processor
JPS6224359A (en) * 1985-07-25 1987-02-02 Ricoh Co Ltd Japanese word processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60225979A (en) * 1984-04-25 1985-11-11 Matsushita Electric Ind Co Ltd Retrieval device
JPS61278970A (en) * 1985-06-03 1986-12-09 Hitachi Ltd Method for controlling display and calibration of analyzed result of sentence structure in natural language processor
JPS6224359A (en) * 1985-07-25 1987-02-02 Ricoh Co Ltd Japanese word processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5598518A (en) * 1993-03-10 1997-01-28 Fuji Xerox Co., Ltd. Text editing apparatus for rearranging sentences

Also Published As

Publication number Publication date
JP3039655B2 (en) 2000-05-08

Similar Documents

Publication Publication Date Title
JPH0458052B2 (en)
JPS61255468A (en) Mechanical translating processing device
EP0118187A1 (en) Menu-based natural language understanding system
JP2003271389A (en) Method for operating software object in natural language and its program
JPH02297150A (en) Text processor
JPH09106399A (en) Device and method for machine translation
JPH0384661A (en) Document producing device
JPS60186904A (en) Program input system
TW201537372A (en) Action designing device and action designing program
Hartley et al. AGILE-A system for multilingual generation of technical instructions
JPS63109578A (en) Processing system for logic diagram outline display
CN108766059A (en) A kind of cloud service English teaching equipment and teaching method
JPH03127266A (en) Inter-word relation editing/learning device for mechanical translating device
JPS6383861A (en) Automatic processing system for numerical formula
US20030033332A1 (en) Control/display unit page builder software tool
JP2851852B2 (en) Information processing device
JPH01280866A (en) Japanese word processing system
JPH0916597A (en) Sentence elaboration device and method therefor
Ohnishi Vrdl: a visual software requirements language
JP2729996B2 (en) Document processing apparatus and method
JPS63208165A (en) Translating device
JPH05265733A (en) Program producing/executing device
JP2006235863A (en) Information display method, information display device, and information display program
JPH02300971A (en) Language processing device
JPH0981570A (en) Translation device and translated sentence display method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees