CN109117463A - Text pinyin marking method, electronic equipment, storage medium - Google Patents

Text pinyin marking method, electronic equipment, storage medium Download PDF

Info

Publication number
CN109117463A
CN109117463A CN201810836913.5A CN201810836913A CN109117463A CN 109117463 A CN109117463 A CN 109117463A CN 201810836913 A CN201810836913 A CN 201810836913A CN 109117463 A CN109117463 A CN 109117463A
Authority
CN
China
Prior art keywords
text
phonetic
option
phonetic option
chosen
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
CN201810836913.5A
Other languages
Chinese (zh)
Other versions
CN109117463B (en
Inventor
李铭瀚
张恒
于刚
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.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201810836913.5A priority Critical patent/CN109117463B/en
Publication of CN109117463A publication Critical patent/CN109117463A/en
Application granted granted Critical
Publication of CN109117463B publication Critical patent/CN109117463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Abstract

The invention discloses a kind of text pinyin marking method, electronic equipment, storage medium, method includes: at least one the phonetic option for obtaining all texts in text;The corresponding text control of text is generated for each text, text control includes at least one phonetic option of text and text;Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes the mark incidence relation of each text with the phonetic option chosen.Using text control, the mark incidence relation of text Yu phonetic option can be quickly established, fast and easy is completed to improve text pinyin marking efficiency to the processing such as mark of text phonetic.

Description

Text pinyin marking method, electronic equipment, storage medium
Technical field
The present invention relates to e-book fields, and in particular to a kind of text pinyin marking method, electronic equipment, storage medium.
Background technique
It is supplied to children's reading for convenience or teaching uses, in electronic book documentary in addition to comprising text, it is also necessary to include To the pinyin marking of text.Pinyin marking can help user to correctly identify text when reading, and carry out to the pronunciation of text Correctly guidance.The pinyin marking of mistake can mislead user pronunciation, influence user's study, cause adverse effect.Therefore, to text It is particularly important to carry out correctly pinyin marking.
The prior art can add corresponding spelling for text by mark personnel when carrying out pinyin marking to text one by one Sound, but make mark person works' amount larger in this way, and the time spent is longer, annotating efficiency is too low;Or as shown in Figure 1, It is shown in the window of mark personnel and contains text and corresponding phonetic option, since text and phonetic option mix It has been shown that, for mark personnel, on the one hand display is more chaotic, when mark be easy to happen the problems such as serial influence check and correction speed, Efficiency, on the other hand, for mark personnel when word for word marking, focus is easy to be placed on current character, and cannot preferably and text Context is combined, and when mark is easy to ignore context, leads to the phonetic option mistake of mark.Mark shown in FIG. 1 Note mode, mark personnel in mark, delete, correct to retain by the phonetic option for needing ceaselessly to move cursor selection mistake Phonetic option, in this way but also the processing speed of mark personnel is slower.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State text pinyin marking method, electronic equipment, the storage medium of problem.
According to an aspect of the invention, there is provided a kind of text pinyin marking method comprising:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of text is generated for each text, text control includes at least one of text and text Phonetic option;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text With the mark incidence relation for the phonetic option chosen.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute following operation for storing an at least executable instruction, executable instruction:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of text is generated for each text, text control includes at least one of text and text Phonetic option;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text With the mark incidence relation for the phonetic option chosen.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute following operation:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of text is generated for each text, text control includes at least one of text and text Phonetic option;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text With the mark incidence relation for the phonetic option chosen.
Text pinyin marking method, electronic equipment, the storage medium provided according to the present invention obtains all texts in text At least one phonetic option;The corresponding text control of text is generated for each text, text control includes text and text At least one phonetic option of word;Behaviour is chosen in response to any phonetic option at least one phonetic option of each text Make, establishes the mark incidence relation of each text with the phonetic option chosen.Using text control, text can be quickly established With the mark incidence relation of phonetic option, fast and easy is completed to improve text pinyin marking to the processing such as mark of text phonetic Efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows text pinyin marking schematic diagram in the prior art;
Fig. 2 shows the flow charts of according to embodiments of the present invention one text pinyin marking method;
Fig. 3 shows a kind of text pinyin marking schematic diagram of the invention;
Fig. 4 shows a kind of text pinyin marking of the invention and chooses effect diagram;
Fig. 5 shows the flow chart of according to embodiments of the present invention two text pinyin marking method;
Fig. 6 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Preferably to facilitate understanding, it is illustrated so that text is Chinese character as an example in the present embodiment, but be not limited to Chinese Chinese character, such as the text of any required pinyin marking of the corresponding katakana pinyin marking of japanese character are suitable for the present invention.
Embodiment one
Fig. 2 shows the flow charts of according to embodiments of the present invention one text pinyin marking method, as shown in Fig. 2, text Pinyin marking method specifically comprises the following steps:
Step S201 obtains at least one phonetic option of all texts in text.
When carrying out pinyin marking to text, pinyin marking mainly is carried out to text, needs first to identify the text in text. It can use such as OCR Text region technological means when identification and identify text in text.It, can be according to the text of identification Preset rules are that text generates corresponding phonetic option.Specifically, the text that identification obtains can be searched from default dictionary, in advance If containing multiple texts and the corresponding phonetic of each text in dictionary, each text pair in text is got from default dictionary The phonetic option answered.It, phonetic option includes phonetic alphabet and phonetic symbol, and phonetic alphabet and phonetic symbol are an entirety, is selected phonetic Item is when being operated, and can only be executed an operation and be completed that the whole of phonetic option is deleted or whole chosen.As text is " it ", obtaining corresponding phonetic option is " zh ī " comprising one sound of phonetic alphabet zhi and phonetic symbol, phonetic option " zh ī " are One entirety when operating to " zh ī ", can only execute an operation and complete to choose the whole deletion of " zh ī " or entirety Deng.When text is polyphone, such as " biography ", obtaining corresponding phonetic option is " chu á n " and " zhu à n ".Further, multiple spellings When sound option, the phonetic alphabet and phonetic symbol of each phonetic option are correspondingly, if phonetic option " chu á n " includes phonetic word Two sound of female chuan and phonetic symbol, phonetic option " zhu à n " includes phonetic alphabet zhuan and the phonetic symbol four tones of standard Chinese pronunciation.
Step S202 generates the corresponding text control of text for each text.
For convenience of mark, personnel are labeled, can be by selecting text and phonetic when showing text and phonetic option Object-oriented data processing is carried out, generate the corresponding text control of text for each text, when display, in a manner of file control All texts in display text.Display is as shown in figure 3, in a text control at least comprising a text and the text One phonetic option.As text control contains text " biography " and phonetic option " chu á n " and " zhu à n ", text control packet Text " it " and phonetic option " zh ī " etc. are contained.Upper and lower partitioning scheme is used in text control, and phonetic option is arranged in text Above word, text and phonetic option open-and-shut can be told, meets user's normal reading habit, does not influence text itself Word read, be also convenient for mark when, in conjunction with text context content, avoid only considering that single label character is also easy to produce mark Mistake.
Step S203 chooses operation in response to any phonetic option at least one phonetic option of each text, builds Found the mark incidence relation of each text with the phonetic option chosen.
Receiving user such as mark personnel is the selected phonetic option operations of text, responds any phonetic corresponding to text Option chooses operation, and the phonetic option chosen is labeled as the phonetic of text, the phonetic establishing text and being chosen Mark incidence relation between option.Specifically, can be as shown in figure 4, response chooses " chu á n " phonetic option to text " biography " Operation, only reservation " chu á n " phonetic option, defaults and directly deletes " zhu à n " phonetic option, only corresponds to " chu above text " biography " á n " phonetic option, to establish text " biography " and phonetic option " chu á n " one-to-one mark incidence relation.Due to phonetic Phonetic alphabet and phonetic symbol are an entirety in option, choose operation that can directly choose " chu á n " phonetic option, rather than choose " c " or in which single phonetic alphabet, after choosing " chu á n " phonetic option, default deletes entire " zhu à n " phonetic option, can Easily once to choose operation to complete reservation and the deletion of unselected phonetic option to phonetic option is chosen.When unselected spelling When sound option is multiple, multiple unselected phonetic options can be once deleted, the phonetic option chosen only is retained.If text " is said ", When phonetic option is " shu ō " in elected, while retaining phonetic option is " shu ō ", default directly deletes phonetic option " shu ì " and " yue ".It needs to grasp compared with each phonetic alphabet are deleted one by one in " shu ì " and " yue " manually with the prior art It is more rapidly convenient to make, more efficient.
Further, quick key operation is further comprised in text control.It is quick that user such as mark personnel can use shortcut key Choose phonetic option, shortcut key can be set to such as F1, and user is that text selects correct phonetic option using right and left key, later It presses keyboard shortcut confirming and chooses phonetic option.Respond user to text selected by key operation quick in each text control at least One phonetic option chooses operation, can establish the mark incidence relation of each text Yu the phonetic option chosen.
The text pinyin marking method provided according to the present invention obtains at least one phonetic choosing of all texts in text ?;The corresponding text control of text is generated for each text, text control includes at least one phonetic of text and text Option;Choose operation in response to any phonetic option at least one phonetic option of each text, establish each text with The mark incidence relation for the phonetic option chosen.Using text control, the mark of text Yu phonetic option can be quickly established Incidence relation, fast and easy complete mark to text phonetic, school peer processes, improve text pinyin marking efficiency.
Embodiment two
Fig. 5 shows the flow chart of according to embodiments of the present invention two text pinyin marking method, as shown in figure 5, text Pinyin marking method includes the following steps:
Step S501 identifies the text in text, generates the phonetic option of text.
It can be that text generates corresponding phonetic choosing according to preset rules in text after being identified to the text for including ?.When text is monosyllabic word, i.e., only one pronunciation of text when, the phonetic option of generation is one, when text is polyphone When, i.e., there are two texts or when more than two pronunciations, the phonetic option of generation is multiple.It according to text whether is monosyllabic word or more Sound word generates corresponding phonetic option.Preferably, when text is polyphone, corresponding number is generated according to its all pronunciation Phonetic option, facilitate user directly to carry out choosing operation according to multiple phonetic options, avoid user manual editing that from may producing again Raw misspelling problem.
Step S502 carries out word segmentation processing to the text in text, and word segmentation result is combined to carry out semantic analysis, calculates more The accuracy rate of a phonetic option.
When text there are multiple phonetic options, preferably user to be helped to complete pinyin marking, multiple phonetics can be selected Item carries out the calculating of accuracy rate.Specifically, can be by carrying out word segmentation processing to text, above and below word segmentation result combination text Literary structure, to calculate the accuracy of phonetic option;Or word is corresponding after searching participle in default dictionary according to word segmentation result Phonetic option, calculate phonetic option accuracy rate.Word segmentation processing such as is carried out to text " biography ", the word after being segmented " passes Say ", the phonetic option of " legend " can be searched from default dictionary, preset the entire phonetic choosing that word " legend " is stored in dictionary Item is " chu á n sh ō u ", according to the phonetic option of word " legend ", can calculate in the phonetic option of text " biography " " chu á n " Accuracy rate it is higher;Or semantic analysis is carried out to " legend ", obtaining the phonetic option of text " biography " in the text should be " chu á N ", so that it is determined that the accuracy rate of " chu á n " is more high in phonetic option.It is above for example, specific implementation is according to implementation Situation selection calculates the accuracy rate of phonetic option, herein without limitation.
Multiple phonetic options are ranked up by step S503 according to the accuracy rate of multiple phonetic options.
According to the accuracy rate being calculated, multiple phonetic options are arranged according to the accuracy rate height of multiple phonetic options Sequence, the high phonetic option of accuracy rate make number one, and successively arrange each phonetic option backward according to accuracy rate height, facilitate user See being the high phonetic option of accuracy rate at first, on the one hand may remind the user that the phonetic option accuracy rate is higher, another party Face can be convenient user and directly carry out choosing operation to the phonetic option, reduces the selection time.
Step S504 shows the highest phonetic option of accuracy rate according to ad hoc fashion.
Special display can be carried out to the highest phonetic option of accuracy rate, as shown in figure 4, the highest phonetic of accuracy rate is selected Item plus background color emphasis are shown, with call user's attention;Or the display font of the highest phonetic option of accuracy rate can also be adjusted A variety of ad hoc fashions such as size, overstriking, modification display color are shown, are particularly shown mode and are arranged according to performance, herein not It limits.
Above step S502-S504 for polyphone text multiple phonetic options execute, when text be monosyllabic word, it is only right When answering a phonetic option, step S502-S504 can not be executed.
Step S505 generates the corresponding text control of text for each text.
According at least one of text and text phonetic option, corresponding text control is generated.In each text control Contain each phonetic option of text and text, the corresponding text of each text control.Text control can use top For phonetic option, lower section is the display mode of text, to adapt to user's normal reading habit, while not influencing user to entire text The reading of all text continuities in this.
Step S506 chooses operation in response to any phonetic option at least one phonetic option of each text, builds Found the mark incidence relation of each text with the phonetic option chosen.
The shortcut key that user can directly operate in text control chooses text to answer corresponding phonetic option, establishes each text The mark incidence relation of word and the phonetic option chosen, to obtain one-to-one text and phonetic option.
Step S507 is responded and is operated to the editing and processing of phonetic option, the phonetic after establishing each text and editing and processing The mark incidence relation of option.
Further, when all phonetic options of text are incorrect, user can carry out editing and processing to phonetic option Operation, as text " biographys " phonetic option in without correct phonetic option when, allow user to be manually entered the choosing of correct phonetic , response user operates the editing and processing of phonetic option, deletes the phonetic option currently shown, only retains user's editing and processing Phonetic option afterwards, the one-to-one mark incidence relation of the phonetic option after establishing text and editing and processing.Specifically, can be When the manual input Pinyin of user alphabetical " c ", the multiple phonetic options currently shown are deleted, only retain the phonetic that user is manually entered Letter.Further, since phonetic symbol input is different from common phonetic alphabet, each sound can also be directly displayed in text control Mark, facilitates user to click directly on or select suitable phonetic symbol to input, and reduces the difficulty that user is manually entered.
Step S508 responds the character editing processing operation to text.
In addition to each text phonetic is labeled in text, user can carry out the processing such as check and correction editor to text simultaneously, Such as proofread in text whether punctuate is correct, whether omit, whether symbol is correct, the problems such as whether omitting.According in specific text There are the problem of, user can to text carry out character editing processing operation.Wherein, character editing processing operation includes such as punctuate Editing and processing operation, symbolic editing's processing operation etc..The editing and processing of punctuate in text is grasped specifically, user can be responded Make, is inserted into the punctuation mark lacked, deletes extra punctuation mark, the punctuation mark etc. of Edit Error;Wherein, punctuation mark packet Include the punctuation mark of various language;Or response user in text various symbols editing and processing operate, be inserted into lack as The various symbols such as formal notation, letter symbol, letter character;Delete extra symbol, the symbol etc. of Edit Error.Corresponding mark The display of point, symbol can show specific punctuate, symbol such as the mode as shown in comma in Fig. 3 and Fig. 4 below text control Number etc..
Above step S507 and S508 are optional step, and corresponding step is executed according to text concrete condition.
The text pinyin marking method provided according to the present invention calculates the accurate of phonetic option after obtaining phonetic option Rate is ranked up phonetic option according to accuracy rate height, user is facilitated to notice the high phonetic option of accuracy rate at first, improves The accuracy rate chosen is also convenient for choosing operation.Further, the phonetic option high to accuracy rate is shown according to ad hoc fashion, makes it It is more eye-catching.Meanwhile the present embodiment additionally provides response and operates to editing and processing such as characters in phonetic option, text, facilitates user It the editing and processing such as modifies to phonetic option, content of text, makes the check and correction more convenient operation to text, it is faster.
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, computer storage medium be stored with to The text pinyin marking side in above-mentioned any means embodiment can be performed in a few executable instruction, the computer executable instructions Method.
Executable instruction specifically can be used for so that processor executes following operation:
Obtain at least one phonetic option of all texts in text;The corresponding text control of text is generated for each text Part, text control include at least one phonetic option of text and text;In response at least one phonetic choosing of each text Any phonetic option chooses operation in, the mark incidence relation of phonetic option establishing each text and being chosen.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: in text All texts identified, and be that text generates corresponding phonetic option according to preset rules.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: in text All texts identified, the obtained text of identification is searched from default dictionary, obtains the corresponding phonetic option of text.
In a kind of optional embodiment, text is polyphone;It is following that executable instruction further executes processor Operation: the text in text is identified, multiple phonetic options of text are generated;Text in text is carried out at participle Reason, and word segmentation result is combined to carry out semantic analysis, calculate the accuracy rate of multiple phonetic options;According to the accurate of multiple phonetic options Multiple phonetic options are ranked up by rate.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: by accuracy rate Highest phonetic option is shown according to ad hoc fashion.
In a kind of optional embodiment, text control includes quick key operation;Executable instruction further makes to handle Device executes following operation: in response at least one phonetic option to text selected by key operation quick in each text control Choose operation, establish each text and the mark incidence relation of phonetic option chosen.
In a kind of optional embodiment, phonetic option includes phonetic alphabet and phonetic symbol.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: response is to spelling The editing and processing of sound option operates, the mark incidence relation of the phonetic option after establishing each text and editing and processing.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: response is to text This character editing processing operation;Wherein, character editing processing operation includes at the operation of punctuate editing and processing and/or symbolic editing Reason operation.
Example IV
Fig. 6 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation Example does not limit the specific implementation of electronic equipment.
As shown in fig. 6, the electronic equipment may include: processor (processor) 602, communication interface (Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:
Processor 602, communication interface 604 and memory 606 complete mutual communication by communication bus 608.
Communication interface 604, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 602 can specifically execute in above-mentioned text pinyin marking method embodiment for executing program 610 Correlation step.
Specifically, program 610 may include program code, which includes computer operation instruction.
Processor 602 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that server includes can be same type of processor, such as one or more CPU;It can also be with It is different types of processor, such as one or more CPU and one or more ASIC.
Memory 606, for storing program 610.Memory 606 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 610 specifically can be used for so that processor 602 executes following operation:
In a kind of optional embodiment, program 610 be used for so that processor 602 obtain text in all texts extremely A few phonetic option;The corresponding text control of text is generated for each text, text control includes text and text At least one phonetic option;Operation is chosen in response to any phonetic option at least one phonetic option of each text, is built Found the mark incidence relation of each text with the phonetic option chosen.
In a kind of optional embodiment, program 610 is used for so that processor 602 carries out all texts in text Identification, and be that text generates corresponding phonetic option according to preset rules.
In a kind of optional embodiment, program 610 is used for so that processor 602 carries out all texts in text Identification searches the text that identification obtains from default dictionary, obtains the corresponding phonetic option of text.
In a kind of optional embodiment, text is polyphone;Program 610 is used for so that processor 602 is in text Text identified, generate multiple phonetic options of text;Word segmentation processing is carried out to the text in text, and combines participle knot Fruit carries out semantic analysis, calculates the accuracy rate of multiple phonetic options;Multiple phonetics are selected according to the accuracy rate of multiple phonetic options Item is ranked up.
In a kind of optional embodiment, program 610 is used for so that processor 602 is by the highest phonetic option of accuracy rate It is shown according to ad hoc fashion.
In a kind of optional embodiment, text control includes quick key operation;Program 610 is used for so that processor 602 choose operation in response at least one phonetic option to text selected by key operation quick in each text control, Establish the mark incidence relation of each text with the phonetic option chosen.
In a kind of optional embodiment, phonetic option includes phonetic alphabet and phonetic symbol.
In a kind of optional embodiment, program 610 is used for so that processor 602 responds the Editorial Services to phonetic option Reason operation, the mark incidence relation of the phonetic option after establishing each text and editing and processing.
In a kind of optional embodiment, program 610 is used for so that processor 602 responds to the character editing of text Reason operation;Wherein, character editing processing operation includes the operation of punctuate editing and processing and/or symbolic editing's processing operation.
The specific implementation of each step may refer in the corresponding steps in above-mentioned text pinyin marking embodiment in program 610 Corresponding description, this will not be repeated here.It is apparent to those skilled in the art that for convenience and simplicity of description, The equipment of foregoing description and the specific work process of module, can refer to corresponding processes in the foregoing method embodiment description, This is repeated no more.
The scheme provided through this embodiment obtains at least one phonetic option of all texts in text;For each Text generates the corresponding text control of text, and text control includes at least one phonetic option of text and text;In response to Any phonetic option chooses operation at least one phonetic option of each text, establishes each text and the phonetic chosen The mark incidence relation of option.Using text control, the mark incidence relation of text Yu phonetic option can be quickly established, it is convenient It is rapidly completed to the processing such as mark of text phonetic, improves text pinyin marking efficiency.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.
The invention discloses: a kind of text pinyin marking method of A1. comprising:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of the text is generated for each text, the text control includes text and the text At least one phonetic option of word;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text With the mark incidence relation for the phonetic option chosen.
A2. method according to a1, wherein described at least one phonetic option for obtaining all texts in text is into one Step includes:
All texts in text are identified, and are that the text generates corresponding phonetic choosing according to preset rules ?.
A3. the method according to A2, wherein all texts in text identify, and according to default rule Then generating corresponding phonetic option for the text further comprises:
All texts in text are identified, the text that identification obtains is searched from default dictionary, obtains the text The corresponding phonetic option of word.
A4. the method according to A2 or A3, wherein the text is polyphone;All texts in text It is identified, and is that the corresponding phonetic option of text generation further comprises according to preset rules:
Text in text is identified, multiple phonetic options of text are generated;
Word segmentation processing is carried out to the text in text, and word segmentation result is combined to carry out semantic analysis, calculates multiple phonetic choosings The accuracy rate of item;
Multiple phonetic options are ranked up according to the accuracy rate of multiple phonetic options.
A5. method according to a4, wherein the method also includes:
The highest phonetic option of the accuracy rate is shown according to ad hoc fashion.
A6. the method according to any one of A1-A5, wherein the text control includes quick key operation;
Any phonetic option chooses operation in described at least one phonetic option in response to each text, establishes each The mark incidence relation of text and the phonetic option chosen further comprises:
In response to choosing at least one phonetic option to text selected by key operation quick in each text control The mark incidence relation of each text with the phonetic option chosen is established in operation.
A7. the method according to any one of A1-A6, wherein the phonetic option includes phonetic alphabet and phonetic symbol.
A8. the method according to any one of A1-A7, wherein the method also includes:
It responds and the editing and processing of the phonetic option is operated, the phonetic option after establishing each text and editing and processing Mark incidence relation.
A9. the method according to any one of A1-A8, wherein the method also includes:
Respond the character editing processing operation to text;Wherein, the character editing processing operation includes punctuate Editorial Services Reason operation and/or symbolic editing's processing operation.
The invention also discloses: B10. a kind of electronic equipment, comprising: processor, memory, communication interface and communication are total Line, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor Operation:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of the text is generated for each text, the text control includes text and the text At least one phonetic option of word;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text With the mark incidence relation for the phonetic option chosen.
B11. electronic equipment according to b10, the executable instruction further make the processor execute following behaviour Make:
All texts in text are identified, and are that the text generates corresponding phonetic choosing according to preset rules ?.
B12. the electronic equipment according to B11, the executable instruction further make the processor execute following behaviour Make:
All texts in text are identified, the text that identification obtains is searched from default dictionary, obtains the text The corresponding phonetic option of word.
B13. the electronic equipment according to B11 or B12, the text are polyphone;The executable instruction is further The processor is set to execute following operation:
Text in text is identified, multiple phonetic options of text are generated;
Word segmentation processing is carried out to the text in text, and word segmentation result is combined to carry out semantic analysis, calculates multiple phonetic choosings The accuracy rate of item;
Multiple phonetic options are ranked up according to the accuracy rate of multiple phonetic options.
B14. electronic equipment according to b13, the executable instruction further make the processor execute following behaviour Make:
The highest phonetic option of the accuracy rate is shown according to ad hoc fashion.
B15. the electronic equipment according to any one of B10-B14, the text control include quick key operation;It is described Executable instruction further makes the processor execute following operation:
In response to choosing at least one phonetic option to text selected by key operation quick in each text control The mark incidence relation of each text with the phonetic option chosen is established in operation.
B16. the electronic equipment according to any one of B10-B15, the phonetic option includes phonetic alphabet and phonetic symbol.
B17. the electronic equipment according to any one of B10-B16, the executable instruction further make the processing Device executes following operation:
It responds and the editing and processing of the phonetic option is operated, the phonetic option after establishing each text and editing and processing Mark incidence relation.
B18. the electronic equipment according to any one of B10-B17, the executable instruction further make the processing Device executes following operation:
Respond the character editing processing operation to text;Wherein, the character editing processing operation includes punctuate Editorial Services Reason operation and/or symbolic editing's processing operation.
The invention also discloses a kind of computer storage medium of C19., being stored at least one in the storage medium can be held Row instruction, the executable instruction make processor execute following operation:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of the text is generated for each text, the text control includes text and the text At least one phonetic option of word;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text With the mark incidence relation for the phonetic option chosen.
C20. the computer storage medium according to C19, it is following that the executable instruction further executes processor Operation:
All texts in text are identified, and are that the text generates corresponding phonetic choosing according to preset rules ?.
C21. the computer storage medium according to C20, it is following that the executable instruction further executes processor Operation:
All texts in text are identified, the text that identification obtains is searched from default dictionary, obtains the text The corresponding phonetic option of word.
C22. the computer storage medium according to C20 or C21, the text are polyphone;The executable instruction Processor is further set to execute following operation:
Text in text is identified, multiple phonetic options of text are generated;
Word segmentation processing is carried out to the text in text, and word segmentation result is combined to carry out semantic analysis, calculates multiple phonetic choosings The accuracy rate of item;
Multiple phonetic options are ranked up according to the accuracy rate of multiple phonetic options.
C23. the computer storage medium according to C22, it is following that the executable instruction further executes processor Operation:
The highest phonetic option of the accuracy rate is shown according to ad hoc fashion.
C24. the computer storage medium according to any one of C19-C23, the text control are grasped comprising shortcut key Make;The executable instruction further makes processor execute following operation:
In response to choosing at least one phonetic option to text selected by key operation quick in each text control The mark incidence relation of each text with the phonetic option chosen is established in operation.
C25. the computer storage medium according to any one of C19-C24, the phonetic option includes phonetic alphabet And phonetic symbol.
C26. the computer storage medium according to any one of C19-C25, the executable instruction further make to locate It manages device and executes following operation:
It responds and the editing and processing of the phonetic option is operated, the phonetic option after establishing each text and editing and processing Mark incidence relation.
C27. the computer storage medium according to any one of C19-C26, the executable instruction further make to locate It manages device and executes following operation:
Respond the character editing processing operation to text;Wherein, the character editing processing operation includes punctuate Editorial Services Reason operation and/or symbolic editing's processing operation.

Claims (10)

1. a kind of text pinyin marking method comprising:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of the text is generated for each text, the text control includes text and the text At least one phonetic option;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text and institute The mark incidence relation for the phonetic option chosen.
2. according to the method described in claim 1, wherein, described at least one phonetic option for obtaining all texts in text into One step includes:
All texts in text are identified, and are that the text generates corresponding phonetic option according to preset rules.
3. according to the method described in claim 2, wherein, all texts in text identify, and according to default Rule is that the corresponding phonetic option of text generation further comprises:
All texts in text are identified, the text that identification obtains is searched from default dictionary, obtains the text pair The phonetic option answered.
4. according to the method in claim 2 or 3, wherein the text is polyphone;All texts in text It is identified, and is that the corresponding phonetic option of text generation further comprises according to preset rules:
Text in text is identified, multiple phonetic options of text are generated;
Word segmentation processing is carried out to the text in text, and word segmentation result is combined to carry out semantic analysis, calculates multiple phonetic options Accuracy rate;
Multiple phonetic options are ranked up according to the accuracy rate of multiple phonetic options.
5. according to the method described in claim 4, wherein, the method also includes:
The highest phonetic option of the accuracy rate is shown according to ad hoc fashion.
6. method according to any one of claims 1-5, wherein the text control includes quick key operation;
Any phonetic option chooses operation in described at least one phonetic option in response to each text, establishes each text Mark incidence relation with the phonetic option chosen further comprises:
Operation is chosen in response at least one phonetic option to text selected by key operation quick in each text control, Establish the mark incidence relation of each text with the phonetic option chosen.
7. method according to claim 1 to 6, wherein the phonetic option includes phonetic alphabet and phonetic symbol.
8. method according to any one of claims 1-7, wherein the method also includes:
It responds and the editing and processing of the phonetic option is operated, the mark of the phonetic option after establishing each text and editing and processing Incidence relation.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of the text is generated for each text, the text control includes text and the text At least one phonetic option;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text and institute The mark incidence relation for the phonetic option chosen.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
Obtain at least one phonetic option of all texts in text;
The corresponding text control of the text is generated for each text, the text control includes text and the text At least one phonetic option;
Operation is chosen in response to any phonetic option at least one phonetic option of each text, establishes each text and institute The mark incidence relation for the phonetic option chosen.
CN201810836913.5A 2018-07-26 2018-07-26 Text pinyin marking method, electronic equipment, storage medium Active CN109117463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810836913.5A CN109117463B (en) 2018-07-26 2018-07-26 Text pinyin marking method, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810836913.5A CN109117463B (en) 2018-07-26 2018-07-26 Text pinyin marking method, electronic equipment, storage medium

Publications (2)

Publication Number Publication Date
CN109117463A true CN109117463A (en) 2019-01-01
CN109117463B CN109117463B (en) 2019-11-22

Family

ID=64863732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810836913.5A Active CN109117463B (en) 2018-07-26 2018-07-26 Text pinyin marking method, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN109117463B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977361A (en) * 2019-03-01 2019-07-05 广州多益网络股份有限公司 A kind of Chinese phonetic alphabet mask method, device and storage medium based on similar word
CN111091120A (en) * 2019-07-02 2020-05-01 广东小天才科技有限公司 Dictation correction method and electronic equipment
CN111354339A (en) * 2020-03-05 2020-06-30 深圳前海微众银行股份有限公司 Method, device and equipment for constructing vocabulary phoneme table and storage medium
CN112395844A (en) * 2020-11-16 2021-02-23 北京字节跳动网络技术有限公司 Pinyin generation method and device and electronic equipment
CN113139369A (en) * 2021-05-07 2021-07-20 仲恺农业工程学院 Intelligent phonetic notation method, system, equipment and medium for document difficult and complicated characters

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894101A (en) * 2010-06-24 2010-11-24 无敌科技(西安)有限公司 Pinyin marking method and system
CN104317505A (en) * 2014-10-12 2015-01-28 渤海大学 Pinyin outputting system and method
CN104933033A (en) * 2015-07-08 2015-09-23 邱行中 System for automatic pinyin annotation of Chinese characters and annotation method of system
CN105225657A (en) * 2015-10-22 2016-01-06 百度在线网络技术(北京)有限公司 Polyphone mark template generation method and device
CN106598934A (en) * 2016-12-14 2017-04-26 掌阅科技股份有限公司 Electronic book data display method and device, and terminal equipment
CN107203508A (en) * 2016-03-17 2017-09-26 富士施乐实业发展(中国)有限公司 Braille document generating method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894101A (en) * 2010-06-24 2010-11-24 无敌科技(西安)有限公司 Pinyin marking method and system
CN104317505A (en) * 2014-10-12 2015-01-28 渤海大学 Pinyin outputting system and method
CN104933033A (en) * 2015-07-08 2015-09-23 邱行中 System for automatic pinyin annotation of Chinese characters and annotation method of system
CN105225657A (en) * 2015-10-22 2016-01-06 百度在线网络技术(北京)有限公司 Polyphone mark template generation method and device
CN107203508A (en) * 2016-03-17 2017-09-26 富士施乐实业发展(中国)有限公司 Braille document generating method and system
CN106598934A (en) * 2016-12-14 2017-04-26 掌阅科技股份有限公司 Electronic book data display method and device, and terminal equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977361A (en) * 2019-03-01 2019-07-05 广州多益网络股份有限公司 A kind of Chinese phonetic alphabet mask method, device and storage medium based on similar word
CN111091120A (en) * 2019-07-02 2020-05-01 广东小天才科技有限公司 Dictation correction method and electronic equipment
CN111091120B (en) * 2019-07-02 2023-05-26 广东小天才科技有限公司 Dictation correction method and electronic equipment
CN111354339A (en) * 2020-03-05 2020-06-30 深圳前海微众银行股份有限公司 Method, device and equipment for constructing vocabulary phoneme table and storage medium
CN111354339B (en) * 2020-03-05 2023-11-03 深圳前海微众银行股份有限公司 Vocabulary phoneme list construction method, device, equipment and storage medium
CN112395844A (en) * 2020-11-16 2021-02-23 北京字节跳动网络技术有限公司 Pinyin generation method and device and electronic equipment
CN112395844B (en) * 2020-11-16 2024-01-30 北京字节跳动网络技术有限公司 Pinyin generation method and device and electronic equipment
CN113139369A (en) * 2021-05-07 2021-07-20 仲恺农业工程学院 Intelligent phonetic notation method, system, equipment and medium for document difficult and complicated characters

Also Published As

Publication number Publication date
CN109117463B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN109117463B (en) Text pinyin marking method, electronic equipment, storage medium
TWI443551B (en) Method and system for an input method editor and computer program product
TWI437449B (en) Multi-mode input method and input method editor system
JP5362095B2 (en) Input method editor
US9552125B2 (en) Input method editor
US20150121291A1 (en) Input Method Editor
JPS62245367A (en) Document processor
CN104239289B (en) Syllabification method and syllabification equipment
CN107077515B (en) Display control device, display control method, and display control medium
WO2019135897A1 (en) Smart search for annotations and inking
KR20170132643A (en) Method for displaying character and Apparatus thereof
JP6723726B2 (en) Input support device
US20150199322A1 (en) Operating Method of Terminal for Proofreading Electronic Document
US11170182B2 (en) Braille editing method using error output function, recording medium storing program for executing same, and computer program stored in recording medium for executing same
Hsieh et al. Fluid Annotation: A Granularity-aware Annotation Tool for Chinese Word Fluidity
KR20150109874A (en) Method and apparatus of searching objects and texts in documents
TWI230870B (en) New Chinese input method
JPS62209667A (en) Sentence producing device
CN114860963A (en) Data annotation method and device, computer equipment and storage medium
JP2020187755A (en) Input assistance device
JP5817602B2 (en) Character input device, function execution method by character input, and character input program
JP3340124B2 (en) Kana-Kanji conversion device
CN111309158A (en) Voice-form dual-mode Chinese input method, system, equipment and computer readable storage medium
JP2008015781A (en) Chinese character retrieving apparatus and chinese character retrieving method
JPH0359761A (en) Device for correcting spelling error of english word

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant