JPS63261459A - Document processor - Google Patents

Document processor

Info

Publication number
JPS63261459A
JPS63261459A JP62095223A JP9522387A JPS63261459A JP S63261459 A JPS63261459 A JP S63261459A JP 62095223 A JP62095223 A JP 62095223A JP 9522387 A JP9522387 A JP 9522387A JP S63261459 A JPS63261459 A JP S63261459A
Authority
JP
Japan
Prior art keywords
particle
dictionary
postfix
prefix
numeral
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
JP62095223A
Other languages
Japanese (ja)
Other versions
JPH0769908B2 (en
Inventor
Mayumi Morita
森田 麻友美
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62095223A priority Critical patent/JPH0769908B2/en
Publication of JPS63261459A publication Critical patent/JPS63261459A/en
Publication of JPH0769908B2 publication Critical patent/JPH0769908B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To convert a prenumeral and a post-numeral to 'KANJI' (Chinese character) connected to before and after a numeral by providing the post- numeral with the information of the prenumeral to be connected correspondingly to the post-numeral by using a flag as a medium. CONSTITUTION:When a 'KANA' (Japanese syllabary) character string consisting of a prenumeral, a numeral and a post-numeral is inputted, a post-numeral dictionary PSTDIC, a numeral dictionary NUMDIC and a prenumeral dictionary PRDIC in a RAM 3 are respectively retrieved. When corresponding contents are detected as the result of the retrieval, whether the detected prenumeral and post-numeral have corresponding relation or not is checked on the basis of the serial number of the prenumeral by referring a connection table with the prenumeral copied on a CONDW of the RAM 3. The connection check is decided by the state of a flag. Thus, the prenumeral and the post-numeral can be converted into 'KANJI' to be connected before and after the numeral.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文書処理装置に関し、詳しくは数字と組合せて
使用される漢字を効率よく出力できるようにした装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document processing device, and more particularly to a device that can efficiently output Chinese characters used in combination with numbers.

[従来の技術] 従来、仮名またはローマ字で入力された日本語文を漢字
かな混じり文に変換するこの種の装置において、数字と
その前後に接続する漢字とで構成される文字列に変換す
る場合、同音異議語が出力されることが多いという問題
点があった。この問題点を解決すべく、例えば(1)特
開昭55−44610号や(2)特開昭55−9292
1号などが提案されてきた。
[Prior Art] Conventionally, in this type of device that converts Japanese text input in kana or Roman letters into a text containing kanji and kana, when converting into a character string consisting of a number and kanji connected before and after the number, There was a problem that homonyms were often output. In order to solve this problem, for example, (1) JP-A-55-44610 and (2) JP-A-55-9292,
1 etc. have been proposed.

(1)特開昭55−44610号においては、数字をは
さむ前後の入力仮名文字、これらを前置助数詞(数詞の
前につく接頭語)および後置助数詞(数詞の後につく助
数詞)とすれば、これら助数詞間の対応関係に着目し、
対応関係にある前置助数詞と後置助数詞との組み合わせ
をすべてテーブルとして登録し、このテーブルを参照し
て変換を行うものであり、これにより、従来装置で困難
であった同音異議語の存在する変換を容易にするという
ものであった。
(1) In JP-A No. 55-44610, if the input kana characters before and after a number are used as a prefix particle (a prefix placed before a number word) and a postfix particle (a particle word placed after a number word), , focusing on the correspondence between these classifiers,
All combinations of prefix and postfix particles that have a corresponding relationship are registered in a table, and conversion is performed by referring to this table. The idea was to make the conversion easier.

(2)特開昭55−92921号においては、数字は仮
名キーボードの数字キーから入力し、数字と接続して使
用される助数詞としての漢字を各々別のテーブルに記憶
させることにより、従来装置で困難であった同音異議語
の存在する変換を容易にするというものであった。
(2) In Japanese Patent Application Laid-Open No. 55-92921, numbers are entered using the number keys on a kana keyboard, and the kanji characters used in connection with the numbers are stored in separate tables. The idea was to facilitate the conversion of homophones, which had been difficult.

[発明が解決しようとする問題点] しかしながら、上記提案においては以下に示すような問
題点があった。
[Problems to be Solved by the Invention] However, the above proposal had the following problems.

(1)特開昭55−44810においては、所定の対応
関係にある前置助数詞と後置助数詞とに変換するには、
その組合せのすべてを登録した対応助数詞テーブルを用
いることになる。この対応助数詞テーブルは仮名文字列
の字数の多いものから順にならんでいる。例えば、「だ
い1じ」という入力文字列が入力されると数字の前の仮
名文字列を対応助数詞テーブルの左半分すなわち前置助
数詞テーブルと、数字の後の仮名文字列を右半分、すな
わち後置助数詞テーブルとそれぞれ比較し、一致するも
のがあれば対応する漢字に変換して出力する。つまり、
対応助数詞テーブルの先頭から、すべての組合せをチェ
ックしなければならないため、仮名漢字変換処理におい
て、多くの処理時間を費やしていた。
(1) In JP-A-55-44810, in order to convert into a prefix particle and a postfix particle in a predetermined correspondence relationship,
A corresponding particle table in which all such combinations are registered is used. This correspondence particle table is arranged in descending order of the number of characters in the kana character string. For example, when the input character string ``Daichiji'' is input, the kana string before the number is stored in the left half of the corresponding particle table, that is, the prefix table, and the kana string after the number is stored in the right half, that is, the prefix table. Compare each with the positional particle table, and if there is a match, convert it to the corresponding kanji and output. In other words,
Since all combinations had to be checked from the beginning of the corresponding particle table, a lot of processing time was consumed in the kana-kanji conversion process.

(2)特開昭55−92921号においては、数字の前
または後、あるいはその前後によく使用される単語をそ
れぞれ別テーブルで持っている。このテーブルをそれぞ
れ独自にサーチするため、前置助数詞と後置助数詞との
対応関係を無視した出力も、正しい変換結果の出力と同
様になされてしまう恐れが十分あり得るものであった。
(2) In Japanese Patent Application Laid-Open No. 55-92921, words that are often used before or after numbers, or before and after numbers are provided in separate tables. Since each of these tables is searched independently, there is a strong possibility that an output ignoring the correspondence between a prefix particle and a postfix particle may be output in the same way as a correct conversion result.

そこで、本発明の目的は、数字とその前後に接続する漢
字とで構成される文字列に変換する仮名漢字変換におい
て同音異議語が存在する場合でも、その変換を容易とし
、しかも変換にがかる′ 処理時間の短い文書処理装置
を提供することにある。
Therefore, an object of the present invention is to facilitate the conversion even when there are homophonic opposite words in kana-kanji conversion, which converts the character string to a character string consisting of a number and the kanji connected before and after the number, and to make the conversion easy. An object of the present invention is to provide a document processing device with short processing time.

[問題点を解決するための手段] そのために、本発明においては、数詞と数詞の前に接続
する接頭語としての前置助数詞と数詞の後に接続する助
数詞としての後置助数詞とによって構成される数詞文節
を、仮名漢字文節に変換する文書処理装置において、数
詞と数詞に対応した文字を記憶する数詞辞書と、前置助
数詞と前置助数詞に対応した文字ならびに番号を記憶す
る前置助数詞辞書と、後置助数詞と後置助数詞に対応し
た文字、ならびに後置助数詞に対応した前置助数詞との
接続関係を番号に対応させてフラグの状態によって記憶
する後置助数詞辞書と、数詞文節が入力されたとき、数
詞辞書、後置助数詞辞書および前置助数詞辞書を検索し
、接続関係に基づき所定の仮名漢字文節に変換して出力
する変換制御手段とを具えたことを特徴とする。
[Means for Solving the Problems] To this end, in the present invention, a number word is composed of a number word, a prefix particle as a prefix connected before the number word, and a postfix particle as a particle connected after the number word. A document processing device that converts numeral phrases into kana-kanji phrases includes a numeral dictionary that stores numerals and characters corresponding to the numerals, and a prepositional numeral dictionary that stores prepositional particles and characters and numbers corresponding to the prepositional particles. , a postfix particle dictionary that stores the connection relationship between the postfix particle and the characters corresponding to the postfix particle, and the prefix particle corresponding to the postfix particle according to the state of the flag in correspondence with the number; The present invention is characterized by comprising a conversion control means for searching a number dictionary, a postfix particle dictionary, and a prefix particle dictionary, and converting the searched word dictionary, postfix particle dictionary, and prefix particle dictionary into predetermined kana-kanji phrases and outputting them based on connection relationships.

[作 用] 以上の構成によれば、後置助数詞に、後置助数詞に対応
して接続する可能性のある前置助数詞の情報を、フラグ
を媒介として持たせることにより、数詞の前後に接続す
る漢字への変換が可能となる。
[Operation] According to the above configuration, by providing the postfix particle with information on the prefix particle that may be connected to the postfix particle using the flag, the information can be connected before and after the number particle. It becomes possible to convert to kanji.

[実施例] 以下、図面を参照して本発明の詳細な説明する。[Example] Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例に係る装置の構成を示すブロ
ック図である。図示の構成において、1はマイクロプロ
セッサ(cpu)であり、文字処理のための演算、論理
判断等を行い、アドレスバス^B、コントロールバスC
B、データバスDBを介して、これらバスに接続された
各構成要素を制御する。ここで、アドレスバスABはア
イクロプロセッサCPUの制御の対象とする構成要素を
指示するアドレス信号を転送する。コントロールバスC
BはマイクロプロセッサCPUの制御の対象とする各構
成要素のコントロール信号を転送して印加する。データ
バスDBは各構成機器相互間のデータの転送を行う。
FIG. 1 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention. In the illustrated configuration, 1 is a microprocessor (CPU), which performs calculations and logical judgments for character processing, and operates an address bus ^B, a control bus C
B. Controls each component connected to these buses via a data bus DB. Here, the address bus AB transfers an address signal indicating a component to be controlled by the microprocessor CPU. control bus C
B transfers and applies control signals for each component to be controlled by the microprocessor CPU. The data bus DB transfers data between each component device.

2はリードオンリメモリ(ROM)であり、CPUIに
よる制御手順等を記憶させたプログラムエリアPAを有
する。3は1ワード16ビツトの構成の書込み可能なラ
ンダムアクセスメモリ(RAM)であって、以下に示す
各エリアを有して装置構成要素からの各種データの一時
記憶等に用いられる。
Reference numeral 2 denotes a read-only memory (ROM), which has a program area PA in which control procedures and the like by the CPU are stored. Reference numeral 3 denotes a writable random access memory (RAM) having a structure of 1 word and 16 bits, which has the following areas and is used for temporary storage of various data from the device components.

すなわち、TBtFは文書バッファであり、後述される
キーボード4より入力された文書情報を蓄えるためのメ
モリ、DICはカナ漢字変換を行うための辞書、YBU
Fはキーボード4にある仮名入力キ一部KANAより入
力されたカナ読みコードを蓄えるためのメモリ、PRE
DICは前置助数詞辞書格納エリア、NUMDICは数
字辞書格納エリア、PSTDICは後置助数詞辞書格納
エリア、C0NDWは入力読み仮名と一致した後置助数
詞の読みと文字コードおよび前置助数詞との接続表をコ
ピーするためのワーキングメモリである。
That is, TBtF is a document buffer, a memory for storing document information input from the keyboard 4, which will be described later, DIC is a dictionary for performing kana-kanji conversion, and YBU
F is a memory for storing the kana reading code input from the kana input key KANA on the keyboard 4, PRE.
DIC is the prepositional particle dictionary storage area, NUMDIC is the numeric dictionary storage area, PSTDIC is the postfix particle dictionary storage area, and C0NDW is the connection table between the reading of the postfixed particle that matches the input reading kana, the character code, and the prefixed particle. This is working memory for copying.

4はキーボードであって、アルフ゛アベットキー、平板
名キー、片仮名キー等の文字記号人カキ−および変換キ
ー、無変換キー、取消キー、カーソルキー等の本例装置
に対する各種機能を指示するための各種のファンクショ
ンキーを備えている。キーボード4上でCONは変換キ
ー、KANAは読み仮名を入力するための仮名入力キ一
部をそれぞれ示している。
Reference numeral 4 denotes a keyboard for instructing various functions for the device of this example, such as character/symbol/person keys such as alphanumeric keys, flat name keys, katakana keys, conversion keys, non-conversion keys, cancel keys, cursor keys, etc. It is equipped with various function keys. On the keyboard 4, CON indicates a conversion key, and KANA indicates a part of a kana input key for inputting pronunciations of kana.

5はディスクメモリであり、定型文書を記憶したり、作
成された文書の記憶を行い、これら文書はキーボードの
指示により必要な時呼び出される。
Reference numeral 5 denotes a disk memory, which stores standard documents and created documents, and these documents are called up when necessary by instructions from the keyboard.

6はカーソルレジスタであり、カーソルキーの操作に対
応してCPIIIの制御によりその内容を読み書きでき
る。後述するCRTコントローラ9は、ここに蓄えられ
たアドレスに基づき表示器10上の所定の位置にカーソ
ルを表示する。
Reference numeral 6 denotes a cursor register, the contents of which can be read and written under the control of the CPIII in response to cursor key operations. A CRT controller 9, which will be described later, displays a cursor at a predetermined position on the display 10 based on the address stored here.

7は表示用バッファメモリ(DBVF)で、 RAM3
のTBUFに蓄えられた文書情報等のパターン表示に備
えて蓄える。8はメツセージ表示用バッファメモリ(M
DBIIF)で、ROMa内のメツセージデータのパタ
ーンを蓄える。
7 is display buffer memory (DBVF), RAM3
The document information stored in the TBUF is stored in preparation for pattern display. 8 is a message display buffer memory (M
DBIIF) stores the message data pattern in ROMa.

9はCRTコントローラであり、カーソルレジスタ6、
DBUF7およびMDBUF8に蓄えられた内容を表示
器lOに表示する制御を行う。また、lOは陰極線管(
CRT)等を用いた表示器であり、この表示器1゜にお
けるドツト構成のパターンおよびカーソルの表示をCR
Tコントローラ9が制御する。さらに、11はキャラク
タジェネレータ(CG)であって、表示器10に表示す
る文字、記号のパターンを記憶するものである。
9 is a CRT controller, cursor register 6;
Control is performed to display the contents stored in DBUF7 and MDBUF8 on the display IO. In addition, lO is a cathode ray tube (
This is a display device using a CRT (CRT), etc., and the dot configuration pattern and cursor display on this display device 1° are CR
A T controller 9 controls. Furthermore, 11 is a character generator (CG), which stores patterns of characters and symbols to be displayed on the display 10.

かかる各構成要素からなる本例文書処理装置においては
、キーボード4からの各種の入力に応じて作動するもの
であって、キーボード4からの入力が供給されると、ま
ずインタラブド信号がCPUIに送られ、CPIIIは
ROM2内に記憶しである各種の制御信号を読出し、こ
れら制御信号に従って、各種の制御が行われるものであ
る。
The document processing device of this example, which is composed of each of these components, operates in response to various inputs from the keyboard 4. When an input from the keyboard 4 is supplied, an interwoven signal is first sent to the CPUI. , CPIII reads out various control signals stored in the ROM 2, and performs various controls in accordance with these control signals.

第6図は、本例文書処理装置の動作を示すフローチャー
トである。本例装置は電源を投入するとまずステップS
1へ進む、ステップS1ではRAM3゜DBUF7等を
クリアするイニシャライズ処理を行い、ステップS2に
進み、キーボード4からのキー入力を待つ。ここで何ら
かのキーが入力されたならステップS3に進み、入力さ
れたキーの判別を行い、この判別に従ってステップ54
〜510のいずれかのステップに進む。
FIG. 6 is a flowchart showing the operation of the document processing apparatus of this example. When this example device turns on the power, it first performs step S.
In step S1, an initialization process is performed to clear the RAM 3, DBUF 7, etc., and the process proceeds to step S2, where a key input from the keyboard 4 is awaited. If any key is input here, the process proceeds to step S3, where the input key is determined, and according to this determination, step S54 is performed.
Proceed to any step from 510 to 510.

ステップS4ではキーボード4から入力された文字記号
情報をRAM3の文字情報用のエリアに格納する処理を
行う。ステップS5では仮名漢字変換におけるサーチ処
理を行う、これは、所定のキー入力によりROM2内の
辞書の内容と入力された文書情報の内容とを比較し、一
致した文字列を一連の語として見とめて取り扱うという
処理を行う。ステップS6では、先のステップS5で一
連の語としてUめらられな文字列に対して選択キーを入
力することにより同音異字を次々と出力し、希望の文字
を選択して変換を行うという処理をする。ステップS7
ではキーボード4等に存在するカーソルキーの指示に従
って、カーソルを移動させる処理を行う。
In step S4, the character/symbol information inputted from the keyboard 4 is stored in the area for character information of the RAM 3. In step S5, a search process for kana-kanji conversion is performed. This is done by comparing the contents of the dictionary in the ROM 2 with the contents of the input document information by inputting a predetermined key, and recognizing matching character strings as a series of words. The process of handling the data is performed. In step S6, by inputting the selection key for the unusual character string as a series of words in step S5, homonyms are output one after another, and the desired character is selected and converted. do. Step S7
Then, the cursor is moved according to instructions from the cursor keys on the keyboard 4 or the like.

この時のカーソル移動に従ってカーソルレジスタ6の内
容は更新されていく。ステップS8では、装置に入力さ
れた文書情報をCPIIIの制御のもとに印刷出力する
処理を行う。ステップS9は既に入力された文書情報の
中に新たな文書情報を入力する処理を行う。ステップ5
10は入力された文書情報のうち、不要となった文字、
記号等の情報をRAM37>)ら削除する処理を行う。
The contents of the cursor register 6 are updated according to the cursor movement at this time. In step S8, the document information input to the device is printed out under the control of the CPIII. Step S9 performs a process of inputting new document information into the already input document information. Step 5
10 are characters that are no longer needed among the input document information,
Processing is performed to delete information such as symbols from the RAM 37>).

