JPH0385672A - Retrieval replacing device with function for analyzing attribute - Google Patents

Retrieval replacing device with function for analyzing attribute

Info

Publication number
JPH0385672A
JPH0385672A JP1225917A JP22591789A JPH0385672A JP H0385672 A JPH0385672 A JP H0385672A JP 1225917 A JP1225917 A JP 1225917A JP 22591789 A JP22591789 A JP 22591789A JP H0385672 A JPH0385672 A JP H0385672A
Authority
JP
Japan
Prior art keywords
search
attribute
character
replacement
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.)
Pending
Application number
JP1225917A
Other languages
Japanese (ja)
Inventor
Yoshizo Saito
斎藤 佳三
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP1225917A priority Critical patent/JPH0385672A/en
Priority to GB9018937A priority patent/GB2235557A/en
Publication of JPH0385672A publication Critical patent/JPH0385672A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/268Morphological analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 1 (イ)産業上の利用分野 この発明は、主として日本語ワードプロセッサのような
情報処理装置に用いられ、入力データの中から所望のデ
ータを検索し、それを所望の別データ′に置き換える検
索置換装置に関する。
[Detailed Description of the Invention] 1 (a) Industrial Application Field This invention is mainly used in information processing devices such as Japanese word processors, and searches for desired data from input data and converts it into a desired form. This invention relates to a search and replace device for replacing data with other data.

(ロ)従来の技術 一般に、日本語ワードプロセッサのような情報処理装置
においては、各種の編集機能を備えており、その中の一
つの機能として、入力データの中から所望のデータを検
索し、それを所望の別データに置き換える検索置換機能
かある。
(b) Conventional technology Information processing devices such as Japanese word processors are generally equipped with various editing functions, one of which is to search for desired data from input data and edit it. There is a search and replace function that allows you to replace data with other desired data.

上記の情報処理装置の内、このような検索置換機能を達
成するに必要な装置群を、ここでは検索置換装置として
説明する。
Among the above-mentioned information processing devices, a group of devices necessary to achieve such a search and replace function will be described here as a search and replace device.

従来の検索置換装置においては、例えばそれが日本語ワ
ードプロセッサに用いられるものである場合には、第1
0図及び第11図の入力画面例に示すように、入力され
ている文書の中から指定された文字列を捜して、無条件
に置き換えるべき文字列に順次変換してゆくという、−
括置換処理か、その文字列を捜しに時点て、その都度、
使用者に指示を印いて置き換えろへき文字列に変換する
という、逐次置換処理によって、検索置換処理を行うよ
うにしていた。
In a conventional search and replace device, for example, if it is used in a Japanese word processor, the first
As shown in the input screen examples in Figures 0 and 11, the system searches for specified character strings in the input document and sequentially converts them into character strings that should be unconditionally replaced.
Each time when searching for that string, either by bracket replacement processing or
Search and replace processing was performed by sequential replacement processing, in which instructions were given to the user and the characters were converted into a replacement character string.

(ハ)発明が解決しようとする課題 しかしながら、従来の検索置換装置において、上述の一
括置換処理を行った場合には、例えば、「犬が泣く」の
「泣く」を「鳴く」に修正する必要が生したとき、「泣
く」を「鳴く」に単に変換してしまうと、「人が泣くj
という文章が存在していた場合には、その文章まで「人
が鳴く」に変換されてしまう。同様に、「人が鳴く」の
「鳴く」を「泣く」に修正ずろ必要が生したとき、「鳴
く」を「泣く」に単に変換してしまうと、「犬が鳴く」
という文章が存在していた場合には、その文章まで「犬
が泣く」に変換されてしまう、といった不都合が生ずる
(C) Problems to be Solved by the Invention However, when the above-mentioned batch replacement process is performed in a conventional search and replace device, for example, it is necessary to modify "cry" in "dog cries" to "bark". If you simply convert "cry" to "squeal" when someone is born
If the sentence exists, that sentence will also be converted to ``A person cries.'' Similarly, when it becomes necessary to change the word ``bark'' in ``a person barks'' to ``cry,'' simply converting ``bark'' to ``cry'' results in ``a dog barking.''
If such a sentence exists, there will be an inconvenience that that sentence will also be converted to ``The dog cries.''

