JPH0769909B2 - Document processor - Google Patents
Document processorInfo
- Publication number
- JPH0769909B2 JPH0769909B2 JP62095224A JP9522487A JPH0769909B2 JP H0769909 B2 JPH0769909 B2 JP H0769909B2 JP 62095224 A JP62095224 A JP 62095224A JP 9522487 A JP9522487 A JP 9522487A JP H0769909 B2 JPH0769909 B2 JP H0769909B2
- Authority
- JP
- Japan
- Prior art keywords
- numeral
- dictionary
- postpositional
- auxiliary
- prepositional
- 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 - Fee Related
Links
Landscapes
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は文書処理装置に関し、詳しくは数字と組合せて
使用される漢字を効率よく出力できるようにした装置に
関するものである。Description: TECHNICAL FIELD The present invention relates to a document processing device, and more particularly to a device capable of efficiently outputting Chinese characters used in combination with numbers.
[従来の技術] 従来、仮名またはローマ字で入力された日本語文を漢字
かな混じり文に変換するこの種の装置において、数字と
その前後に接続する漢字とで構成される文字列に変換す
る場合、同音異義語が出力されることが多いという問題
点があった。この問題点を解決すべく、例えば(1)特
開昭55-44610号や(2)特開昭55-92921号などが提案さ
れてきた。[Prior Art] Conventionally, in a device of this kind that converts a Japanese sentence input in kana or romaji into a kanji-kana mixed sentence, when converting to a character string composed of numbers and kanji connected before and after the number, There is a problem that homonyms are often output. In order to solve this problem, for example, (1) JP-A-55-44610 and (2) JP-A-55-92921 have been proposed.
(1)特開昭55-44610号においては、数字をはさむ前後
の入力仮名文字、これらを前置助数詞(数詞の前につく
接頭語)および後置助数詞(数詞の後につく助数詞)と
すれば、これら助数詞間の対応関係に着目し、対応関係
にある前置助数詞と後置助数詞との組み合わせをすべて
テーブルとして登録し、このテーブルを参照して変換を
行うものであり、これにより、従来装置で困難であった
同音異義語の存在する変換を容易にするというものであ
った。(1) In Japanese Patent Laid-Open No. 55-44610, if input kana characters before and after numbers are inserted, and these are used as prepositional numeral (prefix before number) and postpositional numeral (numerical suffix after number) Focusing on the correspondence between these classifiers, all combinations of prepositional and postpositional classifiers having a correspondence relationship are registered as a table, and conversion is performed by referring to this table. It was to facilitate the conversion of homonyms, which was difficult with.
(2)特開昭55-92921号においては、数字は仮名キーボ
ードの数字キーから入力し、数字と接続して使用される
助数詞としての漢字を各々別のテーブルに記憶させるこ
とにより、従来装置で困難であった同音異義語の存在す
る変換を容易にするというものであった。(2) In Japanese Patent Application Laid-Open No. 55-92921, numbers are input from the number keys of a kana keyboard, and kanji as a classifier used in connection with the numbers are stored in separate tables. It was to facilitate the conversion of difficult homonyms.
[発明が解決しようとする問題点] しかしながら、上記提案においては以下に示すような問
題点があった。[Problems to be Solved by the Invention] However, the above-mentioned proposal has the following problems.
(1)特開昭55-44610においては、所定の対応関係にあ
る前置助数詞と後置助数詞とに変換するには、その組合
せのすべてを登録した対応助数詞テーブルを用いること
になる。この対応助数詞テーブルは仮名文字列の字数の
多いものから順にならんでいる。例えば、「だい1じ」
という入力文字列が入力されると数字の前の仮名文字列
を対応助数詞テーブルの左半分すなわち前置助数詞テー
ブルと、数字の後の仮名文字列を右半分、すなわち後置
助数詞テーブルとそれぞれ比較し、一致するものがあれ
ば対応する漢字に変換して出力する。つまり、対応助数
詞テーブルの先頭から、すべての組合せをチェックしな
ければならないため、仮名漢字変換処理において、多く
の処理時間を費やしていた。(1) In Japanese Patent Laid-Open No. 55-44610, in order to convert a prepositional auxiliary numeral and a postpositional auxiliary numeral having a predetermined correspondence, a corresponding auxiliary numeral table in which all the combinations are registered is used. This correspondence classifier table is arranged in order from the one with the largest number of kana character strings. For example, "dai one"
When the input string is input, the kana character string before the number is compared with the left half of the corresponding classifier table, that is, the prefix classifier table, and the kana character string after the number is compared with the right half, that is, the postpositional classifier table. , If there is a match, it is converted to the corresponding kanji and output. In other words, since all combinations must be checked from the beginning of the corresponding classifier table, a lot of processing time is spent in the Kana-Kanji conversion processing.
(2)特開昭55-92921号においては、数字の前または
後、あるいはその前後によく使用される単語をそれぞれ
別テーブルで持っている。このテーブルをそれぞれ独自
にサーチするため、前置助数詞と後置助数詞との対応関
係を無視した出力も、正しい変換結果の出力と同様にな
されてしまう恐れが十分あり得るものであった。(2) In Japanese Patent Laid-Open No. 55-92921, words that are often used before, after, or before and after a number are stored in separate tables. Since each of these tables is searched independently, it is quite possible that the output ignoring the correspondence between the prepositional auxiliary numeral and the postpositional auxiliary numeral will be the same as the output of the correct conversion result.
そこで、本発明の目的は、数字とその前後に接続する漢
字とで構成される文字列に変換する仮名漢字変換におい
て同音異義語が存在する場合でも、その変換を容易と
し、しかも変換にかかる処理時間の短い文書処理装置を
提供することにある。Therefore, an object of the present invention is to facilitate the conversion of a kana-kanji conversion that converts a character string composed of numbers and the kanji connected before and after the number, even if there are homonyms, and to perform the conversion process. An object is to provide a document processing device that requires a short time.
[問題点を解決するための手段] そのために、本発明においては、数詞と数詞の前に接続
する接頭語としての前置助数詞と数詞の後に接続する助
数詞としての後置助数詞とによって構成される数詞文節
を、仮名漢字文節に変換する文書処理装置において、数
詞と数詞に対応した文字を記憶する数詞辞書と、後置助
数詞と後置助数詞に対応した文字ならびに番号を記憶す
る後置助数詞辞書と、前置助数詞と前置助数詞に対応し
た文字、ならびに前置助数詞に対応した後置助数詞との
接続関係を番号に対応させてフラグの状態によって記憶
する前置助数詞辞書と、数詞文節が入力されたとき、数
詞辞書,前置助数詞辞書および後置助数詞辞書を検索
し、接続関係に基づき所定の仮名漢字文節に変換して出
力する変換制御手段とを具えたことを特徴とする。[Means for Solving the Problems] Therefore, in the present invention, it is composed of a number and a prepositional auxiliary number as a prefix connected before the number and a postpositional number as a particle connected after the number. In a document processing device for converting a syllabary clause into a kana-kanji syllabary, a number dictionary for storing a numeral and a character corresponding to the number, and a postpositional number dictionary for storing a postfix and a letter and a number corresponding to the postfix. , Prepositional auxiliary words and the characters corresponding to the frontal auxiliary words, and the prepositional auxiliary word dictionary that stores the connection relationship between the postpositional auxiliary words and the postpositional auxiliary words corresponding to the numbers according to the state of the flag, and the number clause are input. And a conversion control means for retrieving a number dictionary, a prepositional auxiliary number dictionary, and a postpositional auxiliary number dictionary, and converting and outputting to a predetermined kana-kanji clause based on the connection relationship. And
[作用] 以上の構成によれば、前置助数詞に、前置助数詞に対応
して接続する可能性のある後置助数詞の情報を、フラグ
を媒介として持たせることにより、数詞の前後に接続す
る漢字への変換が可能となる。[Operation] According to the above-described configuration, the prefix auxiliary numeral is connected before and after the numeral by providing the flag with the information of the postpositional auxiliary numeral that may be connected corresponding to the prefix auxiliary numeral. It becomes possible to convert to Kanji.
[実施例] 以下、図面を参照して本発明を詳細に説明する。[Examples] Hereinafter, the present invention will be described in detail with reference to the drawings.
第1図は本発明の一実施例に係る装置の構成を示すブロ
ック図である。図示の構成において、1はマイクロプロ
セッサ(CPU)であり、文字処理のための演算,論理判
断等を行い、アドレスバスAB,コントロールバスCB,デー
タバスDBを介して、これらバスに接続された各構成要素
を制御する。ここで、アドレスバスABはアイクロプロセ
ッサCPUの制御の対象とする構成要素を指示するアドレ
ス信号を転送する。コントロールバスCBはマイクロプロ
セッサ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, reference numeral 1 is a microprocessor (CPU), which performs arithmetic operations for character processing, logical decisions, etc., and is connected to these buses via an address bus AB, a control bus CB, and a data bus DB. Control components. Here, the address bus AB transfers an address signal indicating a component to be controlled by the eye processor CPU. The control bus CB transfers and applies the control signals of the respective components to be controlled by the microprocessor CPU. The data bus DB transfers data between the constituent devices.
2はリードオンリメモリ(ROM)であり、CPU1による制
御手順等を記憶させたプログラムエリアPAを有する。3
は1ワード16ビットの構成の書込み可能なランダムアク
セスメモリ(RAM)であって、以下に示す各エリアを有
して装置構成要素からの各種データの一時記憶等に用い
られる。Reference numeral 2 is a read only memory (ROM), which has a program area PA in which the control procedure by the CPU 1 and the like are stored. Three
Is a writable random access memory (RAM) having a structure of 1 word and 16 bits, and has the following areas and is used for temporary storage of various data from the components of the apparatus.
すなわち、TBUFは文書バッファであり、後述されるキー
ボード4より入力された文書情報を蓄えるためのメモ
リ、DICはカナ漢字変換を行うための辞書、YBUFはキー
ボード4による仮名入力キー部KANAより入力されたカナ
読みコードを蓄えるためのメモリ、PREDICは前置助数詞
辞書格納エリア、NUMDICは数字辞書格納エリア、PSTDIC
は後置助数詞辞書格納エリア、CONDWは入力読み仮名と
一致した後置助数詞の読みと文字コードおよび前置助数
詞との接続表をコピーするためのワーキングメモリであ
る。That is, TBUF 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 YBUF is input from the Kana input key section KANA of the keyboard 4. A memory for storing the Kana reading code, PREDIC is a prepositional numeral dictionary storage area, NUMDIC is a numeric dictionary storage area, and PSTDIC
Is a storage area for the post-positional numeral dictionary, and CONDW is a working memory for copying the reading of the post-positional numeral that matches the input phonetic kana, the character code, and the connection table with the pre-positional numeral.
4はキーボードであって、アルファベットキー,平仮名
キー,片仮名キー等の文字記号入力キーおよび変換キ
ー,無変換キー,取消キー,カーソルキー等の本例装置
に対する各種機能を指示するための各種のファンクショ
ンキーを備えている。キーボード4上でCONは変換キ
ー、KANAは読み仮名を入力するための仮名入力キー部を
それぞれ示している。Reference numeral 4 denotes a keyboard, which is a character symbol input key such as an alphabet key, a hiragana key, a katakana key, etc., and various functions for instructing various functions for the present apparatus such as a conversion key, a non-conversion key, a cancel key, a cursor key, etc. It is equipped with a key. On the keyboard 4, CON indicates a conversion key, and KANA indicates a kana input key portion for inputting a phonetic kana.
5はディスクメモリであり、定型文書を記憶したり、作
成された文書の記憶を行い、これら文書はキーボードの
指示により必要な時呼び出される。Reference numeral 5 denotes a disk memory, which stores fixed-form documents and stores created documents, and these documents are called when necessary by an instruction from the keyboard.
6はカーソルレジスタであり、カーソルキーの操作に対
応してCPU1の制御によりその内容を読み書きできる。後
述するCRTコントローラ9は、ここに蓄えられたアドレ
スに基づき表示器10上の所定の位置にカーソルを表示す
る。Reference numeral 6 denotes a cursor register, the contents of which can be read and written under the control of the CPU 1 in response to cursor key operations. The 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
はメッセージ表示用バッファメモリ(MDBUF)で、ROM3
内のメッセージデータのパターンを蓄える。Reference numeral 7 is a display buffer memory (DBVF) which is stored in the TBUF of the RAM 3 in preparation for pattern display of document information and the like. 8
Is the message display buffer memory (MDBUF), ROM3
Stores the pattern of message data in.
9はCRTコントローラであり、カーソルレジスタ6,DBUF7
およびMDBUF8に蓄えられた内容を表示器10に表示する制
御を行う。また、10は陰極線管(CRT)等を用いた表示
器であり、この表示器10におけるドット構成のパターン
およびカーソルの表示をCRTコントローラ9が制御す
る。さらに、11はキャラクタジェネレータ(CG)であっ
て、表示器10に表示する文字、記号のパターンを記憶す
るものである。9 is a CRT controller, cursor register 6, DBUF7
Also, control is performed to display the contents stored in MDBUF8 on the display 10. Further, 10 is a display device using a cathode ray tube (CRT) or the like, and the CRT controller 9 controls the display of the dot configuration pattern and the cursor on the display device 10. Further, 11 is a character generator (CG), which stores a pattern of characters and symbols displayed on the display 10.
かかる各構成要素からなる本例文書処理装置において
は、キーボード4からの各種の入力に応じて作動するも
のであって、キーボード4からの入力が供給されると、
まずインタラプト信号がCPU1に送られ、CPU1はROM2内に
記憶してある各種の制御信号を読出し、これら制御信号
に従って、各種の制御が行われるものである。The document processing apparatus of the present example composed of the respective components operates in response to various inputs from the keyboard 4, and when the inputs from the keyboard 4 are supplied,
First, an interrupt signal is sent to the CPU1, the CPU1 reads out various control signals stored in the ROM2, and various controls are performed according to these control signals.
第6図は、本例文書処理装置の動作を示すフローチャー
トである。本例装置は電源を投入するとまずステップS1
へ進む。ステップS1ではRAM3,DBUF7等をクリアするイニ
シャライズ処理を行い、ステップS2に進み、キーボード
4からのキー入力を待つ。ここで何らかのキーが入力さ
れたならステップS3に進み、入力されたキーの判別を行
い、この判別に従ってステップS4〜S10のいずれかのス
テップに進む。FIG. 6 is a flowchart showing the operation of the document processing apparatus of this example. When the power of the device of this example is turned on, first step S1
Go to. In step S1, initialization processing for clearing RAM3, DBUF7, etc. is performed, and the process proceeds to step S2 to wait for a key input from the keyboard 4. If any key is input here, the process proceeds to step S3, the entered key is discriminated, and in accordance with this discrimination, the process proceeds to any one of steps S4 to S10.
ステップS4ではキーボード4から入力された文字記号情
報をRAM3の文字情報用のエリアに格納する処理を行う。
ステップS5では仮名漢字変換におけるサーチ処理を行
う。これは、所定のキー入力によりROM2内の辞書の内容
と入力された文書情報の内容とを比較し、一致した文字
列を一連の語として見とめて取り扱うという処理を行
う。ステップS6では、先のステップS5で一連の語として
認めらられた文字列に対して選択キーを入力することに
より同音異字を次々と出力し、希望の文字を選択して変
換を行うという処理をする。ステップS7ではキーボート
4等に存在するカーソルキーの指示に従って、カーソル
を移動させる処理を行う。この時のカーソル移動に従っ
てカーソルレジスタ6の内容は更新されていく。ステッ
プS8では、装置に入力された文書情報をCPU1の制御のも
とに印刷出力する処理を行う。ステップS9は既に入力さ
れた文書情報の中に新たな文書情報を入力する処理を行
う。ステップS10は入力された文書情報のうち、不要と
なった文字,記号等の情報をRAM3から削除する処理を行
う。ステップS11ではステップS4からステップS10の処理
以外に必要な処理を行う。In step S4, the character / symbol information input from the keyboard 4 is stored in the character information area of the RAM3.
In step S5, a search process for kana-kanji conversion is performed. This is a process of comparing the contents of the dictionary in the ROM 2 with the contents of the input document information by a predetermined key input, and recognizing and handling the matched character string as a series of words. In step S6, by inputting a selection key to the character string recognized as a series of words in the previous step S5, homophones are output one after another, and a desired character is selected and converted. To do. In step S7, the process of moving the cursor is performed according to the instruction of the cursor key existing on the keyboard 4 or the like. The contents of the cursor register 6 are updated as the cursor moves at this time. In step S8, the document information input to the device is printed out under the control of the CPU 1. In step S9, new document information is input into the already input document information. In step S10, information such as unnecessary characters and symbols in the input document information is deleted from the RAM3. In step S11, necessary processing other than the processing in steps S4 to S10 is performed.
以上ステップS4からステップS11での処理が終了したな
らばステップS2へ戻る。このようなフローチャートの中
で本発明に直接関係のあるステップはステップS5および
S6である。When the processes in steps S4 to S11 are completed, the process returns to step S2. In such a flowchart, the steps directly related to the present invention are step S5 and
It is S6.
第2図は、RAM3のPREDICに格納されて、数詞の前に接続
する仮名を漢字に変換する際、参照する前助数詞辞書を
示す模式図であり、辞書には読み(YF)、文字コード
(KF)および後述される後置助数詞との接続表が記憶さ
れている。FIG. 2 is a schematic diagram showing a pre-classifier dictionary stored in the PREDIC of RAM3 and referred to when converting a kana connected in front of a number into a kanji. The dictionary has a reading (YF) and a character code ( KF) and the connection table with the postpositional classifiers described later are stored.
第3図は、RAM3内のNUMDICに格納されて、キーボード4
の数字キーによって入力された算用数字あるいは読み仮
名で入力された数詞を変換する際参照する数字辞書を示
す模式図、第4図はRAM3のPSTDICに格納されて、数詞の
後に接続する仮名を漢字に変換する際に参照する後置助
数詞辞書を示す模式図であり、辞書には読み(YF)、文
字コード(KF)が記録され、後置助数詞の一つ一つにそ
れぞれ連判がふられており、これらは前置助数詞辞書に
おける後置助数詞との接続表の見出しの番号(ビット番
号)に対応している。第5図は入力読み仮名と一致した
前置助数詞の後置助数詞との接続表であり、RAM3内のワ
ーキングメモリCONDWにコピーされた部分を示す模式図
である。Figure 3 shows the keyboard 4 stored in NUMDIC in RAM3.
Fig. 4 is a schematic diagram showing a numeral dictionary to be referred to when converting arithmetic numbers input by the number keys of or numeric characters input by phonetic kana, Fig. 4 is stored in the PSTDIC of RAM3 and the kana connected after the number is FIG. 3 is a schematic diagram showing a postpositional numeral dictionary that is referred to when converting to kanji. Yomi (YF) and character code (KF) are recorded in the dictionary, and consecutive letters are added to each of the postpositional numeral. These correspond to the heading numbers (bit numbers) in the connection table with the postpositional classifier in the prepositional classifier dictionary. FIG. 5 is a connection table of the input auxiliary kana and the postpositional auxiliary words that match the input auxiliary kana, and is a schematic diagram showing a portion copied to the working memory CONDW in the RAM3.
上記、各図の接続表における“1"は助数詞間に対応関係
が有ることを示し、“0"は関係が無いことを示してい
る。In the connection table of each of the above figures, "1" indicates that there is a correspondence relation between classifiers, and "0" indicates that there is no relation.
次に本発明に係る前置助数詞と後置助数詞との変換処理
について第7図のフローチャートを参照しながら、文字
列「第1回」を入力する場合を例にとり説明する。Next, referring to the flowchart of FIG. 7, the conversion process between the prepositional auxiliary numeral and the postpositional auxiliary numeral according to the present invention will be described by taking the case of inputting the character string “first time” as an example.
前置助数詞,数詞,後置助数詞からできている仮名文字
列「だい1かい」が入力されると、まず、ステップS12
でPERDICの前置助数詞辞書(第2図)において「だい」
がサーチされる。次にステップS13で「だい」に対応す
る候補が見つかったかどうかの判別を行う。「だい」に
対して「第」という候補があったとすると、ステップS1
4およびステップS15へ進み、ステップS14ではステップS
13で見つかった前置助数詞に対応する読み(YF),文字
コード(KF)および後置助数詞との接続表(第5図の一
部CONDIC)をRAM3内のCONDWへコピーする。When a kana character string "Daichi 1 kai" made up of a prepositional numeral, a numeral and a postpositional numeral is input, first, step S12.
In PERDIC's Prepositional Numeral Dictionary (Fig. 2)
Is searched. Next, in step S13, it is determined whether or not a candidate corresponding to "dai" has been found. If there is a “first” candidate for “dai”, step S1
4 and step S15, and in step S14, step S
The reading (YF), character code (KF), and connection table (partial CONDIC in Fig. 5) corresponding to the prepositional classifier found in 13 are copied to CONDW in RAM3.
一方、ステップS15では数詞「1」についてNUMDICの数
詞辞書をサーチし、ステップS16で見つかったかどうか
の判別を行う。見つかった場合はステップS17へ進み、P
STDICの後置助数詞辞書(第4図)において「かい」を
サーチする。そして、ステップS18で見つかったかどう
かの判別を行う。候補「回」が見つかった場合はステッ
プS19へ進み、RAM3内のCONDWにコピーされた後置助数詞
との接続表を参照して、後置助数詞の連番に基づき見つ
かった前置助数詞と後置助数詞が対応関係にあるかどう
かの接続チェックを行い、正しいものを判別する。この
接続チェックに際して接続フラグが“1"の場合はその接
続は正しいと判断され、接続フラグが“0"の場合はその
接続は正しくないと判断される。すなわち、「回」には
1という連番がついているのでCONDWにコピーされてい
る後置助数詞との接続表の1ビット目のフラグのチェッ
クを行い、接続フラグが“1"の場合、その接続は正しい
ものと判断され、接続フラグが“0"の場合、その接続は
正しくないものと判断される。On the other hand, in step S15, the NUMDIC number dictionary is searched for the number "1", and it is determined whether or not it is found in step S16. If found, proceed to step S17, P
Search for "kai" in the STDIC postpositional dictionary (Fig. 4). Then, it is determined whether or not it is found in step S18. If the candidate "times" is found, the process proceeds to step S19, the connection table with the postpositional classifier copied to CONDW in RAM3 is referred to, and the prepositional classifier and postpositional code found based on the serial number of the postpositional classifier are detected. The connection check is made to see if the classifiers have a correspondence and the correct one is determined. In this connection check, if the connection flag is "1", the connection is determined to be correct, and if the connection flag is "0", the connection is determined to be incorrect. That is, since "times" have a serial number of 1, the flag of the 1st bit of the connection table with the postpositional classifier copied to CONDW is checked, and if the connection flag is "1", the connection Is determined to be correct, and if the connection flag is "0", the connection is determined to be incorrect.
接続が正しいと判断された場合はステップS21へ進み、
その前置助数詞,数詞および後置助数詞の組み合わせを
文書バッファTBUFへ送り出す。第5図の接続チェック表
によると、1ビット目に“1"が立っているものは、
「第」であるので、後置助数詞「回」に対しては「第」
が正しい接続と判断され、選び出され、「第1回」の出
力を得ることができる。If it is determined that the connection is correct, proceed to step S21,
The combination of the prepositional numeral, the numeral and the postpositional numeral is sent to the document buffer TBUF. According to the connection check table in Fig.5, the one with "1" in the first bit is
Since it is "No.", it is "No."
Is determined to be the correct connection and is selected, and the “first time” output can be obtained.
接続が正しくないと判断された場合はステップS22へ進
み、一回目のサーチで見つかった前置助数詞の次からま
た前置助数詞辞書をサーチし、ステップS23で見つかっ
たかどうかの判別を行い、見つかった場合はまたステッ
プS19へ進む。If it is determined that the connection is not correct, the process proceeds to step S22, the prefix particle dictionary is searched again after the prefix particle found in the first search, and it is determined whether or not it is found in step S23. In the case, the process proceeds to step S19 again.
ステップS12,ステップS13の後置助数詞辞書サーチ、ス
テップS15,ステップS16の数詞辞書サーチ、ステップS1
7,ステップS18,ステップS22,ステップS23の前置助数詞
サーチで一致するものが、各辞書において見つからなか
った場合には、すべてステップS24で仮名読みバッファ
(YBUF)から文書バッファ(TBUF)へと無変換のまま送
り出される。Post-positional number dictionary search in steps S12 and S13, number dictionary search in steps S15 and S16, step S1
7. If no match is found in the prepositional numeral search in steps S18, S22, and S23 in each dictionary, no kana reading buffer (YBUF) to document buffer (TBUF) is found in step S24. It is sent out as converted.
第1の実施例では、前置助数詞と後置助数詞との接続関
係(対応関係)を接続するかしないかの2つの状態にわ
けているが、第2図のような前置助数詞辞書のかわりに
第8図に示すような接続関係に頻度を持たせた前置助数
詞辞書を用いれば確かな接続関係のものから接続する可
能性のあるものまでが頻度の高い順に出力されようにな
る。例えば「だい1かい」というかなの入力に対して、
第1の実施例では「第1回」のみの出力であったが、第
2の実施例によれば「第1回」が第1候補に出力され、
ついで「第1階」が第2候補として出力されることにな
る。In the first embodiment, the connection relationship (correspondence relationship) between the prepositional auxiliary word and the postpositional auxiliary word is divided into two states, that is, whether to connect or not, but instead of the prepositional auxiliary word dictionary as shown in FIG. If a prepositional numeral dictionary having a connection relation with a frequency as shown in FIG. 8 is used, those having a reliable connection relation to those having a possibility of connection are output in descending order of frequency. For example, for an input such as "Daily 1",
In the first embodiment, only the "first time" was output, but according to the second embodiment, the "first time" is output to the first candidate,
Then, "first floor" is output as the second candidate.
第9図は本発明の第2の実施例における前置助数詞およ
び後置助数詞の変換処理の過程を示すフローチャートで
ある。第1の実施例のフローチャートとの違いはステッ
プS21′の処理である。ステップS21′では、接続が正し
いと判断された複数の組み合わせを前置助数詞辞書にお
ける接続表の頻度をもとに並べかえ、文書バッファTBUF
へと送り出すという処理を行うものである。FIG. 9 is a flow chart showing the process of conversion of the prefix and the postfix in the second embodiment of the present invention. The difference from the flowchart of the first embodiment is the process of step S21 '. In step S21 ', a plurality of combinations for which the connection is determined to be correct are rearranged based on the frequency of the connection table in the prepositional dictionary, and the document buffer TBUF
It is a process of sending out to.
[発明の効果] 以上の説明から明らかなように、前置助数詞に、前置助
数詞に対応して接続する可能性のある後置助数詞の情報
を、フラグを媒介として持たせることにより、数詞の前
後に接続する漢字への変換が可能となる。これにより、
同音異義語の存在する変換を容易かつ精確に行い得るよ
うになり、さらには、かかる変換のための処理時間を短
縮することが可能となる。[Effects of the Invention] As is clear from the above description, by providing a prefix with the information of the postpositional auxiliary that may be connected corresponding to the prepositional auxiliary, the flag is used as a medium. It is possible to convert to kanji that connects before and after. This allows
It becomes possible to easily and accurately perform conversion in which homonyms exist, and it is possible to shorten the processing time for such conversion.
故に、仮名漢字変換に係る操作性の向上を実現すること
ができた。Therefore, it was possible to improve the operability associated with kana-kanji conversion.
第1図は本発明の一実施例に係る装置の構成を示すブロ
ック図、 第2図は本発明の第1の実施例に係る前置助数詞辞書の
フォーマットを示す模式図、 第3図は実施例に係る数字辞書のフォーマットを示す模
式図、 第4図は実施例に係る後置助数詞辞書のフォーマットを
示す模式図、 第5図は第1の実施例に係る前置助数詞辞書と後置助数
詞接続表の部分コピーのフォーマットを示す模式図、 第6図は実施例に係る装置における処理過程を示すフロ
ーチャート、 第7図は本発明の第1実施例に係る変換処理を示すフロ
ーチャート、 第8図は本発明の第2の実施例に係る前置助数詞辞書の
フォーマットを示す模式図、 第9図は本発明の第2実施例に係る変換処理を示すフロ
ーチャートである。 1……CPU、2……ROM、3……RAM、4……キーボー
ド、5……ディスクメモリ、6……カーソルレジスタ、
7……表示用バッファメモリ(DBUF)、8……メッセー
ジ表示用バッファメモリ(MDBUF)、9……CRTコントロ
ーラ、10……表示器、11……キャラクタジェネレータ、
CB……コントロールバス、DB……データバス、AB……ア
ドレスバス。FIG. 1 is a block diagram showing a configuration of an apparatus according to an embodiment of the present invention, FIG. 2 is a schematic diagram showing a format of a prefix particle dictionary according to the first embodiment of the present invention, and FIG. FIG. 4 is a schematic diagram showing a format of a numeral dictionary according to an example, FIG. 4 is a schematic diagram showing a format of a postpositional auxiliary word dictionary according to an embodiment, and FIG. 5 is a frontal auxiliary word dictionary and a postpositional auxiliary word according to the first embodiment. FIG. 6 is a schematic diagram showing the format of a partial copy of the connection table, FIG. 6 is a flowchart showing the processing steps in the apparatus according to the embodiment, FIG. 7 is a flowchart showing the conversion processing according to the first embodiment of the present invention, and FIG. Is a schematic diagram showing the format of the prefix particle dictionary according to the second embodiment of the present invention, and FIG. 9 is a flow chart showing the conversion processing 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 (DBUF), 8 ... Message display buffer memory (MDBUF), 9 ... CRT controller, 10 ... Display, 11 ... Character generator,
CB ... Control bus, DB ... Data bus, AB ... Address bus.
Claims (3)
前置助数詞と数詞の後に接続する助数詞としての後置助
数詞とによって構成される数詞文節を、仮名漢字文節に
変換する文書処理装置において、 数詞と該数詞に対応した文字を記憶する数詞辞書と、 後置助数詞と該後置助数詞に対応した文字ならびに番号
を記憶する後置助数詞辞書と、 前置助数詞と該前置助数詞に対応した文字、ならびに該
前置助数詞に対応した前記後置助数詞との接続関係を前
記番号に対応させてフラグの状態によって記憶する前置
助数詞辞書と、 前記数詞文節が入力されたとき、前記数詞辞書,前記後
置助数詞辞書および前記前置助数詞辞書を検索し、前記
接続関係に基づき所定の仮名漢字文節に変換して出力す
る変換制御手段と を具えたことを特徴とする文書処理装置。Claim: What is claimed is: 1. A document processing device for converting a numerical clause composed of a numeral and a prefix auxiliary numeral as a prefix connected before the numeral and a trailing auxiliary numeral as a particle connected after the numeral into a kana-kanji clause. In, a number dictionary that stores a number and a character corresponding to the number, a postpositional number and a postpositional number dictionary that stores characters and numbers corresponding to the postpositional number, and a prepositional number and the prepositional number Character, and a prefix particle dictionary that stores the connection relation with the prefix particle corresponding to the prefix particle by the state of the flag in association with the number, and when the number clause is input, the dictionary , A conversion control means for retrieving the postpositional auxiliary word dictionary and the prepositional auxiliary word dictionary and converting and outputting to a predetermined kana-kanji clause based on the connection relation. Processing apparatus.
て、前記番号に対応するフラグの状態が2つで接続関係
の有無を判断することを特徴とする文書処理装置。2. The document processing apparatus according to claim 1, wherein the presence or absence of a connection relationship is determined by the state of two flags corresponding to the number.
て、前記番号に対応するフラグの状態が3つ以上で接続
関係の頻度を判断することを特徴とする文書処理装置。3. The document processing apparatus according to claim 1, wherein the frequency of the connection relation is judged when the state of the flag corresponding to the number is three or more.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62095224A JPH0769909B2 (en) | 1987-04-20 | 1987-04-20 | Document processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62095224A JPH0769909B2 (en) | 1987-04-20 | 1987-04-20 | Document processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63261454A JPS63261454A (en) | 1988-10-28 |
| JPH0769909B2 true JPH0769909B2 (en) | 1995-07-31 |
Family
ID=14131779
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62095224A Expired - Fee Related JPH0769909B2 (en) | 1987-04-20 | 1987-04-20 | Document processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0769909B2 (en) |
-
1987
- 1987-04-20 JP JP62095224A patent/JPH0769909B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63261454A (en) | 1988-10-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0370774B1 (en) | Machine translation system | |
| EP0686286B1 (en) | Text input transliteration system | |
| JPH05303590A (en) | Automatic translating device | |
| JP2943791B2 (en) | Language identification device, language identification method, and recording medium recording language identification program | |
| JPH0769909B2 (en) | Document processor | |
| JPH0412866B2 (en) | ||
| JPH0769908B2 (en) | Document processor | |
| JPH0612548B2 (en) | Document processor | |
| JPS59100941A (en) | Kana (japanese syllabary)-kanji (chinese character) converter | |
| JPS5832418B2 (en) | Kanji-mixed sentence input device | |
| JPH07191992A (en) | Character processor | |
| JPH0640325B2 (en) | Writing device | |
| JP2761622B2 (en) | Character converter | |
| JP2870524B2 (en) | Character conversion processor | |
| JPH0778133A (en) | Document creating apparatus and character pattern output method | |
| JPS60207948A (en) | Kana-kanji conversion processing device | |
| JPS60112175A (en) | Abbreviation conversion system of kana (japanese syllabary)/kanji (chinese character) convertor | |
| JPH0421901B2 (en) | ||
| JPH027161A (en) | Character processor | |
| JPH07141376A (en) | Translation device | |
| JP2000057132A (en) | Character data processing device and program recording medium therefor | |
| JPH04332073A (en) | Method and device for processing character | |
| JPH08241315A (en) | Document processing device word registration mechanism | |
| JPH03156663A (en) | Document preparing device | |
| JPH10187700A (en) | Document processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |