JPH0632091B2 - Japanese sentence reader - Google Patents
Japanese sentence readerInfo
- Publication number
- JPH0632091B2 JPH0632091B2 JP61033536A JP3353686A JPH0632091B2 JP H0632091 B2 JPH0632091 B2 JP H0632091B2 JP 61033536 A JP61033536 A JP 61033536A JP 3353686 A JP3353686 A JP 3353686A JP H0632091 B2 JPH0632091 B2 JP H0632091B2
- Authority
- JP
- Japan
- Prior art keywords
- word
- character
- string
- characters
- japanese sentence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Character Discrimination (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は,日常使われる日本文を読み取る装置に係
り,とくに日本文を構成する文字を1文字ごとに認識
し,その認識結果から文法的に確からしい結果を選択し
て読取結果とする日本文読取装置に関するものである。Description: TECHNICAL FIELD The present invention relates to an apparatus for reading Japanese sentences in daily use, and in particular, recognizes characters constituting Japanese sentences character by character, and recognizes the grammatical characters from the recognition result. The present invention relates to a Japanese sentence reading device that selects a certain result as a reading result.
第2図は従来の日本文読取装置の構成図であり,図にお
いて,(1)は張票,(2)は走査手段,(3)は文字を1文字
ごとに切り出して認識し,認識候補文字を出力する文字
認識手段,(9)は例えば,「候補文字補完と形態素解析
による漢字認識の誤り訂正処理法」(昭和60年度電子
通信学会情報・システム部門全国大会S4−4」また
は,「言語情報と認識情報を用いた文字認識後処理」
(電子通信学会研究会資料PRL82−76)に示される
ように,認識候補文字から句読点または例えば平仮名か
ら漢字への文字種の変り目を検知して,単語辞書との照
合および単語の文法的接続検定を行う範囲を決定する処
理範囲決定手段,(4)は日本文において使用される単語
とその文法的属性を格納した単語辞書,(5)は上記処理
範囲決定手段(9)で決定された範囲の文字列に対する認
識候補文字と単語辞書(4)を照合して,単語辞書(4)に存
在する単語を選択する単語照合手段,(7)は連続する単
語列が文法的に接続可能かどうかの接続情報を格納した
文法辞書,(8)は上記文法辞書(7)を参照して,文法的に
接続が可能な単語列を選択する単語接続検定手段であ
る。FIG. 2 is a block diagram of a conventional Japanese sentence reading device. In the figure, (1) is a sticker, (2) is scanning means, and (3) is character recognition by cutting out character by character and recognizing candidates. The character recognition means for outputting characters, (9) is, for example, “Error correction processing method of kanji recognition by candidate character complement and morphological analysis” (1985 National Institute of Electronics and Communication Engineers Information Systems Division S4-4) or “ Post-processing of character recognition using linguistic information and recognition information "
As shown in (The Institute of Electronics and Communication Engineers Research Institute material PRL82-76), punctuation marks or character transitions from, for example, hiragana to kanji are detected from recognition candidate characters, and collation with a word dictionary and grammatical connection verification of words are performed. Processing range determining means for determining the range to be performed, (4) is a word dictionary that stores words used in Japanese sentences and their grammatical attributes, and (5) is a range of the range determined by the processing range determining means (9). A word matching means that matches the recognition candidate characters for the character string with the word dictionary (4) and selects words existing in the word dictionary (4). A grammar dictionary storing connection information, (8) is a word connection verification means for selecting a word string that can be connected grammatically by referring to the grammar dictionary (7).
日本文は,例えば英語などの言語と違い,単語単位に分
かち書きをする習慣がなく,一般には,複数の文がいく
つもべた書きされる。したがって,日本文読取装置で
は,通常複数の文から構成される読取対象の文章を,最
初から最後までを1回で処理するのは,記憶容量・処理
時間の増大をまねくという点から,効率が悪く,読取対
象の日本文を適当な長さに区切つて処理を行う必要があ
る。Unlike the languages such as English, Japanese sentences do not have the habit of writing words in word units, and in general, multiple sentences are written in solid form. Therefore, in the Japanese sentence reader, it is not efficient to process the sentence to be read, which is usually composed of multiple sentences, from the beginning to the end in one step because it increases the storage capacity and processing time. Unfortunately, it is necessary to divide the Japanese sentence to be read into appropriate lengths for processing.
従来の日本文読取装置は上記のように構成され日本文を
構成する文字の認識候補文字から,句読点と判断された
文字位置を区切りとして,さらに例えば,平仮名と判断
された文字から漢字と判断された文字への変り目など,
文字種の変り目を区切りとして,それら区切り間に存在
する文字に対する認識候補文字を用いて日本文を読み取
つていた。The conventional Japanese sentence reading device is configured as described above, and from the recognition candidate characters of the characters constituting the Japanese sentence, the character positions determined as punctuation marks are used as delimiters, and further, for example, the characters determined as hiragana are determined as kanji. Such as turning into a letter
Japanese characters were read using the recognition candidate characters for the characters existing between the boundaries, with the transitions of the character types as the boundaries.
第3図は,日本文読取装置に入力される張票(1)上に印
刷または記入された入力日本文の例および入力日本文の
各文字認識手段(3)で1文字ごとに認識して得られる認
識候補文字の例であり,図において,(10)は入力日本文
を構成する文字列“大都会は人間が多いが,おもしろ
い。”であり,(11)は入力日本文(10)の各文字列に対す
る認識候補文字列である。Fig. 3 shows an example of the input Japanese sentence printed or entered on the sticker (1) that is input to the Japanese sentence reading device and each character of the input Japanese sentence is recognized by the character recognizing means (3). This is an example of the recognition candidate characters that can be obtained. In the figure, (10) is the character string that constitutes the input Japanese sentence, “In the big city, there are many humans, but it is interesting.” (11) is the input Japanese sentence (10). It is a recognition candidate character string for each character string of.
第4図は従来の日本文読取装置における処理範囲決定手
段(9)で決定された処理範囲であり,図中(12)〜(15)は
区切りとなる位置,(16)〜(19)は処理範囲である。FIG. 4 shows the processing range determined by the processing range determining means (9) in the conventional Japanese sentence reading device. In the figure, (12) to (15) are delimiter positions, and (16) to (19) are This is the processing range.
第5図,第6図は単語辞書(4)の例であり,図中,(20)
〜(59)は単語の項目および文法的属性である。Figures 5 and 6 are examples of word dictionaries (4). In the figure, (20)
~ (59) are word items and grammatical attributes.
第7図,第8図および第9図は文法辞書(7)の例であ
り,〇印は文法的属性どうしが接続可能であることを示
し,×印は文法的属性どうしが接続不可能であることを
示す。Figures 7, 8 and 9 are examples of grammar dictionaries (7), where the ◯ mark indicates that grammatical attributes can be connected, and the X mark indicates that grammatical attributes cannot be connected. Indicates that there is.
第10図は区切り(12)と区切り(13)で決定される処理範
囲(16)にある文字列に対する認識候補文字と単語辞書
(4)を照合して選択された単語である。FIG. 10 shows recognition candidate characters and word dictionary for a character string within the processing range (16) determined by the delimiter (12) and the delimiter (13).
It is a word selected by collating (4).
第11図は処理範囲(16)で選択された単語に対して、単
語接続検定手段(8)で,文法辞書(7)を参照しながら,文
法的に接続可能となるものを選択した結果である。FIG. 11 shows the result of selecting, by the word connection verification means (8), a grammatically connectable word for the word selected in the processing range (16) while referring to the grammar dictionary (7). is there.
第12図は区切り(13)と区切り(14)で決定される処理範
囲(17)にある文字列に対する認識候補文字と単語辞書
(4)を照合して選択された単語である。FIG. 12 shows recognition candidate characters and word dictionary for a character string within the processing range (17) determined by the delimiter (13) and the delimiter (14).
It is a word selected by collating (4).
第13図は区切り(12)と区切り(14)で決定される処理範
囲(18)にある文字列に対する認識候補文字と単語辞書
(4)を照合して選択された単語である。第14図は処理
範囲(18)で選択された単語に対して,単語接続検定手段
(8)で,文法辞書(7)を参照しながら,文法的に接続可能
となるものを選択した結果である。FIG. 13 shows recognition candidate characters and word dictionary for a character string within the processing range (18) determined by the delimiter (12) and the delimiter (14).
It is a word selected by collating (4). FIG. 14 shows the word connection verification means for the words selected in the processing range (18).
This is the result of selecting the items that can be connected grammatically while referring to the grammar dictionary (7) in (8).
第15図は区切り(14)と区切り(15)で決定される処理範
囲(19)にある文字列に対する認識候補文字と単語辞書
(4)を照合して選択された単語である。FIG. 15 shows a recognition candidate character and a word dictionary for a character string within a processing range (19) determined by the delimiter (14) and the delimiter (15).
It is a word selected by collating (4).
次に動作について説明する。Next, the operation will be described.
帳票(1)上の入力日本文(10)は走査手段(2)で走査され,
文字認識手段(3)で,2値化などの前処理を行つた後,
1文字ごとに切り出され,パターンマツチング等の方法
によつて認識される。そして,入力文字としての確度が
高い順に順位付けされた複数の認識候補文字(11)を出力
する。処理範囲決定手段(9)では,まず入力日本文(10)
の先頭に区切り(12)をおき,そして,例えば,認識候補
文字の第1位が句読点である文字からそうでない文字に
変化するところ,および認識候補文字の第1位が平仮名
である文字から,認識候補文字の第1位が漢字である文
字に変化するところを、それぞれ字種の変り目であると
して区切りをおくとすると,まず区切り(13)が見つか
る。単語照合手段(5)では,区切り(12)と区切り(13)で
決定される処理範囲(16)にある文字に対する認識候補文
字と単語辞書(4)を照合して,入力日本文(10)の第1文
字目に対する認識候補文字で始まる単語として,「大」
(49),「大都会」(50),「文」(57),「文部」(58),
「太」(47),「太郎」(48),「火」(40)第2文字目か
ら,「都」(51)「都会」(52),「都合」(53),「部」(5
5),「部会」(56),第3文字目から,「会」(41),
「合」(43),第4文字目から,「は」(31),「ば」(32)
第5文字から,「ん」(39),「人」(44),「入」(54)を
それぞれ選択する。単語接続検定手段(8)では,文法辞
書(7)を参照して,単語照合手段(5)で選択された単語間
の接続検定を行つて,接続が可能となる単語列を選択す
る。この例の場合は文法辞書(7)の接続情報(60)〜(85)
により,第11図に示した単語列が接続可能なものとし
て選択される。The input Japanese sentence (10) on the form (1) is scanned by the scanning means (2),
After performing preprocessing such as binarization with the character recognition means (3),
It is cut out character by character and recognized by a method such as pattern matching. Then, a plurality of recognition candidate characters (11) are output, which are ranked in order of increasing accuracy as input characters. In the processing range determination means (9), first input Japanese sentence (10)
A delimiter (12) is placed at the beginning of, and, for example, where the first position of the recognition candidate character changes from a character that is a punctuation mark to a character that is not, and from the character where the first position of the recognition candidate character is a hiragana character, If the places where the first character of the recognition candidate character changes to a character that is Kanji are set as the transitions of the character types, and a delimiter is set, the delimiter (13) is found first. The word collating means (5) collates the recognition candidate character for the character within the processing range (16) determined by the delimiter (12) and the delimiter (13) with the word dictionary (4) to input the Japanese sentence (10). "Large" as the word starting with the recognition candidate character for the first character of
(49), "Large city" (50), "Sentence" (57), "Student" (58),
"Ta" (47), "Taro" (48), "Tue" (40) From the second character, "City" (51) "City" (52), "Convenience" (53), "Part" ( Five
5), "section" (56), from the third letter, "meeting" (41),
"Go" (43), from the 4th character, "ha" (31), "ba" (32)
From the fifth character, "n" (39), "person" (44), and "on" (54) are selected, respectively. The word connection verification means (8) refers to the grammar dictionary (7) and conducts a connection verification between the words selected by the word matching means (5) to select a word string that enables connection. In this case, connection information (60) to (85) of the grammar dictionary (7)
Thus, the word string shown in FIG. 11 is selected as connectable.
次に区切り(14)が見つかるので,単語照合手段(5)で
は,区切り(13)と区切り(14)で決定される処理範囲(17)
にある文字に対する認識候補文字と単語辞書(4)を照合
して,入力日本文(10)の第6文字目に対する認識候補文
字で始まる単語として,「間」(42),「問」(52),第7
文字目から,「が」(29),第8文字目から,「多」(4
6),第9文字目から「い」(25),第10文字目から,
「が」(29),「か」(28),第11文字目から,「,」(2
1),「へ」(33),「〜」(22)を,それぞれ選択する。単
語検定手段(8)では,処理範囲(17)の最後の単語である
「人」(44),「入」(54)と,処理範囲(17)の先頭の単語
である「間」(42),「問」(59)の接続検定を行うが,文
法辞書(7)の接続情報(65),(66),(87)〜(90)により,
いずれも接続不可能となつて,正しい単語である「人
間」(45)が選択されず,正しい処理結果が得られない。Next, since the delimiter (14) is found, the word matching means (5) determines the processing range (17) determined by the delimiter (13) and the delimiter (14).
Matching the recognition candidate character for the character in 4 and the word dictionary (4), as the word starting with the recognition candidate character for the 6th character of the input Japanese sentence (10), "Ma" (42), "Q" (52) ), 7th
From the 8th character, "ga" (29) from the 8th character, "many" (4
6), from the 9th character to "i" (25), from the 10th character,
"Ga" (29), "ka" (28), from the 11th character, "," (2
Select 1), “to” (33), and “to” (22), respectively. In the word verification means (8), the last words of the processing range (17) are "person" (44) and "on" (54), and the first word of the processing range (17) is "ma" (42). ), "Question" (59) connection verification is performed, but by the connection information (65), (66), (87) to (90) of the grammar dictionary (7),
In both cases, the correct word "human" (45) is not selected because the connection is impossible, and the correct processing result cannot be obtained.
一方,処理範囲決定手段(9)において,例えば,認識候
補文字の第1文が句読点であるときに入力文字が句読点
であると判断して,その直後に区切りをおくとすると,
まず,区切り(14)が見つかるので,単語照合手段(5)で
は,区切り(12)と区切り(14)で決定される処理範囲(18)
にある文字に対する認識候補文字と,単語辞書(4)を照
合して,第13図に示した単語を選択する。単語接続検
定手段(8)では,文法辞書(7)の接続情報(60)〜(119)に
より,第14図に示した単語列が接続可能なものとして
選択される。On the other hand, in the processing range determining means (9), for example, when the first sentence of the recognition candidate characters is a punctuation mark, the input character is determined to be a punctuation mark, and a delimiter is placed immediately after that.
First, since the delimiter (14) is found, the word matching means (5) determines the processing range (18) determined by the delimiter (12) and the delimiter (14).
The word candidates shown in FIG. 13 are selected by collating the recognition candidate character for the character in the word dictionary (4). In the word connection verification means (8), the word strings shown in FIG. 14 are selected as connectable by the connection information (60) to (119) of the grammar dictionary (7).
ここまでは,区切り(14)が正しく設定されているので,
第13図に示した接続可能な単語列の中に,正しい読取
結果が含まれている。Up to this point, the delimiter (14) has been set correctly, so
The correct read result is included in the connectable word strings shown in FIG.
次に区切り(15)が見つかるので,単語照合手段(5)では
区切り(14)と区切り(15)で決定される処理範囲(19)にあ
る文字に対する認識候補文字と単語辞書(4)を照合し
て,第15図に示した単語を選択する。Next, since the delimiter (15) is found, the word matching means (5) matches the recognition candidate character for the character within the processing range (19) determined by the delimiter (14) and the delimiter (15) with the word dictionary (4). Then, the word shown in FIG. 15 is selected.
単語接続検定手段(8)では,処理範囲(18)の最後の単語
である「,」(21)と,処理範囲(19)の先頭の単語である
「お」(26)の接続検定を行う。文法辞書(7)の接続情報
(120)〜(122)により,「,」(21)と「お」(26)は接続可
能となるので,「お」(26)と,それに続く「も」(35),
「む」(34)との接続検定を行う。ところが,文法辞書
(7)の接続情報(123)〜(130)により,「お」(26)が有す
る文法的属性と,「も」(35),「む」(34)が有する文法
的属性のうち,どれも接続可能となるものがないので,
正しく処理が行われない。これは,区切り(15)が,単語
辞書(4)の単語「おもしろ」(27)の途中に設定されたた
めである。The word connection verification means (8) conducts a connection verification of the last word "," (21) of the processing range (18) and the first word "O" (26) of the processing range (19). . Connection information for grammar dictionary (7)
From (120) to (122), "," (21) and "O" (26) can be connected, so "O" (26) and the following "Momo" (35),
Perform a connection test with "mu" (34). However, the grammar dictionary
Which of the grammatical attributes "o" (26) has and the grammatical attributes "mo" (35) and "mu" (34) have according to the connection information (123) to (130) of (7) Since there is nothing that can be connected,
It is not processed correctly. This is because the delimiter (15) is set in the middle of the word "interesting" (27) in the word dictionary (4).
このような異常が発生した場合には,例えば異常が発生
した処理範囲を、次の処理範囲まで拡張するなどによつ
て正しく処理される場合もあるが,その際には,さらに
処理時間が必要となる。When such an abnormality occurs, it may be processed correctly by, for example, expanding the processing range in which the abnormality has occurred to the next processing range. In that case, further processing time is required. Becomes
〔発明が解決しようとする問題点〕 従来の日本文読取装置では,認識候補文字と単語辞書と
の照合を行う際に,句読点または文字種の変り目と判断
されたところを区切りとして,処理範囲を決定していた
ので,単語の途中の文字を句読点とまちがつて判断した
り,文字種をまちがつて判断すると,単語の途中に区切
りが設定されて正しい読取結果が得られないという問題
点があつた。また,従来の日本文読取装置では,例えば
句読点を区切りとする場合に,処理範囲が長くなるた
め,処理に必要な記憶容量・処理時間の増大をまねくと
いう問題点があつた。[Problems to be Solved by the Invention] In a conventional Japanese sentence reading device, when a recognition candidate character is collated with a word dictionary, a processing range is determined by separating a portion determined to be a punctuation mark or a change in character type. Therefore, if a character in the middle of a word is mistaken for a punctuation mark, or if the character type is wrong, a delimiter is set in the middle of the word and a correct reading result cannot be obtained. . In addition, the conventional Japanese sentence reading device has a problem in that, for example, when a punctuation mark is used as a delimiter, the processing range becomes long, resulting in an increase in storage capacity and processing time required for processing.
この発明に係る問題点を解決するためになされたもの
で,区切りの設定まちがいによる読取精度の低下をなく
し,記憶容量の削減および処理時間の減少できる日本文
読取装置を得ることを目的とする。The present invention has been made in order to solve the problems related to the present invention, and an object of the present invention is to provide a Japanese sentence reader capable of eliminating a decrease in reading accuracy due to an incorrect setting of a delimiter, and reducing a storage capacity and a processing time.
この発明に係る日本文読取装置は,文字認識手段から出
力された認識候補文字と単語辞書を照合して,連続する
2文字に対する認識候補文字を含む単語が存在しないと
ころを検知し,その間に単語列の境界があるとする単語
列境界検知手段を設けたものである。The Japanese sentence reading device according to the present invention collates the recognition candidate character output from the character recognition means with the word dictionary, detects that there is no word including the recognition candidate character for two consecutive characters, and detects the word between them. It is provided with a word string boundary detection means that assumes that there is a boundary between strings.
この発明における単語列境界検知手段は,単語辞書に格
納されている単語の途中に,単語接続検定処理範囲の区
切りを設定することなく,かつ,処理範囲の文字列を短
くする。The word string boundary detection means according to the present invention shortens the character string in the processing range without setting a delimiter of the word connection verification processing range in the middle of the word stored in the word dictionary.
以下,この発明の一実施例を図示して説明する。第1図
はこの発明の実施例を示す構成図である。なお,第2図
に示した従来例と同一符号のものは同一構成要素を示し
ており,その説明は省略する。図中,(6)は単語列の境
界を検知する単語列境界検知手段である。An embodiment of the present invention will be illustrated and described below. FIG. 1 is a block diagram showing an embodiment of the present invention. The same reference numerals as those in the conventional example shown in FIG. 2 indicate the same components, and the description thereof will be omitted. In the figure, (6) is a word string boundary detection means for detecting the boundaries of word strings.
第16図,第17図,第18図は,単語列境界検知手段
(6)で検知した単語列境界内の認識候補文字と単語辞書
(4)と照合を行つた結果であり、図中,(131)〜(142)
は,単語列境界である。FIG. 16, FIG. 17, and FIG. 18 are word string boundary detection means.
Recognition candidate characters and word dictionary within the word string boundary detected in (6)
This is the result of matching with (4), and in the figure, (131) to (142)
Is a word string boundary.
第19図,第20図,第21図は,第16図,第17
図,第18図の単語列境界に対応し,単語接続検定手段
(8)で,文法辞書(7)を参照して,単語接続検定を行つた
結果である。FIGS. 19, 20, and 21 are FIGS. 16 and 17, respectively.
Corresponding to the word string boundaries in FIGS.
In (8), this is the result of performing the word connection test with reference to the grammar dictionary (7).
第22図は入力日本文(10)に最初から最後までの処理結
果である。FIG. 22 shows the processing results from the beginning to the end of the input Japanese sentence (10).
第23図は認識候補文字の順位の和を用いて,一意に決
定したときの読取結果である。FIG. 23 shows the reading result when the sum of the ranks of the recognition candidate characters is used to uniquely determine.
次に,動作について説明する。Next, the operation will be described.
文字認識手段(3)で第3図に示す入力日本文(10)に対す
る認識候補文字(11)が得られた後,まず,単語照合手段
(5)で,単語辞書(4)と照合を行う。入力日本文(10)の第
1文字目に対する認識候補文字で始まる単語として,第
16図に示した単語(49),(50),(57),(58),(47),(4
8),(40)が選択される。第2文字目に対する認識候補文
字で始まる単語を選択する前に,単語列境界検知手段
(6)では,第1文字目と第2文字目の間が単語列境界と
なつているかどうかを調べる。すなわち,第1文字目と
第2文字目に対する認識候補文字を含む単語が選択され
ているかどうかを調べ,そのような単語が1つも選択さ
れていなければ,そこを単語列境界とし,そうでなけれ
ば単語列境界としない。この例の場合は,「大都会」(5
0)という単語があるので,入力日本文(10)の第1文字目
と第2文字目の間には単語列境界はないとする。そし
て,単語照合手段(5)では,単語辞書(4)と照合して,入
力日本文(10)の第2文字目に対する認識候補文字で始ま
る単語を選択する。すると,第16図に示した単語(5
1),(52),(53),(55),(56)が選択される。そして,同
様に,入力日本文(10)の第3文字目に対する認識候補文
字で始まる単語を選択する前に,単語列境界検知手段
(6)では,入力日本文(10)の第2文字目と第3文字目の
間に単語列境界があるかどうかを調べる。After the recognition candidate character (11) for the input Japanese sentence (10) shown in FIG. 3 is obtained by the character recognition means (3), first, the word matching means
In (5), the word dictionary (4) is matched. Words (49), (50), (57), (58), (47), (4 shown in FIG. 16 as words starting with the recognition candidate character for the first character of the input Japanese sentence (10)
8) and (40) are selected. Before selecting a word starting with a recognition candidate character for the second character, a word string boundary detection means
In (6), it is checked whether the first character and the second character form a word string boundary. That is, it is checked whether or not the word including the recognition candidate character for the first character and the second character is selected, and if no such word is selected, it is set as the word string boundary, and it must be so. For example, do not use word string boundaries. In the case of this example, "Big city" (5
Since there is the word 0), it is assumed that there is no word string boundary between the first character and the second character of the input Japanese sentence (10). Then, the word collating means (5) collates with the word dictionary (4) to select a word starting with a recognition candidate character for the second character of the input Japanese sentence (10). Then, the word (5
1), (52), (53), (55), (56) are selected. Similarly, before selecting the word starting with the recognition candidate character for the third character of the input Japanese sentence (10), the word string boundary detecting means is selected.
In (6), it is checked whether there is a word string boundary between the second character and the third character of the input Japanese sentence (10).
この例の場合,「大都会」(50)という単語が,第2文字
目と第3文字目にまたがつて存在するので,単語列境界
とはならない。そこで,単語照合手段(5)(5)では,単語
辞書(4)を参照して,入力日本文(10)の第3文字目に対
する認識候補文字で始まる単語(41),(43)を選択する。
さらに,今度は入力日本文(10)の第4文字目に対する認
識候補文字で始まる単語を選択する前に,単語列境界検
知手段(6)では,入力日本文の第3文字目と第4文字目
の間に単語列境界があるかどうかを調べる。この例の場
合,第3文字目と第4文字目にまたがつて存在する単語
が存在しないので,入力日本文(10)の第3文字目と第4
文字目の間に単語列境界(132)が存在するとする。単語
列境界検知手段(6)で単語列境界(132)が見つかると,単
語接続検定手段(8)では,入力日本文(10)の先頭にあら
かじめ設定しておいた単語列境界(131)と単語列境界(13
2)の間で選択された単語に対して接続検定を行う。文法
辞書(7)内の接続情報(60)〜(62)および(64)〜(76)によ
り,第19図に示した単語接続検定結果が得られる。In the case of this example, the word "major city" (50) exists across the second and third characters, so it does not become a word string boundary. Therefore, the word matching means (5) (5) refers to the word dictionary (4) and selects words (41) and (43) starting with the recognition candidate character for the third character of the input Japanese sentence (10). To do.
Further, this time, before selecting a word starting with the recognition candidate character for the fourth character of the input Japanese sentence (10), the word string boundary detection means (6) uses the third and fourth characters of the input Japanese sentence. Check if there is a word string boundary between the eyes. In the case of this example, since there is no word that extends across the third and fourth characters, the third and fourth characters of the input Japanese sentence (10)
It is assumed that there is a word string boundary (132) between the letters. When the word string boundary detection means (6) finds the word string boundary (132), the word connection verification means (8) detects the word string boundary (131) that has been set in advance at the beginning of the input Japanese sentence (10). Word string boundary (13
The connection test is performed on the words selected between 2). The connection information (60) to (62) and (64) to (76) in the grammar dictionary (7) provides the word connection test result shown in FIG.
次に,入力日本文(10)の第4文字目に対する認識候補文
字で始まる単語として,第17図に示した単語(31),(3
2)が選択される。Next, the words (31), (3) shown in FIG. 17 are shown as words starting with the recognition candidate character for the fourth character of the input Japanese sentence (10).
2) is selected.
同様にして,単語列境界検知手段(6)により,第4文字
目と第5文字目の間に第17図に示した単語列境界(13
3)が見つかり,単語接続検定手段(8)で単語接続検定を
行うと,文法辞書(7)の接続情報(63),(77),(78)によ
り,第20図に示した単語(31)が単語接続検定結果とし
て得られる。Similarly, the word string boundary detection means (6) is used to detect the word string boundary (13) shown in FIG. 17 between the fourth character and the fifth character.
3) was found, and when the word connection verification means (8) performed the word connection verification, the words (31) shown in FIG. 20 were obtained from the connection information (63), (77), (78) of the grammar dictionary (7). ) Is obtained as the word connection test result.
以降,順に,第17図に示した単語列境界(133)〜(13
7),第18図に示した単語列境界(138)〜(142)が見つか
り,それぞれ,単語(45),(29),(46),(25),(29),(2
8),(21),(27),(25),(20)が接続検定結果として得ら
れる。Thereafter, in order, the word string boundaries (133) to (13) shown in FIG.
7), the word string boundaries (138) to (142) shown in FIG. 18 were found, and the words (45), (29), (46), (25), (29), and (2) were found, respectively.
8), (21), (27), (25), and (20) are obtained as connection verification results.
入力日本文(10)を最後まで処理したとき,最終結果とし
て,第22図に示したものが得られる。この例の場合
は,入力日本文(10)の第1文字目から第3文字目,およ
び入力日本文(10)の第10文字目に対して,複数の単語
列が候補として得られる。このような場合には,人間が
正しい日本文を選択できるように装置を構成してもよい
し,または,例えば,単語列境界間に複数の単語列があ
る場合には,各単語列を構成する認識候補文字の順位の
和が最小となるものを選択するようにすると,「大都
会」(50)および「大」(49)「都会」(52)の順位の和が1
+1+1=3で最小となつて選択され,同様に,「が」
(29)が選択される。そして,いずれの場合も,入力日本
文(10)に対する読取結果として第23図に示した正しい
結果が得られる。When the input Japanese sentence (10) is processed to the end, the final result shown in FIG. 22 is obtained. In the case of this example, a plurality of word strings are obtained as candidates for the first to third characters of the input Japanese sentence (10) and the tenth character of the input Japanese sentence (10). In such a case, the device may be configured so that a human can select the correct Japanese sentence, or, for example, when there are multiple word strings between word string boundaries, each word string is configured. If the sum of the ranks of the recognition candidate characters is selected to be the smallest, the sum of the ranks of "Big City" (50) and "Large" (49) "City" (52) is 1
+ 1 + 1 = 3 is selected as the minimum, and similarly, "ga"
(29) is selected. In any case, the correct result shown in FIG. 23 is obtained as the reading result for the input Japanese sentence (10).
なお,上記実施例では,通常の日本文について説明した
が,都道府県・市区郡などに分けて書かれていないべた
書きの住所や,氏と名が分けて書かれていない氏名の読
み取りに用いることもできる。In addition, in the above-mentioned embodiment, a normal Japanese sentence is explained, but it is possible to read a solid address which is not written separately for each prefecture / city / ward, or a name which is not written separately for each name. It can also be used.
以上のように,この発明によれば,単語辞書に登録され
ている単語の途中に処理範囲が設定されないように,単
語列境界検知手段を設けたので,正確にかつ短かく処理
範囲が設定でき,処理に必要な記憶容量・処理時間の少
ない日本文読取装置を得るという効果がある。As described above, according to the present invention, since the word string boundary detection means is provided so that the processing range is not set in the middle of the words registered in the word dictionary, the processing range can be set accurately and shortly. The effect is to obtain a Japanese sentence reader that requires less storage capacity and processing time for processing.
第1図は,この発明の実施例による構成図,第2図は従
来の方法を用いた場合の構成図,第3図は入力日本文の
例とその認識候補文字の例を示す図,第4図は従来の方
法での区切りと処理範囲を示す図,第5図および第6図
は単語辞書の例を示す図,第7図,第8図および第9図
は,文法辞書の例を示す図,第10図,第12図,第1
3図,第15図は従来の装置での処理範囲に対して単語
照合を行つた例を示す図,第11図,第14図は,従来
の装置での処理範囲で単語接続検定を行つた例を示す
図,第16図,第17図,第18図はこの発明による装
置で単語照合を行つた例を示す図,第19図,第20
図,第21図はこの発明による装置で単語接続検定を行
つた例を示す図,第22図,第23図はこの発明による
日本文読取結果を示す図,第22図 図において,(3)は文字認識手段,(4)は単語辞書,(5)
は単語照合手段,(6)は単語列境界検知手段,(7)は文法
辞書,(8)は単語接続検定手段である。 なお,図中,同一符号は同一または相当部分を示す。FIG. 1 is a block diagram according to an embodiment of the present invention, FIG. 2 is a block diagram when a conventional method is used, FIG. 3 is a diagram showing an example of an input Japanese sentence and its recognition candidate character, FIG. 4 is a diagram showing the division and processing range in the conventional method, FIGS. 5 and 6 are diagrams showing examples of word dictionaries, and FIGS. 7, 8 and 9 are examples of grammar dictionaries. Figure, Figure 10, Figure 12, Figure 1
3 and 15 are diagrams showing an example in which word matching is performed on the processing range of the conventional device, and FIGS. 11 and 14 are word connection verifications performed in the processing range of the conventional device. FIG. 16, FIG. 17, FIG. 18, and FIG. 18 show examples of word matching performed by the apparatus according to the present invention.
Fig. 21 is a diagram showing an example of performing a word connection test with the device according to the present invention, and Figs. 22 and 23 are diagrams showing the results of reading Japanese sentences according to the present invention. Fig. 22 (3) Is a character recognition means, (4) is a word dictionary, (5)
Is a word matching means, (6) is a word string boundary detection means, (7) is a grammar dictionary, and (8) is a word connection verification means. In the drawings, the same reference numerals indicate the same or corresponding parts.
Claims (1)
日本文読取装置において、入力文字として確度の高い順
に順位付けされた複数の認識候補文字を入力文字ごとに
選択する文字認識手段と,日本文において使用される単
語および単語ごとの文法的属性を格納した単語辞書と,
上記単語の文法的属性間の文法的接続情報を格納した文
法辞書と,日本文を構成する文字列に対する認識候補文
字を組み合わせた任意の長さの文字列から上記単語辞書
内に存在する単語を選択する単語照合手段と,日本文の
文字を前から順次1文字づつ、直後の文字と連続した2
文字を対象にそれぞれの認識候補文字を組み合わせた文
字列を含む2文字以上の単語が上記単語辞書内に存在し
ないときに上記連続する2文字の間を単語列の境界とす
る単語列境界検知手段と,連続する単語から上記文法辞
書内の文法的接続情報を用いて文法的に接続が可能な単
語列を選択する単語接続検定手段とを備え、上記単語列
境界検知手段によって検知された単語列境界で区切られ
た文字列に対して,上記単語照合手段を用いて複数の候
補単語列を選択し,選択された候補単語列のうちから上
記単語接続検定手段を用いて文法的接続が可能な候補単
語列を選択し,さらに単語列境界の前後の上記選択され
た候補単語列のうちから単語列境界を越えて日本文に接
続が可能な単語列を上記単語接続検定手段を用いて選択
し,選択された単語列を入力日本文に対する読取結果と
することを特徴とする日本文読取装置。1. A Japanese sentence reader for recognizing and reading characters constituting a Japanese sentence, and a character recognizing means for selecting, for each input character, a plurality of recognition candidate characters ranked in order of high accuracy as input characters. A word dictionary that stores words used in Japanese sentences and grammatical attributes for each word,
A word existing in the word dictionary is searched from a grammar dictionary that stores grammatical connection information between the grammatical attributes of the words and a character string of any length that combines recognition candidate characters for the character strings that make up the Japanese sentence. The word matching means to be selected and one character from the Japanese sentence one by one from the front, and two consecutive characters from the next character.
Word string boundary detection means for defining a boundary between two consecutive characters as a boundary of a word string when a word of two or more characters including a character string obtained by combining respective recognition candidate characters for a character does not exist in the word dictionary. And a word connection verification means for selecting a grammatically connectable word string from consecutive words using the grammatical connection information in the grammar dictionary, and the word string detected by the word string boundary detection means. It is possible to select a plurality of candidate word strings for the character string delimited by boundaries using the word matching means, and use the word connection testing means for grammatical connection from the selected candidate word strings. A candidate word string is selected, and further, from the selected candidate word strings before and after the word string boundary, a word string that can connect to a Japanese sentence across the word string boundary is selected by using the word connection verification means. , Selected single Text reader day, characterized by a read result columns for the input date body.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61033536A JPH0632091B2 (en) | 1986-02-18 | 1986-02-18 | Japanese sentence reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61033536A JPH0632091B2 (en) | 1986-02-18 | 1986-02-18 | Japanese sentence reader |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62191990A JPS62191990A (en) | 1987-08-22 |
| JPH0632091B2 true JPH0632091B2 (en) | 1994-04-27 |
Family
ID=12389282
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61033536A Expired - Lifetime JPH0632091B2 (en) | 1986-02-18 | 1986-02-18 | Japanese sentence reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0632091B2 (en) |
-
1986
- 1986-02-18 JP JP61033536A patent/JPH0632091B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62191990A (en) | 1987-08-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5161245A (en) | Pattern recognition system having inter-pattern spacing correction | |
| US5845306A (en) | Context based system for accessing dictionary entries | |
| Zhang et al. | Automatic detecting/correcting errors in Chinese text by an approximate word-matching algorithm | |
| Mohamed et al. | Arabic Part of Speech Tagging. | |
| JPS6239793B2 (en) | ||
| JP2599973B2 (en) | Japanese sentence correction candidate character extraction device | |
| JP2908460B2 (en) | Error recognition correction method and apparatus | |
| JPH03156589A (en) | Method for detecting and correcting erroneously read character | |
| JPH0256086A (en) | Post-processing method for character recognition | |
| JP4318223B2 (en) | Document proofing apparatus and program storage medium | |
| JP2570784B2 (en) | Document reader post-processing device | |
| JPH08305698A (en) | Natural language analysis method and device | |
| JP2895137B2 (en) | Japanese sentence error automatic detection and correction device | |
| JPS63163956A (en) | Document preparation and correction supporting device | |
| JPS6394364A (en) | Automatic correction device for wrong character in japanese sentence | |
| JPS62191990A (en) | Japanese sentence reader | |
| JPH0248938B2 (en) | ||
| Singh | Content Improvisation by Spell Checking, Grammar Checking, Tone Checking and Scoring | |
| JPS63103375A (en) | Document processor | |
| JPH0614376B2 (en) | Japanese sentence error detection device | |
| JPH05225183A (en) | Automatic error detector for words in japanese sentence | |
| JPH0546612A (en) | Text error detector | |
| JPS63234348A (en) | Back-up system for correction of sentence | |
| JPH02136959A (en) | Extracting device for correction candidate of japanese sentence | |
| JPS62212871A (en) | Sentence reading correcting device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |