JPH03260879A - Recognizing device - Google Patents

Recognizing device

Info

Publication number
JPH03260879A
JPH03260879A JP2058042A JP5804290A JPH03260879A JP H03260879 A JPH03260879 A JP H03260879A JP 2058042 A JP2058042 A JP 2058042A JP 5804290 A JP5804290 A JP 5804290A JP H03260879 A JPH03260879 A JP H03260879A
Authority
JP
Japan
Prior art keywords
class
score
added
character
cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2058042A
Other languages
Japanese (ja)
Other versions
JP2710139B2 (en
Inventor
Masayuki Kimura
木村 正行
Hirotomo Aso
阿曽 弘具
Yutaka Katsuyama
裕 勝山
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2058042A priority Critical patent/JP2710139B2/en
Priority to CA002036974A priority patent/CA2036974C/en
Priority to US07/660,756 priority patent/US5214717A/en
Priority to EP19910102798 priority patent/EP0444593A3/en
Publication of JPH03260879A publication Critical patent/JPH03260879A/en
Application granted granted Critical
Publication of JP2710139B2 publication Critical patent/JP2710139B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To enhance speed of recognition by respectively calculating the distances between the pattern feature data and input feature data, respectively adding the outputs of respective serially connected class selecting means, calculat ing series corresponding to the feature data of the input pattern and determining the number of the pattern in the decreasing order of the scores. CONSTITUTION:Distance calculating means 2-1 to 2-3 calculate the distances of the feature vector and the feature vector previously stored in a memory 11. According to the size of the calculated result, class selecting means 3-1 to 3-3, 4-1 to 4-3 and 5-1 to 5-3 execute rearrangement. According to the re arrangement, score calculating means 6-1 to 6-3 allocate the points for the unit of a mass from the class number of for the unit of the stored mass, and when the point is coincident with the class number for the unit of a character to be stored in the second memory, the allocation and accumulation of the high score is started from the class number close to the serially connected class selecting means. A score sort means 7 rearranges the characters in the order starting from the high score, and the character assigned the highest score is defined as the recognized result. Thus, the processing can be made at high speed by carrying out processing in parallel.

Description

【発明の詳細な説明】 〔概   要〕 シストリンクアレイによって並列処理する認識装置に関
し、 処理を並列化して高速化を行う認識装置を提供すること
を百的とし、 パターンの特徴データとクラス分けした番号とを記憶す
る第1のメモリと、 記憶した値が入力した値と比較し
て、小さい時は該値をそのまま記憶して前記入力した値
を出力し、大きい時は記憶した値を出力して入力した値
を記憶する、直列接続された複数のクラス選出手段、と
、入力パターンの特徴データが共通に加わり、前記第1
のメモリで記憶する前記パターンの特徴データと前記入
力特徴データとの距離をそれぞれ計算し、前記直列接続
された複数のクラス選出手段の初段に対応して結果を加
える複数の距離計算手段と、前記直列接続されたそれぞ
れのクラス選出手段の出力がそれぞれ加わり、前記入力
パターンの特徴データに対応する得点を求める得点計算
手段と、該得点計1手段で得られる得点の高い順に前記
パターンの番号を求める得点ソート手段とより成るよう
に構成する。
[Detailed Description of the Invention] [Summary] Regarding a recognition device that performs parallel processing using a system link array, the objective is to provide a recognition device that parallelizes processing and speeds up processing, and classifies pattern feature data. A first memory that stores a number, and compares the stored value with the input value, and if it is smaller, it stores the value as it is and outputs the input value, and if it is larger, it outputs the stored value. a plurality of series-connected class selection means for storing inputted values; and feature data of the input pattern are commonly added to the first
a plurality of distance calculation means each calculating a distance between the feature data of the pattern stored in the memory of the input feature data and the input feature data, and adding the results corresponding to the first stage of the plurality of series-connected class selection means; a score calculation means which adds the outputs of the respective class selection means connected in series and obtains a score corresponding to the characteristic data of the input pattern; and a score calculation means which obtains the numbers of the patterns in descending order of the scores obtained by the score totaling means. It is configured to consist of a score sorting means.

〔産業上の利用分野〕[Industrial application field]

本発明は音声や文字等のパターンを認識する装置に係り
さらに詳しくはシストリックアレイによって並列処理す
る認識装置に関する。
The present invention relates to a device for recognizing patterns of speech, characters, etc., and more particularly to a recognition device that performs parallel processing using a systolic array.

〔従来の技術〕[Conventional technology]

コンピュータシステムの発展により、画像データを取り
込むとともに、取り込んだ画像データから文字を切り出
し、読み取った書類の文章のそれぞれの文字をmsする
読み取り装置が実用化している。この読み取り装置はた
とえばイメージスキャナ等によって読み取ったドツトデ
ータをあらかじめ定められた領域単位で分割し、その分
割内での文字(机内文字)とあらかじめ定められた文字
とを比較し、1番似にかよった文字を結果として出力し
ている。このあらかじめ定められたデータは一般的には
辞書メモリに格納されており、たとえば各規定の文字を
特徴化したデータとして辞書メモリは記憶している。そ
して認識すべき文字が入力した時、同様にその入力した
文字を特徴化し、前述の辞書メモリに格納されているあ
らかじめ定められた特徴データとの距離を求めている。
With the development of computer systems, reading devices have been put into practical use that capture image data, cut out characters from the captured image data, and scan each character of the text of the read document. This reading device divides the dot data read by an image scanner, etc. into predetermined areas, and compares the characters (desk characters) within each division with the predetermined characters to find the most similar one. The distorted characters are output as a result. This predetermined data is generally stored in a dictionary memory, and the dictionary memory stores, for example, data characterizing each prescribed character. When a character to be recognized is input, the input character is similarly characterized and the distance from the predetermined characteristic data stored in the dictionary memory is determined.

この求めた距離から最も小さい文字を認識結果として出
力している。
The smallest character from this determined distance is output as the recognition result.

前述のようなシステムにおいては、得られた特徴データ
とあらかじめ文字単位で記憶されている特徴データとの
距離を順次文字単位で求めている。
In the above-mentioned system, the distance between the obtained feature data and the feature data stored in advance for each character is determined sequentially for each character.

これらの特徴データは文字各部の特徴等を数値化した値
であり、2次元以上のマトリクスで記憶している。距離
を求める場合には個々の特徴点の値の差を求めた後2乗
加算している。そして、その得られた加算のうち小さい
ものを入力文字であるとしてそのコード等を出力してい
る。
These feature data are numerical values of the features of each part of the character, and are stored in a matrix of two or more dimensions. When calculating the distance, the difference between the values of individual feature points is calculated and then squared and added. Then, the smaller one of the obtained additions is regarded as the input character and its code etc. are output.

〔発明が解決しようとする課題〕 前述したあらかじめ格納しである特徴と、入力した文字
の特徴との距離を求め、その距離から文字等を求めよう
とした場合、あらかじめ記憶しである辞書と求めた特徴
との距離を文字単位で求めなければならない。この特徴
とは単なる1個の数値ではなく例えば2次元以上に配置
されたマトリクスであり、各特徴の距離を求める演算の
数は多大なものである。またこれらの距離は文字単位で
求めるため、距離の算出に多くの時間を有するという問
題を有していた。
[Problem to be solved by the invention] When trying to find the distance between the above-mentioned pre-stored feature and the feature of the input character and find the character etc. from that distance, it is difficult to find the distance between the pre-stored feature and the input character feature. It is necessary to find the distance to the feature in character units. This feature is not just a single numerical value, but is, for example, a matrix arranged in two or more dimensions, and the number of calculations required to determine the distance between each feature is large. Furthermore, since these distances are calculated on a character-by-character basis, there is a problem in that it takes a lot of time to calculate the distances.

また距離の最小値を求めるのも文字単位で行うため、さ
らに多くの時間を有するという問題を有していた。
Furthermore, since the minimum distance value is determined for each character, there is a problem in that it takes even more time.

本発明は処理を並列化して高速化を行う認識装置を提供
することを目的とする。
An object of the present invention is to provide a recognition device that parallelizes processing and speeds up processing.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

第1のメモリ1はパターンの特徴データとクラス分けし
た番号とを記憶するメモリである。
The first memory 1 is a memory that stores pattern characteristic data and class numbers.

クラス選出手段3−1〜3−3.4−1〜4−3.5−
1〜5−3は記憶した値が入力した値と比較して、小さ
い時は該記憶した値をそのままとして前記入力した値を
出力し、大きい時は記憶した値を出力して入力した値を
記憶する。このクラス選出手段3−1〜3−3.4−1
〜4−3.5−1〜5−3は直列接続されて、入力した
値を小さい順にならびかえるとともに、その値に対応す
るクラスを記憶する。距離計算手段2−1〜2−3は入
力特徴データが共通に加わり、前記第1のメモリで記憶
する前記パターンの特徴データと前記入力特徴データと
の距離をそれぞれ計算し、前記クラス選出手段にその結
果を加える。
Class selection means 3-1 to 3-3.4-1 to 4-3.5-
1 to 5-3 compare the memorized value with the input value, and if it is small, the memorized value is left as is and the input value is output, and when it is large, the memorized value is output and the input value is output. Remember. This class selection means 3-1 to 3-3.4-1
~4-3. 5-1 to 5-3 are connected in series to rearrange the input values in descending order and to store the class corresponding to the value. Distance calculation means 2-1 to 2-3 commonly add input feature data, calculate distances between the pattern feature data stored in the first memory and the input feature data, and send the distances to the class selection means. Add the results.

得点計算手段6−1〜6−3はクラス選出手段3−1〜
5−1.3−2〜5−2.3−3〜5−3の出力がそれ
ぞれ加わり、前記入力パターンの特徴データに対応する
得点を求める0例えばこの得点計算手段6−1〜6−3
は、文字単位でその文字が属するクラスを記憶する第2
のメモリに接続されており、前記クラス選出手段より入
力するクラスが当該文字の属するクラスであるかを判別
し、一致している時に直列接続されたクラス選出手段の
順番に対応して重み付けをして文字単位で累算する。得
点ソート手段7は、前記得点計算手段6−1〜6−3で
得られる得点の高い順に前記パターンの番号を求める。
Score calculation means 6-1 to 6-3 are class selection means 3-1 to
The outputs of 5-1.3-2 to 5-2.3-3 to 5-3 are added to calculate the score corresponding to the characteristic data of the input pattern. For example, the score calculation means 6-1 to 6-3
is a second function that stores the class to which each character belongs.
It determines whether the class inputted by the class selection means is the class to which the character in question belongs, and if they match, it weights it in accordance with the order of the class selection means connected in series. and accumulates character by character. The score sorting means 7 obtains the numbers of the patterns in descending order of the scores obtained by the score calculation means 6-1 to 6-3.

例えば得点ソート手段7は2個の入力を有し、該入力よ
り加わる得点の高い値を取り込むとともに該入力を加え
た前段のソートセルをリセットし、取り込んだ得点と次
段へ出力するソートセルを勝ち抜き槽底したものより威
る。
For example, the score sorting means 7 has two inputs, takes in the value of the higher score added from the input, resets the previous stage sort cell to which the input is added, and transfers the taken score and the sort cell to be output to the next stage into a winning tank. More powerful than the bottom.

〔作   用〕[For production]

距離計算手段2−1〜2−3に入力パターンの特徴デー
タである例えば特徴ベクトルが加わり、距離計算手段2
−1〜2−3はその特徴ベクトルとあらかじめ前記第1
のメモリ11に記憶しである特徴ベクトルとの距離を求
める。その結果の大小によりクラス選出手段3−1〜3
−3.4−1〜4−3.5−1〜5−3は並びかえを行
う0例えばパターンを分割したマス単位で行い、その値
に対応したクラスを記憶する。そして、その並べかえて
記憶したマス単位でのクラス番号から得点計算手段6−
1〜6−3は同様にマス単位で得点を割りつけるととも
に第2のメモリで記憶する文字単位でのクラス番号と一
致しているかを判別し、一致している時に直列接続され
た前記クラス選出手段の手段に近いものから高い得点を
割りつけ、累算する。得点ソート手段は高い順に並びか
え、例えば高い得点を有する文字を認識結果とする。
Feature data of the input pattern, such as a feature vector, is added to the distance calculation means 2-1 to 2-3, and the distance calculation means 2-3
-1 to 2-3 are the feature vectors and the first
The distance from the feature vector stored in the memory 11 of the vector is calculated. Class selection means 3-1 to 3 depending on the size of the result
-3.4-1 to 4-3.5-1 to 5-3 are rearranged. For example, the rearrangement is performed in units of squares into which the pattern is divided, and the class corresponding to the value is stored. Then, the score calculation means 6-
1 to 6-3 similarly allocate scores in units of squares and determine whether they match the class numbers in units of characters stored in the second memory, and if they match, select the classes connected in series. Assign higher scores to those closest to the means and accumulate them. The score sorting means sorts the characters in descending order, and takes, for example, the character with the highest score as the recognition result.

特徴ベクトルをマス単位で分割するとともにクラスわけ
して距離を求め、距離の値の小さいクラス1に属する文
字に得点を与えて、文字を認識しているので、文字単位
での距離計算量が少なく、処理を高速化できる。また、
クラス選出手段2−1〜5−3や得点計算手段6−1〜
6−3はシストリックアレイで槽底でき、処理をさらに
高速化できる。
Characters are recognized by dividing the feature vector into squares, dividing them into classes, calculating distances, and giving points to characters belonging to class 1, which has the smallest distance value, so the amount of distance calculation for each character is reduced. , processing can be sped up. Also,
Class selection means 2-1 to 5-3 and score calculation means 6-1 to
6-3 can be installed at the bottom of the tank using a systolic array, making it possible to further speed up the process.

〔実  施  例〕〔Example〕

以下図面を用いて本発明の詳細な説明する。 The present invention will be described in detail below using the drawings.

第2図は本発明の実施例のシステム構tc図である。FIG. 2 is a system configuration diagram of an embodiment of the present invention.

イメージスキャナ等によって読み取られた情報は画像デ
ータとして画像メモリ10に格納される。
Information read by an image scanner or the like is stored in the image memory 10 as image data.

この画像メモリ10はイメージスキャナで読み取る1頁
分の記憶容量を有しており、読み取った情報のそれぞれ
各ドツトを白あるいは黒の2値すなわち0.1のデータ
として記憶する。
This image memory 10 has a storage capacity for one page read by an image scanner, and stores each dot of read information as binary data of white or black, that is, 0.1 data.

画像メモリ10に格納された画像データはノイズ除去モ
ジュール11に加わり、読み取り時に発生した雑音を除
去する。例えば、このノイズ除去モジュール11によっ
て除去されるノイズは文字情報等に無関係な雑音例えば
3×3のマスクで中心を黒、その中心のドツトを囲む8
ドツトが白等の雑音であり、その中心のドツトをノイズ
除去モジュール11は白とする。このノイズ除去モジュ
ールは文字vl識前処理部12内に設けているがこれに
限るわけでなく、例えば後述する正規化モジュール16
内に文字単位で格納する時に行ってもよく、またさらに
は細線化、線素化の時に行ってもよい。
The image data stored in the image memory 10 is applied to a noise removal module 11 to remove noise generated during reading. For example, the noise removed by this noise removal module 11 is noise unrelated to character information, etc. For example, a 3 x 3 mask with a black center and 8 dots surrounding the center dot.
The dots are noises such as white, and the noise removal module 11 makes the dots in the center white. This noise removal module is provided in the character vl pre-recognition processing unit 12, but is not limited thereto; for example, the normalization module 16 described later
This process may be performed when storing each character in a file, or may be performed when thinning lines or forming line elements.

ノイズ除去モジュール11によってノイズ除去された画
像情報は行ヒストグラムモジュール13、列ヒストグラ
ムモジュール14、さらには読み出し制御モジュール1
5に加わる。行ヒストグラムモジュール13は読み取っ
た情報、例えば前述したイメージスキャナによって読み
取った用紙の内容を各ドツト単位で列方向に投影し、各
ドツト単位の行のドツト数を求めるモジュールである。
The image information from which noise has been removed by the noise removal module 11 is sent to the row histogram module 13, the column histogram module 14, and further to the readout control module 1.
Join 5. The row histogram module 13 is a module that projects the read information, for example, the content of the paper read by the above-mentioned image scanner, in the column direction in units of dots, and calculates the number of dots in the row for each dot unit.

すなわち、1ドツトの行(横方向)に対し、その1ドツ
ト行にいくつの黒ドツトが存在するかを各1ドツト行単
位で求める処理である。また列ヒストグラム14は前述
した行ヒストグラムと同様に列方向に対し投影し、その
投影した黒ドツトの数を求める処理である。
That is, this is a process of determining how many black dots are present in each one-dot row (horizontal direction) for each one-dot row. Also, the column histogram 14 is a process of projecting in the column direction in the same way as the row histogram described above, and calculating the number of projected black dots.

画像メモリ10から行方向に順次1ドツト単位で読み出
し、ノイズ除去モジュール11を介して加わったデータ
(ラスタースキャンと同様のドツトの読み出し)を、行
ヒストグラムモジュール13は順次具のドツトをカウン
トする(1ドツト行分)、そして、順次行単位で黒のド
ツト数を求める。この黒のドツト数が各行に対応する行
ヒストグラムとなる。また列ヒストグラム14は1ドツ
ト行内のドツト数に対応してそれぞれカウンタを有し1
行のドツトが順次加わる度に黒ドツトに対応するカウン
タをインクリメントする。前述した動作を1頁分行うこ
とにより行ヒストグラムモジュール16ならびに列ヒス
トグラムモジュール14からは、それぞれ行位置ならび
に列位置に対するドツト数を表したいわゆる行ヒストグ
ラム、列ヒストグラムが求められる。そしてその結果は
読み出し制御モジュール15に加わる。
The row histogram module 13 sequentially counts the dots of the tool (1 dot by 1 dot) and adds the data through the noise removal module 11 (reading of dots similar to raster scanning) from the image memory 10 in the row direction. (dot rows), and then calculate the number of black dots in each row. The number of black dots becomes the row histogram corresponding to each row. The column histogram 14 also has counters corresponding to the number of dots in one dot row.
Each time a dot is added to a row, the counter corresponding to the black dot is incremented. By performing the above-described operations for one page, the row histogram module 16 and the column histogram module 14 obtain so-called row histograms and column histograms representing the number of dots for each row position and column position, respectively. The result is then applied to the read control module 15.

読み出し制御モジュール15はそれらの行ヒストグラム
、列ヒストグラムから行の位置ならびに列の位置を順次
水める0例えばこの位置は行ヒストグラムの周期や列ヒ
ストグラムの周期によって得ることができる。
The readout control module 15 sequentially determines the row and column positions from the row histogram and column histogram. For example, this position can be obtained by the period of the row histogram or the period of the column histogram.

読み出し制御モジュール15は行ならびに列の位置を求
めるが、この他に以下の処理を行う。画像データ例えば
イメージスキャナから読みとった情報は紙の位置等によ
り傾きを有することがある。
The read control module 15 determines the row and column positions, but also performs the following processing. Image data, for example, information read from an image scanner, may have a tilt depending on the position of the paper and the like.

このため、読み出し制御モジュール15は列ヒストグラ
ムならびに行ヒストグラムが最大値をとるよう、ヒスト
グラムを求める角度を順次変更し、補正角度を求める。
For this reason, the readout control module 15 sequentially changes the angle at which the histogram is obtained so that the column histogram and the row histogram take the maximum value, and obtains a correction angle.

そして前述したノイズ除去モジュール11から加わる画
像情報を再度入力して、最終的なヒストグラムを求め、
その補正した傾きにより得られた行ヒストグラム(ヒス
トグラムが最大値をとる)がOから正に変化する点(正
から0でも可)より1周期分その傾きに対応した1行の
データを読み出し、読み出し制御モジュール15内に設
けられた行バッファに格納する。
Then, input the image information added from the above-mentioned noise removal module 11 again to obtain the final histogram,
From the point where the row histogram obtained by the corrected slope (the histogram takes the maximum value) changes from 0 to positive (possible to 0), read out one row of data corresponding to the slope for one period. The data is stored in a row buffer provided within the control module 15.

読み出し制御モジュール15はさらにその行バッファに
格納した1行のデータの内、行内における列ヒストグラ
ムを再度求め、列ヒストグラムが0から正に変化する位
置からそのデータを切り出し正規化モジュール16に出
力する。また変換表作成モジュール17にも出力する。
The read control module 15 further obtains the column histogram within the row of one row of data stored in the row buffer, cuts out the data from the position where the column histogram changes from 0 to positive, and outputs it to the normalization module 16. It is also output to the conversion table creation module 17.

この切り出したデータは1文字領域のデータである。This extracted data is data for a single character area.

変換表作成モジュール17は正規化モジュール16によ
って1文字を正規化するための変換データを求めるモジ
ュールであり、読み出し制御モジュール15によって切
り出した1文字領域に対し、列方向ならびに行方向に投
影し、黒ドツトが存在する列ならびに行からドツト単位
(行や列単位)で、列ならびに行方向のカウンタをイン
クリメントし、1文字の領域内の最終値までの値を求め
る。
The conversion table creation module 17 is a module that obtains conversion data for normalizing one character by the normalization module 16. It projects the conversion data in the column direction and the row direction on the one character area cut out by the readout control module 15, and The counters in the column and row directions are incremented dot by dot (row and column) from the column and row where the dot exists, and the value up to the final value within the area of one character is determined.

正規化モジ・ニール16では、この1文字で切り出した
ドツトの行方向並びに列方向の最終値並びに切り出した
1文字の大きさから、その文字が切り出し領域内の全域
にわたって存在する文字に拡大する。例えば64X64
ドツトの領域を1文字領域とする拡大処理を行う。文字
の列方向並びに行方向の値が変換表作成モジュール17
において48(列並びに行とも)ドツトであったならば
、48ドツトの文字を64ドツトに変換する処理を行う
。この処理では特定位置の行や列のデータを繰り返して
同じデータとし文字を拡大する。また、縮小の場合には
特定位置の行や列を繰り返し読み出してOR加算し同一
行や同−例として縮小する。
In the normalization module 16, the character is enlarged from the final values in the row and column directions of the dot cut out for one character and the size of the cut out one character to a character that exists over the entire area within the cutout area. For example 64X64
An enlargement process is performed to make the dot area into one character area. The column direction and row direction values of characters are converted to conversion table creation module 17.
If there are 48 dots (both columns and rows), processing is performed to convert the 48-dot character to 64 dots. In this process, data in a row or column at a specific position is repeated to make the same data and enlarge the characters. Furthermore, in the case of reduction, rows and columns at specific positions are repeatedly read out and ORed together to reduce them as the same row or example.

正規化モジュール16によって1文字領域例えば64X
64ドツト内に1文字が拡大された後は、細線化モジュ
ール18がその文字を細線化する処理を行う。この細線
化モジュール18では中心ドツトの上下左右1ドツト(
3X3)とさらにその左1ドツトと中心からの上2ドツ
ト目の合計11ドツトのマスクで細線化処理を行う。ま
たこのマスクは3×3の9ドツトで行うこともできる。
The normalization module 16 allows one character area, for example 64X
After one character has been enlarged within 64 dots, the thinning module 18 performs a process of thinning the character. In this thinning module 18, one dot (top, bottom, left and right) of the center dot (
3.times.3), one dot to the left, and two dots above from the center, for a total of 11 dots to perform thinning processing. This mask can also be formed using 9 dots of 3×3.

前述のマスクによってあらかじめ決められたパターンで
あるときに中心ドツトを0とする制御により1回の処理
によって文字を構成するドツトの1ドツト分の回りの細
線化が図れる。このマスクの細線化を順次繰り返すこと
により1ドツトの線による文字とすることができる。
By controlling the center dot to be 0 when the pattern is predetermined by the mask described above, thinning of the area around one dot forming a character can be achieved in one process. By sequentially repeating thinning of this mask, a character can be formed by a one-dot line.

細線化モジュール18によって得られた例えば64X6
4ドツトの細線化文字は線素化モジュール19に加わり
線素化される。この線素化モジュールでは目的のドツト
すなわち中心ドツトから上下方向の黒ドツトが存在する
場合、ならびに左右方向に存在する場合、右上、左下に
存在する場合、さらには左上、右下に存在する場合の合
計4種類の線素によって各ドツトを表す。なお上述の4
種類の内、複数に属する場合には例えば、上下方向、続
いて左右方向等の順に優先化を行い、各ドツト単位でそ
の線素がどちらの方向の存在するかを求める。なお中心
がOドツトすなわち白であった場合には線は存在しない
とする。
For example, 64×6 obtained by the thinning module 18
The 4-dot thinned character is added to the line segmentation module 19 and converted into line segments. In this line elementization module, when there are black dots in the vertical direction from the target dot, that is, the center dot, when there are black dots in the horizontal direction, when there are black dots in the upper right and lower left, and when there are black dots in the upper left and lower right, Each dot is represented by a total of four types of line elements. In addition, the above 4
If the line element belongs to more than one of the types, priority is given in the order of, for example, the vertical direction, then the horizontal direction, etc., and in which direction the line element exists is determined for each dot. Note that if the center is an O-dot, that is, white, it is assumed that no line exists.

線素化モジュール19においては、上下、左右、右上が
り斜め、左上がり斜めの4方向さらには線素が存在しな
い場合の5種類があるので、その状態を各ドツト単位で
3ビツトの値で表し、合計3X64X64の情報とし、
特徴ベクトルモジュール20に加える。
In the line segmentation module 19, there are four directions: up and down, left and right, diagonally upward to the right, diagonally upward to the left, and five types, including the case where there is no line element, so the state is expressed as a 3-bit value for each dot. , a total of 3X64X64 information,
Add to feature vector module 20.

特徴ベクトルモジュール20においては前述した線素化
モジュール19で得られた線素化情報を、左右上下にそ
れぞれ8ドツト単位で分割し、その分割した領域を下と
右方向に1M域づつ(2×2領域)の合計16ドツトの
領域を1ベクトルモジユール領域とし、その1ベクトル
モジユール領域内にいくつの上下方向、左右方向、右上
方向、左上方向の4方向の線素が存在するかをカウント
する。16X16ドツトの領域を1ベクトルモジユール
領域として特徴ベクトルを求めるが、この1ベクトルモ
ジユール領域は8ドツト単位で移動させるので行方向な
らびに列方向に対しそれぞれ7領域であり合計7×7の
特徴ベクトルの領域となる。
The feature vector module 20 divides the line segmentation information obtained by the line segmentation module 19 described above into units of 8 dots in the left, right, top, and bottom, and divides the divided areas into 1M areas (2× 2 areas) with a total of 16 dots as one vector module area, and count how many line elements exist in four directions: up and down, left and right, upper right, and upper left. do. A feature vector is calculated using a 16x16 dot area as one vector module area, but since this one vector module area is moved in units of 8 dots, there are 7 areas in each of the row and column directions, resulting in a total of 7 x 7 feature vectors. This is the area of

特徴ベクトル化モジュール20においては前述した1領
域単位でその方向の数を求めているが、この数の求める
場合にはそれぞれ重み付けをし、中心部を高く周り部を
外にいくにしたがって低くしている。例えばその重み付
けを中心の4×4の領域の各ドツトを重み4、その周り
の2ドツト分の各ドツトを3、さらにその周りの2ドツ
ト分の各ドツトを2、さらにその回りの2ドツト分の各
ドツトを1とし、重み付けを行って特徴ベクトルを求め
る。
In the feature vectorization module 20, the number of directions is calculated for each area as described above, but when calculating this number, weighting is applied to each area, with the center being higher and the surrounding areas being lower as they move outward. There is. For example, each dot in the 4 x 4 area centered on the center is given a weight of 4, each of the two dots around it is given a weight of 3, each of the two dots around it is given a weight of 2, and then the two dots around it are given a weight of 4. Each dot is set to 1, weighting is performed, and a feature vector is determined.

この特徴ベクトルは特定の認識すべき文字を正規化モジ
ュール16によってすべて同じ大きさにしているので、
同一文字であるならばほぼ同一の特徴ベクトルを有し、
文字単位でその特徴ベクトルは異なってくる。しかしな
がら非常によく似たモジュールも存在するので、本発明
の実施例においては演算の処理の高速化さらには認識率
の向上をはかるため、予め辞書を特徴ベクトルの標準パ
ターンを用いてそれぞれの特徴ベクトル化領域すなわち
マス内でクラス分けを行い、各マス内で20クラスの標
準パターンと、加わる未知入力との距離を求める。すな
わち標準パターンの各マス内の特徴ベクトルと特報ベク
トルモジュール20によって得られたマス内の特徴ベク
トルとの領域との距離をマス単位で求める。その各マス
はクラス分け(クラス1〜クラス20)されており、各
マス内クラスの距離の順位を距離の小さい順に第5番目
までのクラスを求める。
This feature vector has specific characters to be recognized all made the same size by the normalization module 16, so
If they are the same character, they have almost the same feature vector,
The feature vector differs for each character. However, since there are modules that are very similar, in order to speed up the calculation process and improve the recognition rate, in the embodiment of the present invention, a dictionary is created in advance using a standard pattern of feature vectors, and each feature vector is Classification is performed within the transformed region, that is, the square, and the distance between the 20 class standard patterns and the added unknown input within each square is determined. That is, the distance between the feature vector in each square of the standard pattern and the feature vector in the square obtained by the special notice vector module 20 is determined for each square. Each of the squares is divided into classes (classes 1 to 20), and the distance ranking of the classes within each square is determined in descending order of distance to the fifth class.

距離計算モジュール21はこの距離をクラス辞書23−
1 (標準パターンをクラス単位で記憶)を用いて演算
する。尚、個別でもその個々の候補文字に対して求める
場合には候補辞書23−2を用いる(この時にはスイッ
チSWは候補辞書23−2を選択する)。
The distance calculation module 21 stores this distance in the class dictionary 23-
1 (standard patterns are stored in class units). Note that when searching for individual candidate characters, the candidate dictionary 23-2 is used (at this time, the switch SW selects the candidate dictionary 23-2).

上位選出&得点割当モジュール22では前述の上位5ク
ラスを求めるとともに、各クラスに対応した得点を各マ
ス単位で決定する。すなわち上位選出&得点割当モジュ
ール22は距離計算モジュール21より得られた距離か
らクラス単位で順位の第1〜第5番目の各クラスに対し
与える得点を決定し、それぞれのクラスに属する文字の
得点を求める。例えば第1番目の距M(短い距離)であ
ったときには5点その次の4点、3,2.1とクラスに
対し得点を与える。これはマス1からマス49に対応し
てそれぞれ設けられる。上位選出得点モジュール22の
処理結果は総合評価モジュール24に加わる。
The top selection and score allocation module 22 determines the top five classes mentioned above and determines the score corresponding to each class for each square. That is, the top selection & score assignment module 22 determines the score to be given to each of the first to fifth classes in the class based on the distance obtained from the distance calculation module 21, and calculates the score of the characters belonging to each class. demand. For example, when the first distance is M (short distance), points are given to the class as 5 points, followed by 4 points, 3, 2.1, and so on. These are provided corresponding to squares 1 to 49, respectively. The processing results of the top selection score module 22 are added to the comprehensive evaluation module 24.

総合評価モジュール24は入力対象すなわち入力文字と
その候補とが整合する度合いを計算するものであり、連
想整合モード、全数整合モード、個別整合モードの3種
類の動作がある。
The comprehensive evaluation module 24 calculates the degree of matching between an input object, that is, an input character and its candidate, and has three types of operation: an associative matching mode, an exhaustive matching mode, and an individual matching mode.

連想整合モードは、連想辞書23−3に格納されている
候補に対応したマスクとその属するクラスからその候補
の得点を計算するモードである。
The associative matching mode is a mode in which the score of a candidate is calculated from the mask corresponding to the candidate stored in the associative dictionary 23-3 and the class to which the candidate belongs.

連想辞書は第2図(ハ)の如く、各マスク毎に候補ID
をアドレスとして、その候補がそのマスクにおいて属す
るクラスのクラスIDを格納している。
As shown in Figure 2 (c), the associative dictionary has a candidate ID for each mask.
The class ID of the class to which the candidate belongs in the mask is stored, using the address as the address.

このデータは、各候補のマスクIDに対応するCd1m
次元の部分ベクトルの集合をその(重み付き)距離によ
ってクラスタリングして得られるものであり、結果だけ
が連想辞書に格納される。
This data is Cd1m corresponding to the mask ID of each candidate.
It is obtained by clustering a set of dimensional subvectors according to their (weighted) distances, and only the results are stored in an associative dictionary.

同時に距離計算モジュールにおけるクラス辞書23−1
も対応して作成される。
Class dictionary 23-1 in the distance calculation module at the same time
is also created correspondingly.

尚、連想辞書23−3とクラス辞書23−1は対応して
おり、その種類は同じになる。2種類以上の辞書を1つ
のメモリに格納する場合、使用辞書指定は辞書参照開始
位置となる。(この辞書を候補IDについて分割して、
それぞれについて並列に総合評価を行うことができ、よ
り高速なものが要求される場合容易に実現できる)。
Note that the associative dictionary 23-3 and the class dictionary 23-1 correspond to each other and have the same type. When storing two or more types of dictionaries in one memory, the specification of the dictionary to be used becomes the dictionary reference start position. (Divide this dictionary into candidate IDs,
Comprehensive evaluation can be performed for each in parallel, and if higher speed is required, it can be easily achieved).

連想辞書23−3は、候補aがマスクmで属するクラス
のクラスID:Kを記した表であり、これをC(m、a
)=にと表すと、候補a(=1〜c  cand)に対
して、 で得られる。尚、ここでP (m、k)は得点を表して
いる。この式により候補aに対する総合評価値V (a
)を得る。
The associative dictionary 23-3 is a table in which the class ID: K of the class to which candidate a belongs with mask m is written.
)=, then for candidate a (=1 to c cand), it is obtained as follows. Note that P (m, k) represents the score here. Based on this formula, the overall evaluation value V (a
).

