[go: up one dir, main page]

JPH0584934B2 - - Google Patents

Info

Publication number
JPH0584934B2
JPH0584934B2 JP61089315A JP8931586A JPH0584934B2 JP H0584934 B2 JPH0584934 B2 JP H0584934B2 JP 61089315 A JP61089315 A JP 61089315A JP 8931586 A JP8931586 A JP 8931586A JP H0584934 B2 JPH0584934 B2 JP H0584934B2
Authority
JP
Japan
Prior art keywords
sentence
text
storage means
character string
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
JP61089315A
Other languages
Japanese (ja)
Other versions
JPS62245368A (en
Inventor
Shunichi Fukushima
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61089315A priority Critical patent/JPS62245368A/en
Publication of JPS62245368A publication Critical patent/JPS62245368A/en
Publication of JPH0584934B2 publication Critical patent/JPH0584934B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、日本語文章の作成・編集を行う文章
編集装置に関するものである。特に、従来、日本
語ワードプロセツサが利用されている産業分野で
利用される。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a text editing device for creating and editing Japanese texts. In particular, it is used in industrial fields where Japanese word processors have traditionally been used.

(従来の技術) 従来、日本語文章の作成・編集を行う装置とし
て、日本語ワードプロセツサが普及している。日
本語ワードプロセツサは、仮名漢字変換装置、音
声入力仮名漢字変換装置、ペンタツチキーボード
などの入力装置を用いて入力された日本語文章の
漢字仮名混じり文字列を記憶し、表示する。そし
て、記憶している漢字仮名混じり文字列をアクセ
スして、文字列の挿入・削除・移動・置換などの
編集機能を実現している。
(Prior Art) Conventionally, Japanese word processors have been popular as devices for creating and editing Japanese sentences. The Japanese word processor stores and displays character strings containing kanji and kana characters of Japanese sentences input using an input device such as a kana-kanji converter, a voice input kana-kanji converter, or a pen-touch keyboard. It then accesses the stored strings containing kanji and kana to perform editing functions such as inserting, deleting, moving, and replacing strings.

(発明が解決しようとする問題点) 従来の日本語ワードプロセツサでは、日本語文
章を文字列としてのみ記憶しているため、挿入・
削除・移動・複写・置換などの編集機能も文字単
位でしか処理できない。
(Problem to be solved by the invention) Conventional Japanese word processors store Japanese sentences only as character strings, so they cannot be inserted or
Editing functions such as deleting, moving, copying, and replacing can only be processed character by character.

一方、日本語文章の編集作業において、挿入・
削除・移動・複写・置換などの処理対象の単位
は、通常、文・文節・単語など、日本語文章の構
造の単位、意味的にまとまりのある単位がとら
れ、これに対して、従来の日本語ワードプロセツ
サでは、利用者が、対象となる文・文節・単語な
どの単位を、文字列の範囲としてとらえ直し、範
囲の先頭文字位置と範囲の末尾文字位置とを指定
して、削除・移動・複写などの編集操作を行うこ
とになる。このとき、対象となる文・文節・単語
などの単位を、文字列の範囲としてとらえ直すこ
とは、煩わしいものであるし、また、そのため指
定しようとしている文字位置をカーソルが前後し
たり、指定位置を一文字分ずらしてしまつたりす
ることがある。そこで、対象を、文・文節・単語
などの単位で指定でき、編集できることや、文・
文節・単語などの単位でカーソルを移動できるこ
とが望まれる。
On the other hand, when editing Japanese text, inserting and
The units to be processed such as deletion, movement, copying, and replacement are usually structural units of Japanese sentences, such as sentences, clauses, and words, and units that are semantically coherent. In Japanese word processors, users can reconsider a target sentence, clause, word, or other unit as a range of characters, specify the first character position of the range, and the last character position of the range, and then delete it.・Editing operations such as moving and copying will be performed. At this time, it is cumbersome to reconsider the target sentence, clause, word, etc. as a range of character strings, and it also causes the cursor to move back and forth, or the specified position Sometimes I shift the ``by'' by one character. Therefore, it is possible to specify and edit the target in units of sentences, clauses, words, etc.
It is desirable to be able to move the cursor in units of phrases, words, etc.

これに対して、英文の文章編集装置では、編集
の対象として、単語・文・段落などの単位を指定
できるものがスミス等によりバイト誌に発表され
ている(Smith、D.、Irby、C.、Verplank、B.
and Harslem、E.:“Designing the Star User
Interface”、Byte、Vol.7、No.4、1982)。英文の
場合は、単語と単語の間がスペースで区切られて
いるために、スペースで挟まれた文字列を「単
語」として、ピリオド(.)で挟まれた文字列を
「文」として、処理することができる。しかしな
がら、日本語の文の場合には、単語と単語の間を
スペースで区切る習慣がないので、英文の方式を
そのまま利用することはできない。
On the other hand, an English text editing device that allows you to specify units such as words, sentences, and paragraphs for editing was published by Smith et al. in Byte Magazine (Smith, D., Irby, C. , Verplank, B.
and Harslem, E.: “Designing the Star User
Interface”, Byte, Vol. 7, No. 4, 1982). In English, words are separated by spaces, so a string of characters between spaces is considered a “word” and a period is used. A string of characters between (.) can be treated as a "sentence". However, in the case of Japanese sentences, it is not customary to separate words with spaces, so the English method cannot be used as is.

そこで、日本語の文章の場合、同一字種の文字
列を単語とみなす方法(伊藤、田中:「ビツトマ
ツプデイスプレイとマウスを利用したエデイタ」、
『情報処理』第25巻第8号、1984)や仮名漢字変
換入力の際の入力単位を文節とみなす方法(特開
昭59−69829号公報「文書作成装置」)が考えられ
るが、これらの方法は、あくまで近似的なもので
あり、正確さに欠ける。例えば、同一字種の文字
列を単語とみなす方法を採つたとき、「それ以来
彼は新しい方式を追求した。」という文について、
「方式」「追求」などの単語はうまく指定できる
が、「以来」と「彼」は分離できず「以来彼」と
なつてしまうし、「新しい」は「新」のみしか指
定できない。仮名漢字変換入力の際の入力単位を
文節とみなす方法を採つたときも、例えば、「手
紙を」と入力する際に、「手」と「紙」と「を」
とを分けて入力したり、一端、「手紙に」と入力
し、後から「に」を「を」に修正したりした場
合、「手紙を」を一文節として扱えなくなつてし
まう。
Therefore, in the case of Japanese sentences, there is a method to consider character strings of the same character type as words (Ito, Tanaka: "Editor using Bitmap display and mouse",
``Information Processing'' Vol. 25, No. 8, 1984) and a method of considering the input unit as a clause during kana-kanji conversion input (Japanese Unexamined Patent Application Publication No. 1982-69829 ``Document Creation Device''), but these The method is only an approximation and lacks accuracy. For example, when we adopt a method of treating strings of the same glyph type as words, for the sentence ``Since then he has pursued a new method.''
Words such as ``method'' and ``pursuit'' can be specified well, but ``since'' and ``he'' cannot be separated, resulting in ``since he'', and ``new'' can only be specified with ``new''. When inputting kana-kanji conversion input using a method that considers the input unit as a clause, for example, when inputting ``letter'', ``hand'', ``paper'', and ``wo'' are used.
If you input ``letter'' separately, or if you input ``letter'' and later modify ``ni'' to ``wo,'' you will no longer be able to treat ``letter'' as a single phrase.

さらに、従来の文字列編集では、単語の品詞に
関する指定が行えないため、誤つた処理を行うと
いう欠点もある。例えば、「繰り返し」という名
詞を「反復」という名詞に置き換えようとすると
き、従来の方式では、文章中に名詞として出現す
る「繰り返し」(例えば、「同一の言葉の『繰り返
し』は強調の効果がある。」における「繰り返
し」)のみでなく、動詞の連用形の「繰り返し」
(例えば、「同じ言葉を何度も『繰り返し』てい
る。」における「繰り返し」)まで置き換えの対象
となつてしまうために、結果として意味の通らな
い文章になつてしまうという欠点がある(例え
ば、「何度も『繰り返し』ている。」が「何度も
『反復』している。」となつてしまう。
Furthermore, in conventional character string editing, it is not possible to specify the part of speech of a word, resulting in incorrect processing. For example, when trying to replace the noun ``repetition'' with the noun ``repetition,'' the conventional method uses ``repetition'' that appears as a noun in a sentence (for example, ``repetition'' of the same word has the effect of emphasis. ``repetition'') as well as ``repetition'' in the conjunctive form of the verb.
(For example, ``repetition'' in ``The same word is 'repeated' over and over again.'') is subject to substitution, so the disadvantage is that the result is a sentence that does not make sense (for example, , "It's 'repeated' over and over again." becomes "It's 'repeated' over and over again."

本発明の目的は、上述のような従来の文字列編
集の欠点を除去し、文・文節・単語の単位や単語
の品詞などの文章構造情報にもとづいた、正確
で、操作性の良い編集を可能とする文章編集装置
を提供することである。
The purpose of the present invention is to eliminate the drawbacks of conventional character string editing as described above, and to provide accurate and easy-to-operate editing based on sentence structure information such as units of sentences, clauses, and words, and parts of speech of words. The object of the present invention is to provide a text editing device that enables the following.

(問題点を解決するための手段) 本発明は、日本語文章の編集を行う文章編集装
置において、編集の対象となる日本語文章の漢字
仮名混じり文字列を記憶する文章記憶手段、単語
辞書を記憶する辞書記憶手段、前記単語辞書を参
照して前記文章記憶手段に記憶された漢字仮名混
じり文字列に対して文・文節・単語の単位および
各単語の品詞などの文章構造情報を決定する文章
解析手段、該前記文章解析手段により決定された
文章構造情報を記憶する文章構造記憶手段、文章
構造情報を指定する構造指定手段、前記構造指定
手段により指定された文章構造記憶手段を参照し
て前記文章構造情報にもとづく文章中の位置を抽
出する構造位置抽出手段を備えたことを特徴とす
る文章編集装置である。
(Means for Solving the Problems) The present invention provides a text editing device for editing Japanese texts, which includes a text storage means for storing character strings containing kanji and kana characters of Japanese texts to be edited, and a word dictionary. a dictionary storage means for storing, and a sentence for determining sentence structure information such as units of sentences, clauses, and words and parts of speech of each word for the kanji-kana-mixed character string stored in the sentence storage means by referring to the word dictionary; an analysis means, a sentence structure storage means for storing the sentence structure information determined by the sentence analysis means, a structure designation means for specifying the sentence structure information, and a sentence structure storage means specified by the structure designation means. A text editing device is characterized in that it includes a structural position extracting means for extracting a position in a text based on text structure information.

(実施例) 図面を用いて、本発明の構成・作用を説明す
る。
(Example) The structure and operation of the present invention will be explained using the drawings.

第1図は本発明の文章編集装置の一実施例の構
成を示すブロツク図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the text editing device of the present invention.

第1図において、入力手段1は、日本語文章の
漢字仮名混じり文字列の入力、挿入・削除・移
動・複写・置換などの編集指令の入力、カーソル
位置の移動指令の入力などを行う。キーボード、
音声入力装置などと仮名漢字変換装置とが組み合
わせて用いられる。
In FIG. 1, the input means 1 inputs a character string containing kanji and kana in a Japanese text, inputs editing commands such as insertion, deletion, movement, copying, and replacement, and inputs a command to move the cursor position. keyboard,
A voice input device or the like is used in combination with a kana-kanji conversion device.

文章記憶手段2は、入力手段1によつて入力さ
れた漢字仮名混じり文字列を記憶する。ICメモ
リ、磁気デイスク装置などが用いられる。
The text storage means 2 stores the character string containing kanji and kana characters inputted by the input means 1. IC memory, magnetic disk devices, etc. are used.

表示手段3は、文章記憶手段2に記憶された漢
字仮名混じり文字列、およびカーソルなどを表示
する。CRTデイスプレイなどが用いられる。
The display means 3 displays the kanji/kana mixed character string stored in the text storage means 2, a cursor, and the like. A CRT display or the like is used.

辞書記憶手段4は、単語辞書を記憶する。IC
メモリ、磁気デイスク装置などが用いられる。単
語辞書は、日本語の単語について、少なくともそ
の表記と品詞を登録したものである(ここでは、
表記を見出しとして登録してあるものとする)。
The dictionary storage means 4 stores a word dictionary. I C
Memory, magnetic disk devices, etc. are used. A word dictionary registers at least the notation and part of speech for Japanese words (here,
(assuming that the notation is registered as a heading).

文章解析手段5は、辞書記憶手段4に記憶され
た単語辞書を参照して、文章記憶手段2に記憶さ
れた漢字仮名混じり文字列に対して文・文節・単
語の単位および各単語の品詞などの文章構造情報
を決定する。辞書記憶手段4と文章解析手段5は
公知の手段であり、例えば、『国語辞書の記憶と
日本語文の自動分割』(長尾、辻井、山上、建部、
「情報処理」第19巻第6号、1978)のようにして
実現できる。
The sentence analysis means 5 refers to the word dictionary stored in the dictionary storage means 4 and analyzes the kanji-kana-mixed character string stored in the sentence storage means 2, including units of sentences, clauses, and words, and parts of speech of each word. Determine the sentence structure information of. The dictionary storage means 4 and the sentence analysis means 5 are known means, such as "Japanese dictionary storage and automatic segmentation of Japanese sentences" (Nagao, Tsujii, Yamagami, Takebe,
``Information Processing'' Vol. 19 No. 6, 1978).

文章構造記憶手段6は、文章解析手段5によつ
て決定された漢字仮名混じり文字列の文章構造情
報を記憶する。ICメモリ、磁気デイスク装置な
どが用いられる。文章構造情報としては、具体的
には、文の境界の位置、文節の境界の位置、単語
の境界の位置、各単語の品詞などが記憶される。
The sentence structure storage means 6 stores the sentence structure information of the kanji/kana mixed character string determined by the sentence analysis means 5. IC memory, magnetic disk devices, etc. are used. As the sentence structure information, specifically, the position of sentence boundaries, the position of clause boundaries, the position of word boundaries, the part of speech of each word, etc. are stored.

構造指定手段7は、文章構造情報を指定する。
キーボードなどが用いられ、入力手段1を併用す
ることができる。指定する内容は、具体的には、
文、文節、単語などの単位、その数、品詞の種類
などである。例えば、文、文節、単語などの単位
の指定は、「文」「文節」「単語」というキーを用
意すればよい。その数の指定は、テンキーを用い
るか、または、「+」キーや「−」キーで数を増
減させる方法がある。単語の品詞の指定は、品詞
に対応するコードを決めておき、そのコードを入
力するようにすればよい。
The structure specifying means 7 specifies sentence structure information.
A keyboard or the like is used, and the input means 1 can also be used. Specifically, the contents to be specified are as follows.
These include units such as sentences, clauses, and words, their numbers, and types of parts of speech. For example, to specify units such as sentences, clauses, and words, keys such as "sentence,""clause," and "word" may be prepared. The number can be specified using the numeric keypad, or by increasing or decreasing the number using the "+" or "-" keys. The part of speech of a word can be specified by determining a code corresponding to the part of speech and inputting that code.

構造位置抽出手段8は、文章構造記憶手段6を
参照して、文章構造情報にもとづく文章中の位置
を抽出する。具体的には、現在のカーソル位置と
構造指定手段7の指定とを受けて、文章構造記憶
手段6を検索し、対応する文字位置あるいは範囲
を抽出する。または、ある文字列範囲を受けて、
その範囲に対応する品詞コードを抽出する。
The structure position extraction means 8 refers to the sentence structure storage means 6 and extracts a position in the sentence based on the sentence structure information. Specifically, upon receiving the current cursor position and the designation by the structure designation means 7, the sentence structure storage means 6 is searched and the corresponding character position or range is extracted. Or, given a string range,
Extract the part-of-speech code corresponding to that range.

文章編集制御手段9は、上述の各手段と情報を
受渡ししで、挿入・削除・移動・複写・置換など
の編集機能を実現する。従来の文章編集装置は、
入力手段1、文章記憶手段2、表示手段3、文章
編集制御手段9のみから構成され、文章編集制御
手段9は、例えば次ような処理を行う。
The text editing control means 9 realizes editing functions such as insertion, deletion, movement, copying, and replacement by exchanging information with each of the above-mentioned means. Conventional text editing devices are
It is composed of only an input means 1, a text storage means 2, a display means 3, and a text editing control means 9, and the text editing control means 9 performs, for example, the following processing.

(1) 入力手段1から送られてくる漢字仮名混じり
文字列を、文章記憶手段2に挿入して書き込
む。書き込む位置は、カーソル位置に対応する
文字位置である。
(1) Insert and write the kanji-kana-mixed character string sent from the input means 1 into the text storage means 2. The writing position is the character position corresponding to the cursor position.

(2) 文章記憶手段2に記憶された漢字仮名混じり
文字列を、表示手段3に表示する。カーソルも
同時に表示する。
(2) The character string containing kanji and kana characters stored in the text storage means 2 is displayed on the display means 3. The cursor is also displayed at the same time.

(3) 入力手段1から送られてくるカーソル移動指
令に合わせて、表示手段3に表示するカーソル
位置を変更する。
(3) The cursor position displayed on the display means 3 is changed in accordance with the cursor movement command sent from the input means 1.

(4) 入力手段1から送られてくる、範囲の先頭文
字位置と末尾文字位置とを受けて、その間の文
字列を、通常の文字列と表示方法を変えて表示
する(例えば、反転表示する)。
(4) Receive the first character position and last character position of the range sent from input means 1, and display the character string between them in a different display method from the normal character string (for example, by displaying it in reverse video) ).

(5) 入力手段1から「削除」の指令が送られてき
たならば、(4)に対応する文字列を、文章記憶手
段2から削除する(これに伴い、表示手段3の
表示も変更する)。
(5) When a "delete" command is sent from the input means 1, the character string corresponding to (4) is deleted from the text storage means 2 (accordingly, the display on the display means 3 is also changed). ).

(6) 入力手段1から「移動」の指令が送られてき
たならば、(4)に対応する文字列を、文章記憶手
段2から削除し、文章編集制御手段9内のバツ
フアに蓄積する(これに伴い、表示手段3の表
示も変更する)。
(6) When a "move" command is sent from the input means 1, the character string corresponding to (4) is deleted from the text storage means 2 and stored in the buffer in the text editing control means 9 ( Along with this, the display on the display means 3 is also changed).

(7) 入力手段1から「複写」の指令が送られてき
たならば、(4)に対応する文字列を、文章記憶手
段2から、文章編集制御手段9内のバツフアに
複写する。
(7) When a "copy" command is sent from the input means 1, the character string corresponding to (4) is copied from the text storage means 2 to the buffer in the text editing control means 9.

(8) 入力手段1から移動先・複写先位置が送られ
てきたならば、文章編集制御手段9内のバツフ
ア内容を、移動先・複写先位置に対応する、文
章記憶手段2の位置に挿入して書き込む(これ
に伴い、表示手段3の表示も変更する)。
(8) When the movement destination/copy destination position is sent from the input means 1, insert the buffer contents in the text editing control means 9 into the position of the text storage means 2 corresponding to the movement destination/copy destination position. (Accompanying this, the display on the display means 3 is also changed).

(9) 入力手段1から「置換」の指令と、被置換文
字列と、置換文字列が送られてきたならば、文
章記憶手段2から被置換文字列を検索し、被置
換文字列が見つかつたならば、それを置換文字
列に置き換える。
(9) When a "replace" command, a character string to be replaced, and a character string to be replaced are sent from the input means 1, the character string to be replaced is searched from the text storage means 2, and the character string to be replaced is found. If so, replace it with the replacement string.

本実施例の文章編集装置における文章編集制御
手段9は、以上(1)から(9)の処理に加えて、文章解
析手段5、文章構造記憶手段6、構造指定手段
7、構造位置抽出手段8の動作を制御して、次の
ような処理を行う。
In addition to the processes (1) to (9) above, the text editing control means 9 in the text editing apparatus of this embodiment includes a text analysis means 5, a text structure storage means 6, a structure specification means 7, a structure position extraction means 8 The following operations are performed by controlling the operation of the

(10) 文章記憶手段2に文字列が書き込まれたり、
文章記憶手段2の文字列が変更されたときに
は、その文字列の位置を文章解析手段5に通知
し、文章解析手段5にその文字列の解析を行わ
せ、文章構造記憶手段6の内容の変更を行わせ
る(文章構造記憶手段6の内容は、常に、文章
記憶手段2の内容と対応する)。
(10) A character string is written to the text storage means 2,
When a character string in the text storage means 2 is changed, the position of the character string is notified to the text analysis means 5, the text analysis means 5 is caused to analyze the character string, and the contents of the text structure storage means 6 are changed. (The contents of the sentence structure storage means 6 always correspond to the contents of the sentence storage means 2).

(11) 構造指定手段7から「文」や「文節」や「単
語」の単位の指定(単位の個数の指定も含む)
が送られてきたならば、現在のカーソル位置と
その単位の指定とを構造位置抽出手段8へ送
り、構造位置抽出手段8からそれに対応する文
字列範囲の先頭文字位置と末尾文字位置とを受
け取る。続いて、(4)の処理をいう。
(11) Specify units such as “sentences”, “clauses”, and “words” from structure specifying means 7 (including specifying the number of units)
is sent, the current cursor position and its unit specification are sent to the structure position extraction means 8, and the first and last character positions of the corresponding character string range are received from the structure position extraction means 8. . Next is the process (4).

(12) (9)の際に、構造指定手段7から品詞コードが
送られてきたならば、文字記憶手段2から見つ
かつた被置換文字列の位置を、構造位置抽出手
段8へ送り、構造位置抽出手段8からそれに対
応する品詞コードを受け取る。構造指定手段7
から入力された品詞コードと、構造位置抽出手
段8から受け取つた品詞コードとが一致したと
きに、(9)と同様の置換処理を行う。
(12) At the time of (9), if the part-of-speech code is sent from the structure specifying means 7, the position of the replaced character string found from the character storage means 2 is sent to the structure position extraction means 8, and the structure position The corresponding part-of-speech code is received from the extraction means 8. Structure designation means 7
When the part-of-speech code input from the part-of-speech code and the part-of-speech code received from the structural position extraction means 8 match, the same replacement process as in (9) is performed.

次に、この実施例を動作を例を用いて説明す
る。
Next, the operation of this embodiment will be explained using an example.

まず、入力手段1により、次のような文章が入
力されたものとする。
First, it is assumed that the following sentence is input by the input means 1.

従来、ワードプロセツ サが、文章の作成と編 集を行う装置として、 普及している。ワード プロセツサの低価格化 が、進んでいる。ワー ドプロセツサは、文章 を記憶し、表示する。 Previously, Word Processor Sa creates and edits texts. As a device for collecting It is widespread. word Lower cost of processors However, progress is being made. War doprocessor is a sentence memorize and display.

文章編集制御手段9は、この文字列を入力手段
1から受け取り、文章記憶手段2へ書き込む。そ
して、さらに、文章解析手段5を起動し、文章記
憶手段2に書き込んだ文字列の解析を行わせる。
文章解析手段5は文章記憶手段2に記憶された文
字列を読み込み、解析結果の文章構造情報を、文
章構造記憶手段6へ書き込む。
The text editing control means 9 receives this character string from the input means 1 and writes it into the text storage means 2. Then, the text analysis means 5 is further activated to analyze the character string written in the text storage means 2.
The text analysis means 5 reads the character string stored in the text storage means 2 and writes the text structure information resulting from the analysis into the text structure storage means 6.

第2図aに、この例に対する文章記憶手段2の
内容を示し、第2図bに、それに対する文章構造
記憶手段6の内容を示す。第2図のa,bのマト
リツクスの各要素の位置は対応している。第2図
bにおいて、sが書き込まれている位置は、その
位置が文の先頭文字位置である(かつ文節の先頭
文字位置でもある)ことを示し、pが書き込まれ
ている位置は、その位置が文節の先頭文字位置で
あることを示している。それ以外の値が書き込ま
れている位置は、単語の先頭文字位置であること
を示しており、その値は次のように単語の品詞を
表している。
FIG. 2a shows the contents of the sentence storage means 2 for this example, and FIG. 2b shows the contents of the sentence structure storage means 6 for this example. The positions of the elements in the matrices a and b in FIG. 2 correspond. In Figure 2b, the position where s is written indicates that that position is the first character position of a sentence (and also the first character position of a clause), and the position where p is written indicates that position. indicates that it is the first character position of the clause. Positions where other values are written indicate the first character positions of the word, and the values represent the part of speech of the word as follows.

名…名詞 動…動詞 補…補助動詞 頭…接頭語 尾…接尾語 助…助詞 点…句読点 ただし、文章構造記憶手段6の実現方法は、第
2図bには限定されない。例えば、第2図bのよ
うなaと対応したマトリツクスとせず、文頭位置
(0,0)、(3,7)、(5,8)、文節頭位置
(0,0)、(0,3)、(1,3)、(1,6)、…

(7,5)、単語(0,0,名)、(0,2,点)、
(0,3,名)、…、(7,5,動)、(7,9,点)
というように、位置を列挙する方法でも実現でき
る。
Name: Noun Verb: Complement: Auxiliary verb Head: Prefix Suffix: Suffix Particle: Particle Dot: Punctuation mark However, the method of realizing the sentence structure storage means 6 is not limited to that shown in FIG. 2b. For example, instead of creating a matrix corresponding to a as shown in Figure 2b, sentence initial positions (0,0), (3,7), (5,8), phrase initial positions (0,0), (0,3 ), (1,3), (1,6),...
,
(7,5), word (0,0, name), (0,2, points),
(0,3, name), ..., (7,5, motion), (7,9, points)
This can also be achieved by enumerating the positions.

ここで、「ワードプロセツサの低価格化が、進
んでいる。」という1文を、削除する操作を行う
ものとする。
Here, it is assumed that an operation is performed to delete the sentence ``The price of word processors is decreasing.''

従来の文字列削除の方法では、まず「ワ」の位
置にカーソルを位置付け、「先頭」キーを押し、
次に「。」の位置にカーソルを位置付け、「末尾」
キーを押すことによつて削除対象の文を指定する
(それから「削除」キーを押して、その文の削除
を指定する)。
The conventional method of deleting a string is to first position the cursor at the "wa" position, press the "start" key,
Next, position the cursor at the "." position and click "End".
Specify the statement to be deleted by pressing the key (then press the "Delete" key to specify deletion of that statement).

これに対して、本実施例の方法では、「ワード
プロセツサの低価格化が、進んでいる。」の文の
任意の位置にカーソルがある状態で、「文」キー
を押すことによつて、削除対象の文が指定できる
(その後、「削除」キーを押すのは同様である)。
In contrast, in the method of this embodiment, by pressing the "Sentence" key while the cursor is at an arbitrary position in the sentence "Word processors are becoming cheaper." , the sentence to be deleted can be specified (then pressing the "Delete" key is the same).

そのとき、各構成要素がどのように動作するか
を、次に説明する。
How each component operates at that time will be described next.

カーソルが「価」の位置で、「文」キーが押さ
れたとする。「文」キーは構造指定手段7から入
力され、文章編集制御手段9に送られる。文章編
集制御手段9は、そのときのカーソル位置(4,
7)と指定された構造単位「文」とを、構造位置
抽出手段8へ送る。
Suppose that the cursor is at the ``value'' position and the ``sentence'' key is pressed. The "sentence" key is input from the structure specifying means 7 and sent to the text editing control means 9. The text editing control means 9 controls the current cursor position (4,
7) and the designated structural unit "sentence" are sent to the structural position extraction means 8.

構造位置抽出手段8は、文章構造記憶手段6を
参照し、位置(4,7)の前方の最も近いs(前
述したように本の先頭位置を表す)と、位置
(4,7)の後方の最も近いsとを検索する。そ
の結果、位置(3,7)と位置(5,8)とが得
られる。そして、文字列範囲の先頭位置として位
置(3,7)、末尾位置として一文字分前方の位
置(5,7)を、文章編集制御手段9へ送る。文
章編集制御手段9では、これを受けて、位置
(3,7)から位置(5,7)までの文字列を、
他の文字列と表示方法を変えて、例えば反転表示
するように、表示手段3に指示する。
The structure position extracting means 8 refers to the sentence structure storage means 6, and extracts the closest s in front of the position (4, 7) (representing the top position of the book as described above) and the position behind the position (4, 7). Find the nearest s. As a result, positions (3, 7) and (5, 8) are obtained. Then, the position (3, 7) is sent as the start position of the character string range, and the position (5, 7) one character ahead as the end position is sent to the text editing control means 9. In response to this, the text editing control means 9 edits the character string from position (3, 7) to position (5, 7) as follows.
The display means 3 is instructed to change the display method from that of other character strings, for example, to display the character string in reverse video.

続いて、入力手段1から「削除」キーが入力さ
れ、文章編集制御手段9に送られる。これを受け
て、文章編集制御手段9は、文章記憶手段2の位
置(3,7)から位置(5,7)までの文字列を
削除し、位置(5,8)以降の文字列を、位置
(3,7)の位置へ繰り上げる。そして、さらに
文章解析手段5を起動し、文章記憶手段2の内容
に対応する文章構造情報を、文章構造記憶手段6
に書き込む。その結果、文章記憶手段2と文章構
造記憶手段6との内容は、第3図a,bのように
なる。
Subsequently, the "delete" key is input from the input means 1 and sent to the text editing control means 9. In response to this, the text editing control means 9 deletes the character string from position (3, 7) to position (5, 7) in the text storage means 2, and deletes the character string from position (5, 8) onwards. Move up to position (3,7). Then, the text analysis means 5 is further activated, and the text structure information corresponding to the content of the text storage means 2 is transferred to the text structure storage means 6.
write to. As a result, the contents of the sentence storage means 2 and the sentence structure storage means 6 become as shown in FIGS. 3a and 3b.

これで「文」単位の削除が実現されたが、「文
節」単位のときには、文章構造記憶手段6中のs
の位置を検索する代わりに、pの位置を検索すれ
ばよく、「単語」単位のときには、品詞が入つて
いる位置を検索すればよい。構造位置抽出手段8
が、構造単位に対応する文字列範囲を文章編集制
御手段9に返した後、文章編集制御手段9の処理
は、従来の処理と同様であるため、構造単位の
「削除」だけでなく、構造単位の「移動」「複写」
「置換」「カーソル移動」も、同様にして実現でき
ることは明らかである。
In this way, the deletion of "sentence" units has been realized, but when it is "sentence" units, s in the sentence structure storage means 6 is deleted.
Instead of searching for the position of p, it is sufficient to search for the position of p, and when the unit is a "word", it is sufficient to search for the position containing the part of speech. Structure position extraction means 8
However, after returning the character string range corresponding to the structural unit to the text editing control means 9, the processing of the text editing control means 9 is similar to conventional processing, so it not only "deletes" the structural unit but also deletes the structural unit. "Move" and "Copy" units
It is clear that "replacement" and "cursor movement" can be realized in the same way.

(発明の効果) 以上説明したように、本発明によれば、文章構
造の単位である「文」「文節」「単語」などの単位
とした編集、あるいは品詞情報をもとにした編集
を行うことが可能となる。
(Effects of the Invention) As explained above, according to the present invention, editing is performed in units of sentence structure such as "sentences,""clauses," and "words," or editing is performed based on part-of-speech information. becomes possible.

従来の文字列編集の場合には、人間が頭の中で
考えている対象を、文字列の範囲としてとらえ直
して、編集操作を行うことが必要であつたが、本
発明によれば、より自然に対象を指定することが
でき、文章編集装置の操作性が大きく向上する。
In the case of conventional character string editing, it was necessary for humans to reconsider what they were thinking in their heads as a range of character strings, and then perform the editing operation. The object can be specified naturally, and the operability of the text editing device is greatly improved.

従来の同一字種の文字列を指定する方法や、仮
名漢字変換入力の際の入力単位を指定する方法に
対しても、本方式によつて指定できる単語・文
節・文の単位の方が、はるかに正確なものであ
り、利用者によつて編集の対象の指定が極めて容
易になる。
Compared to the conventional method of specifying character strings of the same character type and the method of specifying input units for Kana-Kanji conversion input, the units of words, clauses, and sentences that can be specified using this method are It is much more accurate, and it is extremely easy for the user to specify what to edit.

さらに、文章の構造の単位だけでなく、単語の
品詞も、編集の際の情報として利用できること
も、従来に比べて、置換などの編集の正確さを向
上させる。
Furthermore, not only the structural unit of a sentence but also the part of speech of a word can be used as information during editing, which improves the accuracy of editing such as substitution compared to the past.

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

第1図は本発明の実施例の構成を示すブロツク
図、第2図a,bと第3図a,bは、実施例にお
ける文章記憶手段2と文章構造記憶手段6の内容
を示す図である。 図において、1…入力手段、2…文章記憶手
段、3…表示手段、4…辞書記憶手段、5…文章
解析手段、6…文章構造記憶手段、7…構造指定
手段、8…構造位置抽出手段、9…文章編集制御
手段。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIGS. 2 a, b and 3 a, b are diagrams showing the contents of the text storage means 2 and the text structure storage means 6 in the embodiment. be. In the figure, 1... input means, 2... text storage means, 3... display means, 4... dictionary storage means, 5... text analysis means, 6... sentence structure storage means, 7... structure specification means, 8... structure position extraction means , 9...Text editing control means.

Claims (1)

【特許請求の範囲】[Claims] 1 日本語文章の編集を行う文章編集装置におい
て、編集の対象となる日本語文章の漢字仮名混じ
り文字列を記憶する文章記憶手段、単語辞書を記
憶する辞書記憶手段、前記単語辞書を参照して前
記文章記憶手段に記憶された漢字仮名混じり文字
列に対して文・文節・単語の単位および各単語の
品詞などの文章構造情報を決定する文章解析手
段、前記文章解析手段により決定された文章構造
情報を記憶する文章構造記憶手段、文章構造情報
を指定する構造指定手段、前記文章構造記憶手段
を参照して前記構造指定手段により指定された文
章構造情報にもとづく文章中の位置を抽出する構
造位置抽出手段を備えたことを特徴とする文章編
集装置。
1. In a text editing device that edits a Japanese text, a text storage means for storing a character string containing kanji and kana of a Japanese text to be edited, a dictionary storage means for storing a word dictionary, and a text storage means for storing a word dictionary; a sentence analysis means for determining sentence structure information such as units of sentences, clauses, and words and parts of speech of each word for the kanji-kana-mixed character string stored in the sentence storage means; a sentence structure determined by the sentence analysis means; A sentence structure storage means for storing information, a structure specification means for specifying sentence structure information, and a structure position for referring to the sentence structure storage means and extracting a position in the sentence based on the sentence structure information specified by the structure specification means. A text editing device characterized by being equipped with an extraction means.
JP61089315A 1986-04-17 1986-04-17 Sentence editing device Granted JPS62245368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61089315A JPS62245368A (en) 1986-04-17 1986-04-17 Sentence editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61089315A JPS62245368A (en) 1986-04-17 1986-04-17 Sentence editing device

Publications (2)

Publication Number Publication Date
JPS62245368A JPS62245368A (en) 1987-10-26
JPH0584934B2 true JPH0584934B2 (en) 1993-12-03

Family

ID=13967232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61089315A Granted JPS62245368A (en) 1986-04-17 1986-04-17 Sentence editing device

Country Status (1)

Country Link
JP (1) JPS62245368A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5111398A (en) * 1988-11-21 1992-05-05 Xerox Corporation Processing natural language text using autonomous punctuational structure
JP3082576B2 (en) * 1994-08-01 2000-08-28 日本電気株式会社 Document editing device

Also Published As

Publication number Publication date
JPS62245368A (en) 1987-10-26

Similar Documents

Publication Publication Date Title
JPS6355085B2 (en)
JPH09505422A (en) Method and apparatus for synchronizing, displaying and manipulating text and image documents
JPS6170660A (en) Ambiguous display/selection method in machine translation system
JPS63106866A (en) Machine translation device
JPH0584934B2 (en)
JPS62290966A (en) Sentence editing device
JP2947686B2 (en) Search result display method in translation support system
JPH0612543B2 (en) Character string specification method
JP2839448B2 (en) Input and conversion device for characters etc. in word processors etc.
JPH09325787A (en) Voice synthesizing method, voice synthesizing device, method and device for incorporating voice command in sentence
JPH0585056B2 (en)
JPH077411B2 (en) Document processor
JPH01214963A (en) Device for consulting dictionary
JPS58151677A (en) Editing method of translated sentence
JP2786260B2 (en) Kana-Kanji conversion device
JPH06149790A (en) Document processor
JPH08297659A (en) Character string conversion processing system
JP2634596B2 (en) Kana-Kanji conversion device
JPH0232455A (en) Item extraction method
JPH0581244A (en) Sentence editor
JPS61229161A (en) Documentation and editing device
JPH05189421A (en) Method and device for kana/kanji conversion of ancient classics
JPS63286965A (en) document creation device
JPH06266765A (en) Sentence retrieving device
JPH07219962A (en) Key word preparing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term