JP2716077B2 - Entry character extraction device - Google Patents

Entry character extraction device

Info

Publication number
JP2716077B2
JP2716077B2 JP15565095A JP15565095A JP2716077B2 JP 2716077 B2 JP2716077 B2 JP 2716077B2 JP 15565095 A JP15565095 A JP 15565095A JP 15565095 A JP15565095 A JP 15565095A JP 2716077 B2 JP2716077 B2 JP 2716077B2
Authority
JP
Japan
Prior art keywords
file
answer
character
column
character string
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
JP15565095A
Other languages
Japanese (ja)
Other versions
JPH08329115A (en
Inventor
有 水口
Original Assignee
工業技術院長
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 工業技術院長 filed Critical 工業技術院長
Priority to JP15565095A priority Critical patent/JP2716077B2/en
Publication of JPH08329115A publication Critical patent/JPH08329115A/en
Application granted granted Critical
Publication of JP2716077B2 publication Critical patent/JP2716077B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Machine Translation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、例えば、アンケート調
査などを行うとき、回答者が記入したテキストファイル
の回答記入欄から文字列を抽出する記入文字抽出装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input character extracting apparatus for extracting a character string from an answer entry column of a text file entered by a respondent when conducting a questionnaire survey or the like.

【0002】[0002]

【従来の技術】従来のアンケート調査等は、調査者が回
答記入欄を設けた調査用紙を回答者に送り、回答者が調
査用紙に記入後返送してもらう方法で行っていた。ま
た、パソコン通信などが活用されるようになり、電子メ
ールが使われるようになってきたが、電子メールでアン
ケート調査を実施すると、この電子メールのテキストフ
ァイルでは回答記入欄自体が移動してしまうことがあっ
た。
2. Description of the Related Art Conventionally, a questionnaire survey or the like is performed by a method in which a surveyor sends a survey sheet provided with a response entry column to a respondent, and the respondent fills out the survey sheet and returns it. In addition, personal computer communication has been used and e-mail has come to be used. However, when a questionnaire survey is conducted by e-mail, the answer entry field itself moves in the text file of this e-mail There was something.

【0003】[0003]

【発明が解決しようとする課題】上記従来のものにおい
ては、アンケート調査を紙で行う場合は、調査用紙を送
付したり回収するための時間と手間がかかるものであっ
た。また、電子メールでは、回答記入欄自体が移動して
しまい、プログラムなどで記入された文字(言葉)を自
動的に抽出することが困難であった。
In the above-described conventional apparatus, when conducting a questionnaire survey on paper, it takes time and effort to send and collect the survey paper. Also, in the e-mail, the answer entry field itself has moved, and it has been difficult to automatically extract characters (words) entered by a program or the like.

【0004】本発明は、情報処理装置で扱われる、テキ
ストファイルの記入欄に記入された文字を自動的に抽出
することを目的とする。
[0004] It is an object of the present invention to automatically extract characters entered in an entry column of a text file handled by an information processing apparatus.

【0005】[0005]

【課題を解決するための手段】図1は、本発明の原理説
明図であり、図1において、本発明の記入文字抽出装置
には、抽出処理部2、入力部3a、記憶装置4a、表示
部5aが設けてあり、抽出処理部2には、入力制御部2
1、出力制御部22、記憶装置制御部23、文字列比較
部24が設けてある。
FIG. 1 is a diagram for explaining the principle of the present invention. In FIG. 1, an input character extracting apparatus according to the present invention includes an extraction processing unit 2, an input unit 3a, a storage device 4a, and a display unit. The extraction processing unit 2 includes an input control unit 2
1, an output control unit 22, a storage device control unit 23, and a character string comparison unit 24 are provided.

【0006】本発明は、上記の課題を解決するため、次
のように構成した。回答欄を設けた調査ファイルと回答
欄に記入した回答ファイルと前記ファイル等を格納する
記憶装置4aと、前記調査ファイルと回答ファイルの回
答欄の前後の文字列をマッチング比較し、回答欄に記入
された文字又は文字列を抽出する抽出処理部2とを備え
る。
The present invention has the following configuration in order to solve the above-mentioned problems. The storage file 4a for storing the survey file provided with the answer column, the answer file entered in the answer column and the file, and the character strings before and after the answer column of the survey file and the answer file are compared and filled in the answer column. And an extraction processing unit 2 for extracting the extracted character or character string.

【0007】また、前記回答ファイルの回答欄を拡大し
た場合、回答欄の前後の一定長の文字列が調査ファイル
と同じであるとき、回答欄に記入された文字又は文字列
を抽出する抽出処理部2を備えるようにする。
Further, when the answer column of the answer file is enlarged, if the character string of a certain length before and after the answer column is the same as the survey file, an extraction process for extracting the character or character string entered in the answer column Part 2 is provided.

【0008】さらに、前記回答ファイル中の回答欄の前
後の文字が欠けていた場合、回答欄を示す記号あるいは
前記記号以外の一定長の文字列が欠けていなければ、回
答欄に記入された文字又は文字列を抽出する抽出処理部
2を備えるようにする。
Further, if characters before and after the answer column in the answer file are missing, and if a symbol indicating the answer column or a character string of a certain length other than the above-mentioned symbol is not missing, the character entered in the answer column is used. Alternatively, an extraction processing unit 2 for extracting a character string is provided.

【0009】また、前記回答ファイル中の回答欄の前後
に余計な文字が入っていた場合、回答欄を示す記号によ
り、回答欄に記入された文字又は文字列を抽出する抽出
処理部2を備えるようにする。
In addition, when there is an extra character before and after the answer column in the answer file, there is provided an extraction processing unit 2 for extracting a character or a character string entered in the answer column by a symbol indicating the answer column. To do.

【0010】さらに、前記調査ファイルと回答ファイル
で全角と半角の関係が合わない文字があれば、どちらか
の文字に統一して、回答欄に記入された文字又は文字列
を抽出する抽出処理部2を備えるようにする。
Further, if there is a character in the survey file and the answer file in which the relationship between full-width and half-width characters does not match, an extraction processing unit that unifies the characters into one of the characters and extracts the character or character string entered in the answer column. 2 is provided.

【0011】また、前記調査ファイルと前記回答ファイ
ル内の文字コードが異なっていた場合どちらかのコード
に統一して、回答欄に記入された文字又は文字列を抽出
する抽出処理部2を備えるようにする。
If the character code in the survey file is different from the character code in the answer file, an extraction processing unit 2 is provided to unify the character code into one of the codes and extract the character or character string entered in the answer column. To

【0012】[0012]

【作用】上記構成に基づく本発明の作用を説明する。抽
出処理部2は、調査ファイルと回答ファイルの回答欄の
前後の文字列をマッチング比較し、回答欄に記入された
文字又は文字列を自動的に抽出して、表示部5aの画面
表示又は記憶装置4aに格納する。
The operation of the present invention based on the above configuration will be described. The extraction processing unit 2 matches and compares the character strings before and after the response column of the survey file and the response file, automatically extracts the character or character string entered in the response column, and displays or stores the screen or the display on the display unit 5a. It is stored in the device 4a.

【0013】また、調査者が調査ファイルに用意した回
答欄よりも大きく回答者が勝手に記入欄を拡大した場合
にも、抽出処理部2が記入欄の前後の一定長の文字列が
調査ファイルと同じであるかを比較し、同じ場合には回
答欄の記入文字が抽出できるようにする。
[0013] Further, even when the respondent enlarges the entry field by himself / herself larger than the answer field prepared by the surveyor in the survey file, the extraction processing unit 2 causes the character string of a certain length before and after the entry field to be displayed in the survey file. Are compared with each other, and if they are the same, the characters entered in the answer column can be extracted.

【0014】さらに、回答ファイル中の回答欄の前後の
文字が欠けていた場合にも、回答欄の範囲を示す、例え
ば括弧などの記号が残っているか、あるいは範囲を示す
記号を除く記入欄の前後の一定長の文字列が欠けていな
ければ、回答欄に記入された文字又は文字列が抽出でき
るようにする。
Further, even when characters before and after the answer column in the answer file are missing, there is a mark such as a parenthesis indicating the range of the answer column, or a mark in the entry column excluding the mark indicating the range. If a character string of a certain length before and after is not missing, a character or a character string entered in an answer column can be extracted.

【0015】また、回答ファイル中の回答欄の前後の余
計な文字が入っている場合にも、回答欄の範囲を示す、
例えば括弧などの記号が残っていれば、回答欄に記入さ
れた文字又は文字列を抽出できるようにする。
Further, even when extra characters before and after the answer column in the answer file are included, the range of the answer column is indicated.
For example, if symbols such as parentheses remain, characters or character strings entered in the answer column can be extracted.

【0016】さらに、調査ファイルの中で全角だった文
字が回答ファイルの中で半角になっていたとき、または
逆に、調査ファイルの中で半角だった文字が回答ファイ
ルの中で全角になっていた場合にも、抽出処理部2は、
どちらかに統一してから文字列マッチングを行うことに
より、回答欄に記入された文字又は文字列を抽出するこ
とができる。
Furthermore, when a double-byte character in the survey file becomes a half-width character in the answer file, or conversely, a half-width character in the survey file becomes a full-width character in the answer file. Also, the extraction processing unit 2
By performing character string matching after unifying them, it is possible to extract characters or character strings entered in the answer column.

【0017】また、調査ファイルの中の文字の文字コー
ドと回答ファイルの中の文字の文字コードが異なってい
た場合にも、抽出処理部2は、どちらかのコードに統一
してから文字列マッチングを行うことにより、回答欄に
記入された文字又は文字列を抽出することができる。
If the character code of the character in the survey file is different from the character code of the character in the answer file, the extraction processing unit 2 unifies the character code into one of the codes and then matches the character string. , The character or character string entered in the answer column can be extracted.

【0018】このように、回答ファイルの回答欄を探し
て、記入された文字又は文字列を自動的に抽出すること
ができる。
As described above, the entered character or character string can be automatically extracted by searching the answer column of the answer file.

【0019】[0019]

【実施例】以下、図2〜図11に基づいて本発明の実施
例を説明する。 §1:文字抽出処理装置の説明 図2は、本発明の実施例における装置構成図であり、図
2(a)は、装置本体の発明、図2(b)は、記入文字
抽出装置全体の説明である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. §1: Description of a character extraction processing device FIG. 2 is a device configuration diagram in an embodiment of the present invention. FIG. 2 (a) shows the invention of the device main body, and FIG. It is an explanation.

【0020】図2(a)において、記入文字を抽出する
抽出処理部には、中央処理装置であるCPU25とメイ
ンメモリ26が設けてある。そして、CPU25は、シ
ステムバス6によりメインメモリ26、キーボード/マ
ウスインタフェース31、2次記憶装置インタフェース
41、ディスプレイインタフェース51と接続されてい
る。
In FIG. 2A, a CPU 25 as a central processing unit and a main memory 26 are provided in an extraction processing unit for extracting characters to be entered. The CPU 25 is connected to the main memory 26, the keyboard / mouse interface 31, the secondary storage device interface 41, and the display interface 51 via the system bus 6.

【0021】CPU25は、メインメモリ26内のソフ
トウェアにより記入文字の抽出制御等を行うものであ
る。メインメモリ26は、記入文字の抽出を行うための
ソフトウェアを保持するものである。キーボード/マウ
スインタフェース31は、記入文字の抽出を行うための
入力部であるキーボードやマウス等と接続するインタフ
ェースである。
The CPU 25 controls the extraction of entered characters by software in the main memory 26. The main memory 26 holds software for extracting characters to be entered. The keyboard / mouse interface 31 is an interface connected to a keyboard, a mouse, or the like, which is an input unit for extracting written characters.

【0022】2次記憶装置インタフェース41は、調査
ファイル、回答ファイル等を格納するためのハードディ
スク装置、光ディスク装置等と接続するインタフェース
である。ディスプレイインタフェース51は、表示部で
あるCRT、液晶表示装置等と接続するインタフェース
である。
The secondary storage device interface 41 is an interface connected to a hard disk device, an optical disk device, or the like for storing a survey file, an answer file, and the like. The display interface 51 is an interface for connecting to a display unit such as a CRT or a liquid crystal display device.

【0023】図2(b)は、記入文字抽出装置全体の説
明であり、抽出処理部2はメインメモリ26内のソフト
ウェアとして、入力制御部21、出力制御部22、記憶
装置制御部23、文字列比較部24が設けてある。
FIG. 2 (b) is an explanation of the entire character extraction device. The extraction processing unit 2 includes, as software in the main memory 26, an input control unit 21, an output control unit 22, a storage device control unit 23, a character A column comparison unit 24 is provided.

【0024】入力制御部21は入力部であるキーボード
3と出力制御部22と記憶装置制御部23と接続されて
いる。出力制御部22は、表示部でるディスプレイ5と
入力制御部21と文字列比較部24と接続されている。
The input control unit 21 is connected to the keyboard 3, the output control unit 22, and the storage device control unit 23, which are input units. The output control unit 22 is connected to the display 5 serving as a display unit, the input control unit 21, and the character string comparison unit 24.

【0025】記憶装置制御部23は、記憶装置であるハ
ードディスク装置4と入力制御部21と文字列比較部2
4と接続されている。文字列比較部24は、出力制御部
22と記憶装置制御部23と接続されている。
The storage device controller 23 comprises a hard disk device 4 as a storage device, an input controller 21 and a character string comparator 2.
4 is connected. The character string comparison unit 24 is connected to the output control unit 22 and the storage device control unit 23.

【0026】入力制御部21は、キーボード3からの入
力制御を行うものである。出力制御部22は、入力制御
部21及び文字列比較部24からのデータをディスプレ
イ5の画面に表示する制御を行うものである。
The input control section 21 controls input from the keyboard 3. The output control unit 22 controls to display data from the input control unit 21 and the character string comparison unit 24 on the screen of the display 5.

【0027】記憶装置制御部23は、入力制御部21及
び文字列比較部24の指示により、ハードディスク装置
4に対しリード/ライトの制御を行うものである。文字
列比較部24は、2つのテキストファイルを比較して、
記入文字の抽出等を行うものである。
The storage device controller 23 performs read / write control on the hard disk device 4 according to instructions from the input controller 21 and the character string comparator 24. The character string comparison unit 24 compares two text files,
This is for extracting the characters to be entered.

【0028】§2:テキストファイルの説明 ワークステーションなどの情報処理装置において、例え
ば、アンケート調査などを行うときに調査者が作成し
た、回答記入欄(空欄)を設けたテキストファイル(調
査ファイル)と、調査ファイルに回答者が回答を記入し
たテキストファイル(回答ファイル)の回答欄の前後の
文字列をマッチング比較し、回答欄に記入された文字又
は文字列を抽出して、画面表示又は記憶装置に格納(以
降、「結果格納ファイル」という)するものである。
§2: Description of text file In an information processing apparatus such as a workstation, for example, a text file (survey file) provided with an answer entry column (blank space) created by a surveyor when conducting a questionnaire survey or the like. Matching and comparing the character strings before and after the answer column of the text file (answer file) in which the respondent wrote the answer in the survey file, extracting the characters or character strings entered in the answer column, and displaying them on the screen or in a storage device (Hereinafter referred to as “result storage file”).

【0029】図3は、調査ファイルと回答ファイルの説
明図、図4は回答ファイルと結果格納ファイルの説明図
である。図3(a)は、調査ファイルの説明であり、こ
の調査ファイル例では、記入日、郵便番号、住所、氏
名、生年月日、年令、趣味の回答欄が設けられており、
回答欄の範囲は、括弧の記号が設けられている。なお下
向の矢印は、改行マークを示す。
FIG. 3 is an explanatory diagram of a survey file and an answer file, and FIG. 4 is an explanatory diagram of an answer file and a result storage file. FIG. 3A is a description of a survey file. In this survey file example, answer columns for entry date, postal code, address, name, date of birth, age, and hobby are provided.
The range of the answer column is provided with a parenthesis symbol. The downward arrow indicates a line feed mark.

【0030】図3(b)は、回答ファイル例であり、調
査者が作成した回答記入欄に、回答者が正しく記入した
場合を示す。図3(c)は、記入欄を拡大した回答ファ
イル例であり、回答ファイルの住所記入欄の「101
5」と趣味記入欄の「音楽鑑賞」の下線部分のように、
回答者が回答記入欄を勝手に大きくした場合を示す。
FIG. 3B is an example of an answer file, and shows a case where the respondent has correctly entered the answer entry column created by the surveyor. FIG. 3C is an example of an answer file in which the entry column is enlarged, and “101” in the address entry column of the answer file is shown.
5 "and underlined" Music appreciation "in the hobby column,
This shows a case where the respondent has made the answer entry field larger.

【0031】図3(d)は、回答欄の前後の文字が欠け
た回答ファイル例であり、回答ファイルの記入日記入欄
と趣味記入欄の下線部分のように、回答欄の前後の文字
が欠けた場合を示す。
FIG. 3D is an example of an answer file in which characters before and after the answer column are missing. Characters before and after the answer column are underlined, such as the underlined portion of the entry date entry column and the hobby entry column of the answer file. Indicates the case of missing.

【0032】図4(a)は、回答欄の前後に余計な文字
が入った回答ファイル例であり、回答ファイルの生年月
日記入欄の「生まれ」と趣味記入欄の「は」の下線部分
のように、回答欄の前後の余計な文字が入っていた場合
を示す。
FIG. 4A is an example of an answer file in which extra characters are inserted before and after the answer column. Underlined portions of “birth” in the date of birth entry column and “ha” in the hobby entry column of the answer file This shows the case where extra characters before and after the answer column are included.

【0033】図4(b)は、半角文字になった回答ファ
イル例であり、回答ファイルの郵便番号記入欄の「# 」
の下線部分のように、調査ファイルで全角だった文字が
回答ファイルの中で半角になっていた場合を示す。図4
(c)は、回答数が少ない回答ファイル例であり、回答
ファイルの生年月日記入欄のような記入漏れがあった場
合を示す。
FIG. 4B shows an example of an answer file in half-width characters, and "#" in the postal code entry column of the answer file.
As shown in the underlined part, characters that were full-width in the survey file were changed to half-width in the answer file. FIG.
(C) is an example of an answer file with a small number of answers, and shows a case where there is a missing entry such as a date of birth entry column in the answer file.

【0034】図4(d)は、結果格納ファイルの説明で
あり、回答ファイルの回答欄に記入された文字または文
字列を抽出してディスプレイ5の画面に表示または記憶
装置であるハードディスク装置4に格納するための結果
格納ファイルである。
FIG. 4 (d) is a description of the result storage file. Characters or character strings entered in the answer column of the answer file are extracted and displayed on the screen of the display 5 or stored in the hard disk device 4 as a storage device. This is a result storage file to be stored.

【0035】§3:フローチャートによる記入文字抽出
の説明 (1) 正しく記入された回答ファイルから記入文字を抽出
する場合の説明 図5は、回答ファイルからの記入文字抽出処理フローチ
ャートである。いま、図3(a)の調査ファイルに回答
者が回答を書き込み図3(b)の回答ファイルとした場
合の記入文字抽出処理を、処理番号S1〜S6に従って
説明する。
§3: Description of Extraction of Entry Characters by Flowchart (1) Description of Extraction of Entry Characters from Correctly Entered Answer File FIG. 5 is a flowchart of an entry character extraction process from an answer file. Now, a description will be given of the entry character extraction processing in the case where the respondent writes a response in the survey file of FIG. 3A and makes the response file of FIG.

【0036】S1:まず、調査ファイルと回答ファイル
と結果格納ファイル名をキーボード3から入力制御部2
1がそれら3つのファイル名を受け取り、記憶装置制御
部23へ渡し、処理S2に移る。
S1: First, input the survey file, answer file, and result storage file name from the keyboard 3 into the input control unit 2.
1 receives the three file names, passes them to the storage device control unit 23, and proceeds to processing S2.

【0037】S2:記憶装置制御部23は、調査ファイ
ルと回答ファイルを2次記憶装置であるハードディスク
4などから読み出して、文字列比較部24へ渡し、処理
3へ移る。なお、結果格納ファイルは、文字列比較部2
4から指示があるまで記憶装置制御部23で保存され
る。
S2: The storage controller 23 reads out the survey file and the answer file from the hard disk 4 or the like, which is the secondary storage, passes it to the character string comparator 24, and proceeds to processing 3. The result storage file is stored in the character string comparison unit 2
4 until it is instructed by the storage device controller 23.

【0038】S3:文字列比較部24は、調査ファイル
と回答ファイルの2つのテキストファイルの中の文字を
頭から1文字1文字比較して行き、調査ファイルの空欄
部分に相当する、回答ファイルの文字を抜き出して、そ
の文字列の最後に改行コードを付けたものを、記憶装置
制御部23と出力制御部22に渡し、処理S4に移る。
S3: The character string comparison unit 24 compares the characters in the two text files, the survey file and the answer file, one character at a time from the beginning, and compares the characters in the answer file, which corresponds to a blank part of the survey file. Characters are extracted, and a character string with a line feed code added at the end is passed to the storage device control unit 23 and the output control unit 22, and the process proceeds to step S4.

【0039】S4:記憶装置制御部23は、抽出した文
字列を、始めにキーボード3から入力された結果格納フ
ァイル中へ保存し(この時ハードディスク4aにも格納
される)、出力制御部22は、その文字列をディスプレ
イ5に表示し、処理S5に移る。
S4: The storage controller 23 saves the extracted character string in a result storage file first input from the keyboard 3 (also stored on the hard disk 4a at this time), and the output controller 22 Are displayed on the display 5, and the process proceeds to step S5.

【0040】S5:文字列比較部24は、テキストファ
イルの最後の文字まで比較したか判断する。この判断
で、最後の文字まで比較を行った場合は(YES)、処
理S6に移り、もし、最後の文字まで比較していない場
合(NO)、処理S3に戻る。
S5: The character string comparing section 24 determines whether the last character of the text file has been compared. If it is determined that the last character has been compared (YES), the process proceeds to step S6. If the last character has not been compared (NO), the process returns to step S3.

【0041】S6:文字列比較部24から比較終了通知
を記憶装置制御部23が受け取り、記憶装置制御部23
は、保存していた結果格納ファイル名をクリアし、終了
通知を入力制御部21へ送信する。これにより入力制御
部21は、次に比較するファイル名を受け取る準備をし
て、出力制御部22へ終了通知を送信する。出力制御部
22は、ユーザに、調査ファイルと回答ファイルと結果
格納ファイル名をキーボード3から入力するように促す
メッセージをディスプレイ5の画面に表示して処理S1
に戻る。
S6: The storage controller 23 receives the comparison end notification from the character string comparator 24, and the storage controller 23
Clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 on the screen of the display 5 and performs processing S1.
Return to

【0042】(2) 回答ファイルの回答欄を拡大した場合
の抽出処理の説明 図3(c)の回答ファイルの住所記入欄と趣味記入欄の
下線部分のように、ユーザが回答記入欄を勝手に大きく
した場合、図3(a)の調査ファイルの回答欄の前後の
一定長の文字列である数文字が同じであるかを比較する
ことによって、記入された文字を抽出する。
(2) Description of the extraction process when the answer column of the answer file is enlarged The user enters the answer entry box without permission as shown in the underlined portion of the address entry box and hobby entry column of the answer file in FIG. In this case, the entered characters are extracted by comparing whether or not several characters, which are character strings of a fixed length, before and after the response column of the survey file in FIG. 3A are the same.

【0043】図6は、回答ファイルの回答欄を拡大した
抽出処理フローチャートである。以下図3(a)の調査
ファイルに回答者が図3(c)の回答ファイルの回答を
行った場合の記入文字抽出処理を処理番号S11〜S1
9に従って説明する。
FIG. 6 is an extraction processing flowchart in which the answer column of the answer file is enlarged. Hereinafter, when the respondent answers the survey file shown in FIG. 3A in the answer file shown in FIG.
Explanation will be made according to No. 9.

【0044】S11:まず、調査ファイルと回答ファイ
ルと結果格納ファイル名をキーボード3から入力制御部
21がそれら3つのファイル名を受け取り、記憶装置制
御部23へ渡し、処理S12に移る。
S11: First, the input control unit 21 receives the three file names of the survey file, the answer file, and the result storage file name from the keyboard 3, passes them to the storage device control unit 23, and proceeds to processing S12.

【0045】S12:記憶装置制御部23は、調査ファ
イルと回答ファイルを2次記憶装置であるハードディス
ク4から読み出して、文字列比較部24へ渡し、処理S
13へ移る。なお、結果格納ファイルは、文字列比較部
24から指示があるまで記憶装置制御部23で保存され
る。
S12: The storage device controller 23 reads out the survey file and the answer file from the hard disk 4, which is the secondary storage device, and passes it to the character string comparison unit 24, where the process S
Move to 13. The result storage file is stored in the storage device control unit 23 until instructed by the character string comparison unit 24.

【0046】S13:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのファイルの記入欄は一致して
いるかどうか判断する。この判断で2つの記入欄が一致
している場合は(YES)、処理S14へ移り、もし、
一致していない場合は(NO)、処理S15に移る。
S13: The character string comparison unit 24 determines whether the entry fields of the two files, the survey file and the answer file, match. If the two entry fields match in this determination (YES), the process proceeds to step S14,
If they do not match (NO), the process moves to step S15.

【0047】S14:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのテキストファイルの中の文字
を頭から1文字1文字比較して行き、調査ファイルの空
欄部分に相当する、回答ファイルの文字を抜き出して、
その文字列の最後に改行コードを付けたものを、記憶装
置制御部23と出力制御部22に渡し、処理S17に移
る。
S14: The character string comparison unit 24 compares the characters in the two text files, the survey file and the answer file, character by character from the beginning, and finds the answer file corresponding to the blank part of the survey file. Extract the characters,
The character string with the line feed code added at the end is passed to the storage device control unit 23 and the output control unit 22, and the process proceeds to step S17.

【0048】S15:処理S13の判断で2つの記入欄
が一致していない場合、文字列比較部24は、記入欄の
前後の数文字が一致しているかどうか判断する。この判
断で記入欄の前後の数文字が一致している場合は(YE
S)、処理S16に移り、もし、一致していない場合は
(NO)、次の文字抽出のため処理S13に戻る。
S15: If the two entry fields do not match in the judgment of the processing S13, the character string comparing section 24 judges whether several characters before and after the entry field match. If several characters before and after the entry field match in this judgment (YE
S), the process proceeds to step S16, and if they do not match (NO), the process returns to step S13 for extracting the next character.

【0049】S16:文字列比較部24は、回答ファイ
ルの記入欄から回答文字列を抽出して、その文字列の最
後に改行コードを付けたものを、記憶装置制御部23と
出力制御部22に渡し、処理S17に移る。
S16: The character string comparing section 24 extracts the answer character string from the entry column of the answer file, and adds the character string with a line feed code at the end to the storage string control section 23 and the output control section 22. And the process proceeds to S17.

【0050】S17:記憶装置制御部23は、抽出した
文字列を、始めにキーボード3から入力された結果格納
ファイル中へ保存し、出力制御部22は、その文字列を
ディスプレイ5に表示し、処理S18に移る。
S17: The storage controller 23 saves the extracted character string in a result storage file first input from the keyboard 3, and the output controller 22 displays the character string on the display 5, Move to processing S18.

【0051】S18:文字列比較部24は、テキストフ
ァイルの最後の文字まで比較したか判断する。この判断
で、最後の文字まで比較を行った場合は(YES)、処
理S19に移り、もし、最後の文字まで比較していない
場合は(NO)、処理S13に戻る。
S18: The character string comparing section 24 determines whether the last character of the text file has been compared. If it is determined that the last character has been compared (YES), the process proceeds to step S19, and if the last character has not been compared (NO), the process returns to step S13.

【0052】S19:文字列比較部24から比較終了通
知を記憶装置制御部23が受け取り、記憶装置制御部2
3は、保存していた結果格納ファイル名をクリアし、終
了通知を入力制御部21へ送信する。これにより入力制
御部21は、次に比較するファイル名を受け取る準備を
して、出力制御部22へ終了通知を送信する。出力制御
部22は、ユーザに調査ファイルと回答ファイルと結果
格納ファイル名をキーボード3から入力するように促す
メッセージをディスプレイ5の画面に表示して処理S1
1に戻る。
S19: The storage controller 23 receives the comparison end notification from the character string comparator 24, and the storage controller 2
3 clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 on the screen of the display 5 and performs processing S1.
Return to 1.

【0053】(3) 回答ファイルの記入欄の前後の文字が
欠けた場合の抽出処理の説明 図3(d)の回答ファイルの記入日記入欄と趣味記入欄
の下線部分のように、回答欄の前後の文字が欠けていた
場合、図3(a)の調査ファイルの回答欄の前後の回答
欄を示す記号である括弧や括弧を除くその他の数文字が
同じであるかを比較することによって、記入された文字
列を抽出する。
(3) Description of the extraction process when characters before and after the entry column of the answer file are missing The answer column, as shown by the underlined portions of the entry date entry column and the hobby entry column of the answer file in FIG. If the characters before and after are missing, by comparing parentheses, which are symbols indicating the response columns before and after the response column of the survey file in FIG. , To extract the entered character string.

【0054】図7は、回答欄の前後の文字が欠けた抽出
処理フローチャートである。以下、図3(a)の調査フ
ァイルに回答者が図3(d)の回答ファイルの回答を行
った場合の記入文字抽出処理を処理番号S21〜S29
に従って説明する。
FIG. 7 is a flowchart of an extraction process in which characters before and after the answer column are missing. Hereinafter, the process of extracting the entered characters when the respondent answers the survey file of FIG. 3A in the answer file of FIG.
It will be described according to.

【0055】S21:まず、調査ファイルと回答ファイ
ルと結果格納ファイル名をキーボード3から入力制御部
21がそれら3つのファイル名を受け取り、記憶装置制
御部23へ渡し、処理S22に移る。
S 21: First, the input control unit 21 receives the three file names from the keyboard 3 for the survey file, the answer file, and the result storage file name, passes them to the storage device control unit 23, and proceeds to processing S 22.

【0056】S22:記憶装置制御部23は、調査ファ
イルと回答ファイルを、2次記憶装置であるハードディ
スク4から読み出して、文字列比較部24へ渡し、処理
S23へ移る。なお、結果格納ファイルは、文字列比較
部24から指示があるまで記憶装置制御部23で保存さ
れる。
S22: The storage device control unit 23 reads the survey file and the answer file from the hard disk 4 as the secondary storage device, passes them to the character string comparison unit 24, and proceeds to processing S23. The result storage file is stored in the storage device control unit 23 until instructed by the character string comparison unit 24.

【0057】S23:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのファイルの記入欄の前後の数
文字が一致しているかどうか判断する。この判断で記入
欄の前後の数文字が一致している場合は(YES)、処
理S26に移り、もし、一致していない場合は(N
O)、処理S24に移る。
S23: The character string comparing section 24 determines whether or not the characters before and after the entry fields of the two files, the survey file and the answer file, match. If it is determined that the characters before and after the entry column match (YES), the process proceeds to step S26, and if they do not match (N
O), the process proceeds to S24.

【0058】S24:文字列比較部24は、回答ファイ
ルの記入欄の括弧はあるかどうか判断する。この判断で
記入欄の括弧がある場合は(YES)、処理S26に移
り、もしない場合は(NO)処理S25に移る。
S24: The character string comparing section 24 determines whether there is a parenthesis in the entry column of the answer file. If there is a parenthesis in the entry column (YES), the process proceeds to step S26, otherwise (NO), the process proceeds to step S25.

【0059】S25:文字列比較部24は、回答ファイ
ルの記入欄の括弧以外の数文字は一致しているかどうか
判断する。この判断で括弧以外の数文字が一致している
場合は(YES)、処理S26に移り、もし、一致して
いない場合は(NO)、次の文字抽出のため処理S23
に戻る。
S25: The character string comparison unit 24 determines whether or not several characters other than parentheses in the entry column of the answer file match. If it is determined that some characters other than the parentheses match (YES), the process proceeds to step S26. If they do not match (NO), the process proceeds to step S23 for extracting the next character.
Return to

【0060】S26:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのテキストファイルの中の文字
を頭から比較して行き、調査ファイルの空欄部分に相当
する、回答ファイルの文字を抜き出して、その文字列の
最後に改行コードを付けたものを、記憶装置制御部23
と出力制御部22に渡し、処理S27に移る。
S26: The character string comparison unit 24 compares the characters in the two text files of the survey file and the answer file from the beginning, and extracts the characters of the answer file corresponding to the blank portions of the survey file. , With the character string ending with a line feed code,
Is passed to the output control unit 22, and the process proceeds to step S27.

【0061】S27:記憶装置制御部23は、抽出した
文字列を、始めにキーボード3から入力された結果格納
ファイル中へ保存し、出力制御部22は、その文字列を
ディスプレイ5に表示し、処理S28に移る。
S27: The storage device controller 23 saves the extracted character string in a result storage file initially input from the keyboard 3, and the output controller 22 displays the character string on the display 5, Move to processing S28.

【0062】S28:文字列比較部24は、テキストフ
ァイルの最後の文字まで比較したか判断する。この判断
で、最後の文字まで比較を行った場合は(YES)、処
理S29に移り、もし、最後の文字まで比較していない
場合は(NO)、処理S23に戻る。
S28: The character string comparing unit 24 determines whether the last character of the text file has been compared. If it is determined that the last character has been compared (YES), the process proceeds to step S29. If the last character has not been compared (NO), the process returns to step S23.

【0063】S29:文字列比較部24から比較終了通
知を記憶装置制御部23が受け取り、記憶装置制御部2
3は、保存していた結果格納ファイル名をクリアし、終
了通知を入力制御部21へ送信する。これにより入力制
御部21は、次に比較するファイル名を受け取る準備を
して、出力制御部22へ終了通知を送信する。出力制御
部22は、ユーザに、調査ファイルと回答ファイルと結
果格納ファイル名をキーボード3から入力するように促
すメッセージをディスプレイ5の画面に表示して処理S
21に戻る。
S29: The storage controller 23 receives the comparison end notification from the character string comparator 24, and the storage controller 2
3 clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays on the screen of the display 5 a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 and performs processing S
Return to 21.

【0064】(4) 回答ファイルの回答欄の前後に余計な
文字が入った場合の抽出処理の説明 図4(a)の回答ファイルの生年月日欄と趣味記入欄の
下線部分のように、回答欄の前後の余計な文字が入った
場合、図3(a)の調査ファイルの回答欄の前後の括弧
の位置を比較することによって、記入された文字列を抽
出する。
(4) Description of Extraction Processing When Extra Characters Enter Before and After the Answer Column in the Answer File As shown in the underlined portions of the date of birth and hobby entry columns in the answer file in FIG. When extra characters before and after the answer column are included, the entered character string is extracted by comparing the positions of parentheses before and after the answer column in the survey file of FIG.

【0065】図8は、回答欄の前後に余計な文字が入っ
た抽出処理フローチャートである。以下、図3(a)の
調査ファイルに回答者が図4(a)の回答ファイルの回
答を行った場合の記入文字抽出処理を処理番号S31〜
S38に従って説明する。
FIG. 8 is a flowchart of an extraction process in which extra characters are inserted before and after the answer column. Hereinafter, when the respondent answers the survey file shown in FIG. 3A in the answer file shown in FIG.
A description will be given according to S38.

【0066】S31:まず、調査ファイルと回答ファイ
ルと結果格納ファイル名をキーボード3から入力制御部
21がそれら3つのファイル名を受け取り、記憶装置制
御部23へ渡し、処理S32へ移る。
S 31: First, the input control unit 21 receives the three file names from the keyboard 3 for the survey file, the answer file, and the result storage file name, passes them to the storage device control unit 23, and proceeds to processing S 32.

【0067】S32:記憶装置制御部23は、調査ファ
イルと回答ファイルを2次記憶装置であるハードディス
ク4から読み出して、文字列比較部24へ渡し、処理S
33へ移る。なお、結果格納ファイルは、文字列比較部
24から指示があるまで記憶装置制御部23で保存され
る。
S32: The storage device controller 23 reads out the survey file and the response file from the hard disk 4 as the secondary storage device, passes them to the character string comparison unit 24, and
Move to 33. The result storage file is stored in the storage device control unit 23 until instructed by the character string comparison unit 24.

【0068】S33:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのファイルの記入欄の前後の数
文字が一致しているかどうか判断する。この判断で記入
欄の前後の数文字が一致している場合は(YES)、処
理S35に移り、もし、一致していない場合は(N
O)、処理S34に移る。
S33: The character string comparing section 24 determines whether or not several characters before and after the entry fields of the two files of the survey file and the answer file match. If it is determined that the characters before and after the entry column match (YES), the process proceeds to step S35, and if they do not match (N
O), the process proceeds to S34.

【0069】S34:文字列比較部24は、回答ファイ
ルの記入欄の括弧はあるかどうか判断する。この判断で
記入欄の括弧がある場合は(YES)、処理S35に移
り、もしない場合は(NO)、次の文字抽出のため処理
S33に戻る。
S34: The character string comparing section 24 determines whether there is a parenthesis in the entry column of the answer file. If there is a parenthesis in the entry column (YES), the process proceeds to step S35. If not (NO), the process returns to step S33 for extracting the next character.

【0070】S35:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのテキストファイルの中の文字
を頭から比較して行き、調査ファイルの空欄部分に相当
する、回答ファイルの文字を抜き出して、その文字列の
最後に改行コードを付けたものを、記憶装置制御部23
と出力制御部22に渡し、処理S36に移る。
S35: The character string comparing section 24 compares the characters in the two text files of the survey file and the answer file from the beginning, and extracts the characters of the answer file corresponding to the blank portions of the survey file. , With the character string ending with a line feed code,
Is passed to the output control unit 22, and the process proceeds to step S36.

【0071】S36:記憶装置制御部23は、抽出した
文字列を、始めにキーボード3から入力された結果格納
ファイル中へ保存し、出力制御部22は、その文字列を
ディスプレイ5に表示し、処理S37に移る。
S36: The storage controller 23 saves the extracted character string in a result storage file first input from the keyboard 3, and the output controller 22 displays the character string on the display 5, Move to processing S37.

【0072】S37:文字列比較部24は、テキストフ
ァイルの最後の文字まで比較したか判断する。この判断
で、最後の文字まて比較を行った場合は(YES)、処
理S38に移り、もし、最後の文字まで比較していない
場合は(NO)、処理S33に戻る。
S37: The character string comparing section 24 determines whether or not the last character of the text file has been compared. If it is determined that the last character has been compared (YES), the process proceeds to step S38. If the last character has not been compared (NO), the process returns to step S33.

【0073】S38:文字列比較部24から比較終了通
知を記憶装置制御部23が受け取り、記憶装置制御部2
3は、保存していた結果格納ファイル名をクリアし、終
了通知を入力制御部21へ送信する。これにより入力制
御部21は、次に比較するファイル名を受け取る準備を
して、出力制御部22へ終了通知を送信する。出力制御
部22は、ユーザに、調査ファイルと回答ファイルと結
果格納ファイル名をキーボード3から入力するように促
すメッセージをディスプレイ5の画面に表示して処理S
31に戻る。
S38: The storage control unit 23 receives the comparison end notification from the character string comparison unit 24, and the storage control unit 2
3 clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays on the screen of the display 5 a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 and performs processing S
Return to 31.

【0074】(5)回答ファイルの中で半角文字になっ
た場合の抽出処理の説明 図4(b)の回答ファイルの郵便番号記入欄の下線部分
のように、調査ファイルの中で全角だった文字が回答フ
ァイルの中で半角になっていた場合、回答ファイルの半
角文字を全角に変換してから、回答欄に記入された文字
列を抽出する。
(5) Description of the extraction process when a single-byte character is entered in the answer file As shown in the underlined portion of the postal code entry column of the answer file in FIG. If the characters are half-width characters in the answer file, the half-width characters of the answer file are converted to full-width characters, and then the character string entered in the answer column is extracted.

【0075】図9は、半角文字になった場合の抽出処理
フローチャートである。以下、図3(a)の調査ファイ
ルに回答者が図4(b)の回答ファイルの回答を行った
場合の記入文字抽出処理を処理番号S41〜S47に従
って説明する。
FIG. 9 is a flowchart of an extraction process when a half-width character is entered. Hereinafter, a description will be given of the input character extraction processing when the respondent answers the survey file of FIG. 3A in the answer file of FIG. 4B according to the processing numbers S41 to S47.

【0076】S41:まず、調査ファイルと回答ファイ
ルと結果格納ファイル名をキーボード3から入力制御部
21がそれら3つのファイル名を受け取り、記憶装置制
御部23へ渡し、処理S42に移る。
S41: First, the input control unit 21 receives the three file names from the keyboard 3 for the survey file, the answer file, and the result storage file name, passes them to the storage device control unit 23, and proceeds to processing S42.

【0077】S42:記憶装置制御部23は、調査ファ
イルと回答ファイルを2次記憶装置であるハードディス
ク4から読み出して、文字列比較部24へ渡し、処理S
43へ移る。なお、結果格納ファイルは、文字列比較部
24から指示があるまで記憶装置制御部23で保存され
る。
S42: The storage controller 23 reads out the survey file and the answer file from the hard disk 4, which is the secondary storage, and passes the file to the character string comparator 24, and the processing S
Move to 43. The result storage file is stored in the storage device control unit 23 until instructed by the character string comparison unit 24.

【0078】S43:文字列比較部24は、調査ファイ
ルと回答ファイルを比較して、調査ファイルと回答ファ
イルで全角と半角の関係が合わない文字があったら、調
査ファイルの文字に統一して、処理S44に移る。
S43: The character string comparison unit 24 compares the survey file with the answer file, and if there is a character that does not match the two-byte and one-byte characters in the survey file and the answer file, unifies the character into the character of the survey file. Move to processing S44.

【0079】S44:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのテキストファイルの中の文字
を頭から1文字1文字比較して行き、調査ファイルの空
欄部分に相当する、回答ファイルの文字を抜き出して、
その文字列の最後に改行コードを付けたものを、記憶装
置制御部23と出力制御部22に渡し、処理S45に移
る。
S44: The character string comparison unit 24 compares the characters in the two text files, the survey file and the answer file, character by character from the beginning, and compares the characters in the answer file, which corresponds to a blank portion of the survey file. Extract the characters,
The character string with a line feed code added at the end is passed to the storage device control unit 23 and the output control unit 22, and the process proceeds to step S45.

【0080】S45: 記憶装置制御部23は、抽出した
文字列を、始めにキーボード3から入力された結果格納
ファイル中へ保存し、出力制御部22は、その文字列を
ディスプレイ5に表示し、処理S46に移る。
S45: The storage device controller 23 saves the extracted character string in a result storage file first input from the keyboard 3, and the output controller 22 displays the character string on the display 5, Move to processing S46.

【0081】S46:文字列比較部24は、テキストフ
ァイルの最後の文字まで比較したか判断する。この判断
で、最後の文字まで比較を行った場合は(YES)、処
理S47に移り、もし、最後の文字まで比較していない
場合は(NO)、処理S44に戻る。
S46: The character string comparing section 24 determines whether the last character of the text file has been compared. If it is determined that the last character has been compared (YES), the process proceeds to step S47. If the last character has not been compared (NO), the process returns to step S44.

【0082】S47:文字列比較部24から比較終了通
知を記憶装置制御部23が受け取り、記憶装置制御部2
3は、保存していた結果格納ファイル名をクリアし、終
了通知を入力制御部21へ送信する。これにより入力制
御部21は、次に比較するファイル名を受け取る準備を
して、出力制御部22へ終了通知を送信する。出力制御
部22は、ユーザに、調査ファイルと回答ファイルと結
果格納ファイル名をキーボード3から入力するように促
すメッセージをディスプレイ5の画面に表示して処理S
41に戻る。
S47: The storage control unit 23 receives the comparison end notification from the character string comparison unit 24, and the storage control unit 2
3 clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays on the screen of the display 5 a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 and performs processing S
Return to 41.

【0083】(6)回答ファイルの中の文字コードが異
なる場合の抽出処理の説明 調査ファイルの中の文字の文字コードと回答ファイルの
中の文字の文字コードが、例えば、SJISとEUCの
ように異なっていた場合にも、どちらかのコードに統一
してから文字列マッチングを行って、回答欄に記入され
た文字又は文字列を抽出する。
(6) Description of Extraction Process When Character Codes in Answer File Are Different The character code of the character in the survey file and the character code of the character in the answer file are, for example, SJIS and EUC. Even if they differ, the character string matching is performed after unifying them into either code, and the character or character string entered in the answer column is extracted.

【0084】図10は文字コードが異なる場合の抽出処
理フローチャートである。以下、調査ファイルと回答フ
ァイルの文字コードが異なっていた場合の記入文字抽出
処理を処理番号S51〜S57に従って説明する。
FIG. 10 is a flowchart of the extraction process when the character codes are different. Hereinafter, a description will be given of the entry character extraction processing in the case where the character codes of the survey file and the answer file are different, according to the processing numbers S51 to S57.

【0085】S51:まず、調査ファイルと回答ファイ
ルと結果格納ファイル名をキーボード3から入力制御部
21がそれら3つのファイル名を受け取り、記憶装置制
御部23へ渡し、処理S52に移る。
S51: First, the input control unit 21 receives the three file names from the keyboard 3 for the survey file, the answer file, and the result storage file name, passes them to the storage device control unit 23, and proceeds to processing S52.

【0086】S52:記憶装置制御部23は、調査ファ
イルと回答ファイルを2次記憶装置であるハードディス
ク4から読み出して、文字列比較部24へ渡し、処理S
53へ移る。なお、結果格納ファイルは、文字列比較部
24から指示があるまで記憶装置制御部23で保存され
る。
S52: The storage controller 23 reads out the survey file and the answer file from the hard disk 4, which is the secondary storage, and passes it to the character string comparing unit 24, and the processing S
Move to 53. The result storage file is stored in the storage device control unit 23 until instructed by the character string comparison unit 24.

【0087】S53:文字列比較部24は、調査ファイ
ルと回答ファイルを比較して、調査ファイルと回答ファ
イルで文字コードが異なっていたら、調査ファイルの文
字コードに統一して、処理S54に移る。
S53: The character string comparison unit 24 compares the survey file with the answer file. If the character code is different between the survey file and the answer file, the character string is unified into the character code of the survey file, and the process proceeds to step S54.

【0088】S54:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのテキストファイルの中の文字
を頭から1文字1文字比較して行き、調査ファイルの空
欄部分に相当する、回答ファイルの文字を抜き出して、
その文字列の最後に改行コードを付けたものを、記憶装
置制御部23と出力制御部22に渡し、処理S55に移
る。
S54: The character string comparison unit 24 compares the characters in the two text files, the survey file and the answer file, character by character from the beginning, and compares the characters in the answer file, which corresponds to a blank part of the survey file. Extract the characters,
The character string with the line feed code added at the end is passed to the storage device control unit 23 and the output control unit 22, and the process proceeds to step S55.

【0089】S55: 記憶装置制御部23は、抽出した
文字列を、始めにキーボード3から入力された結果格納
ファイル中へ保存し、出力制御部22は、その文字列を
ディスプレイ5に表示し、処理S56に移る。
S55: The storage device controller 23 saves the extracted character string in a result storage file first input from the keyboard 3, and the output controller 22 displays the character string on the display 5, Move to processing S56.

【0090】S56:文字列比較部24は、テキストフ
ァイルの最後の文字まで比較したか判断する。この判断
で、最後の文字まで比較を行った場合は(YES)、処
理S57に移り、もし、最後の文字まで比較していない
場合は(NO)、処理S54に戻る。
S56: The character string comparing section 24 determines whether or not the last character of the text file has been compared. If it is determined that the last character has been compared (YES), the process proceeds to step S57, and if the last character has not been compared (NO), the process returns to step S54.

【0091】S57:文字列比較部24から比較終了通
知を記憶装置制御部23が受け取り、記憶装置制御部2
3は、保存していた結果格納ファイル名をクリアし、終
了通知を入力制御部21へ送信する。これにより入力制
御部21は、次に比較するファイル名を受け取る準備を
して、出力制御部22へ終了通知を送信する。出力制御
部22は、ユーザに、調査ファイルと回答ファイルと結
果格納ファイル名をキーボード3から入力するように促
すメッセージをディスプレイ5の画面に表示して処理S
51に戻る。
S57: The storage control unit 23 receives the comparison end notification from the character string comparison unit 24, and the storage control unit 2
3 clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays on the screen of the display 5 a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 and performs processing S
Return to 51.

【0092】(7)回答ファイルの回答数が少ない場合
の抽出処理の説明 図4(c)の回答ファイルの生年月日記入欄のような記
入漏れをチェックするために回答ファイルの回答欄に記
入された文字を抽出後、調査ファイルの回答欄の数と、
回答ファイルより抽出した回答の数とを比較して、数が
異なる場合には、その旨のメッセージを画面に表示し、
結果格納ファイルに抽出した回答と共に格納する。
(7) Description of extraction processing when the number of answers in the answer file is small Fill in the answer field of the answer file to check omissions such as the date of birth in the answer file of FIG. 4C. After extracting the extracted characters, the number of answer fields in the survey file,
Compare the number of answers extracted from the answer file, and if the number is different, display a message to that effect on the screen,
Store it in the result storage file together with the extracted answer.

【0093】図11は、回答数が少ない場合の抽出処理
フローチャートである。以下、図3(a)の調査ファイ
ルに回答者が図4(c)の回答ファイルの回答を行った
場合の記入文字抽出処理を処理番号S61〜S69に従
って説明する。
FIG. 11 is a flowchart of the extraction process when the number of answers is small. Hereinafter, a description will be given of the input character extraction processing in the case where the respondent answers the survey file of FIG. 3A in the answer file of FIG. 4C according to the processing numbers S61 to S69.

【0094】S61:まず、調査ファイルと回答ファイ
ルと結果格納ファイル名をキーボード3から入力制御部
21がそれら3つのファイル名を受け取り、記憶装置制
御部23へ渡し、処理S62に移る。
S61: First, the input control unit 21 receives the three file names from the keyboard 3 for the survey file, the answer file, and the result storage file name, passes them to the storage device control unit 23, and proceeds to processing S62.

【0095】S62:記憶装置制御部23は、調査ファ
イルと回答ファイルを2次記憶装置であるハードディス
ク4から読み出して、文字列比較部24へ渡し、処理S
63へ移る。なお、結果格納ファイルは、文字列比較部
24から指示があるまで記憶装置制御部23で保存され
る。
S62: The storage controller 23 reads out the survey file and the answer file from the hard disk 4, which is the secondary storage, and passes the file to the character string comparator 24, and the processing S
Move to 63. The result storage file is stored in the storage device control unit 23 until instructed by the character string comparison unit 24.

【0096】S63:文字列比較部24は、調査ファイ
ルと回答ファイルの2つのテキストファイルの中の文字
を頭から1文字1文字比較して行き、調査ファイルの空
欄部分に相当する、回答ファイルの文字を抜き出して、
その文字列の最後に改行コードを付けたものを、記憶装
置制御部23と出力制御部22に渡し、処理S64に移
る。
S63: The character string comparison unit 24 compares the characters in the two text files, the survey file and the answer file, character by character from the beginning, and compares the characters in the answer file, which corresponds to a blank part of the survey file. Extract the characters,
The character string with a line feed code added at the end is passed to the storage device control unit 23 and the output control unit 22, and the process proceeds to step S64.

【0097】S64: 記憶装置制御部23は、抽出した
文字列を、始めにキーボード3から入力された結果格納
ファイル中へ保存し、出力制御部22は、その文字列を
ディスプレイ5に表示し、処理S65に移る。
S64: The storage controller 23 saves the extracted character string in the result storage file first input from the keyboard 3, and the output controller 22 displays the character string on the display 5, Move to processing S65.

【0098】S65:文字列比較部24は、テキストフ
ァイルの最後の文字まで比較したか判断する。この判断
で、最後の文字まで比較を行った場合は(YES)、処
理S66に移り、もし、最後の文字まで比較していない
場合は(NO)、処理S63に戻る。
S65: The character string comparing section 24 determines whether the last character of the text file has been compared. In this determination, if the comparison has been performed up to the last character (YES), the process proceeds to step S66. If the comparison has not been performed up to the last character (NO), the process returns to step S63.

【0099】S66:文字列比較部24は、調査ファイ
ルの空欄の数と結果格納ファイル内の抽出された回答数
を数え、処理S67に移る。
S66: The character string comparison unit 24 counts the number of blanks in the survey file and the number of extracted answers in the result storage file, and proceeds to processing S67.

【0100】S67:文字列比較部24は、調査ファイ
ルの空欄の数と、結果ファイル内の抽出された回答数が
同じかどうか判断する。この判断で、調査ファイルの空
欄の数と回答数が同じ場合(YES)、処理S69に移
り、もし、異なる場合は(NO)、処理S68に移る。
S67: The character string comparing section 24 determines whether or not the number of blanks in the survey file is the same as the number of answers extracted in the result file. If it is determined that the number of blanks and the number of answers in the survey file are the same (YES), the process proceeds to step S69, and if they are different (NO), the process proceeds to step S68.

【0101】S68:文字列比較部24は、抽出が失敗
した旨のメッセージを記憶装置制御部23が保存してい
る結果格納ファイルの最後に追加(アペンド)すると同
時に、出力制御部22からディスプレイ5に表示し、処
理S69に移る。
S68: The character string comparison unit 24 adds (appends) a message indicating that the extraction has failed to the end of the result storage file stored in the storage device control unit 23, and at the same time, sends the message from the output control unit 22 to the display 5 And the process proceeds to the processing S69.

【0102】S69:文字列比較部24から比較終了通
知を記憶装置制御部23が受け取り、記憶装置制御部2
3は、保存していた結果格納ファイル名をクリアし、終
了通知を入力制御部21へ送信する。これにより入力制
御部21は、次に比較するファイル名を受け取る準備を
して、出力制御部22へ終了通知を送信する。出力制御
部22は、ユーザに、調査ファイルと回答ファイルと結
果格納ファイル名をキーボード3から入力するように促
すメッセージをディスプレイ5の画面に表示して処理S
61に戻る。
S69: The storage control unit 23 receives the comparison end notification from the character string comparison unit 24, and the storage control unit 2
3 clears the saved result storage file name and transmits an end notification to the input control unit 21. Thus, the input control unit 21 prepares to receive the next file name to be compared, and transmits an end notification to the output control unit 22. The output control unit 22 displays on the screen of the display 5 a message prompting the user to input the survey file, the answer file, and the result storage file name from the keyboard 3 and performs processing S
Return to 61.

【0103】なお、前記(1)〜(7)のすべての場合
にも、文字列比較部24が回答ファイルの回答欄に記入
された文字を抽出するようにできる。これにより、回答
欄に記入された文字をより確実に抽出することができ
る。
In all of the cases (1) to (7), the character string comparing section 24 can extract the characters entered in the answer column of the answer file. This makes it possible to extract characters written in the answer column more reliably.

【0104】また、前記回答ファイルと調査ファイルと
の回答欄の前後の比較する文字数は、前はその欄の先頭
文字まで、後ろは改行コードまでとすることができ、文
字数が多い場合は、処理効率を考え5〜6文字とするの
が適当である。
The number of characters to be compared before and after the answer column of the answer file and the survey file can be up to the first character of the column and up to the line feed code after the answer column. It is appropriate to use 5 to 6 characters in consideration of efficiency.

【0105】[0105]

【発明の効果】以上説明したように本発明によれば、次
のような効果がある。 情報処理装置で扱われるテキストファイルの記入(回
答)欄に記入された文字を自動的に抽出することができ
る。
As described above, according to the present invention, the following effects can be obtained. Characters entered in the entry (answer) column of a text file handled by the information processing device can be automatically extracted.

【0106】回答ファイルの回答記入欄が拡大された
場合にも、回答欄に記入された文字の抽出ができる。 回答ファイル中の回答欄の前後の文字が欠けていた場
合にも、回答欄に記入された文字の抽出ができる。
Even when the answer entry field of the answer file is enlarged, characters entered in the answer entry field can be extracted. Even if characters before and after the answer column in the answer file are missing, the characters entered in the answer column can be extracted.

【0107】回答ファイル中の回答欄に前後に余計な
文字が入っていた場合にも、回答欄に記入された文字の
抽出ができる。 調査ファイルと回答ファイルで全角と半角の関係が合
わない場合でも、回答欄に記入された文字列を抽出する
ことができる。
Even if there are extra characters before and after the answer column in the answer file, the characters entered in the answer column can be extracted. Even when the two-byte and one-byte relationships do not match in the survey file and the answer file, the character string entered in the answer column can be extracted.

【0108】調査ファイルと回答ファイル内の文字コ
ードが異なっていた場合にも、回答欄に記入された文字
例を抽出することができる。 調査ファイルの回答欄の数と回答ファイルより抽出し
た回答数が異なる場合には、その旨を表示又は格納する
ことにより、ユーザに抽出エラーを示すことができる。
Even if the character code in the survey file is different from the character code in the answer file, the character example entered in the answer column can be extracted. If the number of answer columns in the survey file is different from the number of answers extracted from the answer file, this fact is displayed or stored to indicate an extraction error to the user.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】実施例における装置構成図である。FIG. 2 is a device configuration diagram in an embodiment.

【図3】実施例における調査ファイルと回答ファイルの
説明図である。
FIG. 3 is an explanatory diagram of a survey file and an answer file in the embodiment.

【図4】実施例における回答ファイルと結果格納ファイ
ルの説明図である。
FIG. 4 is an explanatory diagram of an answer file and a result storage file in the embodiment.

【図5】実施例における回答ファイルからの記入文字抽
出処理フローチャートである。
FIG. 5 is a flowchart of a process of extracting an entry character from an answer file according to the embodiment.

【図6】実施例における回答ファイルの回答欄を拡大し
た抽出処理フローチャートである。
FIG. 6 is an extraction processing flowchart in which an answer column of an answer file is enlarged in the embodiment.

【図7】実施例における回答欄の前後の文字が欠けた抽
出処理フローチャートである。
FIG. 7 is a flowchart of an extraction process in which characters before and after an answer column are missing in the embodiment.

【図8】実施例における回答欄の前後に余計な文字が入
った抽出処理フローチャートである。
FIG. 8 is a flowchart of an extraction process in which unnecessary characters are inserted before and after a response column in the embodiment.

【図9】実施例における半角文字になった場合の抽出処
理フローチャートである。
FIG. 9 is a flowchart of an extraction process when a half-width character is used in the embodiment.

【図10】実施例における文字コードが異なる場合の抽
出処理フローチャートである。
FIG. 10 is a flowchart of an extraction process when the character codes are different in the embodiment.

【図11】実施例における回答数が少ない場合の抽出処
理フローチャートである。
FIG. 11 is a flowchart of an extraction process when the number of answers is small in the embodiment.

【符号の説明】[Explanation of symbols]

2 抽出処理部 3a 入力部 4a 記憶装置 5a 表示部 21 入力制御部 22 出力制御部 23 記憶装置制御部 24 文字列比較部 2 Extraction processing unit 3a Input unit 4a Storage device 5a Display unit 21 Input control unit 22 Output control unit 23 Storage device control unit 24 Character string comparison unit

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 回答欄を設けた調査ファイルと、 回答欄に記入した回答ファイルと、 前記ファイル等を格納する記憶装置と、 前記調査ファイルと前記回答ファイルの回答欄の前後の
文字列をマッチング比較し、回答欄に記入された文字又
は文字列を抽出する抽出処理部とを備え、 前記抽出処理部は、前記回答ファイルの回答欄を拡大し
た場合、回答欄の前後の一定長の文字列が調査ファイル
と同じであるときに回答欄に記入された文字又は文字列
を抽出することを特徴とした記入文字抽出装置。
1. A survey file having an answer column, an answer file entered in the answer column, a storage device for storing the file, etc., and matching of character strings before and after the answer column of the survey file and the answer file. An extraction processing unit for comparing and extracting a character or a character string entered in an answer column, wherein the extraction processing unit expands the answer column of the answer file, and a character string of a certain length before and after the answer column. A character or character string entered in an answer column when is the same as the survey file.
【請求項2】 回答欄を設けた調査ファイルと、 回答欄に記入した回答ファイルと、 前記ファイル等を格納する記憶装置と、 前記調査ファイルと前記回答ファイルの回答欄の前後の
文字列をマッチング比較し、回答欄に記入された文字又
は文字列を抽出する抽出処理部とを備え、 前記抽出処理部は、前記回答ファイル中の回答欄の前後
の文字が欠けていた場合、回答欄を示す記号あるいは前
記記号以外の一定長の文字列が欠けていなければ、回答
欄に記入された文字又は文字列を抽出することを特徴と
した記入文字抽出装置。
2. A survey file having an answer column, an answer file entered in the answer column, a storage device for storing the file, etc., and matching of character strings before and after the answer column in the survey file and the answer file. An extraction processing unit for comparing and extracting a character or a character string entered in an answer column, wherein the extraction processing unit indicates the answer column when characters before and after the answer column in the answer file are missing. An entry character extraction device for extracting a character or a character string entered in an answer column unless a symbol or a character string of a certain length other than the symbol is missing.
【請求項3】 回答欄を設けた調査ファイルと、 回答欄に記入した回答ファイルと、 前記ファイル等を格納する記憶装置と、 前記調査ファイルと前記回答ファイルの回答欄の前後の
文字列をマッチング比較し、回答欄に記入された文字又
は文字列を抽出する抽出処理部とを備え、 前記抽出処理部は、前記回答ファイル中の回答欄の前後
に余計な文字が入っていた場合、回答欄を示す記号によ
り、回答欄に記入された文字又は文字列を抽出すること
を特徴とした記入文字抽出装置。
3. A survey file having an answer column, an answer file entered in the answer column, a storage device for storing the file, etc., and matching of character strings before and after the answer column of the survey file and the answer file. An extraction processing unit for comparing and extracting a character or a character string entered in an answer column, wherein the extraction processing unit includes a response column in a case where extra characters are included before and after the answer column in the answer file. A character or character string entered in an answer column is extracted by a symbol indicating the following.
【請求項4】 回答欄を設けた調査ファイルと、 回答欄に記入した回答ファイルと、 前記ファイル等を格納する記憶装置と、 前記調査ファイルと前記回答ファイルの回答欄の前後の
文字列をマッチング比較し、回答欄に記入された文字又
は文字列を抽出する抽出処理部とを備え、 前記抽出処理部は、前記調査ファイルと回答ファイルで
全角と半角の関係が合わない文字があれば、どちらかの
文字に統一して、回答欄に記入された文字又は文字列を
抽出することを特徴とした記入文字抽出装置。
4. A survey file having an answer column, an answer file entered in the answer column, a storage device for storing the file and the like, and matching of character strings before and after the answer column of the survey file and the answer file. An extraction processing unit for comparing and extracting a character or a character string entered in an answer column, wherein the extraction processing unit determines which character in the survey file and the answer file does not match the full-width and half-width characters. An entry character extraction device characterized by extracting a character or a character string entered in an answer column by unifying the characters.
【請求項5】 回答欄を設けた調査ファイルと、 回答欄に記入した回答ファイルと、 前記ファイル等を格納する記憶装置と、 前記調査ファイルと前記回答ファイルの回答欄の前後の
文字列をマッチング比較し、回答欄に記入された文字又
は文字列を抽出する抽出処理部とを備え、 前記抽出処理部は、前記調査ファイルと前記回答ファイ
ル内の文字コードが異なっていた場合、どちらかのコー
ドに統一して、回答欄に記入された文字又は文字列を抽
出することを特徴とした記入文字抽出装置。
5. A survey file having an answer column, an answer file entered in the answer column, a storage device for storing the file and the like, and matching of character strings before and after the answer column of the survey file and the answer file. An extraction processing unit for comparing and extracting a character or a character string written in an answer column, wherein the extraction processing unit, when the character codes in the survey file and the answer file are different, one of the codes A character extraction device for extracting characters or character strings entered in an answer column.
JP15565095A 1995-05-31 1995-05-31 Entry character extraction device Expired - Lifetime JP2716077B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15565095A JP2716077B2 (en) 1995-05-31 1995-05-31 Entry character extraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15565095A JP2716077B2 (en) 1995-05-31 1995-05-31 Entry character extraction device

Publications (2)

Publication Number Publication Date
JPH08329115A JPH08329115A (en) 1996-12-13
JP2716077B2 true JP2716077B2 (en) 1998-02-18

Family

ID=15610606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15565095A Expired - Lifetime JP2716077B2 (en) 1995-05-31 1995-05-31 Entry character extraction device

Country Status (1)

Country Link
JP (1) JP2716077B2 (en)

Also Published As

Publication number Publication date
JPH08329115A (en) 1996-12-13

Similar Documents

Publication Publication Date Title
US10042828B2 (en) Rich text handling for a web application
JP4990302B2 (en) Data processing method, data processing program, and data processing apparatus
US20010054047A1 (en) Method and apparatus to the web via an ms print driver mechanism
US20040162842A1 (en) Computerized document processing apparatus, computerized document processing method
JP2004527041A (en) System and method for content delivery over a wireless communication medium to a portable computing device
JP2003015993A (en) Information processing apparatus and method thereof, recording medium and program
JP2002215519A (en) Method and system for web page generation, web page generating program, and recording medium
JP2716077B2 (en) Entry character extraction device
CN1973284A (en) Document processing method and device
JP2001125855A (en) Dynamic web page generation program
JP2001101036A (en) Method for storing and using log information
JP2003067421A (en) Information processing device, information processing method, recording medium and program
CN100385439C (en) Data processing device, data processing method, data processing program, and computer-readable recording medium containing the data processing program
US7685569B2 (en) Navigation in computer software applications developed in a procedural language
JP2763227B2 (en) Format determination method
JP2005043971A (en) Electronic document forming device, method, program, and storage medium
JP4187802B2 (en) Document creation device
JP4337309B2 (en) Browser device
US20030212959A1 (en) System and method for processing Web documents
JP2000067071A (en) Device and method for displaying document and record medium recorded with document display program
EP1628227A1 (en) Data processing device, data processing method, data processing program, and computer-readable recording medium containing the data processing program
JP2003006216A (en) Information processor, information processing method, recording medium, program, and electronic publishing data providing system
JP3453287B2 (en) Original text generation processor
JP2008171302A (en) Outline generation device, outline generation method and outline generation program
Combee et al. Palm OS Web Application Developers Guide: Including PQA and Web Clipping

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term