総合評価モジュールの全数整合モード、個別整合モード
は各候補に対し、計算するモードであり。
The total matching mode and individual matching mode of the comprehensive evaluation module are modes in which calculations are made for each candidate.

全数整合モードはa=1〜c  cand、個別整合モ
ードはJ=1−c  k ind、a=b(j)とし、
距離をd (m、a)で表し を求める。この値V (a)は候補aと入力対象との特
徴ベクトル(重み付き)距離である。
For the complete matching mode, a=1 to c can, for the individual matching mode, J=1-ck ind, a=b(j),
Find the distance expressed as d (m, a). This value V (a) is the feature vector (weighted) distance between candidate a and the input target.

上位候補選出モジュール25は各文字対応での上位から
決められた複数の文字例えば5文字を選出し出力する。
The top candidate selection module 25 selects and outputs a plurality of characters, for example, five characters determined from the top in each character correspondence.

この上位5文字が読みとった画像データにおける認識結
果となる。
The top five characters become the recognition result in the read image data.

前述した動作は全てパイプライン処理で威されるもので
ある。すなわち画像データを記憶する画像メモリ10内
の例えば1頁分のデータをパイプライン処理のよって読
み出し、制御モジュール15で行単位に分割するととも
に、正規化モジュール16に1文字単位で出力する。そ
の文字車で前述の細線化、vA素化、特徴ベクトル化さ
らには認識処理を行う。
All of the operations described above are performed by pipeline processing. That is, data for one page, for example, in the image memory 10 that stores image data is read out by pipeline processing, divided into lines by the control module 15, and outputted to the normalization module 16 in units of characters. The character wheel is subjected to the above-mentioned thinning, vA atomization, feature vectorization, and recognition processing.