ステップSllではステップS4からステップ510の
処理以外に必要な処理を行う。
In step Sll, necessary processing other than the processing from step S4 to step 510 is performed.

以上ステップS4からステップSllでの処理が終了し
たならばステップS2へ戻る。このようなフローチャー
トの中で本発明に直接関係のあるステップはステップS
5およびS6である。
When the processing from step S4 to step Sll is completed, the process returns to step S2. In such a flowchart, the step directly related to the present invention is step S.
5 and S6.

第2図は、RAM3のPSTDIC&:格納されて、数
詞の後に接続する仮名を漢字に変換する際、参照する後
置助数詞辞書を示す模式図であり、辞書には読み(YF
)、文字コード(KF)および後述される前置助数詞と
の接続表が記憶されている。
Figure 2 is a schematic diagram showing the postfix particle dictionary stored in RAM3 PSTDIC&: and referred to when converting kana connected after a number word into kanji.
), a character code (KF), and a connection table with a prefix particle, which will be described later, are stored.

第3図は、RAM3内のNUMDICに格納されて、キ
ーボード4の数字キーによって入力された算用数字ある
いは読み仮名で入力された数詞を変換する際参照する数
字辞書を示す模式図、第4図はRAM3のPREDIG
に格納されて、数詞の前に接続する仮名を漢字に変換す
る際に参照する前置助数詞辞書を示す模式図であり、辞
書には読み(YF)、文字コード(にF)が記録され、
前置助数詞の一つ一つにそれぞれ連番がふられており、
これらは後置助数詞辞書における前置助数詞との接続表
の見出しの番号(ビット番号)に対応している。第5図
は入力読み仮名と一致した後置助数詞の前置助数詞との
接続表であり、RAM3内のワーキングメモリC0ND
Wにコピーされた部分を示す模式図である。
FIG. 3 is a schematic diagram showing a numeric dictionary stored in the NUMDIC in the RAM 3 and referred to when converting arithmetic numerals input using the numeric keys of the keyboard 4 or numerals input in pronunciation. is RAM3 PREDIG
This is a schematic diagram showing a prepositional particle dictionary that is stored in the prefix dictionary and is referred to when converting kana connected before a number word into kanji.The dictionary records the reading (YF) and character code (F).
Each prefix particle is given a consecutive number,
These correspond to the heading numbers (bit numbers) of the connection table with prefix particles in the postfix particle dictionary. Figure 5 is a connection table between postfix particles and prefix particles that match the input pronunciation, and is stored in the working memory C0ND in RAM3.
FIG. 3 is a schematic diagram showing a portion copied to W. FIG.

