The Chinese character processing device
The present invention relates to the information conversion by the input media input is Chinese character, makes the Chinese character processing device of Chinese document.
Chinese character processing devices such as the Chinese words processor that has earlier are to constitute like this, for example, if with keyboard input Pinyin pronunciation, retrieve just income had with the pairing a plurality of Chinese character conversion dictionaries of this phonetic pronunciation, to read desirable Chinese character.In addition, in this Chinese character conversion dictionary, usually, the read-only storages such as interrogative sentence repeatedly that single Chinese character, word and frequency of utilization are high have been changed.
What is called is interrogative sentence repeatedly, uses the statement of verb exactly as " he goes or not " repeatedly, promptly represents the statement of query by the structure of " verb "+" no "+" verb ".
The spy of Japan opens clear 62-93744 communique and has delivered " the input in Chinese device " that the watch sound character string of Chinese is transformed to the Chinese character string.This input in Chinese device is to constitute like this, owing to be included in the conversion dictionary at following of the same catalogue similar Chinese character string that pronounces, so, even the mark of input directory correctly not also can be read candidate transformation.But, but do not relate to repeatedly the input of interrogative sentence.
In the above-mentioned Chinese character processing device that has earlier, the interrogative sentence repeatedly of read-only storageization is only limited to the high interrogative sentence repeatedly of frequency of utilization in Chinese character conversion dictionary, so, when the various interrogative sentence repeatedly of conversion, what will have can be transformed to interrogative sentence repeatedly, what have can not be transformed to interrogative sentence repeatedly, and therefore, Chinese character map function efficient is not high.In addition,, just need huge memory capacity if all interrogative sentences are repeatedly all stored into, and in the Chinese character conversion dictionary that formerly has, because off-capacity in fact is impossible.
The present invention puts forward in order to address the above problem, and purpose is to want to provide a kind of Chinese character processing device, need not take in repeatedly the variable all interrogative sentences repeatedly that swaps out of interrogative sentence in Chinese character conversion dictionary.
Fig. 1 is a structured flowchart of the present invention, and Fig. 2 is the structured flowchart of one embodiment of the present of invention, and Fig. 3 is the process flow diagram of the action of explanation present embodiment.
Fig. 1 is the structured flowchart of Chinese character processing device of the present invention. The 1st, the input unit of input Pinyin pronunciation information and various instructions; The 2nd, stored the individual Chinese character dictionary device of a large amount of individual Chinese characters; The 3rd, stored the word dictionary device of a large amount of words; The 4th, stored the storage device of the syllable correlation that consists of repeatedly interrogative sentence; The 5th, by the phonetic pronunciation information syllable segmenting device cut apart of syllabeme with input; The 6th, judge the judgment means whether the syllable correlation cut apart and the syllable correlation of yet repeatedly equate; 7 is first read-out devices, when judging phonetic pronunciation information and be repeatedly interrogative sentence, just the corresponding one or more Chinese characters of first syllable of phonetic pronunciation information is read from individual Chinese character dictionary device; The 8th, determine device, after it receives the instruction of input unit 1, just from determining one by selection above-mentioned two dictionary devices 2 and 3 Chinese characters of reading; The 9th, interrogative sentence forms device repeatedly, when having determined the Chinese character corresponding with first syllable, just read repeatedly the syllable correlation of interrogative sentence, read individual Chinese character according to this syllable correlation order from individual Chinese character dictionary device 2, thereby form repeatedly interrogative sentence: 10 is second read-out devices, when judging phonetic pronunciation information and be not repeatedly interrogative sentence, just read the Chinese character corresponding with phonetic pronunciation information from individual Chinese character dictionary device 2 and word dictionary device 3; The 11st, the display unit of the Chinese character that demonstration is read or the repeatedly interrogative sentence of formation.
In addition, judgment means can be made of CPU, this CPU moves in such a way, when the phonetic pronunciation is three syllables, and the phonetic pronunciation of second syllable in three syllables is " no " and the phonetic pronunciation of first syllable and the 3rd syllable when identical, just this phonetic pronunciation is judged as interrogative sentence repeatedly.In addition, single Chinese character dictionary device and word dictionary device can be made of ROM (read-only memory) (ROM).
According to the present invention, after input media input Pinyin pronunciation information, the phonetic pronunciation information of input is just cut apart by syllabeme, judges that by judgment means whether this phonetic pronunciation is interrogative sentence repeatedly.When phonetic pronunciation information is judged as repeatedly interrogative sentence, just read and the pairing one or more Chinese characters of first syllable of phonetic pronunciation from single Chinese character dictionary device, show by display device.From the Chinese character of reading, select a Chinese character (first syllable) back (not importing selection instruction when the Chinese character of reading has only) according to the instruction of input media, just the formation of storing in the read storage device syllable mutual relationship of interrogative sentence repeatedly, after from single Chinese character dictionary device, calling over Chinese character (the corresponding Chinese character of syllable later) according to this syllable mutual relationship, just can form repeatedly interrogative sentence and show by display device with first syllable.
When judging phonetic pronunciation information and not being repeatedly interrogative sentence, judge again whether phonetic pronunciation information is a syllable, if syllable, just from single Chinese character dictionary device, read corresponding Chinese character, if not a syllable, just from word dictionary device, read corresponding Chinese character, and show by display device.
Like this, not be used in and take in the just variable interrogative sentence repeatedly that swaps out and deposited of various interrogative sentences repeatedly in the dictionary device.
Below, describe the present invention in detail with reference to illustrated embodiment.Certainly, the present invention has more than and is limited to this structure.
Fig. 2 is the structured flowchart of one embodiment of the present of invention.Among the figure, the 20th, as the keyboard of input media, comprise input consonant character and rhythm alphabetic character character entry key, the phonetic pronunciation that is made of consonant character and rhythm alphabetic character is transformed to the transfer key of desirable Chinese character and sends the instruction key of various instructions.The 21st, single Chinese character dictionary has promptly been stored the single Chinese character dictionary device of a large amount of single Chinese characters; The 22nd, the word dictionary has promptly been stored the word dictionary device of a large amount of words of being made up of two above Chinese characters, and these two dictionaries are made of ROM (read-only memory) (ROM).The 23rd, the document impact damper of the Chinese character information that sequential storage is transformed into is made of random access memory.The 24th, display shows that promptly the phonetic pronunciation of being imported by keyboard 20 reaches the display device by above-mentioned two dictionary devices 21 and 22 Chinese characters of reading, by cathode ray tube (CRT) or LCD formations such as (LCD).The 25th, central processing unit (CPU), after it receives the phonetic pronunciation of being imported by keyboard 20, just read corresponding candidate Chinese character from above-mentioned two dictionary devices 21 and 22, just they are exported from display 24 after therefrom determining desirable Chinese character, central processing unit 25 can be made of the microprocessor of for example 8 bits or 16 bits.The action that CPU25 carries out memory storage, syllable segmenting device, judgment means, first readout device respectively, determines device, interrogative sentence forms the device and second readout device repeatedly.
Below, with reference to the action of flowchart text present embodiment shown in Figure 3.
By keyboard 20 input Pinyin pronunciations, when pressing transfer key (the 30th step), whether repeatedly CPU25 just analyzes the rule in the phonetic pronunciation, judge its interrogative sentence.The analysis in this step and judgement judge that at first the phonetic pronunciation is three syllables, if not three syllables, then judge it is not repeatedly interrogative sentence (the 31st step).Whether the phonetic pronunciation of then just checking second syllable in three syllables is " bu(is not) ", if not " bu ", then judges it is not repeatedly interrogative sentence (the 32nd step).If the phonetic pronunciation of second syllable in three syllables is " bu ",,, then be judged as repeatedly interrogative sentence (the 33rd step) if identical just whether reexamine first syllable identical with the phonetic pronunciation of the 3rd syllable.CPU25 is by above order operation.
When according to the above analysis, when the phonetic pronunciation of judging input was repeatedly interrogative sentence, CPU25 was just from the Chinese character of each syllable of single Chinese character dictionary 21 sequential search phonetics, and formed repeatedly interrogative sentence (the 34th step).
Below, utilize example sentence " to go or not " to illustrate repeatedly the formation method of interrogative sentence.When being judged as repeatedly interrogative sentence, just reading the candidate Chinese character 1 or 1 or more corresponding, and show by display 24 with first syllable from single Chinese character dictionary 21.When selecting the instruction of desirable Chinese character, just can determine the Chinese character (when candidate Chinese character only is 1 Chinese character, need not imports selection instruction and just can determine) of first syllable by keyboard 20 inputs.After the Chinese character of first syllable was determined, the Chinese character of just reading second syllable " went ".It is above-mentioned that to read action be automatically to carry out according to the rule of interrogative sentence (second syllable is Chinese character " no ", and the Chinese character of the 3rd syllable and first syllable is identical) repeatedly.
Then, the interrogative sentence repeatedly that just will read stores (the 35th step) in the document impact damper 23 into, and shows (the 36th step) by display 24.
When the 31st, 32,33 steps were judged as "No" respectively, promptly be judged as when not being repeatedly interrogative sentence, the phonetic of then judging input again is a syllable (the 37th step), if syllable, Chinese character retrieval (the 38th step) from single Chinese character dictionary 21 just, if not a syllable, searching word (the 39th step) from word dictionary 22 just.
In addition, be stored in the single Chinese character dictionary Chinese character affix sign that uses as interrogative sentence repeatedly, just can avoid skimble-skamble conversion by giving giving earlier, thus raising Chinese character conversion efficiency.
According to the present invention, the just variable all interrogative sentences repeatedly that swaps out of the income conversion dictionary of interrogative sentence repeatedly so both can reduce the capacity of conversion dictionary, can high efficiencyly need not be made interrogative sentence repeatedly again.