このように、単に「泣く」、「鳴く」等を指定するだけ
では、文章の編集及び作成における信頼性か損なわれる
おそれがある。
As described above, simply specifying "crying", "screaming", etc. may impair the reliability of text editing and creation.

また、上述の逐次置換処理のように、その都度使用者か
変換対象を確認して指示を与えろ」;うにした場合には
、誤った変換を防止すること(iできるが、多くの時間
を必要とするという問題かある。
In addition, as with the sequential replacement process described above, if you check the user or the conversion target each time and give instructions, it is possible to prevent erroneous conversion (it is possible, but it takes a lot of time). There is a problem with that.

この発明は、このような事情を考慮してなされたもので
、各単語について、その属性を、例えば「犬」、「猫」
、「牛」等の単語てあれば、°°動物”、また「人」、
「大人」、「子供」等の単語であれば“人”というよう
に、それぞれかな漢字変換辞書に登録しておき、検索対
象文字にかかる主語の属性によって、その検索対象文字
を置換するべきかどうかを判定する上うにした、属性解
析機能付き検索置換装置を提供するものである。
This invention was made in consideration of such circumstances, and for each word, its attributes are set, for example, "dog", "cat", etc.
, if there is a word such as "cow", °°animal", or "person",
Whether words such as "adult" or "child" should be registered in the kana-kanji conversion dictionary, such as "person," and the search target character should be replaced depending on the attribute of the subject of the search target character. The purpose of the present invention is to provide a search and replace device with an attribute analysis function, which is capable of determining.

(ニ)課題を解決するための手段 第1図は、この発明の構成を示すブロック図である。(d) Means to solve the problem FIG. 1 is a block diagram showing the configuration of the present invention.

図に示すように、この発明は、漢字を含む多数の単語を
その読み情報と共に記憶しさらに各単語についての属性
を記憶した辞書手段101と、各種の文書情報の入力、
検索文字、置換文字の入力、及び属性の指定を行うため
の入力手段102と、入力手段102より入力された文
書情報を記憶する記憶手段103と、記憶手段103に
記憶された文書情報の中から入力手段+02より入力さ
れた検索文字を検索する検索手段104と、検索手段1
04によって検索された文字を含む文章を解析すること
によりその文字にかかる主語を求めると共にその主語の
属性を辞書手段101に基づいて判定する判定手段10
5と、判定手段105によって判定された属性が入力手
段+02より指定された属性と一致しているときには前
記検索された文字を入力手段102より入力された置換
文字に置き換える置換手段10Bを備えてなる属性解析
機能付き検索置換装置である。
As shown in the figure, the present invention includes a dictionary means 101 that stores a large number of words including kanji along with their pronunciation information, and further stores attributes for each word, inputs various document information,
An input means 102 for inputting search characters and replacement characters and specifying attributes; a storage means 103 for storing document information input from the input means 102; and a document information stored in the storage means 103. a search means 104 that searches for search characters input from the input means +02; and a search means 1;
Determining means 10 analyzes a sentence containing the character searched by 04 to find the subject of the character, and determines the attribute of the subject based on the dictionary means 101.
5, and replacement means 10B for replacing the searched character with a replacement character input from the input means 102 when the attribute determined by the determination means 105 matches the attribute specified by the input means +02. This is a search and replace device with an attribute analysis function.

なお、この発明における辞書手段+01としては、従来
公知のかな漢字変換辞書の各単語に属性情報を付加した
、かな漢字変換辞書が用いられる。
Incidentally, as the dictionary means +01 in this invention, a kana-kanji conversion dictionary is used in which attribute information is added to each word of a conventionally known kana-kanji conversion dictionary.

この辞書手段+01としては、通常は、コアメモリー、
ICメモリー等の内部メモリーや、フロッピーディスク
装置、磁気ディスク装置等の外部記憶装置が用いられる
This dictionary means +01 usually includes core memory,
An internal memory such as an IC memory and an external storage device such as a floppy disk device or a magnetic disk device are used.

また、入力手段102としては、各種の文書情報の入力
、検索するべき文字や置き換えるべき文字の入力、及び
属性の指定を行うことができるものであればよく、例え
ば、キーボード装置、タブレット装置、OCR装置、磁
気テープ装置等が用いられる。
In addition, the input means 102 may be any device that can input various document information, input characters to be searched or replaced, and specify attributes, such as a keyboard device, a tablet device, an OCR device, etc. device, magnetic tape device, etc. are used.

さらに、検索手段104、判定手段105、及び置換手
段106としては、一般に、CPU、ROM、RAM、
I10ボートからなるマイクロコンピュータを用いるの
が便利であり、記憶手段lO3としては、通常、その中
のRAMが用いられる。
Furthermore, the search means 104, the determination means 105, and the replacement means 106 generally include a CPU, ROM, RAM,
It is convenient to use a microcomputer consisting of an I10 board, and a RAM therein is usually used as the storage means IO3.

(ホ)作用 第1図に示すように、この発明によれば、辞書手段10
1に記憶されている各単語については、それぞれ属性が
記憶されており、検索置換処理が行われる場合には、ま
ず、検索手段104によって、記憶手段103に記憶さ
れた文書情報の中から検索文字が検索され、次に、判定
手段105によって、検索された文字を含む文章か解析
されてその文字にかかる主語か求められると共に、その
主語の属性が辞書手段+01に基づいて判定される。
(e) Operation As shown in FIG. 1, according to the present invention, the dictionary means 10
1, an attribute is stored for each word stored in the storage unit 103. When a search and replacement process is performed, the search unit 104 first selects a search character from among the document information stored in the storage unit 103. is searched, and then the determining means 105 analyzes the sentence containing the retrieved character to determine the subject of the character, and determines the attribute of the subject based on the dictionary means +01.

そして、置換手段106により、判定された属性が入力
手段102より入力された属性と一致しているときには
、検索された文字が置換文字に置き換えられる。
Then, when the determined attribute matches the attribute input from the input means 102, the replacement means 106 replaces the searched character with the replacement character.

従って、検索するべき検索対象文字の主語の属性か、指
定した属性と異なる場合には置換処理が実行されないた
め、主語に対して間違った形態での置換処理が行われず
、文書の信頼性が向上する。
Therefore, if the attribute of the subject of the search target character to be searched is different from the specified attribute, the replacement process will not be performed, so the replacement process will not be performed in the wrong form for the subject, improving the reliability of the document. do.

(へ)実施例 以下、図面に示す実施例に基づいてこの発明を詳述する
。なお、この発明はこれによって限定されるものではな
い。
(f) Examples Hereinafter, the present invention will be described in detail based on examples shown in the drawings. Note that this invention is not limited to this.

第2図はこの発明を日本語ワードプロセッサに適用した
ー実施の構成を示すブロック図である。
FIG. 2 is a block diagram showing an implementation configuration in which the present invention is applied to a Japanese word processor.

この図において、■はかなキーやファンクションキー等
を備えたキーボードであり、かなによる文書の読み情報
、検索文字及び置換文字の読み情報や、後述する属性を
指定するため情報を制御部2に入力する。
In this figure, ■It is a keyboard equipped with ephemeral keys, function keys, etc., and inputs information to the control unit 2 to specify document reading information in kana, search character and replacement character reading information, and attributes to be described later. do.

制御部2は、マイクロコンピュータから構成され、RO
Mからなるプログラムメモリ3に書き込まれている制御
プログラムに従い、各種のデータ処理を行う。
The control unit 2 is composed of a microcomputer, and the RO
According to the control program written in the program memory 3 consisting of M, various data processing is performed.

4はキーボードlから入力されたかな文字列を漢字に変
換するためのフロッピーディスク装置からなるかな漢字
変換辞書であり、漢字を含む多数の単語をその読み情報
と共に記憶している。かな漢字変換辞書部4は、また、
後述するように、各単語についての属性を記憶している
Reference numeral 4 denotes a kana-kanji conversion dictionary consisting of a floppy disk device for converting kana character strings input from the keyboard 1 into kanji, and stores a large number of words including kanji along with their reading information. The Kana-Kanji conversion dictionary section 4 also
As will be described later, attributes for each word are stored.

5はCRTデイスプレィやLC(液晶)デイスプレィ、
あるいはELデイスプレィ等からなる表示装置である。
5 is a CRT display or LC (liquid crystal) display,
Alternatively, it is a display device such as an EL display.

6はRA Mであり、内部には、かな漢字変換された文
章データを記憶する入力データバッファ7、キーボード
Iから入力された、属性データを記憶する属性データバ
ッファ8、検索文字を記憶する8 検索データバッファ9、置換文字を記憶する置換データ
バッファ10が、それぞれ設定されている。
Reference numeral 6 denotes a RAM, which includes an input data buffer 7 that stores text data converted into kana-kanji, an attribute data buffer 8 that stores attribute data input from the keyboard I, and a search data 8 that stores search characters. A buffer 9 and a replacement data buffer 10 for storing replacement characters are respectively set.

第3図は属性の体系を示す説明図であり、かな漢字変換
辞書4に登録されている各単語は、図に示すような体系
に基づいて分類されている。
FIG. 3 is an explanatory diagram showing the attribute system, and each word registered in the kana-kanji conversion dictionary 4 is classified based on the system shown in the figure.

すなわち、大分類としては、自然、文化・・・等に分類
され、中分類としては、例えば、大分類が自然であれば
、天文、地勢、植物、・・・等に、大分類が文化であれ
ば、社会、学芸・・・等に分類されている。
In other words, the major categories are nature, culture, etc., and the intermediate categories are, for example, if the major category is nature, then astronomy, topography, plants, etc., and if the major category is culture, etc. If there is, it is classified into social studies, academics, etc.

また、中分類の項目はさらに小分類に分けられ、例えば
、中分類が学芸であれば、小分類としては、文学、音楽
、美術・・・等に分類されている。
In addition, the items of the middle classification are further divided into small classifications, for example, if the middle classification is academic arts, the items are classified into literature, music, art, etc. as small classifications.

各分類項目に付したかっこ“()”付きの数字は、各単
語の属性を示すための分類コードであり、大分類に付し
た数字は先頭桁のコードを、中分類の数字は先頭の次桁
のコードを、小分類の数字は先頭の次々桁のコードを、
それぞれ表している。
The numbers in parentheses "()" attached to each classification item are classification codes to indicate the attributes of each word.The numbers attached to major categories are the code of the first digit, and the numbers attached to medium categories are the code of the first digit. digit code, and for subcategory numbers, the code of the first successive digits,
each represents.

この例に従えば、「犬」、「猫」、「魚」、「牛」・・
・という単語は“動物”の属性を有し、「人」、「大人
」、「子供」、「男」、「女」・・・という単語は“人
”の属性を有している。
Following this example, "dog", "cat", "fish", "cow"...
The word "・" has the attribute of "animal", and the words "person", "adult", "child", "man", "woman", etc. have the attribute of "person".

第4図はかな漢字変換辞書4に登録された属性の一例を
示す説明図であり、図に示ず上うに、かな漢字変換辞書
4の各単語については、各単語の属性を示す分類コード
が、属性コードとして登録されている。
FIG. 4 is an explanatory diagram showing an example of attributes registered in the Hakana-Kanji Conversion Dictionary 4. As shown above, for each word in the Kana-Kanji Conversion Dictionary 4, the classification code indicating the attribute of each word is registered as a code.

例えば、第3図に示した「牛」の場合には、自然(0)
、動物(3)であるので、先頭コードは”0”、次コー
ドは“3”となり、属性コードは“03・・・”となる
。また、「トランペット」の場合には、文化(1)、学
芸(I)、音楽(1)であるので、属性コードは、先頭
から、“III・・・“となる。
For example, in the case of "cow" shown in Figure 3, natural (0)
, animal (3), the first code is "0", the next code is "3", and the attribute code is "03...". In addition, in the case of "trumpet", since the attributes are culture (1), arts (I), and music (1), the attribute codes are "III..." from the beginning.

第5図〜第8図は検索置換が実行される場合の表示装置
5の入力画面の一例を示す説明図である。
FIGS. 5 to 8 are explanatory diagrams showing examples of input screens of the display device 5 when search and replacement is executed.

制御部2は、キーボードから入力された各種の文書情報
を、かな漢字変換辞書4によってかな漢字変換した後、
入力データバノファ7に記憶する。
The control unit 2 converts various document information input from the keyboard into kana-kanji using the kana-kanji conversion dictionary 4, and then
The input data is stored in the vanofer 7.

プログラムメモリ3には、第5図に示すような入力画面
が記憶されており、制御部2は、入力データバソファ7
に文章か記憶されている状態において、キーボードlか
ら検索置換の指示かあった場合には、プログラムメモリ
3から第5図に示す上うな入力画面を読出して、ウィン
ドウ画面として表示装置5の画面に表示する。
The program memory 3 stores an input screen as shown in FIG.
When there is a search/replace instruction from the keyboard 1 while the text is stored in the memory, the input screen shown in FIG. indicate.

制御部2は、このような画面を表示しf二後、キーボー
ドlから属性が指定された場合には、その指定された属
性を属性コードに変換して属性データバッファ8に記憶
すると共に、第6図に示すように、指定された属性を入
力画面の属性の項目欄に表示する。第6図に示したもの
は、属性が、例えば「人」と指定された場合の表示例で
ある。
After displaying such a screen, if an attribute is specified from the keyboard l, the control unit 2 converts the specified attribute into an attribute code and stores it in the attribute data buffer 8, and also converts the specified attribute into an attribute code and stores it in the attribute data buffer 8. As shown in Figure 6, the specified attribute is displayed in the attribute item column of the input screen. What is shown in FIG. 6 is a display example when the attribute is specified as, for example, "person."

この様な項目の指定は、キーボードlのファンクシ□ン
キーに設定しておいてらよいし、また、第5図に示した
ようなカーソル11を属性項目の位置に移動させて、キ
ーボードlから直接「ひと」と入力し、漢字に変換する
ようにしてもよい。
You can specify such an item by setting it on the funx key on the keyboard l, or move the cursor 11 as shown in Fig. 5 to the attribute item position and directly from the keyboard l. You may input "Hito" and convert it to kanji.

さらに、制御部2は、キーボードlから検索文字が入力
された場合には、その入力されfこ検索文字を検索デー
タバッファ9に記憶オろと共に、第7図に示すように、
入力された検索文字を入ノJ画面の検索文字の項目欄に
表示する。第7図に示したちのは、検索文字が、例えば
「鳴く」と入力された場合の表示例である。
Furthermore, when a search character is input from the keyboard 1, the control unit 2 stores the input search character in the search data buffer 9, and as shown in FIG.
The entered search characters are displayed in the search character field on the IrinoJ screen. What is shown in FIG. 7 is an example of a display when the search character is inputted as, for example, "squeal".

また、制御部2は、キーボード1から置換文字が入力さ
れた場合には、その入力された置換文字を置換データバ
ッファ10に記憶すると共に、第8図に示すように、入
力された置換文字を入力画面の置換文字の項目欄に表示
する。第8図に示したしのは、置換文字が、例えば、「
泣く」と入力され几場合の表示例である。
Further, when a replacement character is input from the keyboard 1, the control unit 2 stores the input replacement character in the replacement data buffer 10, and as shown in FIG. Displayed in the replacement character field on the input screen. In the example shown in FIG. 8, the replacement character is, for example, “
This is an example of the display when "crying" is input.

この様な条件が入力された後、キーボード1から処理開
始が指示されると、制御部2は、まず、検索文字で指定
された文字列を、例えばそれが用言(活用形のある単語
)であるならば、その活用した形をも含めて、入力デー
タバッファ7に記憶されている文章の中から、指定され
た範囲内を検索する。例えば、上述の「鳴く」の場合で
あれば、鳴かない、鳴きます、鳴く、鳴けば、・・・等
ら検索する。「鳴く」がどの様に活用するのかは、かな
漢字変換辞書4の中の各々の単語に登録されている品詞
情報(第4図参照)を参照する。
After inputting such conditions, when a start of processing is instructed from the keyboard 1, the control unit 2 first searches the character string specified by the search character, for example, if it is a predicate (a word with a conjugated form). If so, the specified range is searched from among the sentences stored in the input data buffer 7, including the inflected forms. For example, in the case of the above-mentioned "squeal", searches may be made such as "no cries,""cries,""cries," and so on. To find out how to use ``naku'', refer to part-of-speech information (see FIG. 4) registered for each word in the kana-kanji conversion dictionary 4.

なお、検索文字で指定された文字列、つまり単語が、か
な漢字変換辞書4に登録されていない場合には、活用形
の処理は実施しない。
Note that if the character string specified by the search character, that is, the word, is not registered in the kana-kanji conversion dictionary 4, the processing of the inflected form is not performed.

そして、該当検索文字列が見つかれば、その検索文字列
を含む文章についての形態素解析、構文解析等を行い、
その検索文字列にかかる主語を判定する。なお、この形
態素解析、構文解析等は、従来公知の文章解析方法によ
り行う。
If the corresponding search string is found, morphological analysis, syntactic analysis, etc. are performed on the sentence containing the search string.
The subject of the search string is determined. Note that this morphological analysis, syntactic analysis, etc. are performed using conventionally known text analysis methods.

次に、その主語が第3図に示した分類体系図のどこに該
当するのかを解析して判定し、その結果が、属性の項目
欄で指定された属性コードと一致していれば、検索文字
列を置換文字列に置き換える。勿論、この場合、検索文
字列が過去形等に変化していれば、それなりに変換して
から置き換えを行う。
Next, analyze and determine where the subject falls in the classification system diagram shown in Figure 3, and if the result matches the attribute code specified in the attribute item column, the search string Replace a column with a replacement string. Of course, in this case, if the search character string has changed to past tense, etc., it is converted accordingly and then replaced.

なお、属性の指定の無い場合には、第10図及び第11
図に示したような、従来通りの検索置換処理を行う。
In addition, if no attributes are specified, Figures 10 and 11
Perform conventional search and replace processing as shown in the figure.

また、置換文字が入力されないまま処理が実行されると
、検索処理のみを行い、その場合には、第5図〜第8図
に示した入力画面例において、検索モードの項目は表示
されない。
Furthermore, if the process is executed without a replacement character being input, only the search process is performed, and in that case, the search mode item is not displayed in the input screen examples shown in FIGS. 5 to 8.

次に、このような制御部2の処理動作の内容を、第9図
に示すフローチャートに従い説明する。
Next, the contents of the processing operation of the control section 2 will be explained according to the flowchart shown in FIG. 9.

まず、検索置換処理の実行時には、キーボード1からの
指示に基づいて検索・置換の入力画面を表示した後、属
性の指定及び検索文字、置換文字の入力といった検索・
置換のためのパラメータが設定される(ステップ21)
First, when executing the search/replace process, a search/replace input screen is displayed based on instructions from the keyboard 1, and then the search/replacement screen is displayed, which allows you to specify attributes and enter search and replacement characters.
Parameters for replacement are set (step 21)
.

その後、検索データ、つまり検索文字が用言であるかど
うかを調べ(ステップ22)、用言である場合には、活
用パターンを設定する(ステップ23)。
Thereafter, it is checked whether the search data, that is, the search character, is a predicate (step 22), and if it is a predicate, a usage pattern is set (step 23).

次に、置換データ、つまり置換文字が用言であるかどう
かを調べ(ステップ24)、用言である場合には、さら
に検索データと置換データとの品14 3司が一致するかどうかを凋べ(ステップ25)、品詞
か一致する場合に(i、検索データと置換データとの活
用パターンを合わせて(ステップ26)、入力データバ
ノファ7に記憶した文章中上り検索データパターンを検
索する(ステップ27)。
Next, it is checked whether the replacement data, that is, the replacement character, is a predicate (step 24), and if it is a predicate, it is further checked to see if the search data and replacement data match. (Step 25), if the parts of speech match (i), match the usage patterns of the search data and replacement data (Step 26), and search for the sentence mid-up search data pattern stored in the input data banofer 7 (Step 27). ).

ステップ22において検索データが用言でない場合、ス
テップ24において置換データが用言でない場合、及び
ステップ25において検索データと置換データとの品詞
が一致しない場合には、ステップ27へ進む。
If the search data is not a predicate in step 22, if the replacement data is not a predicate in step 24, and if the parts of speech of the search data and replacement data do not match in step 25, the process advances to step 27.

次に、検索パターンがあるかどうかを凋べ(ステップ2
8)、検索パターンがある場合には、属性の設定が行わ
れているかどうかを調べ(ステップ2つ)、属性の設定
が行われている場合には、検索パターンのある文章、つ
まり検索パターンを含む文章の構文解析、形態素解析を
行って(ステップ30)、検索パターンにかかる主語を
判定する(ステップ31)。
Next, check whether there is a search pattern (Step 2)
8) If there is a search pattern, check whether attributes have been set (step 2), and if attributes have been set, search for the sentence with the search pattern, that is, the search pattern. The included sentences are analyzed syntactically and morphologically (step 30), and the subject of the search pattern is determined (step 31).