上記、各図の接続表における“1”は助数詞間に対応関
係が有ることを示し、“O”は関係が無いことを示して
いる。
In the connection table in each of the above figures, "1" indicates that there is a correspondence between the classifiers, and "O" indicates that there is no relationship.

次に本発明に係る前置助数詞と後置助数詞との変換処理
について第7図のフローチャートを参照しながら、文字
列「第1回」を入力する場合を例にとり説明する。
Next, the conversion process between a prefix particle and a postfix particle according to the present invention will be explained with reference to the flowchart of FIG. 7, taking as an example the case where the character string "1st time" is input.

前置助数詞、数詞、後置助数詞からできている仮名文字
列「だい!かいJが入力されると、まず、ステップS1
2でPSTDICの後置助数詞辞書(第2図)において
「かい」がサーチされる。次にステップ513で「かい
」に対応する候補が見つかったかどうかの判別を行う。
When the kana character string "Dai! Kai J" made up of a prefix particle, a number particle, and a postfix particle is input, first, step S1
2, ``kai'' is searched in the PSTDIC postfix particle dictionary (Figure 2). Next, in step 513, it is determined whether a candidate corresponding to "kai" has been found.

「かい」に対して「回」、1階」の2つの候補があった
とすると、ステップ514およびステップ515へ進み
、ステップS14ではステップ513で見つかった後置
助数詞に対応する読み(YF)、文字コード(にF)お
よび前置助数詞との接続表(第5図の一部C0NDIC
)をRAM3内のC0NDWヘコピーする。
Assuming that there are two candidates for "kai", "kai" and "1st floor", the process proceeds to steps 514 and 515, and in step S14, the reading (YF) and character corresponding to the postfix found in step 513 are Connection table with chord (to F) and prefix particle (part of Figure 5 C0NDIC
) is copied to C0NDW in RAM3.