上位選出モジュール25は総合評価値に基づいて、候補
に順位をつけ、上位5個を選出するものであり、入力は
連想全数整合モードであるならば((aZ V(a)I
a’、 a = I 〜c  candを修正したもの
) 個別整数台モードであるならば ((j、 v(aNj □ 1〜c  kind、 a
 = b (j))(個別整合の総合評価出力) ′f4/昇順:(文字連想2大きい順、その他;小さい
順)である、また出力は入力のソート結果の順に並んだ
候補■D(または入力順序)とその総合評価値である。
The top selection module 25 ranks the candidates based on the overall evaluation value and selects the top five.If the input is in the associative total matching mode ((aZ V(a)I
a', a = I ~ c cand) If it is the individual integer unit mode ((j, v (aNj □ 1~c kind, a
= b (j)) (Comprehensive evaluation output of individual matching) 'f4/Ascending order: (Character association 2 Largest order, Others; Smallest order), and the output is the candidates ■D (or (input order) and its overall evaluation value.

第3図は本発明の実施例のクラス選、出を行うセル構造
図Njllの構成国である。標準パターンは認識処理部
26内のベクトル辞書27のクラス辞書23−1に格納
されており、前述の特徴ベクトル化モジュール20で述
べたように合計49のマス単位で20に分類した文字の
特徴パターンをクラス単位で記憶している。標準パター
ンとは例えば1、IIS第1水準の漢字2965文字を
分類して各マス単位でクラスlからクラス20に分けた
単位である。換言するならば、各文字の特徴をマス単位
で分け(49マス)、各マス単位で似通った特徴を合わ
せて20分M(20クラス)に分けたものである。この
ため、後述するが、各文字が属するマス単位でのクラス
を記憶する連想辞書23−3を必要とする。しかしなが
ら、この辞書は各文字が属するマス単位でのクラスを記
憶するのみでよく、文字単位での特徴を記憶する候補辞
書と比べ、容量は少なくてよい。
FIG. 3 shows the constituent countries of the cell structure diagram Njll for performing class selection and exit according to the embodiment of the present invention. The standard patterns are stored in the class dictionary 23-1 of the vector dictionary 27 in the recognition processing unit 26, and are character feature patterns classified into 20 groups with a total of 49 squares as described in the feature vectorization module 20 above. are memorized by class. The standard pattern is, for example, a unit in which 2,965 IIS first-level kanji characters are classified and divided into classes 1 to 20 for each square. In other words, the characteristics of each character are divided into squares (49 squares), and the similar features in each square are divided into 20 minutes M (20 classes). For this reason, as will be described later, an associative dictionary 23-3 is required that stores classes in units of squares to which each character belongs. However, this dictionary only needs to store the class in units of squares to which each character belongs, and has a smaller capacity than a candidate dictionary that stores characteristics in units of characters.

第3図の本発明の実施例においてはこのマス単位でそれ
ぞれ並列に距離計算セルが未知入力に対する距離を計算
する。すなわちマス1用からマス49用(Ml〜M49
)に対応して距離計算セルに1〜に49を設けである。
In the embodiment of the present invention shown in FIG. 3, distance calculation cells calculate distances to unknown inputs in parallel for each cell. That is, from square 1 to square 49 (Ml to M49
), numbers 1 to 49 are provided in the distance calculation cells.

マスl用がらマス4 。Square 4 for square 1.

9用の標準パターン(各20クラス)を記憶する記憶装
置はメモリであり、メモリM1の出力は距離計算セルに
1に、メモリM2の出力は距離計算出力に2に、・・・
メモリM49の出力は距離計算セルに49に加わってい
る。距離計算セルKl〜に49には他に各マス単位での
未知入力がそれぞれ加わっており、未知入力の特徴ベク
トルと標準パターンの特徴ベクトルとの距離を距離計算
セルに1〜に49はそれぞれ求める。
The storage device that stores the standard patterns for 9 (20 classes each) is a memory, the output of the memory M1 is 1 for the distance calculation cell, the output of the memory M2 is 2 for the distance calculation cell, etc.
The output of memory M49 is added to distance calculation cell 49. In addition, unknown inputs for each cell are added to distance calculation cells Kl~ and 49, and the distances between the feature vector of the unknown input and the feature vector of the standard pattern are calculated in distance calculation cells 1 to 49, respectively. .

本発明の実施例においては特徴ベクトル化モジュール2
0において得られる特徴ベクトルは7×7の合計49の
特徴ベクトルであり、距離計算セルに1〜49には20
クラスに対してそれぞれ個々の距離を求めることとなる
In the embodiment of the present invention, the feature vectorization module 2
The feature vectors obtained in 0 are 7 x 7, a total of 49 feature vectors, and the distance calculation cells 1 to 49 have 20 feature vectors.
Individual distances will be found for each class.

第4図は本発明の実施例の距離計算セルの回路構成図で
ある。標準パターンから縦、横、45゜135°のそれ
ぞれの方向の特徴ベクトル(重み付けをした合計値)の
未知入力値と標準パターン値が距離計算セルに加わる。
FIG. 4 is a circuit diagram of a distance calculation cell according to an embodiment of the present invention. Unknown input values and standard pattern values of feature vectors (weighted total values) in the vertical, horizontal, 45° and 135° directions from the standard pattern are added to the distance calculation cell.

標準パターンのデータ(メモリMl−M49より加わる
)並びに未知入力データ(特徴ベクトル化モジュール2
0より加わる)はそれぞれの方向に対応し引き算器SU
1〜SU4に加わる。それぞれの引き算器SUI〜SU
4の入力Aには標準パターンのそれぞれの方向の値が、
入力Bには未知入力のそれぞれの方向の値が加わり、こ
の引き算器SUI〜SU4によって各方向の求めた値の
差が出力される。この値は例えば9ビツトの値であり、
引き算した結果も9ビツトとなる。これらの引き算器S
UI〜SU4の出力は掛は算器MXI〜MX4の入力端
子Aと入力端子Bに加わる。掛は算器MXI〜MX4は
入力Aと入力Bに加わる値を掛は算する回路であり18
ビツトの結果を出力する。尚、第4図における本発明の
実施例においては、入力A並びに入力Bには同し値を加
えているのでその出力は結果的には引き算器5UI−3
U4の次乗値となる。
Standard pattern data (added from memory Ml-M49) and unknown input data (feature vectorization module 2
) corresponds to each direction and is subtracted by SU
Join 1~SU4. Each subtracter SUI~SU
Input A of 4 contains the values of each direction of the standard pattern,
The values of unknown inputs in each direction are added to input B, and the subtracters SUI to SU4 output the differences between the values determined in each direction. This value is, for example, a 9-bit value,
The result of subtraction is also 9 bits. These subtractors S
The outputs of UI to SU4 are applied to input terminals A and B of multipliers MXI to MX4. Multipliers MXI to MX4 are circuits that multiply the values added to input A and input B, and are 18
Outputs the bit result. In the embodiment of the present invention shown in FIG. 4, the same value is added to input A and input B, so the output is eventually sent to subtracter 5UI-3.
It becomes the next power value of U4.

掛は算器MXI〜MX4の出力は加算器SMI。The outputs of the multipliers MXI to MX4 are sent to the adder SMI.

3M2に加わる。この加算器SMI、SM2は入力端子
A、入力端子Bに加わる値を加算する回路であり、掛は
算器MXIと掛は算器MX2の出力を加算器SMIは加
賞し、掛は算器MX3と掛は算器MX4の出力を加算器
SM2は加算し出力する。掛は算器MXI〜MX4の出
力は18ビツトであるので加算器SMI、SM2の出力
は19ビツトである。この加算器SMI、SM2の出力
は加算器SM3の入力端子A、入力端子Bに加わってい
る。この加算器SM3は同様に入力端子A。
Join 3M2. The adders SMI and SM2 are circuits that add values applied to input terminals A and B, and the adder SMI adds the outputs of the multiplier MXI and the multiplier MX2. The adder SM2 adds the output of the multiplier MX4 to MX3 and outputs the result. Since the outputs of multipliers MXI to MX4 are 18 bits, the outputs of adders SMI and SM2 are 19 bits. The outputs of the adders SMI and SM2 are applied to input terminals A and B of an adder SM3. This adder SM3 also has an input terminal A.

入力端子Bに加わる値を加算するものであり、この3つ
の加算器SMI、SM2.SM3によって掛は算器MX
、1〜MX4の値を加算している。前述した動作をまと
めるならば結果的には標準パターンと未知入力のそれぞ
れの方向の値の差を次乗し加算した結果が距離となる。
These three adders SMI, SM2 . Multiplication by SM3 is calculator MX
, 1 to MX4 are added. To summarize the above-mentioned operations, the distance is obtained by multiplying and adding the difference between the values of the standard pattern and the unknown input in each direction.

前述したごとくマス1〜マス49用のメモリ(Ml〜M
49)から出力された値と未知入力は個々に距離計算セ
ルに1〜に49で演算され距離DXが求められ出力され
る。尚、距離計算セルには図示しないがクラス番号も各
距離を求める時に制御回路より加わっており、制御回路
の指示によってメモリM1〜M49がクラスに対応した
領域をアドレスし、この時同時に距離計算セルが距離を
計算し出力する(DXI〜DX49)。それと同時にク
ラス番号も距離計算セルに1〜に49に加わっておりク
ラス番号をも距離計算セルは出力する。
As mentioned above, the memory for squares 1 to 49 (Ml to M
The value output from 49) and the unknown input are individually calculated in the distance calculation cells in steps 1 to 49, and the distance DX is determined and output. Although not shown, the class number is also added to the distance calculation cell by the control circuit when calculating each distance, and according to instructions from the control circuit, the memories M1 to M49 address the area corresponding to the class, and at the same time, the distance calculation cell is added to the distance calculation cell. calculates the distance and outputs it (DXI to DX49). At the same time, class numbers 1 to 49 are added to the distance calculation cell, and the distance calculation cell also outputs the class number.

距離計算セルに1は距MDX1とクラス番号CL1をク
ラス選出セルCXIIに出力する。またクラス選出セル
CXIIの出力はクラス選出セルCX12、同様にクラ
ス選出セルCX15まで順次出力する。
The distance calculation cell 1 outputs the distance MDX1 and class number CL1 to the class selection cell CXII. Further, the output of the class selection cell CXII is sequentially outputted to the class selection cell CX12 and similarly to the class selection cell CX15.

クラス選出セルCXII〜CX15は同一の回路であり
、距離を記憶するレジスタとクラス番号を記憶するレジ
スタとを有し、距離を記憶しているレジスタの値より入
力する距離の値が小さい時には、その値とクラス番号を
記憶すると共に今まで記憶している距離とクラス番号を
次のクラス選出セルに出力する。また大きい時にはレジ
スタの値を変化させず、次のクラス選出セルに出力する
Class selection cells CXII to CX15 are the same circuit, and have a register that stores the distance and a register that stores the class number.When the input distance value is smaller than the value of the register that stores the distance, The value and class number are stored, and the distance and class number stored so far are output to the next class selection cell. When the value is large, the register value is not changed and is output to the next class selection cell.

この動作によりクラス選出セルCXII〜CXl5は順
次値の小さいものから順次記憶する。またマス2用のク
ラス選出セルCX21〜CX25も、また同様にマス4
9用のクラス選出セルCX491〜CX495も同様で
ある。
By this operation, the class selection cells CXII to CX15 are stored in order from the lowest value to the lowest value. Similarly, the class selection cells CX21 to CX25 for square 2 are also
The same applies to the class selection cells CX491 to CX495 for 9.

第5図は前述のクラス選出セルの処理構成図である。入
力した距離af’は関数演算回路af、。
FIG. 5 is a processing block diagram of the above-mentioned class selection cell. The input distance af' is calculated by the function calculation circuit af.

a f、 、  a f4 、  a f、に加わる。Add to a f, , a f4, a f.

またクラス番号ag′は関数演算回路afg、afnに
加わる。
Further, the class number ag' is added to the function calculation circuits afg and afn.

関数演算回路af、の出力はレジスタarnに、関数演
算回路af−の出力はレジスタar、tに加わる。そし
て・レジスタar、の出力ad’は関数演算回路a f
t +  a fa *  a fn s レジスタa
r、。
The output of the functional arithmetic circuit af is applied to the register arn, and the output of the functional arithmetic circuit af- is applied to the registers ar,t. And, the output ad' of register ar is the function arithmetic circuit a f
t + a fa * a fn s register a
r.

の出力an’は関数演算回路af、、affiに加わる
The output an' is applied to the function calculation circuits af, , affi.

関数演算回路af、はレジスタar、が記憶する値ad
より入力した距@af’が小さい時には距11[af’
とし、それ以外の時にはad’を出力する関数である。
The function operation circuit af is the value ad stored in the register ar.
When the input distance @af' is smaller, the distance is 11 [af'
This is a function that outputs ad' at other times.

関数演算回路affiはもし入力する距離af’がレジ
スタar、で記憶する値ad′より小さい時には入力し
たクラス番号ag′を出力し、それ以外の時にはレジス
タar、が記憶するクラス番号an’を出力する。関数
演算回路jtはもし入力する距離af’がレジスタar
dで記憶する距@ad’小さい時にはこの距離ad’を
出力し、それ以外の時には加わる距離af’を出力する
。関数演算回路af、は出力agを、加わる距11[a
f’がレジスタar、で記憶するより小さい時an’と
し、さもなければ入力するクラス番号ag′を出力する
The function operation circuit affi outputs the input class number ag' if the input distance af' is smaller than the value ad' stored in the register ar, and otherwise outputs the class number an' stored in the register ar. do. If the input distance af' is in the register ar, the function calculation circuit jt
When the distance @ad' stored in d is small, this distance ad' is output, and at other times, the added distance af' is output. The function calculation circuit af converts the output ag into the added distance 11[a
When f' is smaller than what is stored in register ar, it is set as an'; otherwise, the input class number ag' is output.

以上のような関数演算回路af、、af、、afr、a
fgの動作により距離af’が加わり、以前記憶したレ
ジスタaraに格納されている値ad’より小さい場合
にはレジスタar4に新しい値af’を格納し、さらに
レジスタaraの出力ad’を間数演算回IIIafr
は出力する。またクラス番号も同様であり、レジスタa
r、で記憶する値ad’ と入力距離af’とを比較し
てレジスタar4に新しい値を記憶する時には、そのク
ラス番号をレジスタarnは記憶し、関数演算回路af
、は現在レジスタarllで記憶している値を出力ag
する。尚、関数演算回路aft、afeの出力にはレジ
スタaff、at、が設けられているが、これは第3図
に示すクラス選出セルを5段接続した場合、順次クロッ
ク単位でシフトさせるためのレジスタであり、クラス選
出セルCX11〜CX495は図示しないがクロックが
加わるたびにレジスタが関数演算回路aff、af、。
The above functional operation circuits af, , af, , afr, a
The distance af' is added by the operation of fg, and if it is smaller than the previously memorized value ad' stored in the register ara, the new value af' is stored in the register ar4, and the output ad' of the register ara is subjected to an interval calculation. times IIIafr
outputs. The class number is also the same, register a
When comparing the value ad' stored in r with the input distance af' and storing a new value in the register ar4, the register arn stores the class number, and the function calculation circuit af
, outputs the value currently stored in register all.
do. Note that the outputs of the functional operation circuits aft and afe are provided with registers aff and at, which are used to shift sequentially in clock units when five stages of class selection cells are connected as shown in FIG. Although class selection cells CX11 to CX495 are not shown, each time a clock is applied, the registers are changed to function operation circuits aff, af, and so on.

af+s、afaの出力を取り込む。Take in the output of af+s and afa.

第6図は本発明の実施例のクラス選出セルの回路構成図
である。第5図の処理構成図においてはそれぞれの関数
演算回路a ff +  a fg 、  a fg 
1afaが入力した距離と記憶しである距離との差を求
めているが、第6図の構成においては比較器CMPにお
いて記憶しである値と入力とを比較している。すなわち
レジスタFFIで記憶する値ad′が比較器CMP (
A−B)の入力端子Bに加わり、入力af’が入力端子
Aに加わる。比較器CMPは(入力端子Aに入力する値
−(入力端子Bに入力する値)を演算する回路であり、
上述したごとく入力端子Aに加わる入力した距Mar’
より入力端子Bに加わるレジスタFFIで記憶する距離
ad’が大の時に1を、またその逆の詩−・番ご′0を
゛出力する。レジスタFFIで記憶する距11ad′が
入力した距離af’より大の時には比較器CMPから1
が出力(S)されるので選択回路MUXの選択端子Sに
1が加わり、選択回路M U”Xはそれぞれ入力端子(
1)の入力を選択し出力する。すなわち比較器CMPが
lの時に選択回路MUXは入力f′を選択しレジスタF
FIに加える。
FIG. 6 is a circuit diagram of a class selection cell according to an embodiment of the present invention. In the processing configuration diagram of FIG. 5, the respective function calculation circuits a ff + a fg , a fg
1afa calculates the difference between the input distance and the stored distance, but in the configuration of FIG. 6, the comparator CMP compares the stored value and the input. In other words, the value ad' stored in register FFI is stored in comparator CMP (
A-B) is applied to input terminal B, and input af' is applied to input terminal A. The comparator CMP is a circuit that calculates (value input to input terminal A - (value input to input terminal B)),
As mentioned above, the input distance Mar' added to input terminal A
When the distance ad' stored in the register FFI added to the input terminal B is large, 1 is output, and vice versa, the poem/number '0' is output. When the distance 11ad' stored in the register FFI is greater than the input distance af', 1 is sent from the comparator CMP.
is output (S), so 1 is added to the selection terminal S of the selection circuit MUX, and the selection circuit M U''X has its input terminal (
1) Select and output the input. That is, when the comparator CMP is l, the selection circuit MUX selects the input f' and registers F.
Add to FI.

そして選択回路MUX2はクラス番号ag′を選択しレ
ジスタFF2に出力する。また、選択回路MUX3.M
UX4はレジスタFFI並びにレジスタFF2の出力を
選択し、レジスタFF3.FF4に加える。尚、入力す
なわち距離af’とクラス番号ag′が加わった後次の
クロックでレジスタFFI〜FF4は前述の動作により
選択したデータを取り込む。
Then, the selection circuit MUX2 selects the class number ag' and outputs it to the register FF2. In addition, the selection circuit MUX3. M
UX4 selects the outputs of registers FFI and FF2, and selects the outputs of registers FF3. Add to FF4. Incidentally, after the input, that is, the distance af' and the class number ag' are added, the registers FFI to FF4 take in the data selected by the above-described operation at the next clock.

一方比較器CMPの出力が0すなわち入力した距@af
’がレジスタFFIで記憶する距11ad’以上(S=
0)である時には、選択回路MUXI。
On the other hand, the output of the comparator CMP is 0, that is, the input distance @af
is greater than or equal to the distance 11ad' stored in register FFI (S=
0), the selection circuit MUXI.

MUX2は0の入力端子を選択する。よってレジスタF
FI、FF2の出力が選択回路を介しレジスタFFI、
FF2に加わる。また選択回路MUX3、MUX4から
入力した距離af’ とそのクラス番号ag′が選択さ
れレジスタF3、F4に加わる。この時クロ゛ツクCL
Kが加わるとレジスタFFI、FF2はそれぞれが記憶
する値を再度記憶するのでデータは変化せず、レジスタ
FF3、FF4は入・力した距Mar’ とそのクラス
番号ag′を記憶し出力する(af、ag)。
MUX2 selects the 0 input terminal. Therefore, register F
The outputs of FI and FF2 are passed through the selection circuit to the registers FFI and
Joins FF2. Further, the distance af' and its class number ag' inputted from the selection circuits MUX3 and MUX4 are selected and added to the registers F3 and F4. At this time, the clock CL
When K is added, registers FFI and FF2 store their respective stored values again, so the data does not change, and registers FF3 and FF4 store and output the input distance Mar' and its class number ag' (af , ag).

第6図のクラス選出セルは多段(5段)に設けられ距離
計算セルに1〜に49で求めた距離値とそのクラス番号
が順次別わる。この時各クラス選出セルでは直列に接続
されているので、第1番目に入る例えばクラス選出セル
CXII〜CX15では、クラス選出セルCXIIに最
小の距離とそのクラス番号がクラス選出セルCX12に
次の値が、順次同様に最小値から5番目での値とクラス
番号がクラス選出セルCXII〜CX15に格納される
こととなる。尚、イニシャル時には図示しないがレジス
タFFI〜FF4には最大の値が格納される。
The class selection cells in FIG. 6 are provided in multiple stages (5 stages), and the distance values calculated in steps 1 to 49 and their class numbers are sequentially different in the distance calculation cells. At this time, each class selection cell is connected in series, so in the first class selection cell CXII to CX15, for example, the minimum distance and its class number to the class selection cell CXII are set to the next value to the class selection cell CX12. However, the fifth value from the minimum value and the class number are sequentially stored in the class selection cells CXII to CX15. Incidentally, at the initial time, although not shown, the maximum value is stored in the registers FFI to FF4.

前述した動作によって入力した1文字単位での特徴が加
わり、距離計算モジュール21によりクラス辞書を用い
てマス単位での距離計算が求められる。そして上位選出
モジュール22により、各クラス単位で上位選出が威さ
れる。この上位選出モジュールは前述の第6図における
クラス選出セルによって構成されており、各クラス単位
での上位5クラスが選出される。すなわち上位選出モジ
ュール22のマス1〜マス49のそれぞれに対して求め
た距離の少ない上位5クラスをクラス選出セルCXll
−CX495は選出する。上位選出モジュール22にお
いて求めたマス単位での各クラス1〜5の結果はさらに
得点計算用の得点割出がなされ、順位別に得点が付加さ
れ総合評価モジュール24に加わる。
By the above-described operation, the characteristics of each input character are added, and the distance calculation module 21 calculates the distance in units of squares using the class dictionary. Then, the higher rank selection module 22 selects the higher rank for each class. This higher rank selection module is constituted by the class selection cells shown in FIG. 6 described above, and the top five classes in each class are selected. In other words, the top five classes with the shortest distances for each of squares 1 to 49 of the upper selection module 22 are selected as the class selection cell CXll.
-CX495 is selected. The results of each class 1 to 5 in units of squares obtained in the top selection module 22 are further calculated into points for score calculation, and points are added for each rank and added to the comprehensive evaluation module 24.

第7図は本発明の実施例の得点計算及びソートを行うセ
ル構造回路網の構成国である。総合モジュール24は得
点計算とソートを行うモジュールである。連想辞書23
−3にはクラス辞書に対応した文字単位でのクラス番号
が記憶されており、総合モジュール24はこの文字単位
でのクラス番号から文字単位での得点を求める。そして
上位候補選出モジュール25によって文字単位での得点
の高いものから上位5組を選出する。第7図のマス1用
得点計算セルMC1〜マス49用得点計算セルMC49
ならびに得点ソートセルTSI〜TS5はこの総合評価
モジュール24を構成している。前述の認識処理部26
が有する連想辞書23−3はベクトル辞書27内のクラ
ス辞書でクラス分けした番号に対応し、マス単位で各文
字例えばJIS第1水準の漢字2965文字に対してそ
れぞれクラス番号で記憶している。マス1用得点計算セ
ルMC1〜マス49用得点計算セルMC49は文字単位
での各文字の属するクラスに対して得点を割り当てる回
路である。すなわちマスl用クラス選出セルCXIIで
記憶するクラスに得点5を与える。またクラス選出セル
CX12に得点4、クラス選出セルCX13に得点3、
クラス選出セル14に得点2、クラス選出セルCX15
に得点1を割り当てている。そして先ずマス1の文字1
のクラス番号が連想辞書23−3から加わると、そのマ
ス1の文字1番目のクラス番号がクラス選出セルCXI
Iで格納しているクラス番号と一致しているかを判断す
る。一致している時には文字1の得点を5とする。また
一致していない時には、次のクラス選出セルCX12で
記憶するクラスに一致しているかを判別する。そして一
致している時には得点を4とする。また同様にクラス選
出セルCX12で記憶するクラス番号と一致していない
時にはクラス選出セルCX13で記憶するクラス番号と
一致するかを比較し、一致している時に得点を3とする
FIG. 7 shows the constituent countries of the cell structure network that performs score calculation and sorting according to an embodiment of the present invention. The comprehensive module 24 is a module that performs score calculation and sorting. Associative dictionary 23
-3 stores a class number for each character corresponding to the class dictionary, and the comprehensive module 24 calculates a score for each character from this class number for each character. Then, the top five candidates are selected by the top candidate selection module 25 based on the characters with the highest scores. Score calculation cell MC1 for square 1 to score calculation cell MC49 for square 49 in Figure 7
The score sorting cells TSI to TS5 constitute this comprehensive evaluation module 24. The aforementioned recognition processing section 26
The associative dictionary 23-3 of the vector dictionary 27 corresponds to the numbers classified into classes by the class dictionary in the vector dictionary 27, and stores the class numbers for each character, for example, 2965 JIS first level Kanji characters, in units of squares. The score calculation cell MC1 for square 1 to the score calculation cell MC49 for square 49 are circuits that allocate points to the class to which each character belongs on a character-by-character basis. That is, a score of 5 is given to the class stored in the class selection cell CXII for square I. Also, class selection cell CX12 has a score of 4, class selection cell CX13 has a score of 3,
Score 2 for class selection cell 14, class selection cell CX15
is assigned a score of 1. And first, letter 1 in square 1
When the class number is added from the associative dictionary 23-3, the class number of the first character in that cell 1 is added to the class selection cell CXI.
Determine whether it matches the class number stored in I. If they match, the score for character 1 is set to 5. If they do not match, it is determined whether they match the class stored in the next class selection cell CX12. If they match, the score is 4. Similarly, if the class number does not match the class number stored in the class selection cell CX12, it is compared to see if it matches the class number stored in the class selection cell CX13, and if they match, the score is set to 3.

同様に行うことによりクラス選出セルCXII〜クラス
選出セルCX15に対しそれぞれが記憶するクラス単位
でのその文字に対応するクラスが存在する時にその文字
に得点を割り当てている。
By doing the same, points are assigned to class selection cells CXII to CX15 when there is a class corresponding to the character stored in each class unit.

この処理はマス単位、すなわちマス1〜マス49に対し
それぞれマスl用得点計算セルMC1〜マス49用得点
計算セルMC49が実行し、マス49用得点計算セルM
C49からは文字順にすなわち文字1〜文字2965の
得点が順次出力される。
This process is executed for each square, that is, for squares 1 to 49, by score calculation cell MC1 for square 1 to score calculation cell MC49 for square 49, and score calculation cell M for square 49.
From C49, the scores of characters 1 to 2965 are output in character order.

尚、マス1用得点計算セルMCIで計算した結果にマス
2用得点計算セルMC2を加えるので辞書23−3から
出力する文字単位のクラス番号はマス単位でl演算処理
づつ遅れて加わる。すなわち第7図の辞書23−3は文
字単位で各マス用得点計算セルに順次遅れて加えており
、その結果マス1用得点計算セルMCIで第1文字目が
、その結果がマス2用得点計算セルに加わりその結果と
第1文字目の得点とがマス2用得点計算セルMC2で加
算され、さらに・・・と順に遅れて加わることにより、
結果的にマス49用得点計算セルMC49からは文字単
位での得点の合計値が出力される。
Since the score calculation cell MC2 for square 2 is added to the result calculated by the score calculation cell MCI for square 1, the class number of each character outputted from the dictionary 23-3 is added with a delay of l operation processing for each square. In other words, the dictionary 23-3 in Fig. 7 is added character by character to the score calculation cell for each square in sequence, and as a result, the first character in the score calculation cell MCI for square 1 is the score for square 2. By adding to the calculation cell, the result and the score of the first character are added in the score calculation cell MC2 for square 2, and then added later in order,
As a result, the total score for each character is output from the score calculation cell MC49 for square 49.

第8図は本発明の実施例の得点計算セルの処理構成図で
ある。第7図で示す如くマス単位でクラス番号が各マス
用の得点計算セルMCn (nは1〜49)に加わる。
FIG. 8 is a processing configuration diagram of a score calculation cell according to an embodiment of the present invention. As shown in FIG. 7, the class number is added to the score calculation cell MCn (n is 1 to 49) for each square.

すなわちクラス選出セルCnl−クラス選出セルCn5
において求めたクラス番号がマスn用得点計算セルMC
nに加わる。この得点計算セルMCnは辞書23−1よ
り加わるマスnのクラス番号bdがクラス選出セルCn
lより加わるクラス番号bb5と等しいかを判別し、等
しい時には前段のセルより加わる結果bP/に5を加え
る。また一致していない時は続いてクラス選出セルCn
4により加わるクラス番号bb4と辞書23より加わる
クラス番号bdとが等しいかを判別する。等しい時には
前段の得点計算セルより加わるbp′に4を加える0等
しくない時にはさらにクラス選出セルCn3より加わる
クラス番号bb3が辞書23より加わるクラス番号bd
と一致しているかを判別する。この判別において、一致
している時には前段より加わる結果bp’に3を加算す
る。また一致していない時にはクラス選出セルCn4よ
り加わるクラス番号bb2と辞書23より加わるクラス
番号bdが一致しているかを判断し、一致している時に
は前段より加わる結果bp′に2を加える。また一致し
ていないときにはさらにクラス選出セルCN5より加わ
るクラス番号bblと辞書23より加わるクラス番号b
dとを比較し、一致している時に前段より加わる結果b
p’に1を加える。また一致していない時にはそのまま
前段の結果bp’を出力する(bp)。以上のようなセ
ルを関数bf、は実行し、バッファb7を介して出力す
る。すなわちセルMCnの出力pは以下の演算式で与え
られる。
That is, class selection cell Cnl−class selection cell Cn5
The class number calculated in is the score calculation cell MC for square n.
join n. This score calculation cell MCn has the class number bd of the square n added from the dictionary 23-1 as the class selection cell Cn.
It is determined whether it is equal to the class number bb5 added from l, and if they are equal, 5 is added to the result bP/ added from the previous cell. If they do not match, continue with the class selection cell Cn.
It is determined whether the class number bb4 added from the dictionary 23 is equal to the class number bd added from the dictionary 23. If they are equal, add 4 to bp' added from the previous score calculation cell. If not equal, add class number bb3 from class selection cell Cn3. Class number bd added from dictionary 23.
Determine if it matches. In this determination, if they match, 3 is added to the result bp' added from the previous stage. If they do not match, it is determined whether the class number bb2 added from the class selection cell Cn4 and the class number bd added from the dictionary 23 match, and if they match, 2 is added to the result bp' added from the previous stage. If they do not match, the class number bbl is added from the class selection cell CN5 and the class number b is added from the dictionary 23.
d and when they match, the result b added from the previous stage
Add 1 to p'. If they do not match, the previous result bp' is directly output (bp). Function bf executes the above cell and outputs it via buffer b7. That is, the output p of cell MCn is given by the following calculation formula.

fl、: bp=if bb+==bd then b
pl  +5else if bb2.、 bd th
en bp’ +4else if bb3.、 bd
 then bp’  +3else if bb4.
、 bd then bp’ +2else if b
b5.、 bd then bp”+1else p’ 第8図においては得点計算を関数として表している。第
9図はさらに得点計算セルの詳細な回路構成図である。
fl,: bp=if bb+==bd then b
pl +5else if bb2. , bd th
en bp' +4else if bb3. , bd
then bp' +3else if bb4.
, bd then bp' +2else if b
b5. , bd then bp"+1else p' In FIG. 8, score calculation is expressed as a function. FIG. 9 is a further detailed circuit configuration diagram of the score calculation cell.

この第9図においては各回路をそれぞれ演算回路で構成
している。クラス選出セルCnl〜Cn5(前述と同様
nは1〜49)より加わるクラス番号bb5〜bblは
それぞれ5ビツトよりなる信号である(20クラスを用
いているので5ビツトで20クラスを表現する)。辞書
23より加わるクラス番号bdはそれぞれ5個の排他的
論理オアゲー)EOR1−EOR7に共通に加わる。ま
た排他的論理オアゲートEORI、EOR7の他方の入
力端子にはクラス選出セルCn1より加わるクラス番号
bb5が共通に加わる。
In FIG. 9, each circuit is composed of an arithmetic circuit. The class numbers bb5 to bbl added from the class selection cells Cnl to Cn5 (n is 1 to 49 as described above) are signals each consisting of 5 bits (20 classes are used, so 20 classes are expressed with 5 bits). The class number bd added from the dictionary 23 is added in common to each of the five exclusive logic OR games) EOR1 to EOR7. Furthermore, the class number bb5 added from the class selection cell Cn1 is commonly applied to the other input terminals of the exclusive OR gates EORI and EOR7.

排他的論理オアゲートEOR6にはクラス選出セルCn
2よりクラス番号bb4が加わる。また排他的論理オア
ゲートEOR2、EOR5にはクラス番号bb3が排他
的論理オアゲートEOR4にはクラス選出セルCn4よ
り加わるクラス番号b2が、排他的論理オアゲー)EO
R3の他方の入力にはクラスセルCn5よりクラス番号
bblが加わる。排他的論理オアゲー)EORI〜EO
R7はこれらの各クラス選出セルCn1〜Cn5より加
わる番号bbl〜bb5と辞書23より加わるクラス番
号bdとが一致しているか否かを比較する回路である。
The exclusive logic OR gate EOR6 has a class selection cell Cn.
Class number bb4 is added from 2. Furthermore, exclusive logic OR gates EOR2 and EOR5 have class number bb3, and exclusive logic OR gate EOR4 has class number b2 added from class selection cell Cn4.
The class number bbl is added from the class cell Cn5 to the other input of R3. Exclusive logic or game) EORI~EO
R7 is a circuit that compares the numbers bbl to bb5 added from each of these class selection cells Cn1 to Cn5 with the class number bd added from the dictionary 23 or not.

このそれぞれ5個よりなる排他的論理オアゲー)EOR
I〜EOR7の5ビツトの出力はノアゲー)NOR2〜
N0R6に加わる。
Exclusive logic or game consisting of 5 of these each) EOR
The 5-bit output of I~EOR7 is NOR2~
Join N0R6.

そして前述のノアゲートN0RI−NOR3はオアゲー
トORIにノアゲー)NOR4、N0R5の出力はオア
ゲー)OR2にノアゲー)NOR6、N0R1の出力は
オアゲー)OR3に加わる。
The aforementioned NOR gates N0RI-NOR3 are applied to the OR gate ORI, and the outputs of NOR4 and N0R5 are applied to OR2, and the outputs of NOR6 and N0R1 are applied to OR3.

辞書23より加わるクラス番号と例えばクラス選出セル
Cnlより加わるクラス番号b5が一致した場合には排
他的論理オアゲートEOR1、EOR7の出力が5ビツ
トともLレベルとなりノアゲートN0R1、N0R7の
出力はHレベルとなる。尚これ以外の排他的論理オアゲ
ー)EOR2〜EOR6はどれか1ビツト以上のビット
が異なっているので、各ノアゲー)NOR2〜N0R6
の入力にはそれぞれ1ビツト以上のHレベルが加わって
おり、これらのノアゲートN0R2〜N0R6の出力は
Lレベルとなる。この結果ノアゲー)NOR1とノアゲ
ートN0R7の出力がHレベルとなるので、オアゲー)
OR1、OR3の出力がHレベル、オアゲートOR2の
出力がLレベルとなる。
When the class number added from the dictionary 23 matches the class number b5 added from the class selection cell Cnl, for example, the outputs of exclusive OR gates EOR1 and EOR7 go to L level for all 5 bits, and the outputs of NOR gates N0R1 and N0R7 go to H level. . Note that the other exclusive logic OR games) EOR2 to EOR6 differ in one or more bits, so each NOR game) NOR2 to N0R6
One or more bits of H level are applied to each input, and the outputs of these NOR gates N0R2 to N0R6 become L level. As a result, the outputs of NOR1 and NOR gate N0R7 become H level, so the outputs of NOR1 and NOR gate N0R7 become H level.
The outputs of OR1 and OR3 are at H level, and the output of OR gate OR2 is at L level.

