CN107590109A - A kind of text handling method and electronic equipment - Google Patents

A kind of text handling method and electronic equipment Download PDF

Info

Publication number
CN107590109A
CN107590109A CN201710606733.3A CN201710606733A CN107590109A CN 107590109 A CN107590109 A CN 107590109A CN 201710606733 A CN201710606733 A CN 201710606733A CN 107590109 A CN107590109 A CN 107590109A
Authority
CN
China
Prior art keywords
text
ziwen
sub
flag
sheet
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.)
Pending
Application number
CN201710606733.3A
Other languages
Chinese (zh)
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201710606733.3A priority Critical patent/CN107590109A/en
Publication of CN107590109A publication Critical patent/CN107590109A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a kind of text handling method and electronic equipment.Wherein, this method can include:According to each sub- Text Flag in text, it is determined that distinguishing corresponding each Ziwen sheet with each sub- Text Flag;Utilize each this replacement of Ziwen each sub- Text Flag of determination.Using the present invention, the efficiency to text resolution can be improved while text redundancy is reduced.

Description

A kind of text handling method and electronic equipment
Technical field
The present invention relates to field of computer technology, more particularly to a kind of text handling method and electronic equipment.
Background technology
At present, most software all can be using storing corresponding text to text library.In most cases, the text in text library This redundant data is more, not only makes the file in storage text storehouse larger, also results in when software needs to obtain text, reduces Analyzing efficiency.
The content of the invention
The embodiments of the invention provide a kind of text handling method and electronic equipment, can reduce the same of text redundancy When, improve the efficiency of the parsing to text.
In a first aspect, the embodiments of the invention provide a kind of text handling method, including:
According to each sub- Text Flag in text, it is determined that distinguishing corresponding each Ziwen with each sub- Text Flag This;
Utilize each this replacement of Ziwen each sub- Text Flag of determination.
Alternatively, the corresponding relation of sub- Text Flag and Ziwen sheet is established;
Store the corresponding relation.
Alternatively, it is described using each this replacement of the Ziwen each sub- Text Flag determined, including:
According to order of each sub- Text Flag in the text, using determination each Ziwen sheet according to The order replaces each sub- Text Flag successively.
Alternatively, after each this replacement of Ziwen each sub- Text Flag using determination, the side Method also includes:
If the target Ziwen sheet in modification each Ziwen sheet, change in the corresponding relation with this mark of target Ziwen Ziwen notebook data in the target Ziwen sheet corresponding to knowledge.
Alternatively, the text includes sentence, and the Ziwen sheet includes words.
Second aspect, the embodiments of the invention provide a kind of electronic equipment, the electronic equipment comprise at least processor and Memory, the processor are connected with the memory;Wherein, the memory is used to store application program;The processor For calling the application program stored in the memory to perform following steps:
According to each sub- Text Flag in text, it is determined that distinguishing corresponding each Ziwen with each sub- Text Flag This;
Utilize each this replacement of Ziwen each sub- Text Flag of determination.
Alternatively, the processor is additionally operable to call the application program stored in the memory to perform following steps:
Establish the corresponding relation of sub- Text Flag and Ziwen sheet;
Store the corresponding relation.
Alternatively, the processor is specifically used for calling the application program stored in the memory to perform following steps:
According to order of each sub- Text Flag in the text, using determination each Ziwen sheet according to The order replaces each sub- Text Flag successively.
Alternatively, the processor is additionally operable to call the application program stored in the memory to perform following steps:
If the target Ziwen sheet in modification each Ziwen sheet, change in the corresponding relation with this mark of target Ziwen Ziwen notebook data in the target Ziwen sheet corresponding to knowledge.
Alternatively, the text includes sentence, and the Ziwen sheet includes words.
In the embodiment of the present invention, electronic equipment can according to each sub- Text Flag in text, it is determined that with each Ziwen Each Ziwen sheet corresponding to this mark difference, and each Ziwen determined can be utilized originally to replace each sub- Text Flag, So that while text redundancy is reduced, the efficiency of the parsing to text is improved.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet for text handling method that inventive embodiments provide;
Fig. 2 is a kind of schematic flow sheet for text handling method that yet another embodiment of the invention provides;
Fig. 3 is a kind of structural representation of text processing apparatus provided in an embodiment of the present invention;
Fig. 4 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, it is a kind of schematic flow sheet of text handling method provided in an embodiment of the present invention.This method can be with In the electronic equipment applied to terminal or server etc. with text-processing function.Wherein, this method may comprise steps of:
S101, according to each sub- Text Flag in text, it is determined that corresponding each respectively with each sub- Text Flag Ziwen sheet.
In the embodiment of the present invention, the text can include Text Flag, and text data.Wherein, this article notebook data Content of text can be referred to as.Ziwen sheet includes sub- Text Flag, and Ziwen notebook data.The Ziwen notebook data can also be claimed For sub- content of text.
Alternatively, text data can include sentence.The sentence can be understood as text data corresponding to text, Ke Yiyou Corresponding sentence is formed.The Ziwen notebook data can be a certain partial data that text data includes, such as words.Wherein, The word, word, phrase, short sentence in each language can be included, a string of string number etc. of numeral the inside not structure can also be included Into the data of word, phrase.
For example, the Ziwen notebook data can be " Decelerate ", the Ziwen notebook data is text data " CRUISE CONTROL lever in position'Set'or'Decelerate in increments of ten' " include one Partial data.
It should be noted that text mark does not repeat with sub- Text Flag, can be with the corresponding text of unique mark.Its In, the sub- Text Flag includes but is not limited to be represented with sequence number in text library, general mark of each text in text library It is unique.For example, Text Flag can be " 0001 ".
Alternatively, if running into situation about being called between multiple text libraries, the mark of each text in the plurality of text library If known uniquely, the scheme shown in the embodiment of the present invention can be realized.
Alternatively, electronic equipment can establish the corresponding relation of sub- Text Flag and Ziwen sheet;Store the corresponding relation.Its In, the corresponding relation can be stored in target text storehouse.The target text storehouse can be the new text library or created Some text libraries.
Still optionally further, can there be the son in the new text library by creating a new text library Text Flag and the corresponding relation of the Ziwen sheet.
Still optionally further, can there be the Ziwen sheet in the existing text library in existing text library The corresponding relation of mark and the Ziwen sheet.Wherein, the mark of each text in the existing text library and each this mark of Ziwen Knowledge possesses uniqueness.For example, sub- Text Flag can carry out serial number according to Text Flag.
Alternatively, Ziwen originally can be determined as follows:Original text storehouse is determined, and according in the original text storehouse Each text determine at least one text data;Each Ziwen sheet is generated using each text data of the determination.Wherein, should The each text data determined can be used as each Ziwen notebook data.
For example, original text storehouse 1 is:
0001,"CRUISE CONTROL lever in position'Set'or'Accelerate in increments of ten'";
0002,"CRUISE CONTROL lever in position'Set'or'Decelerate in increments of ten'";
0003,"CRUISE CONTROL lever in position'Set'or'Accelerate'"。
Wherein, in original text storehouse 1, " 0001 " can be the mark of 0001 this text, " CRUISE CONTROL Lever in position'Set'or'Accelerate in increments of ten " can be 0001 this text Text data.If it is determined that each text data for " CRUISE CONTROL lever in position'Set' ", " Accelerate ", " Decelerate ", " in increments of ten ", then it can utilize each textual data of the determination It is as follows according to each Ziwen sheet of generation:
0005,"CRUISE CONTROL lever in position'Set'";
0006,"Accelerate";
0007,"Decelerate";
0008,"in increments of ten"。
Wherein, " 0005 " can be the mark of 0005 this Ziwen sheet."CRUISE CONTROL lever in Position'Set' " can be the Ziwen notebook data of this Ziwen sheet.
Alternatively, the text data of the determination can be the text data that repetitive rate exceedes preset repetition rate threshold.Example Such as, the text data of the determination can be text data of the repetitive rate more than 100 times.
Still optionally further, the text data of above-mentioned determination can according in original text storehouse each text textual data Exceed the text data of preset repetition rate threshold according to the repetitive rate of determination.
For example, the text data " Accelerate " of the determination can according in original text storehouse 1 each text text Text data of the repetitive rate more than 2 times that notebook data determines.
Alternatively, the text data of the determination can also be the preset text data of user.For example, the textual data of the determination According to can be preset conventional text data.
Still optionally further, the text data of the determination can also be each text of the user in the original text storehouse Preset text data.
For example, the text data " Accelerate " of the determination can be that user is each in the original text storehouse 1 The preset conventional text data of text.
Alternatively, the text data of the determination can also be that data length is more than the text data of preset length threshold.
Still optionally further, the text data of the determination can also be the textual data according to each text in original text storehouse It is more than the text data of preset length threshold according to the data length of determination.
For example, the text data " Accelerate " of the determination can be the text according to each text in original text storehouse 1 The data length that notebook data determines is more than the text data of the length of " 0006 ".
Alternatively, however, it is determined that target text storehouse includes Ziwen sheet corresponding to the target text data of determination, then utilizes son Text Flag replaces the target text data in the text, so as to reach the purpose for reducing text redundancy.Below with target text This storehouse is that above-mentioned original text storehouse 1 is illustrated, then the original text storehouse 1 after replacing can be:
0001, " %0005or'%0006%0008' ";
0002, " %0005or'%0007%0008' ";
0003, " %0005or'%0006' ";
0004, " %0005or'%0007' ";
0005,"CRUISE CONTROL lever in position'Set'";
0006,"Accelerate";
0007,"Decelerate";
0008,"in increments of ten"。
Wherein, the target text storehouse can be original text or other text libraries.Original text storehouse 1 and target text Storehouse is only a kind of situation that the embodiment of the present invention is enumerated, and it is not construed as limiting the invention.
Still optionally further, can be included using the target text data in Ziwen this replacement text:Pass through calling Symbol calls the form of the Ziwen sheet to replace the target text data in the text.Wherein, calling symbol can be the use of definition In the symbol for calling Ziwen sheet, there is uniqueness.For example, calling symbol can be " % ".
Exemplified by the text corresponding to 0001 in original text storehouse, the text data in the text is " CRUISE CONTROL Lever in position'Set'or'Accelerate in increments of ten' ", however, it is determined that the text includes The target text data of determination be " CRUISE CONTROL lever in position'Set' ", " Accelerate " and " Accelerate in increments of ten ", then 0001 text after replacing are changed into 0001, " %0005or'% 0006%0008' ".Wherein, " %0005 " represents to call 0005 this Ziwen sheet.Specifically, " %0005 " can be understood as adjusting The Ziwen notebook data of 0005 this Ziwen sheet is originally identified as with Ziwen.
It should be noted that when software obtains the text, then the text can be parsed according to the Text Flag of the text. Alternatively, the text is parsed according to the Text Flag of the text to comprise at least:The text is determined according to the Text Flag of the text Text data, and each sub- Text Flag that can be included according to this article notebook data, it is determined that with each sub- Text Flag Each Ziwen sheet corresponding to respectively.Still optionally further, this article can be determined by the corresponding relation preserved in target text storehouse Text data in this.
For example, if the text that software needs to obtain is the text corresponding to Text Flag 0001, electronic equipment can To determine the text in target database corresponding to 0001:0001, the son that " %0005or'%0006%0008' " includes Text Flag is 0005,0006,0008.Electronic equipment can determine that Ziwen corresponding to sub- Text Flag 0005 is originally:0005," CRUISE CONTROL lever in position'Set' ", Ziwen corresponding to sub- Text Flag 0006 are originally:0006, " Accelerate ", Ziwen corresponding to sub- Text Flag 0008 are originally:0008, " in increments of ten ".
S102, each this replacement of Ziwen each sub- Text Flag using determination.
It should be noted that in step S101, electronic equipment can determine corresponding respectively with each sub- Text Flag Each Ziwen sheet.In step s 102, electronic equipment can utilize each Ziwen determined originally to replace each this mark of Ziwen Know.
As an example it is assumed that Ziwen corresponding to the sub- Text Flag 0005 that electronic equipment determines originally is:0005,"CRUISE CONTROL lever in position'Set' ", Ziwen corresponding to sub- Text Flag 0006 are originally:0006, " Accelerate ", Ziwen corresponding to sub- Text Flag 0008 are originally:0008,"in increments of ten".Then electronics is set It is standby to utilize each this replacement of the Ziwen each sub- Text Flag determined, you can to need what is obtained to obtain software Text is that the text corresponding to Text Flag 0001 is:0001,"CRUISE CONTROL lever in position'Set' or'Accelerate in increments of ten'"。
It can be seen that in embodiment shown in Fig. 1, electronic equipment can according to each sub- Text Flag in text, it is determined that with this Each Ziwen sheet corresponding to each sub- Text Flag difference;Each this mark of Ziwen is originally replaced using each Ziwen of determination Know, and cause while text redundancy is reduced, improve the efficiency of the parsing to text.
A kind of referring to Fig. 2, schematic flow sheet of the text handling method provided for yet another embodiment of the invention.This method Can apply to terminal or server etc. has the electronic equipment of text-processing function.Wherein, this method can include following step Suddenly:
S201, sub- Text Flag and the corresponding relation of Ziwen sheet are established, and store the corresponding relation.
In the embodiment of the present invention, the corresponding relation can be stored in target text storehouse.The Ziwen originally can include Ziwen This mark and Ziwen notebook data.
Alternatively, the sub- Text Flag and the corresponding relation of Ziwen sheet can be established in the following way:It is determined that initial text This storehouse, and each text in the original text storehouse determines at least one text data;Utilize each text of the determination Data establish the corresponding relation of each sub- Text Flag and Ziwen sheet.Wherein, each text data of the determination can be used as each Individual sub- text data.The Ziwen sheet includes sub- Text Flag and corresponding Ziwen notebook data.
For example, original text storehouse 1 is:
0001,"CRUISE CONTROL lever in position'Set'or'Accelerate in increments of ten'";
0002,"CRUISE CONTROL lever in position'Set'or'Decelerate in increments of ten'";
0003,"CRUISE CONTROL lever in position'Set'or'Accelerate'"。
Wherein, in original text storehouse 1, " 0001 " can be the mark of 0001 this text, " CRUISE CONTROL Lever in position'Set'or'Accelerate in increments of ten " can be 0001 this text Text data.If it is determined that each text data for " CRUISE CONTROL lever in position'Set' ", " Accelerate ", " Decelerate ", " in increments of ten ", then it can utilize each textual data of the determination According to the corresponding relation for establishing each sub- Text Flag and Ziwen sheet.It the following is the Ziwen generated according to each text data of determination This:
0005,"CRUISE CONTROL lever in position'Set'";
0006,"Accelerate";
0007,"Decelerate";
0008,"in increments of ten"。
Such as, however, it is determined that text data be " CRUISE CONTROL lever in position'Set' ", then Ziwen This mark 0005 corresponds to Ziwen sheet:0005,"CRUISE CONTROL lever in position'Set'".If it is determined that Text data is " Accelerate ", then sub- Text Flag 0006 corresponds to Ziwen sheet:0006,"Accelerate".
Alternatively, the Ziwen notebook data can be that the data length determined is more than the text data of preset length threshold, As data length is more than the text data of this identification length of Ziwen.
Alternatively, the Ziwen notebook data can also be the preset text of each text of the user in the original text storehouse Data, such as preset common text data.
Alternatively, the Ziwen notebook data can also be that repetitive rate exceedes the text data of preset repetition rate threshold, such as weight Multiple text data of the rate more than 100 times.
Alternatively, however, it is determined that target text storehouse include determine target text data corresponding to Ziwen sheet, then using pair Sub- Text Flag replaces the target text data in the text corresponding to the Ziwen sheet in should being related to, so as to reduce text redundancy Purpose.Illustrated below with the target text storehouse original text storehouse 1, then the original text storehouse 1 after replacing can be:
0001, " %0005or'%0006%0008' ";
0002, " %0005or'%0007%0008' ";
0003, " %0005or'%0006' ";
0004, " %0005or'%0007' ";
0005,"CRUISE CONTROL lever in position'Set'";
0006,"Accelerate";
0007,"Decelerate";
0008,"in increments of ten"。
Wherein, the target text storehouse can be original text or other text libraries.
Exemplified by the text corresponding to 0001 in original text storehouse 1, the text data in the text is " CRUISE CONTROL Lever in position'Set'or'Accelerate in increments of ten' ", electronic equipment can determine this Text include determine target text data for " CRUISE CONTROL lever in position'Set' ", " Accelerate " and " Accelerate in increments of ten ".Wherein electronic equipment can determine " CRUISE Ziwen corresponding to CONTROL lever in position'Set' " is originally:0005,"CRUISE CONTROL lever in Position'Set' ", it is 0006 that can also determine Ziwen sheet corresponding to " Accelerate ", and " Accelerate " can also be really Ziwen sheet corresponding to fixed " Accelerate in increments of ten " is 0008, " Accelerate in increments of ten".The sub- Text Flag that the electronic equipment can obtain the correspondence Ziwen sheet is respectively 0005,0006, 0008, then correspond to 0001 text after replacing and be changed into:0001, " %0005or'%0006%0008' ".Wherein, " %0005 " Represent to call Ziwen to be originally identified as Ziwen notebook data corresponding to 0005." % " accords with to call, and possesses uniqueness, can be with self-defined.
S202, according to each sub- Text Flag in text, it is determined that corresponding each respectively with each sub- Text Flag Ziwen sheet.
It should be noted that when software obtains the text, then the text can be parsed according to the Text Flag of the text. Alternatively, the text is parsed according to the Text Flag of the text to comprise at least:The text is determined according to the Text Flag of the text Text data, and each sub- Text Flag that can be included according to this article notebook data, it is determined that with each sub- Text Flag Each Ziwen sheet corresponding to respectively.Still optionally further, the text data in the text can be determined in target text storehouse.
For example, if the text that software needs to obtain is the text corresponding to Text Flag 0001, electronic equipment can To determine in target database the text corresponding to 0001:0001, " %0005or'%0006%0008' " includes Ziwen is originally identified as 0005,0006,0008.Electronic equipment can determine that Ziwen corresponding to sub- Text Flag 0005 is originally: 0005, " CRUISE CONTROL lever in position'Set' ", Ziwen corresponding to sub- Text Flag 0006 is originally: 0006, " Accelerate ", Ziwen corresponding to sub- Text Flag 0008 is originally:0008,"in increments of ten".
S203, the order according to each sub- Text Flag in the text, utilize each Ziwen of determination This replaces each sub- Text Flag successively according to the order.
It should be noted that electronic equipment can utilize the Ziwen notebook data in each Ziwen sheet determined according to the order Each sub- Text Flag is replaced successively.
For example, however, it is determined that text corresponding to 0001:0001, in " %0005or'%0006%0008' ", each height The order of Text Flag is followed successively by 0005,0006,0008, then can utilize Ziwen notebook data corresponding to sub- Text Flag 0005:" CRUISE CONTROL lever in position'Set' " replace %0005.Correspondingly, sub- Text Flag is being recycled 0006th, after Ziwen notebook data corresponding to 0008 difference replaces %0006, %0008,0001 text will be reduced to: 0001,"CRUISE CONTROL lever in position'Set'or'Accelerate in increments of Ten' ", so that the software can obtain and show the text.
If the target Ziwen sheet in S204, modification each Ziwen sheet, change sub with target in the corresponding relation Ziwen notebook data in the target Ziwen sheet corresponding to Text Flag.
In the embodiment of the present invention, the target is that the Ziwen sheet modified is needed in each Ziwen sheet from text.The target Ziwen is originally identified as the mark of target Ziwen sheet, and such as 0007.
It should be noted that because software is when needing to obtain and showing the text, electronic equipment can be by performing step Rapid S202 and step S203 parses the reduction text.In step S204, the electronic equipment can pass through amendment step Ziwen notebook data in the corresponding relation referred in S201 in the target Ziwen sheet corresponding with the sub- Text Flag of target, with reality Now to the modification of the target Ziwen sheet.
For example, if target text storehouse is:
0001, " %0005or'%0006%0008' ";
0002, " %0005or'%0007%0008' ";
0003, " %0005or'%0006' ";
0004, " %0005or'%0007' ";
0005,"CRUISE CONTROL lever in position'Set'";
0006,"Accelerate";
0007,"Decelerate";
0008,"in increments of ten"。
For example, if electronic equipment desired modifications is that target Ziwen in 0004 this text is originally identified as corresponding to 0005 Ziwen sheet, then can be by changing Ziwen notebook data corresponding to sub- Text Flag 0005 " CRUISE CONTROL lever in Data in position'Set' ", such as part words, so as to realize the modification to 0004 this text.
It can be seen that in embodiment shown in Fig. 2, electronic equipment can be established and to store sub- Text Flag corresponding with Ziwen sheet Relation, so as to according to each sub- Text Flag in text, it is determined that with each sub- Text Flag corresponding each height respectively Text, originally to replace each sub- Text Flag using each Ziwen of determination.By the way that text text data is utilized Corresponding sub- Text Flag is replaced, it is possible to reduce text redundancy, electronic equipment can also utilize the Ziwen sheet in the text Mark improves the efficiency reduction of the parsing to text, improves the efficiency of the parsing to text.And antithetical phrase can also be passed through Ziwen is originally modified corresponding to Text Flag, to reach the purpose of unified modification, facilitates the modification to text.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of text processing apparatus provided in an embodiment of the present invention.The device The method described in Fig. 1-Fig. 2 embodiments can be realized.Wherein, the structure can apply to terminal/server etc. with text In the electronic equipment for managing function.Wherein, the device can include:
Determining module 301, for according to each sub- Text Flag in text, it is determined that distinguishing with each sub- Text Flag Corresponding each Ziwen sheet;
Replacement module 302, for utilizing each this replacement of the Ziwen each sub- Text Flag determined.
Alternatively, module 303 is established, for establishing the corresponding relation of sub- Text Flag and Ziwen sheet.
Alternatively, memory module 304, for storing the corresponding relation.
Alternatively, the replacement module 302, specifically for suitable in the text according to each sub- Text Flag Sequence, each sub- Text Flag is replaced successively according to the order using each Ziwen sheet of determination.
Alternatively, modified module 305, if for changing the target Ziwen sheet in each Ziwen sheet, it is described right to change The Ziwen notebook data in the target Ziwen sheet corresponding with the sub- Text Flag of target in should being related to.
Wherein, the text includes sentence, and the Ziwen sheet includes words.
It can be seen that in embodiment shown in Fig. 3, electronic equipment can according to each sub- Text Flag in text, it is determined that with this Each Ziwen sheet corresponding to each sub- Text Flag difference;Each this mark of Ziwen is originally replaced using each Ziwen of determination Know, so that while text redundancy is reduced, improve the efficiency of the parsing to text.
Referring to Fig. 4, Fig. 4 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.Wherein, the electronics Equipment can be the electronic equipment that terminal/server etc. has text-processing function.Specifically, the electronic equipment can include: At least one processor 401, such as central processing unit (Central Processing Unit, CPU), memory 404.It is optional Ground, the electronic equipment can also include at least one communication interface 402, at least one communication bus 403.Wherein, communication interface 402 can include camera, display screen (Display), keyboard (Keyboard), and alternatively, communication interface 402 can also include Wireline interface, the wave point of standard.Wherein, communication bus 403 is used to realize the connection communication between these components.Memory 404 can be random access memory (Random Access Memory, RAM) or nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.Memory 404, alternatively, it can also be at least one and be located at Storage device away from aforementioned processor 401.Wherein, one group of application program can be stored in memory 404, processor 401 can With device described in conjunction with Figure 3, the application program stored in memory 404 is called, for performing a kind of text-processing side Method, that is, it is used to perform following operation:
According to each sub- Text Flag in text, it is determined that distinguishing corresponding each Ziwen with each sub- Text Flag This;
Utilize each this replacement of Ziwen each sub- Text Flag of determination.
Alternatively, the processor 401 is additionally operable to call the application program stored in the memory 404 to perform following walk Suddenly:
Establish the corresponding relation of sub- Text Flag and Ziwen sheet;
Store the corresponding relation.
Alternatively, the processor 401 is specifically used for calling the application program execution stored in the memory 404 following Step:
According to order of each sub- Text Flag in the text, using determination each Ziwen sheet according to The order replaces each sub- Text Flag successively.
Alternatively, the processor 401 is additionally operable to call the application program stored in the memory 404 to perform following walk Suddenly:
If the target Ziwen sheet in modification each Ziwen sheet, change in the corresponding relation with this mark of target Ziwen Ziwen notebook data in the target Ziwen sheet corresponding to knowledge.
Alternatively, the text includes sentence, and the Ziwen sheet includes words.
The embodiments of the invention provide a kind of computer program product, wherein, the instruction in the computer program product During by computing device, the text handling method as shown in the application Fig. 1-Fig. 2 embodiments can be performed.
The embodiment of the present invention additionally provides a kind of storage medium, wherein, when the instruction in the storage medium is by electronic equipment Computing device when so that the electronic equipment is able to carry out the text-processing side as shown in the application Fig. 1-Fig. 2 embodiments Method.
It can be seen that in embodiment shown in Fig. 4, electronic equipment can according to each sub- Text Flag in text, it is determined that with this Each Ziwen sheet corresponding to each sub- Text Flag difference, and originally replace each this mark of Ziwen using each Ziwen of determination Know, so that while text redundancy is reduced, improve the efficiency of the parsing to text.
A kind of text handling method disclosed in the embodiment of the present invention and electronic equipment row are discussed in detail above, herein Apply specific case to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to help Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, There will be changes in specific embodiments and applications, in summary, this specification content should not be construed as to this The limitation of invention.
The term used in the embodiment of the present application is only merely for the purpose of description specific embodiment, and is not intended to be limiting The application." one kind ", " described " and "the" of singulative used in the embodiment of the present application and appended claims It is also intended to including most forms, unless context clearly shows that other implications.It is also understood that term used herein "and/or" refers to and any or all may be combined comprising the associated list items purpose of one or more.
It will be appreciated that though it may be described in the embodiment of the present application using term " first ", " second ", " the 3rd " etc. Various connectivity ports and identification information etc., but these connectivity ports and identification information etc. should not necessarily be limited by these terms.These terms Only it is used for connectivity port and identification information etc. being distinguished from each other out.For example, in the case where not departing from the embodiment of the present application scope, First connectivity port can also be referred to as second connection end mouth, and similarly, second connection end mouth can also be referred to as the first connection Port.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement Or event) when " or " in response to detecting (condition or event of statement) ".
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenient and succinct, can as needed will be upper only with the division progress of above-mentioned each functional module for example, in practical application State function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before may be referred to The corresponding process in embodiment of the method is stated, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematical, for example, the module or unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the application The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read Only Memory;Hereinafter referred to as:ROM), random access memory (Random Access Memory;Hereinafter referred to as: RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Described above, the only embodiment of the application, but the protection domain of the application is not limited thereto is any Those familiar with the art can readily occur in change or replacement in the technical scope that the application discloses, and should all contain Cover within the protection domain of the application.Therefore, the protection domain of the application should be based on the protection scope of the described claims.

Claims (10)

1. a kind of text handling method, it is characterised in that methods described includes:
According to each sub- Text Flag in text, it is determined that distinguishing corresponding each Ziwen sheet with each sub- Text Flag;
Utilize each this replacement of Ziwen each sub- Text Flag of determination.
2. according to the method for claim 1, it is characterised in that methods described also includes:
Establish the corresponding relation of sub- Text Flag and Ziwen sheet;
Store the corresponding relation.
3. according to the method for claim 1, it is characterised in that described using described in each this replacement of Ziwen determined Each sub- Text Flag, including:
According to order of each sub- Text Flag in the text, using each Ziwen sheet of determination according to described Order replaces each sub- Text Flag successively.
4. according to the method for claim 1, it is characterised in that described using described in each this replacement of Ziwen determined After each sub- Text Flag, methods described also includes:
If the target Ziwen sheet in modification each Ziwen sheet, change in the corresponding relation with the sub- Text Flag pair of target Ziwen notebook data in the target Ziwen sheet answered.
5. according to the method described in any one of Claims 1-4, it is characterised in that the text includes sentence, the Ziwen sheet Including words.
6. a kind of electronic equipment, it is characterised in that the electronic equipment comprises at least processor and memory, the processor with The memory connection;Wherein, the memory is used to store application program;The processor is used to call in the memory The application program of storage performs following steps:
According to each sub- Text Flag in text, it is determined that distinguishing corresponding each Ziwen sheet with each sub- Text Flag;
Utilize each this replacement of Ziwen each sub- Text Flag of determination.
7. electronic equipment according to claim 6, it is characterised in that the processor is additionally operable to call in the memory The application program of storage performs following steps:
Establish the corresponding relation of sub- Text Flag and Ziwen sheet;
Store the corresponding relation.
8. electronic equipment according to claim 6, it is characterised in that the processor is specifically used for calling the memory The application program of middle storage performs following steps:
According to order of each sub- Text Flag in the text, using each Ziwen sheet of determination according to described Order replaces each sub- Text Flag successively.
9. electronic equipment according to claim 6, it is characterised in that the processor is additionally operable to call in the memory The application program of storage performs following steps:
If the target Ziwen sheet in modification each Ziwen sheet, change in the corresponding relation with the sub- Text Flag pair of target Ziwen notebook data in the target Ziwen sheet answered.
10. according to the electronic equipment described in any one of claim 6 to 9, it is characterised in that the text includes sentence, described Ziwen sheet includes words.
CN201710606733.3A 2017-07-24 2017-07-24 A kind of text handling method and electronic equipment Pending CN107590109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710606733.3A CN107590109A (en) 2017-07-24 2017-07-24 A kind of text handling method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710606733.3A CN107590109A (en) 2017-07-24 2017-07-24 A kind of text handling method and electronic equipment

Publications (1)

Publication Number Publication Date
CN107590109A true CN107590109A (en) 2018-01-16

Family

ID=61041826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710606733.3A Pending CN107590109A (en) 2017-07-24 2017-07-24 A kind of text handling method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107590109A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794308A (en) * 2010-03-04 2010-08-04 哈尔滨工程大学 Method for extracting repeated strings facing meaningful string mining and device
CN102185689A (en) * 2011-03-25 2011-09-14 桂林电子科技大学 Low redundant encryption system with misguiding function
CN105893337A (en) * 2015-01-04 2016-08-24 伊姆西公司 Method and equipment for text compression and decompression
CN106649676A (en) * 2016-12-15 2017-05-10 北京锐安科技有限公司 Duplication eliminating method and device based on HDFS storage file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794308A (en) * 2010-03-04 2010-08-04 哈尔滨工程大学 Method for extracting repeated strings facing meaningful string mining and device
CN102185689A (en) * 2011-03-25 2011-09-14 桂林电子科技大学 Low redundant encryption system with misguiding function
CN105893337A (en) * 2015-01-04 2016-08-24 伊姆西公司 Method and equipment for text compression and decompression
CN106649676A (en) * 2016-12-15 2017-05-10 北京锐安科技有限公司 Duplication eliminating method and device based on HDFS storage file

Similar Documents

Publication Publication Date Title
CN105117376B (en) Multi-mode input method editor
US9824085B2 (en) Personal language model for input method editor
CN107220300B (en) Information mining method, electronic device and readable storage medium storing program for executing
CN109284145A (en) The generation of multilingual configuration file and methods of exhibiting and device, equipment and medium
US10878188B2 (en) Generating dependency parses of text segments using neural networks
CN105045645B (en) Webpage loading method, Apparatus and system
KR101554292B1 (en) Input Method Editor User Profiles
CN105589571A (en) Client input method, input method editor, and editor server
CN109753661B (en) Machine reading understanding method, device, equipment and storage medium
US11030393B2 (en) Estimation of document structure
CN105204617A (en) Method and system for input method editor integration
EP3748507B1 (en) Automated software testing
CN103593406A (en) Static resource identifier processing method and device
CN107168966A (en) A kind of search engine index construction method and device
US9418148B2 (en) System and method to label unlabeled data
CN107526730B (en) Translation data management method, storage medium and electronic device
US9317499B2 (en) Optimizing generation of a regular expression
CN107590109A (en) A kind of text handling method and electronic equipment
US9996648B2 (en) Netlist editing of graphical data
CN110852038B (en) Text display method and related equipment
US11605006B2 (en) Deep-learning model catalog creation
CN103472991A (en) Method, equipment and system for adding contacts
CN112765506A (en) Page text content display method, device, equipment and storage medium
CN105069064A (en) Vocabulary acquisition method and apparatus and vocabulary push method and apparatus
EP3229451A1 (en) Interactive voice response system crawler

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180116