一方、ステップ515では数詞「1」についてNUMD
ICの数詞辞書をサーチし、ステップs16で見つかっ
たかどうかの判別を行う。見つかった場合はステップ5
17へ進み、PREDICの前置助数詞辞書(第4図)
において「だい」をサーチする。そして、ステップ51
8で見つかったかどうかの判別を行う。候補「第」が見
つかった場合はステップS19へ進み、RAM3内のC
0NDWにコピーされた前置助数詞との接続表を参照し
て、前置助数詞の連番に基づき見つかった前置助数詞と
後置助数詞が対応関係にあるかどうかの接続チェックを
行い、正しいものを判別する。この接続チェックに際し
て接続フラグが“1”の場合はその接続は正しいと判断
され、接続フラグが“O”の場合はその接続は正しくな
いと判断される。すなわち、「第」には1という連番が
ついているのでC(INI)Wにコピーされている前置
助数詞との接続表の1ビツト目のフラグのチェックを行
い、接続フラグが“1″の場合、その接続は正しいもの
と判断され、接続フラグが“0”の場合、その接続は正
しくないものと判断される。
On the other hand, in step 515, NUMD for the number word "1"
The number word dictionary of the IC is searched, and it is determined in step s16 whether the number word dictionary is found. If found, step 5
Proceed to step 17, PREDIC's prefix particle dictionary (Figure 4)
Search for "dai" in . And step 51
8, it is determined whether or not it has been found. If the candidate "No." is found, the process advances to step S19, and the C in RAM3 is
Referring to the connection table with prefix particles copied to 0NDW, check whether the found prefix particles and postfix particles have a corresponding relationship based on the serial number of the prefix particles, and select the correct one. Discern. In this connection check, if the connection flag is "1", the connection is determined to be correct; if the connection flag is "O", the connection is judged to be incorrect. In other words, since "th" has a serial number of 1, check the flag of the 1st bit of the connection table with the prefix particle copied to C(INI)W, and check if the connection flag is "1". If the connection flag is "0", the connection is determined to be correct; if the connection flag is "0", the connection is judged to be incorrect.