クラス選出セルCnlより加わるクラス番号b5とメモ
リ23より加わるクラス番号dとが一致した場合には、
前述した如くオアゲートOR1とオアゲートOR3がH
レベルとなるのでこの値が5となり加算回路SUMIに
加わる。
When the class number b5 added from the class selection cell Cnl and the class number d added from the memory 23 match,
As mentioned above, OR gate OR1 and OR gate OR3 are H.
This value becomes 5 and is added to the adder circuit SUMI.

またクラス選出セルCn2より加わるクラス番号b4と
メモリ23より加わるクラス番号dとが一致したときに
、排他的論理オアゲートEOR6の出力はすべてLレベ
ルとなるのでノアゲー)NOR6の出力がHとなり他は
すべてLとなる。この結果3ビツトよりなるオアゲー)
OR3〜OR1の出力が4を表す値となる。またクラス
選出セルCn3より加わるbb3と辞書23より加わる
クラス番号bdとが一致した場合には、排他的論理オア
ゲー)EOR2と排他的論理オアゲートEOR5の出力
がすべて0となり、この結果が加わるノアゲートN0R
2、N0R5の出力がHレベルとなり、オアゲートOR
I、OR2を介して3を表す値となる。また同様にクラ
ス選出セルCn4より加わるクラス番号bb2と辞書2
3より加わるクラス番号bdとが一致したときには排他
的論理オアゲートEOR4の出力はLレベルとなる。
Furthermore, when the class number b4 added from the class selection cell Cn2 and the class number d added from the memory 23 match, the outputs of the exclusive OR gate EOR6 all go to L level, so the output of NOR6 (NOR6) becomes H and all others It becomes L. As a result, an or game consisting of 3 bits)
The output of OR3 to OR1 becomes a value representing 4. Furthermore, when bb3 added from class selection cell Cn3 and class number bd added from dictionary 23 match, the outputs of exclusive logic OR gate EOR2 and exclusive logic OR gate EOR5 become all 0, and this result is added to NOR gate N0R.
2. The output of N0R5 becomes H level, and the OR gate OR
It becomes a value representing 3 via I and OR2. Similarly, class number bb2 and dictionary 2 added from class selection cell Cn4
When the class number bd added from 3 matches, the output of the exclusive OR gate EOR4 becomes L level.

この結果としてノアゲートN0R4には5ビツトともL
レベルが加わり、その出力はHレベルとなる。これによ
りオアゲー)OR3〜O,R1の出力は2を表す値とな
る。またさらにクラスセル選出セルCn5より加わるク
ラス番号bblと辞書23より加わるクラス番号dとが
一致したときには、排他的論理オアゲー)EOR3の出
力が5ビツトともLレベルとなりこの結果が加わるノア
ゲートNOR3の出力はHレベルとなりOR3〜ORI
の出力は1を表す値となる。すなわち、まとめるならば
クラス選出セルCnlより加わるクラス番号bb5と辞
書メモリより出力されるクラス番号bdが一致した時に
は5が、クラス選出セルCn2より加わるクラス番号b
b4が一致した時4が、クラス選出セルCn3より加わ
るクラス番号bb3と一致した時には3が、クラス選出
セルCn4より加わるクラス番号bb2と一致した時に
は2が、クラス選出選出Cn5より加わるクラス番号b
blと一致した時には1がそれぞれ出力されることにな
る(前述した動作は、各ビット対応でそれぞれ5の値を
出力すべき排他的論理オアゲートEOR1と排他的論理
オアゲートEOR7,4の値を出力すべき排他的論理オ
アゲートEOR6,3の値を出力すべき排他的論理オア
ゲー)EOR2、EOR5,2を出力すべき排他的論理
オアゲ−)EOR4,1を出力すべき排他的論理オアゲ
ートEOR3をそれぞれ設けている。尚この7個よりな
る排他的論理オアゲー)EORI〜EOR7はエンコー
ダを設ければ5個のそれぞれ5ビツトを比較する排他的
論理オアゲートでよい)。
As a result, all 5 bits of NOR gate N0R4 are L.
level is added, and the output becomes H level. As a result, the outputs of OR3-O, R1 become a value representing 2. Further, when the class number bbl added from the class cell selection cell Cn5 and the class number d added from the dictionary 23 match, all 5 bits of the output of the exclusive logic OR game) EOR3 go to L level, and the output of the NOR gate NOR3 to which this result is added becomes H level becomes OR3~ORI
The output of is a value representing 1. That is, to summarize, when the class number bb5 added from the class selection cell Cnl and the class number bd output from the dictionary memory match, 5 is added, and the class number b added from the class selection cell Cn2 is 5.
When b4 matches, 4 matches the class number bb3 added from the class selection cell Cn3, 3, when it matches the class number bb2 added from the class selection cell Cn4, 2, and the class number b added from the class selection cell Cn5.
When it matches bl, 1 is output respectively (the above operation outputs the values of exclusive logic OR gate EOR1 and exclusive logic OR gates EOR7 and 4, which should each output a value of 5 for each bit. An exclusive logic OR gate that should output the value of the exclusive logic OR gate EOR6, 3) Exclusive logic OR gate that should output the value of EOR2, EOR5, 2 -) Exclusive logic OR gate EOR3 that should output the value of EOR4, 1, respectively. There is. Note that these seven exclusive logic OR gates EORI to EOR7 may be exclusive logic OR gates that compare 5 bits each if an encoder is provided.

前述したオアゲー)OR3〜○R1の各クラス番号に対
応した値の出力は加算器SUMIの入力端子Aに加わる
。また加算器SUMIのB端子には前段より加わる@b
p’が加わる。加算器SUM1はA端子並びにB端子に
加わる値を加算するものであり、前段より加わる8ビツ
トの値と前述した比較結果によって得られた値とを加算
する。
The output of the value corresponding to each class number of the above-mentioned or game) OR3 to ○R1 is applied to the input terminal A of the adder SUMI. Also, @b is added to the B terminal of the adder SUMI from the previous stage.
p' is added. The adder SUM1 adds the values applied to the A terminal and the B terminal, and adds the 8-bit value added from the previous stage and the value obtained by the above-mentioned comparison result.

前述した如くA端子に加わる値は各クラス別に対応させ
て値を発生しているので、そのクラスに対応した値が辞
書メモリ23より加わったときにはそのクラス番号の対
応する値を加算器SUMIで加算しフリップフロップF
FIに記憶させる。
As mentioned above, the value applied to the A terminal is generated in correspondence with each class, so when a value corresponding to that class is added from the dictionary memory 23, the value corresponding to that class number is added by the adder SUMI. flip flop F
Store it in FI.

以上のような動作により49個マス1用〜マス49用に
対応させてこのセルを設けることにより、1文字車位で
の例えばJISによる2965個の文字の値をすなわち
得点を求めることができる。
By providing 49 cells corresponding to squares 1 to 49 through the above-described operation, it is possible to obtain the values of 2965 characters, for example, according to JIS, in one character position, that is, the score.

第7図にもどって説明を続ける。前述した動作によりマ
ス49用得点計算セルMC49からは順次辞書23内に
記憶した文字に対応する得点が出力されることとなる。
Returning to Figure 7, the explanation will continue. By the above-described operation, the scores corresponding to the characters stored in the dictionary 23 are sequentially output from the score calculation cell MC49 for the square 49.

その結果は得点ソートセルTSIに加わる。The result is added to the score sorting cell TSI.

得点ソートセルTSI〜TS5は得点の高い順に得点値
と文字コードとを記憶する回路であり、順次マス49用
得点計算セルMC49から加わる得点が例えば得点ソー
トセルTSIで記憶する値より高い時にその値を記憶し
、低い時にはそのまま次段に出力する。尚この得点ソー
トセルには文字番号(コード)も加わっており、得点と
コードを対応させて得点ソートセルTSI〜TS5は記
憶する。
Score sorting cells TSI to TS5 are circuits that store score values and character codes in descending order of scores, and sequentially store the value when the score added from score calculation cell MC49 for square 49 is higher than the value stored in score sorting cell TSI. However, when it is low, it is output directly to the next stage. Note that character numbers (codes) are also added to this score sorting cell, and the score sorting cells TSI to TS5 store the scores and codes in correspondence.

第3図におけるクラス選出セルCnl〜Cn5は値の低
い順にすなわち距離の短い順にソートしているが、第7
図における得点ソートセルTSI〜TS5は得点の高い
順にソートする。
Class selection cells Cnl to Cn5 in FIG. 3 are sorted in descending order of value, that is, in descending order of distance.
The score sorting cells TSI to TS5 in the figure are sorted in descending order of scores.

第10図は本発明の実施例の得点ソートセルの処理構成
図である。各セルTSI−TS5は第10図に示す構成
であり、加わった得点が自セルが記憶している値より大
きい時に、加わった得点セルを記憶して更新し、現在記
憶してあった値を次段に出力する。以下では入力する得
点をCf’、漢字番号(コード)をCg′、格納してい
る得点をCp、格納している漢字番号Cn、次のセルに
送る得点をCf、次の得点におくる漢字番号をCgとす
る。
FIG. 10 is a processing block diagram of a score sorting cell according to an embodiment of the present invention. Each cell TSI-TS5 has the configuration shown in FIG. 10, and when the added score is larger than the value stored in its own cell, it stores and updates the added score cell, and updates the currently stored value. Output to the next stage. Below, the score to be input is Cf', the kanji number (code) is Cg', the stored score is Cp, the stored kanji number Cn, the score to be sent to the next cell is Cf, the kanji number to be sent to the next score Let be Cg.

得点cf’は関数Cfn、Cf、 、Crt 、Cf、
に加わる。漢字番号Cg’は関数Cfn、Cf、に加わ
る。関数C・f、の出力はレジスタCrn、関数Cf、
の出力はレジスタCrpに入力する。レジスタCrnの
出力cn’は関数Cff1゜Cf、に、レジスタCrp
の出力Cp’は関数Cf、、Cf、 、Cf、 、Cr
tに加わる。関数Cf、は入力する値Cf’がレジスタ
Crpの出力Cp’より大きいとき入力する値を出力し
、さもなければ加わるレジスタのCrp値Cp’を出力
する。これによりレジスタCrpで記憶する値より入力
する値が大きいならばすなわち得点が高いならばその値
を更新するようレジスタに出力しそれ以外のときには更
新しないようにしている。また関数Cff1は関数Cf
、と同様の条件においてすなわち入力する値Cf’より
レジスタCrpで記憶する値Cp′より大きいときは、
入力する漢字番号Cg’を出力し、さもなければレジス
タCrnで記憶する値すなわち出力Cn’を出力する。
The score cf' is the function Cfn, Cf, , Crt, Cf,
join. Kanji number Cg' is added to functions Cfn, Cf. The output of the function C・f is the register Crn, the function Cf,
The output of is input to register Crp. The output cn' of the register Crn is input to the function Cff1°Cf, and the output cn' of the register Crn is
The output Cp' of is the function Cf, , Cf, , Cf, , Cr
join t. The function Cf outputs the input value when the input value Cf' is larger than the output Cp' of the register Crp, and otherwise outputs the Crp value Cp' of the register to which it is added. As a result, if the input value is larger than the value stored in the register Crp, that is, if the score is high, the value is output to the register to be updated, but otherwise it is not updated. Also, the function Cff1 is the function Cf
Under the same conditions as , that is, when the input value Cf' is larger than the value Cp' stored in register Crp,
The input Kanji number Cg' is output, otherwise the value stored in the register Crn, that is, the output Cn' is output.

これによりレジスタCrpは高い得点に対応する漢字番
号を記憶する。前述した動作により記憶する値より族セ
ルより入力した値が高いときには、その値とそれに対応
する漢字番号を記憶するが、この他に得点が小さい時に
はその得点と漢字番号を次段に、また得点が大きいとき
には記憶した得点とその漢字番号を次段に出力しなくて
はならない。これを行うのが関数Cff、Cf、である
As a result, the register Crp stores the Kanji number corresponding to the higher score. If the value input from the family cell is higher than the value to be memorized by the above operation, that value and its corresponding kanji number will be memorized, but if the score is small, the score and kanji number will be transferred to the next stage, and the score will be stored again. When is large, the memorized score and its kanji number must be output to the next stage. Functions Cff and Cf do this.

関数Cr tは、入力する得点Cf’がレジスタCrp
で記憶する値Cp′より大きい時Cp’を出力し、それ
以外の時には入力する得点Cf’を出力する。また関数
Cf、は、入力する得点Cf’がレジスタCrcで記憶
する値Cp′より大きい時レジスタCrnで記憶する値
cn’を出力し、それ以外の時には入力する漢字番号C
g’を出力する。尚、これらの値は同様にレジスタCr
f。
The function Cr t has the input score Cf' in the register Cr t.
When the value Cp' is larger than the stored value Cp', Cp' is output; otherwise, the input score Cf' is output. In addition, the function Cf outputs the value cn' stored in the register Crn when the input score Cf' is larger than the value Cp' stored in the register Crc, and otherwise outputs the kanji number C to be input.
Output g'. Note that these values are also stored in register Cr.
f.

Crgを介して次級への入力Cf、Cgとなる。They become inputs Cf and Cg to the next level via Crg.

以上のような動作により、このセルに加わる値の一番大
きいものを得点として記憶し、その得点に対応する漢字
番号をさらに記憶する。このセルを5段接続することに
より5個のセルにそれぞれ得点とそれに対応した漢字番
号が5個記憶されることとなる。
Through the above operations, the largest value added to this cell is stored as a score, and the Kanji number corresponding to that score is further stored. By connecting these cells in five stages, five scores and five corresponding Kanji numbers are stored in each of the five cells.

第11図は本発明の実施例の得点ソートセルの回路構成
図である。前述の第10図における各関数はそれぞれ入
力する得点Cf’とレジスタCrpで記憶する値との比
較を各関数で行っているが、第11図の回路構成におい
ては1個の比較器で行っている。すなわち、比較器CM
PTで行っている。
FIG. 11 is a circuit diagram of a score sorting cell according to an embodiment of the present invention. Each of the functions in FIG. 10 mentioned above compares the input score Cf' with the value stored in the register Crp, but in the circuit configuration of FIG. There is. That is, comparator CM
This is done by PT.

得点Cf’は比較器CMPTの入力すと選択回路MUX
TI、MUXT4に加わる。漢字番号Cg′は選択回路
MUχT2.MUXT3に加わる。
When the score Cf' is input to the comparator CMPT, the selection circuit MUX
TI joins MUXT4. Kanji number Cg' is selected by selection circuit MUχT2. Join MUXT3.

フリップフロップ(レジスタ)FFTIには選択回路M
UXTIの出力が加わり、そのフリップフロップFFT
lの出力はCp’は選択回路MUXTlの他方の入力と
コンパレータCMPTのA@子と選択回路MUXT4の
1端子に加わる0選択回路MUXT2の出力はフリップ
フロップ(レジスタ)FFT2に加わり、その出力n′
は選択回路MUXT2の1端子と選択MUXT3の1端
子に加わる。コンパレータCMFTの比較出力Sは、選
択回路MUXT1〜MUXT4に加わる。またクロック
は比較を行うたびに入力するものであり、それぞれフリ
ップフロップFFTl〜FFT4に入力する。
Flip-flop (register) FFTI has a selection circuit M
The output of UXTI is added and its flip-flop FFT is
The output of l is Cp' which is applied to the other input of the selection circuit MUXTl, the A@ child of the comparator CMPT, and one terminal of the selection circuit MUXT4. The output of the selection circuit MUXT2 is applied to the flip-flop (register) FFT2, and its output n'
is applied to one terminal of the selection circuit MUXT2 and one terminal of the selection circuit MUXT3. Comparison output S of comparator CMFT is applied to selection circuits MUXT1 to MUXT4. The clock is input every time a comparison is made, and is input to each of the flip-flops FFT1 to FFT4.