この、主語の判定を行った後、設定されている属性と、
主語の属性とが一致しているかどうかを調べ(ステップ
32)、一致している場合にのみ、検索したデータを置
換データに置き換えて(ステップ33)、再びステップ
27の検索を行う。
After determining the subject, the set attributes and
It is checked whether the attributes of the subject match (step 32), and only if they match, the searched data is replaced with replacement data (step 33), and the search in step 27 is performed again.

ステップ2つにおいて、属性の設定が行われていない場
合には、ステップ33へ進む。また、ステップ32にお
いて、設定された属性と主語の属性とが一致しない場合
には、ステップ33の置換処理を行わず、ステップ27
へ戻る。
If no attributes have been set in step 2, the process advances to step 33. Further, in step 32, if the set attribute and the subject attribute do not match, the replacement process in step 33 is not performed, and step 27
Return to

そして、ステップ28において、検索パターンがない場
合には、検索置換処理を終了する。
Then, in step 28, if there is no search pattern, the search and replacement process ends.

このようにして、各単語についての属性をかな漢字変換
辞書4に登録しておき、検索する単語にかかる主語の属
性が、指定された属性と一致する場合にのみ、置換処理
を行うことにより、主語に対して誤った形態での置換処
理を防止することができ、文法的な誤りのない、正確な
文章を作成することができる。
In this way, the attributes of each word are registered in the Kana-Kanji conversion dictionary 4, and the replacement process is performed only when the attribute of the subject of the search word matches the specified attribute. It is possible to prevent replacement processing in an incorrect format, and to create accurate sentences without grammatical errors.