接続が正しいと判断された場合はステップ521へ進み
、その前置助数詞、数詞および後置助数詞の組み合わせ
を文書バッファTBUFへ送り出す。第5図の接続チェ
ック表によると、1ビツト目に“1″が立っているもの
は、「回」のみであるので、前置助数詞「第」に対して
は「回」が正しい接続と判断され、選び出され、「第1
回」の出力を得ることができる。
If it is determined that the connection is correct, the process proceeds to step 521, and the combination of the prefix particle, number word, and postfix particle is sent to the document buffer TBUF. According to the connection check table in Figure 5, the only connection with “1” in the first bit is “time”, so “time” is judged to be the correct connection for the prefix particle “th”. The first
You can get the output "times".

接続が正しくないと判断された場合はステップS22へ
進み、−回目のサーチで見つかった前置助数詞の次から
また前置助数詞辞書をサーチし、ステップS23で見つ
かったかどうかの判別を行い、見つかった場合はまたス
テップ519へ進む。
If it is determined that the connection is incorrect, the process advances to step S22, and the prefix particle dictionary is searched again from the position following the prefix particle found in the -th search.In step S23, it is determined whether the prefix particle has been found. If so, the process returns to step 519.

ステップS12.ステップ513の後置助数詞辞書サー
チ、ステップ515 、ステップ516の数詞辞゛書サ
ーチ、ステップS17.ステップ518.ステップS2
2゜ステップS23の前置助数詞サーチで一致するもの
が、各辞書において見つからなかった場合には、すべて
ステップ524で仮名読みバッファ(YBUF)から文
書バッファ(TBtlF)へと無変換のまま送り出され
る。
Step S12. Postfix particle dictionary search in step 513, step 515, numeral dictionary search in step 516, step S17. Step 518. Step S2
2. If a match is not found in each dictionary in the prefix particle search in step S23, all the prefixes are sent without conversion from the kana reading buffer (YBUF) to the document buffer (TBtIF) in step 524.