ある得点Cf’が入力した場合、コンパレータCMPT
1はA端子とB端子に加わる値を引く。
When a certain score Cf' is input, the comparator CMPT
1 subtracts the value applied to the A and B terminals.

すなわちA−Bを行う。このコンパレータは結果が0以
上の時(f’=p)には出力Sを0とし、負の時(f’
=p)にはSを1とする。
That is, perform A-B. This comparator sets the output S to 0 when the result is 0 or more (f'=p), and when the result is negative (f'
=p), S is set to 1.

コンパレータCMPT1の出力Sは選択回路MUXT1
〜MUXT4に加わっている。すなわち入力する得点c
f’がフリップフロップFFTlで記憶する値cp′よ
り小さい時にはコンパレータCMPTIは0を出力する
。このOにより選択回路MUMT1〜MUXT4はO端
子に加わる信号を選択し出力する。すなわち、この時に
は選択回路MUXT1はフリップロップFFTlの出力
cp′を選択するので結果は変わらない、また同様に選
択回路MUXT2も0端子に加わるフリップフロップF
FT2の出力cn’を選択するのでフリップフロップF
FT2の出力も変化しない。
The output S of the comparator CMPT1 is the selection circuit MUXT1
~ Joined MUXT4. In other words, the score c to be input
When f' is smaller than the value cp' stored in the flip-flop FFTl, the comparator CMPTI outputs 0. This O causes the selection circuits MUMT1 to MUXT4 to select and output the signal applied to the O terminal. That is, at this time, the selection circuit MUXT1 selects the output cp' of the flip-flop FFTl, so the result does not change.Similarly, the selection circuit MUXT2 also selects the output cp' of the flip-flop FFT1.
Since the output cn' of FT2 is selected, the flip-flop F
The output of FT2 also does not change.

また選択回路MUXT3は0端子に加わる入力Cg′を
選択するのでFFT3ではc g /を記憶し、cgを
出力することとなる。また得点においても選択回路MU
XT4がO端子に加わる得点c f 1を選択するので
、フリップロップFFT4も入力する得点cf’を記憶
することとなり出力cfは入力するcf’となる。
Further, since the selection circuit MUXT3 selects the input Cg' applied to the 0 terminal, the FFT3 stores c g / and outputs cg. Also, in terms of scores, the selection circuit MU
Since the XT4 selects the point c f 1 added to the O terminal, the flip-flop FFT4 also stores the input point cf', and the output cf becomes the input cf'.

一方、フリップロップFFTlで記憶する値Cp′より
、入力する得点cf’が大きい時にはコンパレータCM
PT1はlを出力するので、この時には各選択回路MU
XT1〜MUXT4は1端子の入力を選択する。すなわ
ち選択回路MUXT1は入力する得点cf’を選択し出
力する。これによりフリップロップFFTlは新しい値
を記憶する。なお、この時、記憶する前においてフリッ
プロップFFTlの出力c plは選択回路MUXT4
の1端子に入力しているので、選択回路MUXT4はフ
リップフロップFFTlの出力c plを選択してレジ
スタFFT4に加え、クロックによってフリップフロッ
プFFTlは新しい得点Cf′を記憶する。またフリッ
プフロップFFTlに記憶しである得点cp′はフリッ
プフロップFFT4に記憶することとなり、その値が出
力される。またこれと同様に選択回路MUXT2は新し
く加わる入力cg’を選択し、フリップフロップFFT
2はその入力した漢字番号を記憶する。またフリップフ
ロップFFT2の記憶する前の値は選択回路MUXT3
に加わっているので、選択回路MUXT3はS端子に1
が加わると、1端子に加わるフリップフロップFFT2
の出力cn’を選択しフリップフロップFFT3に加え
る。
On the other hand, when the input score cf' is larger than the value Cp' stored in the flip-flop FFTl, the comparator CM
Since PT1 outputs l, at this time each selection circuit MU
XT1 to MUXT4 select one terminal input. That is, the selection circuit MUXT1 selects and outputs the input score cf'. This causes flip-flop FFTl to store the new value. Incidentally, at this time, before storing, the output cpl of the flip-flop FFTl is sent to the selection circuit MUXT4.
Since the selection circuit MUXT4 selects the output cpl of the flip-flop FFTl and adds it to the register FFT4, the flip-flop FFTl stores the new score Cf' by the clock. Also, the score cp' stored in the flip-flop FFTl is stored in the flip-flop FFT4, and its value is output. Similarly, the selection circuit MUXT2 selects the newly added input cg', and selects the input cg' from the flip-flop FFT.
2 stores the input Kanji number. Also, the value before being stored in the flip-flop FFT2 is stored in the selection circuit MUXT3.
Therefore, the selection circuit MUXT3 connects 1 to the S terminal.
When , the flip-flop FFT2 applied to one terminal
The output cn' of is selected and added to the flip-flop FFT3.

以上の動作により1回のクロックによって入力する値を
比較するとともにその結果によって判断し、記憶すべき
場合には記憶し、すなわち大きい場合には記憶し、小さ
い場合には記憶せず変化させずに次段に出力することと
なる。以上のような動作により得点の高い順に得点ソー
トセルは5個の値とその漢字番号を記憶する。
By the above operation, the values input by one clock are compared and judged based on the result, and if it should be stored, it is stored, that is, if it is large, it is stored, and if it is small, it is not stored and is not changed. It will be output to the next stage. Through the above operations, the score sorting cell stores five values and their Kanji numbers in descending order of score.

前述した本発明の実施例においてはマス単位で5個のク
ラスを選出し、マス1における第1番目の文字のクラス
番号続いて第2の文字のクラス番号と順次行い、その結
果を更にマス2用得点計算セルMC2に続いてマス3用
得点計纂セルMC3・・・、とMC49とで順次マス単
位で行っている。
In the above-described embodiment of the present invention, five classes are selected for each square, and the class number of the first character in square 1 is selected, followed by the class number of the second character, and the result is further divided into squares 2. Following the score calculation cell MC2 for square 3, the score calculation cell MC3 for square 3, and so on, and MC49 are sequentially executed for each square.

第12図は本発明の実施例の得点計算を行うセル構成回
路網の構成国である。辞書23′には文字単位でかつマ
ス単位のクラス番号が記憶されており、文字単位に設け
られた得点計算セルMYI〜MY2965に辞書23′
から文字単位のクラス番号(その文字が属するマス単位
でのクラス番号)が加わる。前述したクラス選出セルに
よって第1番目のクラスから第5番目のクラスまでがそ
れぞれ文字1用得点計纂セルMY1〜文字2965用得
点計算セルMY2965に共通に加わる。
FIG. 12 shows the constituent countries of the cell configuration circuit network for calculating the score according to the embodiment of the present invention. The dictionary 23' stores class numbers for each character and each cell, and the dictionary 23' stores the class numbers for each character and for each cell.
The class number for each character (the class number for each square to which the character belongs) is added. The first to fifth classes are commonly added to the score calculation cell MY1 for character 1 to score calculation cell MY2965 for character 2965, respectively, by the class selection cell described above.

この時、文字得点計算セルMYI−MY2965は辞書
23′から加わるクラス番号と比較する。
At this time, the character score calculation cell MYI-MY2965 is compared with the class number added from the dictionary 23'.

そしてクラス選出セルCYIIOクラス番号と一致した
時には5点を、続いて2番目にクラス選出セルCY12
と一致したならば4点を・・・と5番目まで点数を与え
る。マス1用のクラス選出セルからそれぞれクラス番号
がソート順に5組出力され文字1用得点計算セルCYI
〜文字2965用得点計算セルCY2965が計算を行
うと、続いてマス2におけるクラス選出セルCY21〜
CY25の結果が加わり(クラス選出セルCYII〜C
Y495はマス単位でシフトレジスタ構成となっており
、マス1の結果が出力されるとマス1にはマス2の結果
が格納され計算が終わるたびに順次シフトする)計算さ
れるとともに、順次合計マス1〜マス49までのクラス
が属する文字に対する得点が加算される。辞書23′も
同様の構成であり、文字単位でそれぞれマス1のクラス
番号マス2のクラス番号・・・マス49のクラス番号と
なっており文字1用得点計算セルMYI〜文字2965
用得点計算セルMY2965はそれが該当するクラスに
属する時に加算を行っている。
Then, if it matches the class selection cell CYIIO class number, 5 points are given, and then the second class selection cell CY12
If it matches, give 4 points, etc. up to the 5th point. Five sets of class numbers are output in sorted order from the class selection cell for square 1, and the score calculation cell CYI for character 1 is output.
~When the score calculation cell CY2965 for character 2965 performs the calculation, the class selection cell CY21 in square 2~
CY25 results have been added (class selection cells CYII to C
Y495 has a shift register configuration in units of squares, and when the result of square 1 is output, the result of square 2 is stored in square 1 and shifted sequentially each time the calculation is completed). Scores for characters to which classes 1 to 49 belong are added. The dictionary 23' has a similar structure, and each character has a class number for square 1, a class number for square 2, a class number for square 49, and a score calculation cell for character 1 MYI to character 2965.
The point calculation cell MY2965 performs addition when it belongs to the corresponding class.

第14図は前述の得点計算セルの処理構成図である。マ
ス1用クラス選出セルCYII〜マス1用クラス選出セ
ルCY15よりそれぞれクラス番号db5〜dblが得
点計算セルMYnの関数df、に加わる。関数df、は
6個の入力に対し出力dpを以下の如く設定する関数で
ある。
FIG. 14 is a processing block diagram of the aforementioned score calculation cell. The class numbers db5 to dbl are added to the function df of the score calculation cell MYn from the class selection cell CYII for square 1 to the class selection cell CY15 for square 1, respectively. The function df is a function that sets the output dp for six inputs as follows.

df、 : dp = if db+==dd the
n dp’ +5e se if db、==dd t
hen dp’ +4e se if db、==dd
 then dp’ +3e se if dba==
dd then dp’ +2e se if dbs
”=dd then dp’ +1e se dp’ ここでdp′はレジスタdrの出力である。すなわち辞
書23′より加わるクラス番号ddとクラス選出セルC
YIIより加わるクラス番号dblとが一致した時にレ
ジスタの出力であるdP’に5を加える。またクラス選
出セルCY12の出力であるb2と等しい時には4を、
同様にクラス選出セルCY13〜クラス選出セルCY1
5より出力されるb3〜b5と一致している時にはそれ
ぞれ3.2.1を加算する。これによりクラス単位にお
いて順次5〜4の得点が加算される。尚、−致しない時
には加算されずdpはそのままとなる。
df, : dp = if db+==dd the
n dp' +5e se if db,==dd t
hen dp' +4e se if db,==dd
then dp' +3e se if dba==
dd then dp' +2e se if dbs
"=dd then dp' +1e se dp' Here, dp' is the output of the register dr. That is, the class number dd added from the dictionary 23' and the class selection cell C
When the class number dbl added from YII matches, 5 is added to dP' which is the output of the register. Also, when it is equal to b2, which is the output of class selection cell CY12, set 4,
Similarly, class selection cell CY13 to class selection cell CY1
If they match b3 to b5 output from 5, 3.2.1 is added to each. As a result, scores of 5 to 4 are added sequentially for each class. It should be noted that if they do not match, no addition is made and dp remains as is.

この関数dfpの出力dpはレジスタdrに加わってお
り、第1番目においてはリセットされた後マス1用の得
点がレジスタdrの値dp’  (リセット時は0)に
加算され、その結果をラッチする。
The output dp of this function dfp is added to the register dr, and after the first reset, the score for square 1 is added to the value dp' of the register dr (0 at reset), and the result is latched. .

そして続いて順次クラス選出セルCYII〜CY495
が5クラス単位でシフトし、順次前述の得点を加算する
こととなる。クラス選出セルはマス1〜マス49用があ
り、合計49回の演算で各文字単位での得点を求めるこ
とができる。
Then, sequentially class selection cells CYII to CY495
will be shifted in units of 5 classes, and the above-mentioned scores will be added sequentially. There are class selection cells for squares 1 to 49, and it is possible to obtain the score for each character by a total of 49 calculations.

第15図は前述の得点計算セルの回路構成図である。排
他的論理オアゲー)EORI〜EOR7、ノアゲートN
OR1〜NOR?、ORI〜OR3は第9図の構成と同
様であり、入力ddに対しそれぞれクラス選出セルより
加わるクラス番号db1〜db5と比較し一致した時に
そのクラスに対応した値を出力する。すなわち1番似通
ったクラスより加わるクラス番号dblと一致した時に
5を続いて2番目のクラス番号db2に対しては4を、
クラス番号db3に対しては3を、クラス番号db4に
対しては2を、クラス番号db5に対してはlを3ビツ
トの信号として加算器SUM2の入力Bに加える。
FIG. 15 is a circuit diagram of the aforementioned score calculation cell. Exclusive logic or game) EORI~EOR7, Noah Gate N
OR1~NOR? , ORI to OR3 have the same configuration as in FIG. 9, and compare the input dd with the class numbers db1 to db5 added from the class selection cells, respectively, and when they match, output a value corresponding to that class. In other words, when it matches the class number dbl added from the most similar class, add 5, then add 4 to the second class number db2,
3 is added to the input B of the adder SUM2 as a 3-bit signal for the class number db3, 2 for the class number db4, and 1 for the class number db5.

前述した第9図における計算セルの構成図においては前
段の計算セルより加わった得点に対し更に次の各マスに
対する得点を順次加えているが、第15図における実施
例においては同一文字に対して計算を行うので、すなわ
ち1文字単位で計算を行うので、フリツプフロップFF
2の出力を加算器SUM2のA端子に加え累算している
。還元するならば各文字のマス単位でクラス番号ddが
加わり、それぞれのクラス選出セルからマス単位で同様
にクラス番号dbl〜db5が加わり、それぞれを比較
し一致した時のその該当する値(重み)を加え1文字単
位で累算している。
In the configuration diagram of the calculation cell shown in FIG. 9 mentioned above, the score for each next cell is added in sequence to the score added from the previous calculation cell, but in the example shown in FIG. 15, the score for the same character is Since the calculation is performed on a character-by-character basis, the flip-flop FF
2 is added to the A terminal of the adder SUM2 for accumulation. If we reduce it, the class number dd is added to each square of each character, and the class numbers dbl to db5 are similarly added to each square from each class selection cell, and when they are compared and matched, the corresponding value (weight) is added and accumulated for each character.

本発明の実施例においてはマス1〜マス49があるので
合計49回累算し得点計算セルMYI〜MY2965は
出力する。前述した動作によりマス単位での計算あるい
は文字単位での計算をそれぞれ行うことができる。特に
文字単位での計算であるならば、マス単位で加わるクラ
ス番号と、辞書23′から加わる各文字のそれぞれのマ
スに対するクラス番号とを比較し、一致した時にそれに
該当する得点を加算するので演算回数が49回と少なく
てすみ、処理を高速化することができる。
In the embodiment of the present invention, since there are squares 1 to 49, the calculation is accumulated a total of 49 times, and the score calculation cells MYI to MY2965 are output. By the above-described operations, calculations can be performed in units of squares or in units of characters. In particular, if the calculation is for each character, the class number added for each square is compared with the class number for each square of each character added from the dictionary 23', and when they match, the corresponding score is added. The number of times required is only 49, and the processing speed can be increased.

第16図は得点計算およびソートを行うセル構造回路網
の構成図である。第7図の実施例においてはマス単位で
それぞれ演算を行うため認識すべき文字分のすなわち2
965文字分の演算を行わなくてはならない、このため
、全処理に多くの演算を行わなくてはならない、また第
12図に示した構成においては各セルは49回の演算で
よいか得点計算セル数が2965個と多大となり、それ
を構成する回路が増大する。
FIG. 16 is a block diagram of a cell structure circuit network that performs score calculation and sorting. In the embodiment shown in FIG. 7, since calculations are performed for each square, the number of characters to be recognized is 2.
It is necessary to perform calculations for 965 characters. Therefore, many calculations must be performed for the entire process. Also, in the configuration shown in Figure 12, each cell needs 49 calculations. The number of cells is as large as 2965, and the number of circuits configuring it increases.

第16図においては各マス1用得点計纂セルを4個設け
、文字1〜文字741用、文字742〜文字1482用
、文字1483〜文字2223用、文字2224〜文字
2965用と文字を4分割しそれぞれ別々に計算してい
る。すなわちマス1用の得点計算セルを4個(Mdll
−Md14)設け、その結果をマス2用に得点計算セル
(Md21〜Md24)に出力し、同様に順次合計マス
49(Md31〜Md34  ・ ・ ・Md491〜
Md494)までの49回演算を行う構成と、している
In Figure 16, four score total cells are provided for each square 1, and the characters are divided into four: characters 1 to 741, characters 742 to 1482, characters 1483 to 2223, and characters 2224 to 2965. Each is calculated separately. In other words, there are 4 score calculation cells for square 1 (Mdll
-Md14), output the results to the score calculation cells (Md21 to Md24) for square 2, and similarly, sequentially calculate total squares 49 (Md31 to Md34 . . . Md491 to
The configuration is such that calculations are performed 49 times up to Md494).