(ト)発明の効果 この発明によれば、各単語についての属性を辞書手段に
あらかじめ記憶させておき、検索文字を置換文字に置き
換えるときには、検索文字の主語の属性が入力手段より
指定された属性と一致しているときのみ、検索文字を置
換文字に置換えるようにしたので、検索置換の処理にお
いて、検索文字をその都度確認することなく、文法的に
誤りのない、正確な文章の作成及び編集を行うことが可
能となる。
(G) Effects of the Invention According to this invention, the attributes of each word are stored in advance in the dictionary means, and when a search character is replaced with a replacement character, the attribute of the subject of the search character is the attribute specified by the input means. Since the search character is replaced with the replacement character only when it matches, it is possible to create accurate sentences without grammatical errors without having to check the search character each time during the search and replace process. It becomes possible to edit.

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

第1図はこの発明の構成を示すブロック図、第2図はこ
の発明を日本語ワードプロセッサに適用した一実施例の
構成を示すブロック図、第3図は属性の体系を示す説明
図、第4図はかな漢字変換辞書に登録された属性の一例
を示す説明図、第5図〜第8図は検索置換処理が実行さ
れる場合の入力画面の一例を示す説明図、第9図は実施
例の動作を示すフローチャート、第1O図及び第11図
は従来の検索置換処理が実行される場合の入力画面の一
例を示す説明図である。 1・・・キーボード、2・・・・・・制御部、3・ ・
プログラムメモリ、 4・・・・・かな漢字変換辞書、5・・・・・表示装置
、6・・・・・・RAM、7・・・・・入力データバッ
ファ、8・・・・・・属性データバッファ、 9・・・・・検索データバッファ、 10・・・・・置換データバッファ、 11 ・・・・・カーソル。 第 5 図 筑 図 第 図 第 10図 第 図 第 11図 第 9 図 丞
FIG. 1 is a block diagram showing the configuration of the present invention, FIG. 2 is a block diagram showing the configuration of an embodiment in which the present invention is applied to a Japanese word processor, FIG. 3 is an explanatory diagram showing the attribute system, and FIG. Figure 9 is an explanatory diagram showing an example of attributes registered in the ephemeral kanji conversion dictionary, Figures 5 to 8 are explanatory diagrams showing an example of the input screen when search and replace processing is executed, and Figure 9 is an explanatory diagram showing an example of the input screen when the search and replace process is executed. A flowchart showing the operation, FIG. 1O and FIG. 11 are explanatory diagrams showing an example of an input screen when conventional search and replace processing is executed. 1...Keyboard, 2...Control unit, 3...
Program memory, 4: Kana-Kanji conversion dictionary, 5: Display device, 6: RAM, 7: Input data buffer, 8: Attribute data Buffer, 9... Search data buffer, 10... Replacement data buffer, 11... Cursor. Figure 5 Chikuzu Figure 10 Figure 11 Figure 9 Figure 9