第1の実施例では、前置助数詞と後置助数詞との接続関
係(対応関係)を接続するかしないかの2つの状態にわ
けているが、第2図のような後置助数詞辞書のかわりに
第8図に示すような接続関係に頻度を持たせた後置助数
詞辞書を用いれば確かな接続関係のものから接続する可
能性のあるものまでが頻度の高い順に出力されるように
なる。
In the first embodiment, the connection relationship (correspondence) between the prefix particle and the postfix particle is divided into two states: connected or not. If a postfix particle dictionary with frequencies given to connection relationships as shown in FIG. 8 is used, items with definite connection relationships to those with a possibility of connection can be output in descending order of frequency.

例えば「だい1かい」というかなの入力に対して、第1
の実施例では「第1回」のみの出力であったが、第2の
実施例によれば「第1回」が第1候補に出力され、つい
で「第1階ノが第2候補として出力されることになる。
For example, in response to a kana input such as "dai 1 kai", the first
In the embodiment, only "1st time" was output, but in the second embodiment, "1st time" is output as the first candidate, and then "1st floor is output as the second candidate". will be done.

第9図は本発明の第2の実施例における前置助数詞およ
び後置助数詞の変換処理の過程を示すフローチャートで
ある。第1の実施例のフローチャートとの違いはステッ
プ521′の処理である。ステップ521′では、接続
が正しいと判断された複数の組み合わせを後置助数詞辞
書における接続表の頻度をもとに並べかえ、文書バッフ
ァTBUFへと送り出すという処理を行うものである。
FIG. 9 is a flowchart showing the process of converting a prefix particle and a postfix particle in the second embodiment of the present invention. The difference from the flowchart of the first embodiment is the processing at step 521'. In step 521', a process is performed in which a plurality of combinations whose connections are determined to be correct are rearranged based on the frequency of the connection table in the postfix particle dictionary and sent to the document buffer TBUF.