換言するならば第7図の構成を4組並列とし、それぞれ
の辞書を4組に分割し4&Il単位で並列に行う構成で
ある。この場合、得点は4文字同時に出力されるのでそ
れぞれのマス計算セル49用から出力される各文字の順
位を求める。このためマス49用得点計算セルMd49
1から出力される得点をソートするため、得点ソートセ
ルTT41〜TT45をシリーズ接続し、その入力段の
セルTT41に加えている。また同様にマス49用得点
計算セルMD492〜MD494はそれぞれシリーズ接
続された得点ソートセルTT31〜TT11の入力段の
セルTT21〜TT41に加えている。すなわち得点ソ
ートセルTTII〜TT45はそれぞれ5段シリーズ接
続のソートセルとなっておりそれぞれの文字分けした4
&lの得点が加わり、それぞれ文字分けした4&Ilの
文字内における5番目の得点までが順次ソートセル内に
おいてソートされる。第16図の本発明の実施例におい
ては、文字単位で最終的に5文字を選択しなくてはなら
ないので、得点ソートセルffTUI、TU2で先ず2
組単位で比較し、高い方を選択し次段の得点ソートセル
TU3に加え最終的に5M以上の得点の高い文字候補を
結果として出力している。
In other words, the configuration shown in FIG. 7 is arranged in parallel with four sets, each dictionary is divided into four sets, and the processing is performed in parallel in units of 4&Il. In this case, since the score is output for four characters at the same time, the rank of each character output from each mass calculation cell 49 is determined. Therefore, the score calculation cell Md49 for square 49
In order to sort the scores output from 1, score sorting cells TT41 to TT45 are connected in series and added to cell TT41 at the input stage. Similarly, the score calculation cells MD492 to MD494 for square 49 are added to the input stage cells TT21 to TT41 of the series-connected score sorting cells TT31 to TT11, respectively. In other words, score sorting cells TTII to TT45 are each sorting cells connected in a 5-stage series, and each character is divided into 4
The scores of &l are added, and the scores up to the fifth score within the characters 4 & Il are sequentially sorted in the sorting cell. In the embodiment of the present invention shown in FIG. 16, five characters must be finally selected character by character, so first 2
Comparisons are made in units of pairs, the higher one is selected, and added to the next stage score sorting cell TU3.Finally, character candidates with higher scores of 5M or more are output as results.

なお得点ソートセルTTII〜TT45には得点に対応
する文字番号も加わっており、文字番号と得点を各得点
ソートセルTTII〜TT45は順次ソートしている。
Note that the score sorting cells TTII to TT45 also include character numbers corresponding to the scores, and the score sorting cells TTII to TT45 sequentially sort the character numbers and scores.

また得点ソートセルI[TUl。Also, score sorting cell I [TUl.

TU2.TU3は得点を比較するとともに文字番号をも
高い場合には次段のソートセルに出力している。以上の
ような動作によりマス単位での計算においてもその処理
を高速化するため文字を並列化し、例えば4文字単位で
比較することができる。
TU2. TU3 compares the scores and also outputs the character number to the next sorting cell if it is higher. By the above-described operation, characters can be parallelized to speed up the processing even in calculations in square units, and it is possible to compare, for example, four characters at a time.

第12図における本発明の実施例のセル構造回路網なら
びに第16図におけるセル構造回路網において文字得点
計算セルより出力される得点をソートする場合には(第
16図においては得点ソートセルTUI〜TU3)、順
次勝ち抜き方式によりその結果を得ることができる。第
17図は本発明の実施例の得点のソートを行うセル構想
回路網の構成図である。得点計算セルは第12図に示し
た文字1用得点計蒐セルMY1〜文字2915用得点計
算セルMY2915であり、これらのセルMYI〜MY
2915より得られた得点が勝ち抜き構成で、得点ソー
トセルSXに加わる。
When sorting the scores output from the character score calculation cells in the cell structure network of the embodiment of the present invention in FIG. 12 and the cell structure network in FIG. ), the results can be obtained by a sequential winning method. FIG. 17 is a block diagram of a cell conceptual circuit network for sorting scores according to an embodiment of the present invention. The score calculation cells are the score calculation cell MY1 for character 1 to the score calculation cell MY2915 for character 2915 shown in FIG. 12, and these cells MYI to MY
The scores obtained from 2915 are added to the score sorting cell SX in a winning configuration.

第18図は各得点計算セルより候補を選択するための得
点ソートセルSXの処理構成図である。
FIG. 18 is a processing block diagram of the score sorting cell SX for selecting candidates from each score calculation cell.

左の子(前段左側の得点ソートセルあるいは得点計算セ
ル)と右の子(前段の右側の得点ソートセルあるいは得
点計重セル)より結果が加わる。すなわち左の子より一
入力する得点eplは関数efan  ef、、ef、
1.ef、、に加わる。また右の子より加わる得点eP
rは関数e ffi、e f、。
Results are added from the left child (score sort cell or score calculation cell on the left side of the previous stage) and the right child (score sort cell or score weight cell on the right side of the previous stage). In other words, the score epl input from the left child is the function efan ef,,ef,
1. Join ef, . Also, points added from the child on the right eP
r is a function e ffi, e f,.

ef rl+  e f PPに加わる。ef rl + e f Join PP.

また左の子と右の子より入力する文字コード番号enl
、enrは関数erfiに加わる。関数eflIの出力
enはレジスタernに、そのレジスタernの出力e
n’は次の段の左右のセルに加わるとともに関数ef、
にも加わる。また関数ef、の出力はレジスタarpに
加わり、その出力ep′は次段のセルに加わるとともに
関数efne fp 、  e fry、  e fr
rに加わる。そして関数efrlの出力erlは前段の
左の子のリセット信号となり、また間数efrrの出力
1rrは前段の右の子のリセット信号となる。第18図
に示すようにそれぞれの関数ffi、f、、frl+ 
 Lrは以下の関数である。
Also, the character code number enl input from the left child and right child
, enr are added to the function erfi. The output en of the function eflI is stored in the register ern, and the output e of that register ern is
n' is added to the left and right cells of the next stage, and the function ef,
Also join. Also, the output of the function ef is added to the register arp, and its output ep' is added to the next cell, and the functions efne fp, e fly, e fr
join r. The output erl of the function efrl becomes a reset signal for the left child of the previous stage, and the output 1rr of the interval number efrr becomes a reset signal of the right child of the previous stage. As shown in FIG. 18, each function ffi, f, , frl+
Lr is the following function.

ef、  : ep = if ep’≠−1the、
n ep’else if epI>pr then 
eP+else epr ef、  : en = if ep’≠−1then
 en’else if epl>p、then en
161se enr ef、1 : er = if ep’≠−1then
 0else if epI>ep、 then 1l
se 0 efrr : er = if ep’≠−1then
 0else if eP+>Pr then 0el
se  1 前述した関数゛をさらに回路構成とすると第19図に示
す得点セルの回路構成図となる。左の子より加わる得点
epIと右の子より加わる得点eprとが比較回路CM
P 1の端子B、Aに加わり、比較回路CMP1はA端
子より加わるデータとB端子より加わるデータとを比較
(A−B)L、正であった時信号Sを1、負またはOで
あった時信号Sを0とし、その結果を選択回路MUXU
I、MUXU2に加える。選択回路はMUXUI、MU
XU2はそれぞれ加わる信号Sが1の時に1端子に加わ
る信号を選択し0の時に0端子に加わる信号を選択し出
力する。選択回路MUXU1の出力は選択回路MUXU
3に、また選択回路MUXU2の出力は選択回路MUX
U4に加わる。例えば得点eP+が得点ep、より大で
あるならば比較回路CMP1の出力Sは1であるので、
選択回路MUXU1は文字コードeillをまた選択回
路MUXU2は得点ep1を選択する。すなわち比較回
路CMP 1と選択回路MUXUI、MUXU2におい
て両者の左右から加わる値の(前段の左右)を大きい方
を選択しそれを選択回路MUXU3MUXU4に加える
のである。本発明の実施例における計算は2の補数を用
いている。よってあらかしめリセットされた時にはマイ
ナス1がフリップフロップFFUIに記憶されており(
得点epがマイナス1)この時には出力は8ビツトとも
1であるのでアンドゲートANDU1の出力は1となり
、その結果が加わる選択回路MUXU3  MUXU4
は1の端子の加わる信号を選択する。すなわち選択回路
MUXUI、MUXU2によって選択された高い方の得
点と、その文字番号を選択し、その得点をフリップフロ
ップFFUI、文字番号をフリップフロップFFU2に
加える。またマイナス1でない時には、アンドゲートA
NDU1の出力は0であるので、選択回路MUXU3゜
MUXU4は0端子の信号を選択する。フリップフロッ
プFFU1.FFU2の出力はMUXU4゜MUXU3
のO端子に加わっておりアンドゲートANDIの出力は
0の時には、フリップフロップFFUI、FFU2の出
力を選択する。選択回路MUXU3の出力はフリップフ
ロラ1FFU2の入力に、また選択回路MUXU4の出
力は一方にリセット信号erが加わるオアゲート(各ビ
ット単位でオアされる)を介してフリップフロップFF
UIに加わる。前述のアンドゲートANDUIの出力が
1であった場合、すなわちマイナス1がフリップフロッ
プFFUIに格納されている場合には選択回路MUXU
4は選択回路MUXU2の選択した結果を選択しフリッ
プフロップFFUIに格納する。これによって、前段の
セルの値(得点と文字コード)と取り込むので、前段の
セルのフリップフロップをリセットしなく二はならない
ef, : ep = if ep'≠-1the,
n ep'else if epI>pr then
eP+else epr ef, : en = if ep'≠-1then
en'else if epl>p, then en
161se enr ef, 1: er = if ep'≠-1then
0else if epI>ep, then 1l
se 0 efrr: er = if ep'≠-1then
0else if eP+>Pr then 0el
se 1 If the above-mentioned function is further configured as a circuit, the circuit configuration of the score cell shown in FIG. 19 is obtained. The score epI added from the left child and the score epr added from the right child are the comparison circuit CM.
The comparator circuit CMP1 compares the data applied from the A terminal with the data applied from the B terminal (A-B) L, and when it is positive, the signal S is 1, and when it is negative or O. When the signal S is set to 0, the result is sent to the selection circuit MUXU.
I, add to MUXU2. The selection circuit is MUXUI, MU
XU2 selects the signal applied to one terminal when the applied signal S is 1, and selects the signal applied to the 0 terminal when the applied signal S is 0, and outputs it. The output of the selection circuit MUXU1 is the selection circuit MUXU
3, and the output of the selection circuit MUXU2 is the selection circuit MUX
Joins U4. For example, if the score eP+ is greater than the score ep, the output S of the comparison circuit CMP1 is 1, so
The selection circuit MUXU1 selects the character code eill, and the selection circuit MUXU2 selects the score ep1. That is, in the comparison circuit CMP1 and the selection circuits MUXUI and MUXU2, the larger one of the values added from the left and right sides (the left and right of the previous stage) is selected and added to the selection circuits MUXU3 and MUXU4. Calculations in embodiments of the invention use two's complement numbers. Therefore, when it is preliminarily reset, minus 1 is stored in the flip-flop FFUI (
(Score ep is minus 1) At this time, all 8 bits of output are 1, so the output of AND gate ANDU1 is 1, and the result is added to selection circuits MUXU3 and MUXU4.
selects the signal to which terminal 1 is applied. That is, the higher score selected by the selection circuits MUXUI and MUXU2 and its character number are selected, and the score is added to the flip-flop FFUI and the character number is added to the flip-flop FFU2. Also, when it is not minus 1, and gate A
Since the output of NDU1 is 0, the selection circuits MUXU3 and MUXU4 select the signal at the 0 terminal. Flip-flop FFU1. The output of FFU2 is MUXU4゜MUXU3
When the output of the AND gate ANDI is 0, the outputs of the flip-flops FFUI and FFU2 are selected. The output of the selection circuit MUXU3 is connected to the input of the flip-flop 1FFU2, and the output of the selection circuit MUXU4 is connected to the flip-flop FF via an OR gate (ORed on a bit-by-bit basis) to which a reset signal er is applied.
Join the UI. When the output of the above-mentioned AND gate ANDUI is 1, that is, when minus 1 is stored in the flip-flop FFUI, the selection circuit MUXU
4 selects the result selected by the selection circuit MUXU2 and stores it in the flip-flop FFUI. As a result, the value (score and character code) of the previous cell is imported, so the flip-flop of the previous cell must be reset.

これをリセットするためアンドゲートANDUIの出力
はアンドゲートANDU2.ANDU3に加わりまた比
較回路CMP 1の出力Sはアントゲ−)ANDU2に
またインバータINVυを介してアントゲ−)ANDU
3に加わる。またアントゲ−)ANDU2.ANDU3
にはクロック(システムクロック)が加わっており、ア
ンドゲートANDUIが1でさらに選択した一方の信号
r1゜rrが1となり前段のフリップロップをリセット
する。すなわちフリップフロップFFUIに記憶された
得点が次段の得点ソートセルに加わり、そのソートセル
が選択し記憶した時には次段からの(R)がオアゲート
によってフリップフロップFFUIに一1C前ヒツト1
)が格納される。換言するならば取り込んだ時にその前
段のフリップフロップをリセットする。このフリップフ
ロップFFUIにもシステムクロックCLKが加わって
おり、このシステムクロックによって全システムが動作
する。
To reset this, the output of the AND gate ANDUI is output from the AND gate ANDU2. In addition to ANDU3, the output S of the comparison circuit CMP1 is also connected to ANDU2 via inverter INVυ.
Join 3. Also, Antogame) ANDU2. ANDU3
A clock (system clock) is added to , and when the AND gate ANDUI is set to 1, the selected signal r1°rr becomes 1 and resets the flip-flop at the previous stage. That is, the score stored in the flip-flop FFUI is added to the score sorting cell of the next stage, and when that sorting cell is selected and stored, (R) from the next stage is added to the flip-flop FFUI by the OR gate.
) is stored. In other words, when the data is taken in, the previous flip-flop is reset. A system clock CLK is also added to this flip-flop FFUI, and the entire system operates with this system clock.

以上のような第9図のソートセルを第2図に示す8個の
入力の場合について説明する。第1番目において1.3
,2.9,5,8,7.6の時には次のクロックにおい
て高い方が選択され次段臼は3.9,8.7が取り込ま
れる。その時に取り込んだセル3,9,8.7に対応す
る前段のレジスタがクリアされる。すなわち1.−1.
2゜1.5.−1.−1.6と前段のレジスタの値はな
る。さらに次のクロックにおいて3.9と8゜7とが比
較され9,8が次段に取り込まれる。すなわち1段目は
変化せず2段目が3−1.−1゜7となり3段目が9.
8となる(3)。また9と8を出力したセルはリセット
されているので、lとなり次のクロックにおいて2と5
が取り込まれる。これにより第1段目は1.−1.−1
゜1、−1.−1.−1.6となり2段目が3,2゜5
.7.3段目が−1,8,4段目が9となる(4)。続
いて次のクロックにより9が取り込まれる。それととも
に2段目の3.2が3段目で比較され、次段に3が取り
込まれ、2段目の値は−1となりまた同様に9が取り込
まれることによって4段目が−1となる(5)、そして
次のり6ツクによって8となる。また同様に第2段目の
−1が変化し前段である第1段目の1が2段目に格納さ
れる(6)。続いて8を取り込むことによりこの8を記
憶した最終段(4段目)が−1となる。
The case where the sort cell shown in FIG. 9 as described above has eight inputs shown in FIG. 2 will be explained. 1.3 in the first
, 2.9, 5, 8, and 7.6, the higher one is selected in the next clock, and the next stage mill takes in 3.9 and 8.7. The previous stage registers corresponding to cells 3, 9, 8.7 taken in at that time are cleared. That is, 1. -1.
2゜1.5. -1. The value of the register at the previous stage becomes -1.6. Further, in the next clock, 3.9 and 8°7 are compared and 9 and 8 are taken into the next stage. In other words, the first stage is unchanged and the second stage is 3-1. -1°7 and the third row is 9.
It becomes 8 (3). Also, since the cells that output 9 and 8 have been reset, they become l and 2 and 5 are output in the next clock.
is taken in. As a result, the first stage is 1. -1. -1
゜1, -1. -1. -1.6 and the second stage is 3.2゜5
.. 7. The third row is -1, 8, and the fourth row is 9 (4). Subsequently, 9 is taken in by the next clock. At the same time, 3.2 in the second stage is compared in the third stage, 3 is taken into the next stage, the value in the second stage becomes -1, and 9 is similarly taken in, so the value in the fourth stage becomes -1. becomes (5), and the next 6 times becomes 8. Similarly, -1 in the second stage changes, and 1 in the first stage, which is the previous stage, is stored in the second stage (6). Subsequently, by taking in 8, the final stage (fourth stage) in which this 8 is stored becomes -1.

この時には同様に3段目の−1が7となる(7)。At this time, -1 in the third row becomes 7 (7).

すなわち前段である2段目の7を取り込み、3段目が7
となる。この時2段目の7は取り込まれているのでリセ
ットされ−1となる。続いて次のクロックにより4段目
のセルは7を選択し取り込む。
In other words, 7 is taken from the second stage, which is the previous stage, and 7 is taken from the third stage.
becomes. At this time, since 7 in the second stage has been taken in, it is reset and becomes -1. Subsequently, the fourth stage cell selects and takes in 7 with the next clock.