Claims (1)

【特許請求の範囲】[Claims]  1、漢字を含む多数の単語をその読み情報と共に記憶
しさらに各単語についての属性を記憶した辞書手段と、
各種の文書情報の入力、検索文字、置換文字の入力、及
び属性の指定を行うための入力手段と、入力手段より入
力された文書情報を記憶する記憶手段と、記憶手段に記
憶された文書情報の中から入力手段より入力された検索
文字を検索する検索手段と、検索手段によって検索され
た文字を含む文章を解析することによりその文字にかか
る主語を求めると共にその主語の属性を辞書手段に基づ
いて判定する判定手段と、判定手段によって判定された
属性が入力手段より指定された属性と一致しているとき
には前記検索された文字を入力手段より入力された置換
文字に置き換える置換手段を備えてなる属性解析機能付
き検索置換装置。
1. Dictionary means that stores a large number of words including kanji along with their pronunciation information and further stores attributes for each word;
An input means for inputting various document information, inputting search characters, replacement characters, and specifying attributes; a storage means for storing document information inputted from the input means; and document information stored in the storage means. a search means for searching for a search character inputted from an input means; a subject for the character by analyzing a sentence containing the character searched by the search means; and an attribute of the subject based on a dictionary means. and a replacement means for replacing the searched character with a replacement character input from the input means when the attribute determined by the determination means matches the attribute specified by the input means. Search and replace device with attribute analysis function.
JP1225917A 1989-08-30 1989-08-30 Retrieval replacing device with function for analyzing attribute Pending JPH0385672A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1225917A JPH0385672A (en) 1989-08-30 1989-08-30 Retrieval replacing device with function for analyzing attribute
GB9018937A GB2235557A (en) 1989-08-30 1990-08-30 Word searching/replacing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1225917A JPH0385672A (en) 1989-08-30 1989-08-30 Retrieval replacing device with function for analyzing attribute