[発明の効果] 以上の説明から明らかなように、後置助数詞に、後置助
数詞に対応して接続する可能性のある前置助数詞の情報
を、フラグを媒介として持たせることにより、数詞の前
後に接続する漢字への変換が可能となる。これにより、
同音異議語の存在する変換を容易かつ精確に行い得るよ
うになり、さらには、かかる変換のための処理時間を短
縮することが可能となる。
[Effects of the Invention] As is clear from the above explanation, by providing a postfix particle with information on a prefix particle that may be connected to the postfix particle using a flag, It becomes possible to convert to the kanji that connects before and after. This results in
Conversion in the presence of homophones can be easily and accurately performed, and furthermore, the processing time for such conversion can be shortened.

故に、仮名漢字変換に係る操作性の向上を実現すること
ができた。
Therefore, it was possible to improve the operability related to kana-kanji conversion.

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

第1図は本発明の一実施例に係る装置の構成を示すブロ
ック図、 第2図は本発明の第1の実施例に係る後置助数詞辞書の
フォーマットを示す模式図、 第3図は実施例に係る数字辞書のフォーマットを示す模
式図、 第4図は実施例に係る前置助数詞辞書のフォーマットを
示す模式図、 第5図は第1の実施例に係る後置助数詞辞書と前置助数
詞接続表の部分コピーのフォーマットを示す模式図、 第6図は実施例に係る装置における処理過程を示すフロ
ーチャート、 第7図は本発明の第1実施例に係る変換処理を示すフロ
ーチャート、 第8図は本発明の第2の実施例に係る後置助数詞辞書の
フォーマットを示す模式図、 第9図は本発明の第2実施例に係る変換処理を示すフロ
ーチャートである。 1・・・cpu 。 2・・−ROM 。 3…RAM 。 4・・・キーボード、 5・・・ディスクメモリ、 6・・・カーソルレジスタ、 7・・・表示用バッファメモリ(DBtlF)、8・・
・メツセージ表示用バッファメモリ(MDBtlF)、 9・−CRTコントローラ、 10・・・表示器、 11・・・キャラクタジェネレータ、 CB・・・コントロールバス、 DB・・・データバス、 ^B・・・アドレスバス。 第2図 賓施例1辞苦り摸弐図 第3図 芙巌、伽1后争害の摸■図 第4図 大泥例辞書をコピーしtこ倶弐図 第5図
FIG. 1 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention, FIG. 2 is a schematic diagram showing the format of a postfix particle dictionary according to the first embodiment of the present invention, and FIG. 3 is an implementation example. A schematic diagram showing the format of the number dictionary according to the example; FIG. 4 is a schematic diagram showing the format of the prefix particle dictionary according to the embodiment; FIG. 5 is a schematic diagram showing the format of the prefix particle dictionary according to the first embodiment; FIG. A schematic diagram showing the format of a partial copy of the connection table; FIG. 6 is a flowchart showing the processing process in the device according to the embodiment; FIG. 7 is a flowchart showing the conversion process according to the first embodiment of the present invention; FIG. is a schematic diagram showing the format of the postfix particle dictionary according to the second embodiment of the present invention, and FIG. 9 is a flowchart showing the conversion process according to the second embodiment of the present invention. 1...cpu. 2...-ROM. 3...RAM. 4...Keyboard, 5...Disk memory, 6...Cursor register, 7...Display buffer memory (DBtIF), 8...
・Message display buffer memory (MDBtlF), 9.-CRT controller, 10.Display device, 11.Character generator, CB..Control bus, DB..Data bus, ^B..Address bus. Figure 2 Example of the guest's resignation Figure 2 Figure 3 Illustration of the dispute between Fugan and Kaya Figure 4 Copying the dictionary for example of a big mud Figure 2 Figure 5