これと同時に3段目の7を−1にセットする。また同様
に2段目の−1は6を取り込む(8)。以上のように順
次クロックに対応し取り込むとともに前段を−1とし、
再度比較させるので、順次高い方が選択され最終的に高
い色順に得点計算セルの結果を得ることができる。前述
した得点はソートのためのすなわち候補文字を選ぶため
の得点であり、前述の得点の取り込みと同時に文字コー
ドも取り込まれ最終的結果は文字番号を順次出力するこ
ととなる。以上述べたように本発明により、各文字単位
や文字グループ単位さらにはマス単位によって得点を求
めその得点の高い順に(文字単位で)並べて高い順に出
力するので候補文字を順次求めることができる。またそ
の処理は並列処理さらにはパイプライン処理であるので
高速化することができる。
At the same time, 7 in the third row is set to -1. Similarly, -1 in the second stage takes in 6 (8). As described above, while sequentially corresponding to and capturing the clock, the previous stage is set to -1,
Since the comparison is made again, the higher color is selected in order, and finally the results of the score calculation cells can be obtained in the order of the higher colors. The above-mentioned scores are for sorting, that is, for selecting candidate characters.At the same time as the above-mentioned scores are taken in, character codes are also taken in, and the final result is to sequentially output character numbers. As described above, according to the present invention, the scores are obtained for each character, character group, or square, and the scores are arranged in descending order (character by character) and output in ascending order, so that candidate characters can be sequentially determined. Furthermore, since the processing is parallel processing or pipeline processing, it can be speeded up.

前述した特定計算並びに上位選出回路により上位複数個
の候補をコードで得ることができる。尚、この方式には
まとめると以下の複数の構成がある。
A plurality of top candidates can be obtained in the form of a code using the above-mentioned specific calculation and the top selection circuit. In summary, this method has the following multiple configurations.

■ 各マス単位で順次文字の得点を求めソートする構成
(第7図参照)。
■ A configuration that sequentially calculates and sorts the scores of characters in each square (see Figure 7).

■ ■の方式を並列化しそれぞれの並列処理の結果をソ
ートする構成(第16図参照)。
■ A configuration that parallelizes the method in (■) and sorts the results of each parallel process (see Figure 16).

■ 文字毎に得点計算セルを設け、マス単位での得点計
算を順次行う構IIi、(第12図、第17図参照)。
■ Structure IIi, in which a score calculation cell is provided for each character and the score is calculated sequentially for each square (see Figures 12 and 17).

■ ■の方式を並列化し、それぞれの並列処理の結果を
ソートする構成。
■ A configuration that parallelizes the methods in ■ and sorts the results of each parallel process.

以上のような方式においてはそれぞれ処理する時間すな
わちソート結果を得るためのクロック数が異なる。また
得点計算並びにソートするセル数も異なる。以下ではこ
れら4種の方式におけるセル数とその時間について説明
する。なお、以下では文字の種類をK、上位選出の数を
C1並列処理させるため分割した場合にはその分割した
個数をS、3個に分割した時の文字をMとする。
In the above-mentioned methods, the processing time, that is, the number of clocks for obtaining a sorting result, is different. Also, the number of cells to be used for score calculation and sorting is different. The number of cells and their time in these four types of systems will be explained below. Note that in the following, the type of character is K, the number of upper selections is C1, the number of divided characters when divided for parallel processing is S, and the character when divided into three is M.

■の方式においては セル数=49+C T i+se  = K + 49 + Cとなる。In the method of ■ Number of cells = 49+C T i + se = K + 49 + C.

■の方式においては3個に分割しているので、セル数”
 (49+C)XS+2 s Tt、、=M+49+C+logS+Cとなる。S個差
列に処理しているので、3個のソートされた中からTR
EE 5ORTによって0個を選出しなければならない
。、この為に前述のセル数の弐における最後の環25個
を必要とする。すなわち入力をSとするのであらかじめ
各並列処理単位で設けられた(49C+C)xS個のソ
ートセルの他に、TREE 5ORTの2S個が必要と
なる。
In the method of ■, it is divided into three, so the number of cells is ”
(49+C)XS+2 s Tt,,=M+49+C+logS+C. Since it is processed into S difference columns, TR from the 3 sorted
0 shall be selected by EE 5ORT. , which requires the last 25 rings in the second cell count mentioned above. That is, since the input is S, 2S TREE 5ORTs are required in addition to the (49C+C)×S sort cells provided in advance for each parallel processing unit.

■の方式においては セル数=に+2に=3K。In the method of ■ Number of cells = +2 = 3K.

Tim。=49+1ogK となる。セル数の2には前述したと同様にTREE 5
ORTを必要とするので、このために必要とする数であ
る。
Tim. =49+1ogK. For cell number 2, TREE 5 is used as described above.
Since ORT is required, this is the number required for this purpose.

■の方式においては■方式を並列処理すなわちM個単位
で3個のグループに分けて並列処理するめで セル数= (M+2M)XS=3MS T1□ = (49+ 1 o gM)XS+Cとなる
。上述した■〜■の方式はそれぞれ目的に応じて選択す
ることができる。これは高速処理させるためには時間を
短くまたコストを安価とするためにはセル数を少なくす
るなどその状況に応じて選択することができる。第13
図の分割数のテーブル図表(第13図においてはに=4
096)のごとく、分割数であるSを変化させることに
より当然Mも反比例し変化する。この時のlogM、1
ogMXS、M+1ogS等を求めることによりそれぞ
れ目的に応じてコストとその速度を選択できる0以上の
ように得点計算セルや上位選出回路はその並列処理する
個数を変えることにより目的のセル数にすることができ
る。すなわちシステムの規模によって選択することが可
能となる。
In the method (2), the method (2) is processed in parallel, that is, M cells are divided into three groups and processed in parallel, so that the number of cells = (M+2M)XS=3MS T1□ = (49+1 ogM)XS+C. The above-mentioned methods (1) to (2) can be selected depending on the purpose. This can be selected depending on the situation, such as shortening the time for high-speed processing or reducing the number of cells to reduce costs. 13th
Table diagram of the number of divisions in the figure (in Figure 13, = 4
096), by changing the number of divisions S, M also changes in inverse proportion. logM at this time, 1
By determining ogMXS, M+1ogS, etc., you can select the cost and speed according to your purpose.As with 0 or more, you can set the target number of cells by changing the number of score calculation cells and top selection circuits to be processed in parallel. can. In other words, selection can be made depending on the scale of the system.

〔発明の効果] 以上述べたように本発明によれは文字認識装置等装置に
おいて、高い候補順に高速に結果を求めることができ例
えば文字数が多くても高速に認識候補を出力することが
できる。
[Effects of the Invention] As described above, according to the present invention, in a device such as a character recognition device, results can be obtained at high speed in the order of high candidates, and for example, recognition candidates can be output at high speed even when the number of characters is large.

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

第1図は本発明の原理ブロック図、 第2図は本発明の実施例のシステム構成図、第3図は本
発明の実施例のクラス選出を行うセル構造回路網の構成
図、 第4図は本発明の実施例の距離計算セルの回路構成図、 第5図は本発明の実施例のクラス選出セルの処理構成図
、 第6図は本発明の実施例のクラス選出セルの回路構成図
、 第7図は本発明の実施例の得点計算及びソートを行うセ
ル構造回路網の構成図、 第8図は本発明の実施例の得点計算セルの処理構成図、 第9図は本発明の実施例の得点計算セルの構成図、 第10図は本発明の実施例の得点ソートセルの処理構成
図、 第11図は本発明の実施例の得点ソートセルの回路構成
図、 第12図は本発明の実施例の得点計算を行うセル構造回
路網の構成図、 第13図は分割数のテーブル図表、 第14図は本発明の他の実施例の得点計算セルの処理構
成図、 第15図は本発明の他の実施例の得点計算セルの回路構
成図、 第16図は得点計算及びソートを行うセル構造回路網の
構成図、 第17図は本発明の実施例の得点のソートを行うセル構
造回路網の構成図、 第18図は得点ソートセルの処理構成図、第19図は得
点ソートセルの回路構成図、第20図はソートにおける
データの流れの説明図である。 1・・・辞書メモリ、 2−1.2−2.2−3・・・距離計算手段、3−1.
3−2.3−3 4−1.4−2.4−3 5−1.5−2.5−3・・・クラス選出手段、6−1
.6−2.6−3・・・得点計算手段、7・・・得点ソ
ート手段。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a system configuration diagram of an embodiment of the present invention, FIG. 3 is a configuration diagram of a cell structure circuit network for performing class selection in an embodiment of the present invention, and FIG. 4 is a circuit diagram of a distance calculation cell according to an embodiment of the present invention, FIG. 5 is a processing diagram of a class selection cell according to an embodiment of the present invention, and FIG. 6 is a circuit diagram of a class selection cell according to an embodiment of the present invention. , FIG. 7 is a block diagram of a cell structure circuit network that performs score calculation and sorting according to an embodiment of the present invention, FIG. 8 is a processing block diagram of a score calculation cell according to an embodiment of the present invention, and FIG. FIG. 10 is a processing configuration diagram of a score sorting cell according to an embodiment of the present invention; FIG. 11 is a circuit diagram of a score sorting cell according to an embodiment of the present invention; FIG. 12 is a circuit diagram of a score sorting cell according to an embodiment of the present invention. FIG. 13 is a table diagram of the number of divisions; FIG. 14 is a processing configuration diagram of a score calculation cell according to another embodiment of the present invention; FIG. A circuit configuration diagram of a score calculation cell according to another embodiment of the present invention. FIG. 16 is a configuration diagram of a cell structure circuit network that performs score calculation and sorting. FIG. 17 is a circuit diagram of a cell that performs score sorting according to an embodiment of the present invention. FIG. 18 is a diagram showing the processing configuration of the score sorting cell, FIG. 19 is a diagram showing the circuit configuration of the score sorting cell, and FIG. 20 is an explanatory diagram of the data flow in sorting. 1... Dictionary memory, 2-1.2-2.2-3... Distance calculation means, 3-1.
3-2.3-3 4-1.4-2.4-3 5-1.5-2.5-3... Class selection means, 6-1
.. 6-2.6-3...Score calculation means, 7...Score sorting means.

Claims (1)

【特許請求の範囲】 1)パターンの特徴データとクラス分けした番号とを記
憶する第1のメモリ(1)と、 記憶した値が入力した値と比較して、小さい時は該値を
そのまま記憶して前記入力した値を出力し、大きい時は
記憶した値を出力して入力した値を記憶する、直列接続
された複数のクラス選出手段(3−1〜3−3、4−1
〜4−3、5−1〜5−3)と、 入力パターンの特徴データが共通に加わり、前記第1の
メモリ(1)で記憶する前記パターンの特徴データと前
記入力特徴データとの距離をそれぞれ計算し、前記直列
接続された複数のクラス選出手段の初段(3−1、4−
1、5−1)に対応して結果を加える複数の距離計算手
段(2−1〜2−3)と、 前記直列接続されたそれぞれのクラス選出手段(3−1
〜5−1、3−2〜5−2、3−3〜5−3)の出力が
それぞれ加わり、前記入力パターンの特徴データに対応
する得点を求める得点計算手段(6−1〜6−3)と、 該得点計算手段(6−1〜6−3)で得られる得点の高
い順に前記パターンの番号を求める得点ソート手段(7
)とより成ることを特徴とする認識装置。 2)前記第1のメモリ(1)は標準パターン単位でクラ
ス分けした特徴データと、該クラスに属するパターンの
コードとを記憶することを特徴とする請求項1記載の認
識装置。 3)前記辞書メモリ(1)はパターン単位でクラスを記
憶することを特徴とする請求項1記載の認識装置。 4)前記クラスはパターン領域を分割したマス単位であ
ることを特徴とする請求項2および請求項3記載の認識
装置。 5)前記クラス選出手段の選出したクラス番号が直列接
続されたクラス選出手段単位で同一の得点計算手段に加
わり、 得点計算手段は、文字単位で該文字が属するクラスを記
憶する第2のメモリに接続され、クラス選出手段より入
力するクラスが当該文字の属するクラスであるかを判別
し、一致している時にクラス選出手段に対応して重み付
けをして累算することを特徴とする請求項1記載の認識
装置。 6)前記得点ソート手段7は勝ち抜き構成に接続された
複数のソートセルより成り、該ソートセルは2個の入力
を有し、該入力より加わる得点の高い値を取り込むとと
もに該入力を加えた前段のソートセルをリセットし、取
り込んだ得点と次段へ出力することを特徴とする請求項
1記載の認識装置。 7)前記得点計算手段は文字単位で設けられ、1文字の
パターン領域を分割したマス単位で得点を順次累算する
ことを特徴とする請求項5記載の認識装置。
[Scope of Claims] 1) A first memory (1) that stores pattern characteristic data and classification numbers, and compares the stored value with the input value, and if the stored value is smaller, stores the value as is. A plurality of series-connected class selection means (3-1 to 3-3, 4-1
4-3, 5-1 to 5-3) and the feature data of the input pattern are added in common, and the distance between the feature data of the pattern stored in the first memory (1) and the input feature data is calculated. The first stages (3-1, 4-) of the plurality of class selection means connected in series
a plurality of distance calculation means (2-1 to 2-3) that add results corresponding to 1 and 5-1), and each class selection means (3-1) connected in series.
5-1, 3-2 to 5-2, 3-3 to 5-3) are added to score calculation means (6-1 to 6-3) for calculating the score corresponding to the feature data of the input pattern. ), and score sorting means (7) for calculating the numbers of the patterns in descending order of the scores obtained by the score calculation means (6-1 to 6-3).
). 2) The recognition device according to claim 1, wherein the first memory (1) stores feature data classified into standard pattern units and codes of patterns belonging to the classes. 3) The recognition device according to claim 1, wherein the dictionary memory (1) stores classes in units of patterns. 4) The recognition device according to claim 2 or claim 3, wherein the class is a unit of squares obtained by dividing a pattern area. 5) The class number selected by the class selection means is added to the same score calculation means in units of serially connected class selection means, and the score calculation means is stored in a second memory that stores the class to which the character belongs on a character-by-character basis. Claim 1, wherein the class selection means determines whether the class inputted from the class selection means is the class to which the character belongs, and when they match, the class selection means performs weighting and accumulation according to the class selection means. The recognition device described. 6) The score sorting means 7 is composed of a plurality of sort cells connected in a winning configuration, and the sort cell has two inputs, and takes in the value with the higher score added from the input, and also the previous sort cell to which the input is added. 2. The recognition device according to claim 1, wherein the recognition device resets the acquired score and outputs the acquired score to the next stage. 7) The recognition device according to claim 5, wherein the score calculation means is provided for each character and sequentially accumulates the score in units of squares into which a pattern area of one character is divided.
JP2058042A 1990-02-26 1990-03-12 Recognition device Expired - Fee Related JP2710139B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2058042A JP2710139B2 (en) 1990-03-12 1990-03-12 Recognition device
CA002036974A CA2036974C (en) 1990-02-26 1991-02-25 Pattern recognition data processing device using an associative matching method
US07/660,756 US5214717A (en) 1990-02-26 1991-02-25 Pattern recognition data processing device using an associative matching method
EP19910102798 EP0444593A3 (en) 1990-02-26 1991-02-26 A data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2058042A JP2710139B2 (en) 1990-03-12 1990-03-12 Recognition device

Publications (2)

Publication Number Publication Date
JPH03260879A true JPH03260879A (en) 1991-11-20
JP2710139B2 JP2710139B2 (en) 1998-02-10

Family

ID=13072880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2058042A Expired - Fee Related JP2710139B2 (en) 1990-02-26 1990-03-12 Recognition device

Country Status (1)

Country Link
JP (1) JP2710139B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6315383A (en) * 1986-07-07 1988-01-22 Nippon Telegr & Teleph Corp <Ntt> Pattern collating device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6315383A (en) * 1986-07-07 1988-01-22 Nippon Telegr & Teleph Corp <Ntt> Pattern collating device

Also Published As

Publication number Publication date
JP2710139B2 (en) 1998-02-10

Similar Documents

Publication Publication Date Title
CN110780923B (en) Hardware accelerator applied to binary convolution neural network and data processing method thereof
JP3077765B2 (en) System and method for reducing search range of lexical dictionary
Kaukoranta et al. A fast exact GLA based on code vector activity detection
US5214717A (en) Pattern recognition data processing device using an associative matching method
KR20230122872A (en) Transfer learning system and method for deep neural network
US4641355A (en) Pattern recognition apparatus
JP4556120B2 (en) Information processing apparatus and method, and program
JP2001184509A (en) Pattern recognition apparatus and method, and recording medium
JPH03260879A (en) Recognizing device
JPH06111038A (en) Neural network and operating method thereof
KR20220068357A (en) Deep learning object detection processing device
CN116310636B (en) A Lightweight Neural Network Structure Search Method Based on Neural Network Topology
CN118626693A (en) A big data retrieval method, device and readable storage medium
Cinque et al. Optimal range segmentation parameters through genetic algorithms
KR102227437B1 (en) Apparatus and method for generating and using neural network model applying accelerated computation
US5559898A (en) Comparison inequality function based method for accelerated OCR correlation
CN115546184B (en) A method for realizing image projection based on content addressable memory
JP3060922B2 (en) Feature generator
JPH03268088A (en) General evaluation circuit
Rico et al. Incorporating ranking rules into k nearest neighbours
JP2540899B2 (en) Sorter memory management method
Dondapati et al. Modified Social Spider Optimization and K-Means Hybridization for Image
Hwang et al. Nonparametric classifier design using greedy tree-structured vector quantization technique
CN110717362B (en) Method for Establishing Feature Tree Structure of Digital Image and Image Object Recognition Method
JP2991750B2 (en) Dictionary creation method

Legal Events

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