Publications (1)

Publication Number Publication Date
JPH0385672A true JPH0385672A (en) 1991-04-10

Family

ID=16836912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1225917A Pending JPH0385672A (en) 1989-08-30 1989-08-30 Retrieval replacing device with function for analyzing attribute

Country Status (2)

Country Link
JP (1) JPH0385672A (en)
GB (1) GB2235557A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2314433A (en) * 1996-06-22 1997-12-24 Xerox Corp Finding and modifying strings of a regular language in a text

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1182570A (en) * 1982-04-30 1985-02-12 Frederick R. Lange System for detecting and correcting contextual errors in a text processing system

Also Published As

Publication number Publication date
GB9018937D0 (en) 1990-10-17
GB2235557A (en) 1991-03-06

Similar Documents

Publication Publication Date Title
KR100650427B1 (en) Integrated development tool for building natural language-aware applications
Mason Programming for corpus linguistics: how to do text analysis with Java
JP2783558B2 (en) Summary generation method and summary generation device
US5642522A (en) Context-sensitive method of finding information about a word in an electronic dictionary
US5200893A (en) Computer aided text generation method and system
KR910003523A (en) Document data processing method using image data
JPS63231674A (en) Word processing system
Beckwith et al. Implementing a lexical network
JP3372532B2 (en) Computer-readable recording medium for emotion information extraction method and emotion information extraction program
US5289376A (en) Apparatus for displaying dictionary information in dictionary and apparatus for editing the dictionary by using the above apparatus
Gupta et al. CodeNav: Beyond tool-use to using real-world codebases with LLM agents
JP3349568B2 (en) Method for storing words in a database, apparatus for adding words to a database, and method for creating and modifying vocabulary transducers
Hollingsworth et al. Retrieving hierarchical text structure from typeset scientific articles–a prerequisite for e-science text mining
JPH0385672A (en) Retrieval replacing device with function for analyzing attribute
JPH09293075A (en) Machine translation device and translation processing method
JP2958044B2 (en) Kana-Kanji conversion method and device
CN119782578B (en) Search method for content creation objects
JPS59736A (en) System for analyzing syntax
JP2975529B2 (en) Electronic dictionary search device
JPH01136270A (en) Word processor device
JP3045886B2 (en) Character processing device with handwriting input function
JP3316884B2 (en) Language translator
JP2866437B2 (en) Example dictionary registration method and device
JP2973369B2 (en) Japanese dictionary construction device for Japanese sentence morphological analysis
JPH0785236B2 (en) Character data input device