Claims (1)

【特許請求の範囲】 1)数詞と数詞の前に接続する接頭語としての前置助数
詞と数詞の後に接続する助数詞としての後置助数詞とに
よって構成される数詞文節を、仮名漢字文節に変換する
文書処理装置において、 数詞と該数詞に対応した文字を記憶する数詞辞書と、 前置助数詞と該前置助数詞に対応した文字ならびに番号
を記憶する前置助数詞辞書と、 後置助数詞と該後置助数詞に対応した文字、ならびに該
後置助数詞に対応した前記前置助数詞との接続関係を前
記番号に対応させてフラグの状態によって記憶する後置
助数詞辞書と、前記数詞文節が入力されたとき、前記数
詞辞書、前記後置助数詞辞書および前記前置助数詞辞書
を検索し、前記接続関係に基づき所定の仮名漢字文節に
変換して出力する変換制御手段と を具えたことを特徴とする文書処理装置。 2)特許請求の範囲第1項記載の装置において、前記番
号に対応するフラグの状態が2つで接続関係の有無を判
断することを特徴とする文書処理装置。 3)特許請求の範囲第1項記載の装置において、前記番
号に対応するフラグの状態が3つ以上で接続関係の頻度
を判断することを特徴とする文書処理装置。
[Claims] 1) Converting a number clause consisting of a number word, a prepositional particle as a prefix connected before the number word, and a postfixed particle as a particle connected after the number word, into a kana-kanji phrase. The document processing device includes: a number word dictionary that stores number words and characters corresponding to the number words; a prefix particle dictionary that stores prepositional particles and characters and numbers corresponding to the prefix particles; and a postfix particle dictionary and the postfix particles. a postfix particle dictionary that stores characters corresponding to the postfix particle and the connection relation between the postfix particle and the prefix particle corresponding to the number according to the state of a flag, and when the number clause is input; A document processing device characterized by comprising: conversion control means for searching the number word dictionary, the postfix particle dictionary, and the prefix particle dictionary, converting the result to a predetermined kana-kanji phrase based on the connection relationship, and outputting the result. . 2) The document processing apparatus according to claim 1, wherein the presence or absence of a connection relationship is determined based on two states of flags corresponding to the numbers. 3) The document processing apparatus according to claim 1, wherein the frequency of the connection relationship is determined based on three or more states of flags corresponding to the numbers.
JP62095223A 1987-04-20 1987-04-20 Document processor Expired - Fee Related JPH0769908B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62095223A JPH0769908B2 (en) 1987-04-20 1987-04-20 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62095223A JPH0769908B2 (en) 1987-04-20 1987-04-20 Document processor

Publications (2)

Publication Number Publication Date
JPS63261459A true JPS63261459A (en) 1988-10-28
JPH0769908B2 JPH0769908B2 (en) 1995-07-31

Family

ID=14131748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62095223A Expired - Fee Related JPH0769908B2 (en) 1987-04-20 1987-04-20 Document processor

Country Status (1)

Country Link
JP (1) JPH0769908B2 (en)

Also Published As

Publication number Publication date
JPH0769908B2 (en) 1995-07-31

Similar Documents

Publication Publication Date Title
JPH0412866B2 (en)
JPS63261459A (en) Document processor
JP2621999B2 (en) Document processing device
JPS59100941A (en) Kana (japanese syllabary)-kanji (chinese character) converter
JPH10320399A (en) Language identification device and method therefor and recording medium for recording program of language identification
JPS63261454A (en) Document processor
JPS6371767A (en) Document producing device
JP2744241B2 (en) Character processor
JP3809238B2 (en) Document processing method and apparatus
JP3273778B2 (en) Kana-kanji conversion device and kana-kanji conversion method
JPS60207948A (en) "kana"/"kanji" conversion processor
JPS60112175A (en) Abbreviation conversion system of kana (japanese syllabary)/kanji (chinese character) convertor
JPH07191992A (en) Character processing device
JPH0131229B2 (en)
JPH10187700A (en) Document processor
JPH027161A (en) Character processor
JPH0391062A (en) Document preparing device
JPS62119665A (en) Word processor
JPS6091434A (en) Document producer
JPH027160A (en) Character processor
JPH04332073A (en) Method and device for processing character
JPS61169961A (en) Character processor provided with user dictionary
JPH0520303A (en) Japanese-language document processing device
JPS58195232A (en) Word processor
JPH0512251A (en) Document processor

Legal Events

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