CN109871131A - A kind of method and device that character string is split - Google Patents

A kind of method and device that character string is split Download PDF

Info

Publication number
CN109871131A
CN109871131A CN201711268448.1A CN201711268448A CN109871131A CN 109871131 A CN109871131 A CN 109871131A CN 201711268448 A CN201711268448 A CN 201711268448A CN 109871131 A CN109871131 A CN 109871131A
Authority
CN
China
Prior art keywords
string
split
syllable
preset
fractionation
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
CN201711268448.1A
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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201711268448.1A priority Critical patent/CN109871131A/en
Publication of CN109871131A publication Critical patent/CN109871131A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of method for splitting of character string, obtain syllable string by split to the character string of input;It monitors whether to trigger preset fractured operation;When monitoring to trigger preset fractured operation, the corresponding syllable string of preset fractured operation is obtained as fractionation set;The detachable string split in set split to obtain and splits candidate string, wherein detachable string is to split syllable string detachable in set.Pass through above-mentioned character string method for splitting, in the character string of user's input, without halt input, the key for providing and splitting function is provided, it only need to be after the completion of character string inputs, the character string of input can be split by triggering preset fractured operation, improve the fluency of user inputs character string, provide users with the convenient.

Description

A kind of method and device that character string is split
Technical field
The present invention relates to Internet technical field, the method and device split more particularly to a kind of character string.
Background technique
Input method, is a kind of coding method that can be realized user and input text on the terminal device, and input method is by user The character string inputted on the terminal device is converted into candidate word, and candidate word is shown the candidate regions in input method, for user's choosing With.
By taking Chinese character coding input method as an example, for user when inputting character string, Chinese character coding input method splits the character string of input, Candidate word is converted into according to the obtained syllable string after splitting.Such as: the character string of user's input is " woshixianren ", in Above-mentioned character string can be split into " wo ' shi ' xian ' ren " by literary input method, wherein and " wo ", " shi ", " xian ", and " ren " is all syllable string.However, split in resulting syllable string to character string, it is frequently present of the syllable that can also be split String, the syllable string can split at least two consonant section strings, if user wants the consonant section string after input is split, need During inputting the character string, the key for providing and splitting function is clicked, the consonant section string after splitting could be inputted.Such as: on In the character string " wo ' shi ' xian ' ren " for stating user's input, syllable string " xian " can also split into two sub- syllable strings " xi " and " an " needs after input " wo ' shi ' xi ", click mentions if user wants input " wo ' shi ' xi ' an ' ren " For the key of fractionation function, then " an ' ren " is inputted, can just obtain including consonant section string " xi " and the character string " wo ' of " an " shi’xi’an’ren”。
But the mode of above-mentioned fractionation character string, it needs during inputting character string, clicks and fractionation function is provided Key reduces the fluency of user inputs character string.
Summary of the invention
Present invention solves the technical problem that being to provide a kind of method and device that character string is split, so as to improve use The fluency of family input character string.
For this purpose, the technical solution that the present invention solves technical problem is:
In a first aspect, to solve the above-mentioned problems, the embodiment of the invention provides a kind of method that character string is split, the party Method includes:
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger preset fractured operation, the corresponding syllable string of preset fractured operation is obtained as fractionation collection It closes;
The detachable string split in set is carried out to split the candidate string of acquisition fractionation, detachable string is removable during fractionation is gathered The syllable string divided.
Optionally, preset fractured operation is the first fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the first fractured operation, syllable string all in character string is obtained as fractionation set.
Optionally, preset fractured operation is the second fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the second fractured operation, obtains partial section string in the middle part of character string and gather as fractionation.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, according to the second fractured operation, acquisition word Partial section string includes: as set is split in the middle part of symbol string
Starting syllable string is determined according to clicking operation;
Monitor the glide direction of instantaneous slide;
It obtains to originate syllable string as starting point, all syllable strings along glide direction are as fractionation set.
Optionally, the second fractured operation includes continuing slide, according to the second fractured operation, obtains part in character string Syllable string is gathered as fractionation
Monitor the sliding area for continuing slide;
The syllable string in sliding area is obtained as fractionation set.
Optionally, carrying out the candidate string of fractionation acquisition fractionation to the detachable string split in set includes:
It is split to each detachable string in set is split, obtains the corresponding consonant section string of each detachable string;
The detachable string is replaced using at least one corresponding consonant section string of detachable string, obtains and splits candidate string, each It is not exactly the same to split the consonant section string for including in candidate string.
Optionally, this method further include:
When monitoring to trigger preset reset operation, candidate string is split using the syllable string replacement of character string.
Optionally, this method further include:
When obtaining fractionation candidate's string, triggering carries out timing to no feedback time, and no feedback time is used to characterize not connecing Receive any operation duration;
When no feedback time is more than preset time threshold, candidate string is split using the syllable string replacement of character string.
Optionally, this method further include:
When monitoring the operation of preset upper screen, corresponding character string is operated to preset upper screen or is split on candidate string Screen.
Second aspect, to solve the above-mentioned problems, the embodiment of the invention provides the device that a kind of character string is split, the dresses It sets and includes:
First splits module, obtains syllable string for split to the character string of input;
Monitoring modular triggers preset fractured operation for monitoring whether;
Module is obtained, for when monitoring to trigger preset fractured operation, obtaining the corresponding sound of preset fractured operation Section string is as fractionation set;
Second splits module, splits candidate string for split to the detachable string split in set obtaining, detachable String is to split syllable string detachable in set.
Optionally, preset fractured operation is the first fractured operation, obtains module and includes:
First acquisition unit, for obtaining syllable string all in character string as fractionation collection according to the first fractured operation It closes.
Optionally, preset fractured operation is the second fractured operation, obtains module and includes:
Second acquisition unit is used as fractionation set for according to the second fractured operation, obtaining partial section string in the middle part of character string.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, and second acquisition unit includes:
Subelement is determined, for determining starting syllable string according to clicking operation;
First monitoring subelement, for monitoring the glide direction of instantaneous slide;
First obtains subelement, for obtaining to originate syllable string as starting point, along all syllable string conducts of glide direction Split set.
Optionally, the second fractured operation includes continuing slide, and second acquisition unit includes:
Second monitoring subelement, for monitoring the sliding area of lasting slide;
Second obtains subelement, for obtaining the syllable string in sliding area as fractionation set.
Optionally, the second fractionation module includes:
It is corresponding to obtain each detachable string for splitting to each detachable string in fractionation set for split cells Consonant section string;
Replacement unit is torn open for replacing the detachable string using at least one corresponding consonant section string of detachable string Point candidate string, each to split the consonant section string for including in candidate string not exactly the same.
Optionally, the device further include:
Module is reset, for replacing and splitting using the syllable string of character string when monitoring to trigger preset reset operation Candidate's string.
Optionally, the device further include:
Timing module, when splitting candidate string for obtaining, triggering carries out timing to no feedback time, and no feedback time is used for It has characterized and has been not received by any operation duration;
Replacement module, for being replaced using the syllable string of character string when no feedback time is more than preset time threshold Split candidate string.
Optionally, the device further include:
Upper panel module, for when monitoring the operation of preset upper screen, to preset upper screen operate corresponding character string or It splits and shields on candidate string.
The third aspect includes memory and one or one the embodiment of the invention also provides a kind of electronic equipment A above program, perhaps more than one program is stored in memory and is configured to by one or one for one of them The above processor executes one or more than one program includes the instruction for performing the following operation:
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger preset fractured operation, the corresponding syllable string of preset fractured operation is obtained as fractionation collection It closes;
The detachable string split in set is carried out to split the candidate string of acquisition fractionation, detachable string is removable during fractionation is gathered The syllable string divided.
Optionally, preset fractured operation is the first fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the first fractured operation, syllable string all in character string is obtained as fractionation set.
Optionally, preset fractured operation is the second fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the second fractured operation, obtains partial section string in the middle part of character string and gather as fractionation.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, according to the second fractured operation, acquisition word Partial section string includes: as set is split in the middle part of symbol string
Starting syllable string is determined according to clicking operation;
Monitor the glide direction of instantaneous slide;
It obtains to originate syllable string as starting point, all syllable strings along glide direction are as fractionation set.
Optionally, the second fractured operation includes continuing slide, according to the second fractured operation, obtains part in character string Syllable string is gathered as fractionation
Monitor the sliding area for continuing slide;
The syllable string in sliding area is obtained as fractionation set.
Optionally, carrying out the candidate string of fractionation acquisition fractionation to the detachable string split in set includes:
It is split to each detachable string in set is split, obtains the corresponding consonant section string of each detachable string;
The detachable string is replaced using at least one corresponding consonant section string of detachable string, obtains and splits candidate string, each It is not exactly the same to split the consonant section string for including in candidate string.
Optionally, the instruction further include:
When monitoring to trigger preset reset operation, candidate string is split using the syllable string replacement of character string.
Optionally, the instruction further include:
When obtaining fractionation candidate's string, triggering carries out timing to no feedback time, and no feedback time is used to characterize not connecing Receive any operation duration;
When no feedback time is more than preset time threshold, candidate string is split using the syllable string replacement of character string.
Optionally, the instruction further include:
When monitoring the operation of preset upper screen, corresponding character string is operated to preset upper screen or is split on candidate string Screen.
Fourth aspect, the embodiment of the invention also provides a kind of non-transitorycomputer readable storage medium, feature exists In when the instruction in storage medium is executed by the processor of electronic equipment, so that electronic equipment is able to carry out a kind of character string The method of fractionation, method include:
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger preset fractured operation, the corresponding syllable string of preset fractured operation is obtained as fractionation collection It closes;
The detachable string split in set is carried out to split the candidate string of acquisition fractionation, detachable string is removable during fractionation is gathered The syllable string divided.
Optionally, preset fractured operation is the first fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the first fractured operation, syllable string all in character string is obtained as fractionation set.
Optionally, preset fractured operation is the second fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the second fractured operation, obtains partial section string in the middle part of character string and gather as fractionation.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, according to the second fractured operation, acquisition word Partial section string includes: as set is split in the middle part of symbol string
Starting syllable string is determined according to clicking operation;
Monitor the glide direction of instantaneous slide;
It obtains to originate syllable string as starting point, all syllable strings along glide direction are as fractionation set.
Optionally, the second fractured operation includes continuing slide, according to the second fractured operation, obtains part in character string Syllable string is gathered as fractionation
Monitor the sliding area for continuing slide;
The syllable string in sliding area is obtained as fractionation set.
Optionally, carrying out the candidate string of fractionation acquisition fractionation to the detachable string split in set includes:
It is split to each detachable string in set is split, obtains the corresponding consonant section string of each detachable string;
The detachable string is replaced using at least one corresponding consonant section string of detachable string, obtains and splits candidate string, each It is not exactly the same to split the consonant section string for including in candidate string.
Optionally, this method further include:
When monitoring to trigger preset reset operation, candidate string is split using the syllable string replacement of character string.
Optionally, this method further include:
When obtaining fractionation candidate's string, triggering carries out timing to no feedback time, and no feedback time is used to characterize not connecing Receive any operation duration;
When no feedback time is more than preset time threshold, candidate string is split using the syllable string replacement of character string.
Optionally, this method further include:
When monitoring the operation of preset upper screen, corresponding character string is operated to preset upper screen or is split on candidate string Screen.
According to the above-mentioned technical solution, the method have the advantages that:
First the character string of input is split, obtains multiple syllable strings, in syllable string obtained, existing can be into one The syllable string split is walked, when monitoring preset fractured operation, the corresponding character string of the preset fractured operation is obtained, obtains Set is split, syllable string detachable in the fractionation set is split, obtains and splits candidate string.Using above-mentioned to character string Method for splitting, when need the character string of input is split when, do not need during inputting the character string, pause word The key for providing and splitting function is clicked in the input of symbol string, but after the character string is inputted, trigger the character to the input The preset fractured operation of string, can be realized and split to syllable string detachable in the character string, improves user and inputs word The fluency of string is accorded with, the user experience is improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of character string method for splitting provided in an embodiment of the present invention;
Fig. 2 is that the character string under the first fractured operation provided in an embodiment of the present invention splits schematic diagram;
Fig. 3 is to determine the method flow diagram for splitting set under a kind of second fractured operation provided in an embodiment of the present invention;
Fig. 4 is the character string fractionation schematic diagram that the second fractured operation is clicking operation and instantaneous slide;
Fig. 5 is that the second fractured operation is clicking operation and the character string of instantaneous slide splits schematic diagram downwards;
Fig. 6 is that the method flow diagram for splitting set is determined under another second fractured operation provided in an embodiment of the present invention;
Fig. 7 is that the second fractured operation is the character string fractionation schematic diagram for continuing slide;
Fig. 8 is the method flow diagram provided in an embodiment of the present invention for obtaining and splitting candidate string;
Fig. 9 is that character string provided in an embodiment of the present invention resets schematic diagram;
Figure 10 is to shield schematic diagram in character string provided in an embodiment of the present invention;
Figure 11 is a kind of signaling process figure of application scenarios example provided in an embodiment of the present invention;
Figure 12 is the signaling process figure of another application scenarios example provided in an embodiment of the present invention;
Figure 13 is the apparatus structure schematic diagram that a kind of character string provided in an embodiment of the present invention is split;
Figure 14 is the device hardware structural diagram that character string provided in an embodiment of the present invention is split.
Specific embodiment
In order to provide do not influence character string input fluency under the premise of, realize character string split technical solution, this hair Bright embodiment provides the method and device that a kind of character string is split, below in conjunction with Figure of description to the embodiment of the present invention into Row explanation
User uses input method, and in interface of input method inputing characters string, which can be to the character of input String is split, and is converted into candidate word according to the obtained syllable string after splitting.Such as: on interface of input method, input character String: woshixianren, input method system can split above-mentioned character string, obtain four syllable strings: wo, shi, xian, Ren, the character string after fractionation are as follows: wo ' shi ' xian ' ren.
But character string split in resulting syllable string, it is frequently present of the syllable string that can also be split, such as syllable It goes here and there " xian ", which can split into two sub- syllable strings " xi " and " an ", if user wants the consonant after input is split It when section string, needs after inputting consonant section string " xi ", clicks the key for providing and splitting function, such as " participle " key, then again It inputs consonant section string " an ", the character string " xi ' an " that user wants could be inputted.In order to realize that the fractionation to character string is defeated Enter, during inputting character string, needs to suspend the input of character string, the key for providing and splitting function is provided, use is reduced The fluency of family input character string.
To solve the above-mentioned problems, the embodiment of the invention provides the technical solutions that character string is split, in input character string Afterwards, by triggering preset fractured operation, the character string inputted can be split, it is ensured that the stream of user inputs character string Smooth degree.
It should be noted that there are multiple operations in following embodiment of the present invention, and such as: the first fractured operation, second Fractured operation, preset reset operation and preset upper screen operation etc., in describing the embodiments of the present, can illustratively provide The specific executive mode of each operation, still, the specific executive mode of each operation are not limited in retouching in following embodiments It states, as long as ensuring that the specific executive mode of each operation is different.
Deemed-to-satisfy4 example
Fig. 1 is the flow chart of character string method for splitting provided in an embodiment of the present invention, as shown in Figure 1, this method comprises:
Step 101, the character string of input split and obtain syllable string.
Character string refers in interface of input method, according to the sequence of the sequence of character input time-limited character obtained Column.When user inputs a character string, which can be split as multiple syllable strings, each syllable for the character string automatically It is separated between string with participle symbol (general participle symbol be " ' ").
For example, user inputs character string: xianrenshenghuoshijianyi, input method system can be to by the character strings It is split, obtains 7 corresponding syllable strings: xian, ren, sheng, huo, shi, jian, yi, shown in interface of input method The character string shown are as follows: xian ' ren ' sheng ' huo ' shi ' jian ' yi.
Step 102, it monitors whether to trigger preset fractured operation.
Step 103, it when monitoring to trigger preset fractured operation, obtains the corresponding syllable string of preset fractured operation and makees To split set.
Preset fractured operation, be it is pre-set in input method system, method system identification, and energy can be entered Enough trigger the operation split to the character string inputted.Input method system is by real-time monitoring to the behaviour of the symbol string inputted Make, especially monitors whether to trigger preset fractured operation to the character string that this has been inputted, when the word for monitoring to have inputted this Symbol string is when triggering preset fractured operation, obtains the corresponding syllable string of the preset fractured operation.
It is understood that when presetting the preset fractured operation in input method system, can be set it is multiple not Same preset fractured operation, for the same character string inputted, different preset fractured operations is corresponding Syllable string in the character string inputted is different.The corresponding syllable string composition of preset fractured operation will be obtained and split set, That is, including the syllable string selected from the character string inputted by the preset fractured operation in the fractionation set.
In an example, preset fractured operation is the first fractured operation, which corresponds to character string In all syllable string, then obtain the corresponding syllable string of preset fractured operation as splitting set, comprising:
According to the first fractured operation, syllable string all in character string is obtained as fractionation set.
When monitoring preset fractured operation is the first fractured operation, by all syllable strings in the character string inputted As the object selected when executing first fractured operation, syllable string all in the character string inputted is obtained, is formed Split set.Under a realization scene, which, which can be, is touched.
For example, the character string of user's input are as follows: xianrenshenghuoshijianyi has 7 corresponding syllables String: xian, ren, sheng, huo, shi, jian, yi.When user touches the character string of input, 7 syllable strings are all to split collection Element in conjunction, the fractionation set of composition specifically: { xian, ren, sheng, huo, shi, jian, yi }.
In another example, preset fractured operation is the second fractured operation, which corresponds to character string Middle part partial section then obtains the corresponding syllable string of preset fractured operation as fractionation set, comprising:
According to the second fractured operation, obtains partial section string in the middle part of character string and gather as fractionation.
When monitoring preset fractured operation is the second fractured operation, by the part syllable string in the character string inputted As the object selected when executing second fractured operation, the part syllable string in the character string inputted is obtained, is formed Split set.Under a realization scene, which includes clicking operation and instantaneous slide.
For example, the character string of user's input are as follows: xianrenshenghuoshijianyi has 7 corresponding syllables String.User clicks at syllable string " sheng ", then instantaneously slides to the left, by " sheng " and the syllable string on the left of it: xian, Ren, as the element split in set, the fractionation set of composition specifically: { xian, ren, sheng }.
The second fractured operation is arranged in input method system, can will be in the character string that inputted compared with the first fractured operation Part syllable string as the object selected, the number for the syllable string that can be split is reduced, so that more to the fractionation of syllable string Targetedly.
Step 104, the detachable string split in set split obtaining and split candidate string, detachable string is to split collection Detachable syllable string in conjunction.
In splitting set, under normal circumstances, not only there is the syllable string that can further split, but also existing cannot be into one Walk the syllable string split.The syllable string that can further split refers to that the syllable string can carry out fractured operation, and is splitting After can obtain at least two consonant section strings, such as: syllable string " xian ", for the syllable string that can further split, after fractionation To two sub- syllable strings " xi " and " an ";The syllable string that cannot further split refers to that the syllable string can not continue Fractured operation is executed, such as: syllable string " xi " is the syllable string that cannot further split, and input method system will not be split as " x " and " i ".
In embodiments of the present invention, the syllable string that can further split split in set is denoted as detachable string, it is right Detachable string is split, and the candidate string of the corresponding fractionation of user inputs character string is obtained.It is wherein obtained to split what candidate went here and there The sequence of character is identical as the sequence of the character of the character string inputted.
In character string method for splitting provided in an embodiment of the present invention, at step 104, to the detachable string split in set It is split, the implementation for obtaining the candidate string of fractionation is as shown in Figure 2, comprising:
Step 201, each detachable string in fractionation set is split, obtains the corresponding consonant section of each detachable string String.
Step 202, replace the detachable string using at least one corresponding consonant section string of detachable string, obtain split it is candidate It goes here and there, the consonant section string for including in each candidate string of fractionation is not exactly the same.
According to the number for the consonant section string that a detachable string can at most be split, detachable string can be divided into two classes: It can only be split as the detachable string of two sub- syllable strings, the detachable string of at least three consonant section strings can be split as.
When in the character string of the input detachable string comprising two sub- syllable strings can only be split as, then, in step 201 Fractionation movement refer to, each detachable string is once split, that is, completes the fractionation to all detachable strings.
When the detachable string in the character string of input comprising at least three consonant section strings can be split as, then, in step 201 Fractionation movement there are two types of implementation: in a kind of implementation, trigger primary preset fractured operation, can only will be each removable It is divided to string to be split as two sub- syllable strings;It, can be by triggering again if can also further be split in obtained consonant section string The consonant section string that can further split is continued to split by preset fractured operation, until detachable consonant section string is not present Until;For example, detachable string is " xiang " and " jian ", after triggering primary preset fractured operation, obtained consonant section string divides Not are as follows: " xi ", " ang " and " ji ", " an ", then primary preset fractured operation is triggered, obtained consonant section string is respectively as follows: " xi ", " an ", " g " and " ji ", " an ".Another implementation are as follows: it only needs to trigger primary preset fractured operation, it can will The detachable string of each of all detachable strings is split as multiple consonant section strings, and each consonant section string can not be split again; For example, detachable string is " xiang " and " jian ", after triggering primary preset fractured operation, obtained consonant section string is respectively as follows: " xi ", " an ", " g " and " ji ", " an ".
In a kind of situation, a detachable string is only existed when splitting in set, a detachable string can be split as two Consonant section string, then, the detachable string split in set is split, obtains the process for splitting candidate string are as follows: can by one It splits string and is split as two sub- syllable strings, replace the detachable string, obtained replacement with obtained two sub- syllable strings are split Character string afterwards is to split candidate string.The number for splitting the syllable string (including consonant section string) in candidate string, which is greater than, to be initially entered Character string in syllable string number.
For example, user clicks syllable string " jian ", then instantaneously slides to the right, obtained fractionation set are as follows: { jian, yi }, wherein detachable string is " jian ", splits to detachable string, obtains consonant section string " ji " and " an ", is used Consonant section string " ji " and " an " replace corresponding detachable string " jian ", obtained fractionation candidate string are as follows: xian ' ren ' sheng ' huo’shi’ji’an’yi。
In another case, one detachable string can be split as two when splitting in set there are multiple detachable strings Consonant section string, then, it is split respectively to the detachable string of each of set is split, obtains the process for splitting candidate string are as follows: Each detachable string is split as two sub- syllable strings respectively, two sub- syllables obtained by splitting using at least one detachable string String replaces the detachable string, obtains and splits candidate string.
If splitting in set has N (N >=1, N are integer) a detachable string, each detachable string can be split as 2 sons Syllable string then can at most obtain 2NThe candidate string of -1 fractionation.It is as follows that acquisition splits candidate string method: only in fractionation set When the detachable string of meaning one is replaced, obtainThe candidate string of a fractionation;Only to any 2 detachable strings in fractionation set When being replaced, obtainThe candidate string of a fractionation;And so on, when a removable to any N-1 in set is split When string being divided to be replaced, obtainThe candidate string of a fractionation;When to splitting in set, all N number of detachable string is all replaced When changing, obtainThe candidate string of a fractionation, then, it at most can get the number for splitting candidate string are as follows:It is a.Wherein, in the manner described above, the detachable string split in set is replaced, institute In the fractionation candidate string of acquisition, the included consonant section string of each candidate string of fractionation is not exactly the same.
It is to be appreciated that the detachable string of said one showing of can splitting that two sub- syllable strings are intended merely to understanding is facilitated to provide Example property explanation, in specific implementation, a detachable string can be split as at least two consonant section strings, rather than can only split To two sub- syllable strings.
For example, user touches the character string of input, obtained fractionation set are as follows: and xian, ren, sheng, huo, Shi, jian, yi }, detachable string has: xian, huo, jian, splits respectively to detachable string: xian → xi, an, huo → hu, o, jian → ji, an.
When only utilizing 1 corresponding consonant section string of detachable string to replace the detachable string, there are three types of selection, with " xi " and " an " replacement " xian ", obtained fractionation candidate string are as follows: xi ' an ' ren ' sheng ' huo ' shi ' jian ' yi;With " hu " and " o " It replaces " huo ", obtained fractionation candidate string are as follows: xian ' ren ' sheng ' hu ' o ' shi ' jian ' yi;It is replaced with " ji " and " an " " jian ", obtained fractionation candidate string are as follows: xian ' ren ' sheng ' huo ' shi ' ji ' an ' yi.
When replacing the detachable string using 2 corresponding consonant section strings of detachable string, there are three types of selections: first, with " xi " and " an " replacement " xian ", and with " hu " and " o " replacement " huo ", obtained fractionation candidate goes here and there are as follows: xi ' an ' ren ' sheng'hu'o'shi'jian'yi;Second, with " hu " and " o " replacement " huo ", and with " ji " and " an " replacement " jian ", obtain The fractionation candidate string arrived are as follows: xian ' ren ' sheng ' hu ' o ' shi ' ji ' an ' yi;Third, being replaced with " ji " and " an " " jian ", and with " xi " and " an " replacement " xian ", obtained fractionation candidate goes here and there are as follows: xi ' an ' ren ' sheng ' huo ' shi ' ji’an’yi。
When replacing the detachable string using 3 corresponding consonant section strings of detachable string, with " xi " and " an " replacement " xian ", and with " hu " and " o " replacement " huo ", with " ji " and " an " replacement " jian ", obtain the candidate string of a fractionation: xi ' an'ren'sheng'hu'o'shi'ji'an'yi.As it can be seen that can using the corresponding consonant section string replacement of at least one detachable string String is split, the candidate string of 7 fractionations is obtained, the consonant section string for including in each candidate string of fractionation is not exactly the same.
It should be noted that can show the fractionation candidate string obtained in step 202 on interface of input method, split as display The quantity of candidate's string and the mode of display, can be user and are voluntarily configured in input method system according to the hobby of oneself, For example, setting display splits the quantity of candidate string are as follows: only preceding 5 of display, the mode of display are as follows: according to the reasonability of semanteme from height To low display, then, in interface of input method, only show that semantic reasonability comes the preceding 5 candidate string of 5 fractionations;Setting is aobvious Show the quantity for splitting candidate string are as follows: all, the mode of display are as follows: it is shown from high to low according to the input habit of user, then, In interface of input method, it will show that from high to low all fractionation candidates go here and there according to the input habit of user.
In the example above, as shown in figure 3, schematic diagram of the candidate string on interface of input method is split for this example, In, the left side shows user in interface of input method inputing characters string " xianrenshenghuoshijianyi ", touches the word Symbol string, is transferred to the schematic diagram on the right, shows the candidate string of corresponding 7 fractionation of input character string, this 7 fractionation candidates go here and there according to Certain sequence is shown to user, selects the fractionation candidate needed to go here and there for user.
By replacing the operation of detachable string using at least one corresponding consonant section string of detachable string, can be mentioned for user For the candidate string of a variety of fractionations, fractionation requirement of the different user under different situations to input character string is met, user is improved Experience.
Preset tear open is determined using preset fractured operation using character string method for splitting provided in an embodiment of the present invention Divide the corresponding syllable string of operation to gather as fractionation, in turn, the detachable string in fractionation set is carried out to split acquisition fractionation time Choosing string.Based on this, during inputting character string, when needing to carry out character string to split input, it is no longer necessary to pause word The input of string is accorded with, only need to be after the input for completing character string, by triggering preset fractured operation, character string is torn in realization open Point, the fluency of user inputs character string is improved, the user experience is improved.
In character string method for splitting provided in an embodiment of the present invention, in step 103, when preset fractured operation is second When fractured operation, and the second fractured operation specifically can be there are two types of different implementations:
A kind of implementation, as shown in figure 4, when the second fractured operation includes clicking operation and instantaneous slide, root According to the second fractured operation, obtains partial section string in the middle part of character string and gathers as fractionation, comprising:
Step 401, starting syllable string is determined according to clicking operation;
Step 402, the glide direction of instantaneous slide is monitored;
Step 403, it obtains to originate syllable string as starting point, all syllable strings along glide direction are as fractionation set.
When user carries out slide in the region for inputting character string, input method system can monitor the slide Acceleration, when the acceleration of slide is greater than first threshold, which can be identified as instantaneous slide.Its In, first threshold is the value of preset, instantaneous slide for identification the smallest acceleration of input method system.For example, the One threshold value is 0.1m/s2, when the acceleration of slide is 0.5m/s2, which is entered method system and is identified as instantaneous cunning Dynamic operation.
After interface of input method inputing characters string, need on the right of some syllable string left side or some syllable string All syllable strings are split.User will first click the syllable string, which is determined as to originate syllable string;Again with the syllable Instantaneous slide, in turn, all syllable strings on the syllable string left side or the right are carried out to the left or to the right on the basis of string (including the syllable string) is all chosen to be the element for splitting set, and composition splits set.
For example, user inputs character string: xianrenshenghuoshijianyi, including 7 syllable strings: xian,ren,sheng,huo,shi,jian,yi.As shown in figure 5, the character string for this example splits schematic diagram.A kind of situation Under, user is partially illustrated on Fig. 5 and needs to carry out character string fractionation to all syllable strings on the left side syllable string " sheng ", specifically Operating process are as follows: the first step, click syllable string " sheng ", will " sheng " be determined as starting syllable string;Second step is held to the left The instantaneous slide of row;Third step, the element of the fractionation set got are as follows: syllable string " sheng " and " sheng " are with a left side Syllable string, it is specific to split set are as follows: { xian, ren, sheng }.
In another case, partially illustrated under Fig. 5 user need to all syllable strings on the right of syllable string " sheng " into Line character string is split, specific operating process are as follows: the first step is clicked syllable string " sheng ", and " sheng " is determined as to originate sound Section string;Second step executes to the right instantaneous slide;Third step, the element of the fractionation set got are as follows: syllable string " sheng " and " sheng " is specific to split set are as follows: { sheng, huo, shi, jian, yi } with right syllable string.
Using implementation shown in Fig. 4, the starting syllable string split can be flexibly determined, by the left side of the syllable string Or all syllable strings on the right determine as set element and split set, so as to the detachable string split in set The operation for split the candidate string of acquisition fractionation is more flexible.
Particularly, implementation shown in Fig. 4, it is a kind of special to include the case where: after user inputs character string, needing Some syllable string is split.User will first click the syllable string, which is determined as to originate syllable string;Still further below Instantaneous slide is carried out, for determining that the syllable string is the element for splitting set, composition splits set.That is, clicking Operation and downward instantaneous slide obtain unique syllable string composition and split set.
For example, user inputs character string: xianrenshenghuoshijianyi, as shown in fig. 6, for this example Character string splits schematic diagram, and user needs to split syllable string " huo ", specific operating process are as follows: the first step clicks sound " huo " is determined as originating syllable string by section string " huo ";Second step executes downwards instantaneous slide;Third step is got Split the element of set are as follows: syllable string " huo ", that is, specific to split set are as follows: { huo }.
By clicking operation and downward instantaneous slide, some syllable for wanting to be split can be flexibly determined String, as the only element for splitting set, so that splitting more targeted.
Another implementation, as shown in fig. 7, being torn open when the second fractured operation includes continuing slide according to second Divide operation, obtain partial section string in the middle part of character string and be used as fractionation set, comprising:
Step 701, the sliding area for continuing slide is monitored;
Step 702, the syllable string in sliding area is obtained as fractionation set.
When user carries out slide in the region for inputting character string, input method system can monitor the slide Duration, when the duration being greater than second threshold, which is identified as continuing slide.Wherein, second Threshold value is that input method system is preset, continues the value of the smallest duration of slide for identification.For example, second threshold It is 1.2s when the duration of slide for 1s, which is entered method system and is identified as continuing slide.
After user inputs character string, need to carry out a syllable string to all syllable strings between another syllable string Character string is split.User needs to carry out continuing slide, terminate to another syllable string, specifically from a syllable start of string Lasting slide direction can be to the left, be also possible to the right.The input method system meeting real-time monitoring lasting slide Sliding area, that is, monitor the starting syllable string for continuing slide effect to region between end syllable string, in sliding area All syllable strings be confirmed as split set element, composition split set.
For example, user inputs character string: xianrenshenghuoshijianyi, as shown in figure 8, for this example Character string splits schematic diagram, and user needs to carry out word to all syllable strings between syllable string " sheng " and syllable string " jian " Symbol string is split, and specific there are two types of modes of operation: under a kind of mode, as shown in part on Fig. 8, and since syllable string " sheng ", to Right execute continues slide, terminates until sliding into syllable string " jian ";Under another way, as shown in part under Fig. 8, from Syllable string " jian " starts, and executes continue slide to the left, terminates until sliding into syllable string " sheng ";Two ways obtains The element for the fractionation set got is consistent, are as follows: syllable string " sheng " arrives all syllable strings between " jian ", specifically tears open Diversity is combined into: { sheng, huo, shi, jian }.
Continue slide by above-mentioned, the syllable string of continuous quantity can be chosen from character string, is gathered as splitting Element, the operation readiness mode for selecting continuous syllable string is provided for user so that split it is more targeted.
When user is in input character string, and the character string of input is split using above-mentioned implementation of the invention, After obtaining splitting candidate string, if user wants to abandon the fractionation candidate string that the above fractured operation obtains, back to initially entering Character string, it is specific real the embodiment of the invention provides two kinds as shown in figure 9, the character string for this example resets schematic diagram Existing mode.
A kind of implementation are as follows: when monitoring to trigger preset reset operation, torn open using the syllable string replacement of character string Divide candidate string.
Preset reset operation refers to a pre-set reset operation in input method system, after to fractionation The candidate string of fractionation obtained is reset, the character string initially entered.Preset reset operation is different from above-mentioned first The executive mode of fractured operation, the second fractured operation, in specific implementation, the preset reset operation can be upward sliding behaviour Work or double click operation etc..
In specific implementation, when user's discovery since the maloperation of oneself results in the fractured operation of character string, alternatively, After character string is split, it is desirable to when returning to the character string initially entered, preset reset operation can be executed;When input method system is supervised It measures preset reset operation to be triggered, then splits candidate string using the syllable string replacement of character string, it is defeated to obtain initial user institute The character string entered.
For example, as shown in part on Fig. 9, it is assumed that preset reset operation is upward sliding operation, as 3 obtained Split candidate string are as follows: xi ' an ' ren ' sheng ' hu ' o ' shi ' jian ' yi, xian ' ren ' sheng ' hu ' o ' shi ' ji ' an ' When yi, xi ' an ' ren ' sheng ' huo ' shi ' ji ' an ' yi, user is splitting execution upward sliding operation in candidate string region, Then input method system can split candidate string using the syllable string replacement in the character string that user initially enters, that is, utilize 7 syllables String xian, ren, sheng, huo, shi, jian, yi replace the candidate string of above-mentioned 3 fractionation respectively, obtain it is identical replace as a result, Are as follows: xian ' ren ' sheng ' huo ' shi ' jian ' yi, that is, the character string that user initially enters is shown on interface of input method.
Another implementation are as follows: when obtaining fractionation candidate's string, triggering carries out timing, no feedback time to no feedback time Any operation duration is not received by for having characterized;
When no feedback time is more than preset time threshold, candidate string is split using the syllable string replacement of character string.
Without feedback time, the start time point of timing are as follows: according to the operation of step 104 or step 202, input method circle At the time of obtaining fractionation candidate's string in face;End time point without feedback time timing are as follows: input method system monitors user's Any one operation, e.g., clicking operation, slide etc.;Period from start time point to the end time point is Without feedback time, the duration of any operation is not recognized for characterizing input method system.
Preset time threshold is a pre-set threshold value in input method system, is obtaining for characterizing user Split the maximum allowable time for not making any operation after candidate goes here and there, that is, the maximum allowable time without feedback time.When no feedback When time is in preset time threshold, the fractionation candidate string of acquisition is shown on interface of input method;When no feedback time is more than pre- If time threshold when, input method system thinks that user will abandon the fractionation candidate string that fractured operation obtains, back to initially defeated The character string entered.
In specific implementation, when the character string shown on user wants to allow interface of input method is the character string initially entered When, user terminal can be stood, does not make any operation to it, until no feedback time is more than preset time threshold;Work as monitoring When being more than preset time threshold to no feedback time, input method system splits the syllable string replacement using character string candidate String, obtains the character string that initial user is inputted.
For example, as shown in part under Fig. 9, it is assumed that preset time threshold is 2s, when the candidate string of 1 obtained fractionation Are as follows: when xi ' an ' ren ' sheng ' hu ' o ' shi ' jian ' yi, input method system timing is triggered, user does not execute any operation, Until no feedback time (timing time) is greater than 2s, input method system thinks that user will abandon splitting, will utilize 7 syllable strings Xian, ren, sheng, huo, shi, jian, yi replace above-mentioned fractionation candidate string, obtained replacement result are as follows: xian ' respectively Ren ' sheng ' huo ' shi ' jian ' yi, that is, the character string that user initially enters is shown on interface of input method.
By above two implementation, is provided for user and abandon the fractionation candidate string that fractured operation obtains, returned to The possibility of the character string initially entered meets resetting requirement of the user to candidate string is split, does not need user and delete fractionation again Each character of candidate's string, re-enters, reduces the number of operations of user to the full extent, the user experience is improved.
When user is in input character string, and the character string of input is split using above-mentioned implementation of the invention, Obtain splitting candidate string perhaps after character string if user is not desired to character string or splits candidate string and select its corresponding Chinese It is exported, but character string or the candidate string of fractionation to be directly output to the key entry frame to be output of interface of input method, be based on This, the embodiment of the present invention also provides specifically now mode:
When monitoring the operation of preset upper screen, corresponding character string is operated to preset upper screen or is split on candidate string Screen.
Wherein, preset upper screen operation refers to the preset upper screen operation in input method system, is used for interface of input method In character string or split candidate string and carry out screen, that is, by character string or split candidate string and be directly output to interface of input method Key entry frame to be output does not select its corresponding candidate word to be exported.Preset upper screen operation is different from above-mentioned first and splits behaviour Work, the second fractured operation, the executive mode of preset reset operation, in specific implementation, the preset upper screen operation can be Touching operation again.
For example, as shown in Figure 10, it is assumed that preset upper screen operation, which is attached most importance to, touches operation, for splitting candidate string " xi ' An ' ren ' sheng ' huo ' shi ' ji ' an ' yi " is using touching operation again, alternatively, the character string initially entered for user " xian ' ren ' sheng ' huo ' shi ' jian ' yi " then carries out above-mentioned fractionation candidate string or character string using touching operation again Upper screen shows character string " xianrenshenghuoshijianyi " in the key entry frame to be output of interface of input method.
It is operated by above-mentioned upper screen, the possibility for directly keying in character string is provided for user, meets user in input method Input scene under key in character string requirement, do not need the switching that user carries out input state during input, maximum Reduce the number of operations of user in degree, the user experience is improved.
Application scenarios example
It is that character string method for splitting provided in an embodiment of the present invention is discussed in detail above, in order to make the solution of the present invention Can be more clear, complete, a concrete application scene example using above-mentioned character string method for splitting is described below.
It include interface of input method A and input method system B in the application scenarios, in order to clearly indicate interaction between the two Relationship independently shows the two, includes interface of input method A, terminal of the interface of input method A in user in input method system B still In equipment;And input method system B may be an application program on the terminal device of user, it is also possible to a realization input The server of method system function.
Specifically, input method system B, for operation of the real-time monitoring user on interface of input method A, and to receiving Operation is analyzed and is executed, and analysis and implementing result are fed back to interface of input method A, provided conveniently for user;And input method Interface A realizes the interaction between input method system B and user.
Figure 11 is a kind of signaling process figure of application scenarios example of character string method for splitting, as shown in figure 11, specific When realization, the character string method for splitting, comprising:
Step 1101, user is in interface of input method A inputing characters string " woshixianren ";
Step 1102, input method system B to the character string of input carry out split obtain syllable string " wo ", " shi ", "xian","ren";
Step 1103, syllable string is sent to interface of input method A by input method system B;
Step 1104, the syllable string received is separated display with participle symbol by interface of input method A, is particularly shown as " wo ' shi'xian'ren";
Step 1105, user executes on the syllable string of interface of input method A and touches operation;
Step 1106, input method system B monitors to touch operation on interface of input method A, using all syllable strings as tearing open Divide set, are as follows: { wo, shi, xian, ren };
Step 1107, input method system B carries out the detachable string " xian " split in set { wo, shi, xian, ren } It splits, obtains and split candidate string " wo ' shi ' xi ' an ' ren ";
Step 1108, input method system B will split candidate string " wo ' shi ' xi ' an ' ren " and be sent to interface of input method A;
Step 1109, the candidate string " wo ' shi ' xi ' an ' ren " of fractionation is shown on the interface of input method of interface of input method A;
Step 1110, user executes touching operation again on the interface of input method of interface of input method A;
Step 1111, input method system B monitors that the touching again on interface of input method A operates, and instruction is shielded in generation;
Step 1112, the instruction of upper screen is sent to interface of input method A by input method system B;
Step 1113, interface of input method A is instructed according to the upper screen received, will be split candidate string and is directly displayed input method The key entry frame to be output at interface, is shown as " woshixianren ".
The application scenarios example uses preset first fractured operation in the embodiment of the present invention, that is, touches operation, realizes Smooth character string is split;Also, it uses upper screen to operate, that is, touching operation again, it, can be complete without the switching of input state At the function of showing pinyin character string in key entry frame to be output.As it can be seen that the character string method for splitting, reduces the operation of user Number, the user experience is improved.
Figure 12 is that the signaling process figure of another application scenarios example of character string method for splitting is having as shown in figure 12 When body is realized, the character string method for splitting, comprising:
Step 1201, user is in interface of input method A inputing characters string " xianrenshenghuoshijianyi ";
Step 1202, input method system B to the character string of input carry out split obtain syllable string " xian ", " ren ", "sheng","huo","shi","jian","yi";
Step 1203, syllable string is sent to interface of input method A by input method system B;
Step 1204, the syllable string received is separated display with participle symbol by interface of input method A, be particularly shown for "xian'ren'sheng'huo'shi'jian'yi";
Step 1205, user executes on the syllable string of interface of input method A clicks syllable string " shi " and instantaneously slides to the right It is dynamic;
Step 1206, input method system B monitors to touch operation on interface of input method A, using all syllable strings as tearing open Divide set, are as follows: { shi, jian, yi };
Step 1207, input method system B tears the detachable string " jian " split in set { shi, jian, yi } open Point, it obtains and splits candidate string " xian ' ren ' sheng ' huo ' shi ' ji ' an ' yi ";
Step 1208, input method system B will split candidate string and be sent to interface of input method A;
Step 1209, the candidate string " xian ' ren ' sheng ' huo ' of fractionation is shown on the interface of input method of interface of input method A shi'ji'an'yi";
Step 1210, user executes upward sliding operation on the interface of input method of interface of input method A;
Step 1211, input method system B monitors that the upward sliding on interface of input method A operates, and generates reset indication;
Step 1212, reset indication is sent to interface of input method A by input method system B;
Step 1213, interface of input method A is according to the reset indication received, using syllable string " xian ", " ren ", " sheng ", " huo ", " shi ", " jian ", " yi " replacement split candidate string " xian ' ren ' sheng ' huo ' shi ' ji ' an ' Yi " is shown as the character string " xian ' ren ' sheng ' huo ' shi ' jian ' yi " initially entered.
The application scenarios example uses preset second fractured operation in the embodiment of the present invention, that is, clicking operation and wink When slide, it is, of course, also possible to can be realized more targeted character string using slide is continued and split;Also, Using reset operation, that is, upward sliding operation is deleted and re-entered, as long as once without user when splitting mistake The operation of upward sliding, can " key " resetting, return to the character string initially entered.As it can be seen that the character string method for splitting, increases The flexibility and specific aim of user's fractured operation, reduces the number of operations of user, the user experience is improved as far as possible.
Device example
It as shown in figure 13, is a kind of apparatus structure schematic diagram that character string is split provided in an embodiment of the present invention, the device Include:
First splits module 1310, obtains syllable string for split to the character string of input;
Monitoring modular 1320 triggers preset fractured operation for monitoring whether;
Module 1330 is obtained, it is corresponding for when monitoring to trigger preset fractured operation, obtaining preset fractured operation Syllable string as split set;
Second splits module 1340, splits candidate string for split obtaining to the detachable string split in set, can Splitting string is to split syllable string detachable in set.
Optionally, preset fractured operation is the first fractured operation, obtains module 1330 and includes:
First acquisition unit, for obtaining syllable string all in character string as fractionation collection according to the first fractured operation It closes.
Optionally, preset fractured operation is the second fractured operation, obtains module 1330 and includes:
Second acquisition unit is used as fractionation set for according to the second fractured operation, obtaining partial section string in the middle part of character string.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, and second acquisition unit includes:
Subelement is determined, for determining starting syllable string according to clicking operation;
First monitoring subelement, for monitoring the glide direction of instantaneous slide;
First obtains subelement, for obtaining to originate syllable string as starting point, along all syllable string conducts of glide direction Split set.
Optionally, the second fractured operation includes continuing slide, and second acquisition unit includes:
Second monitoring subelement, for monitoring the sliding area of lasting slide;
Second obtains subelement, for obtaining the syllable string in sliding area as fractionation set.
Optionally, the second fractionation module includes:
It is corresponding to obtain each detachable string for splitting to each detachable string in fractionation set for split cells Consonant section string;
Replacement unit is torn open for replacing the detachable string using at least one corresponding consonant section string of detachable string Point candidate string, each to split the consonant section string for including in candidate string not exactly the same.
Optionally, the device further include:
Module is reset, for replacing and splitting using the syllable string of character string when monitoring to trigger preset reset operation Candidate's string.
Optionally, the device further include:
Timing module, when splitting candidate string for obtaining, triggering carries out timing to no feedback time, and no feedback time is used for It has characterized and has been not received by any operation duration;
Replacement module, for being replaced using the syllable string of character string when no feedback time is more than preset time threshold Split candidate string.
Optionally, the device further include:
Upper panel module, for when monitoring the operation of preset upper screen, to preset upper screen operate corresponding character string or It splits and shields on candidate string.
Device shown in Figure 13 is and device corresponding to method shown in FIG. 1 specific implementation and side shown in FIG. 1 Method is similar, and with reference to the description in method shown in FIG. 1, which is not described herein again.
The device that the character string provided through the embodiment of the present invention is split, when needs split the character string of input When, it does not need during inputting the character string, suspends the input of character string, the key for providing and splitting function is provided, but After by character string input, the preset fractured operation to the character string of the input is triggered, can be realized to the character string In detachable syllable string split, improve the fluency of user inputs character string, the user experience is improved.
Referring to Fig.1 4, device 1400 may include following one or more components: processing component 1402, memory 1404, Power supply module 1406, multimedia component 1408, audio component 1410, the interface 1412 of input/output (I/O), sensor module 1414 and communication component 1416.
The integrated operation of the usual control device 1400 of processing component 1402, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1402 may include one or more processors 1420 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1402 may include one or more moulds Block, convenient for the interaction between processing component 1402 and other assemblies.For example, processing component 1402 may include multi-media module, To facilitate the interaction between multimedia component 1408 and processing component 1402.
Memory 1404 is configured as storing various types of data to support the operation in equipment 1400.These data Example includes the instruction of any application or method for operating on device 1400, contact data, telephone book data, Message, picture, video etc..Memory 1404 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1406 provides electric power for the various assemblies of device 1400.Power supply module 1406 may include power management System, one or more power supplys and other with for device 1400 generate, manage, and distribute the associated component of electric power.
Multimedia component 1408 includes the screen of one output interface of offer between described device 1400 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, and further acknowledge duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1408 includes a front camera and/or rear camera.When equipment 1400 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1410 is configured as output and/or input audio signal.For example, audio component 1410 includes a wheat Gram wind (MIC), when device 1400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1404 or via communication Component 1416 is sent.In some embodiments, audio component 1410 further includes a loudspeaker, is used for output audio signal.
I/O interface 1412 provides interface, above-mentioned peripheral interface module between processing component 1402 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1414 includes one or more sensors, and the state for providing various aspects for device 1400 is commented Estimate.Such as the state that opens/closes of equipment 1400, the relative positioning of component, such as institute can be confirmed in sensor module 1414 The display and keypad that component is device 1400 are stated, sensor module 1414 can also confirm that device 1400 or device 1,400 1 The position change of a component, the existence or non-existence that user contacts with device 1400,1400 orientation of device or acceleration/deceleration and dress Set 1400 temperature change.Sensor module 1414 may include proximity sensor, be configured in not any physics Presence of nearby objects are confirmed when contact.Sensor module 1414 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1416 is configured to facilitate the communication of wired or wireless way between device 1400 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1400,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1414 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1414 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1400 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
Specifically, the embodiment of the invention provides a kind of electronic equipment, which can be specially device 1400, include Perhaps more than one program one of them or more than one program is stored in memory by memory 1404 and one In 1404, and be configured to by one or more than one processor 1420 execute the one or more programs include Instruction for performing the following operation:
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger preset fractured operation, the corresponding syllable string of preset fractured operation is obtained as fractionation collection It closes;
The detachable string split in set is carried out to split the candidate string of acquisition fractionation, detachable string is removable during fractionation is gathered The syllable string divided.
Optionally, preset fractured operation is the first fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the first fractured operation, syllable string all in character string is obtained as fractionation set.
Optionally, preset fractured operation is the second fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the second fractured operation, obtains partial section string in the middle part of character string and gather as fractionation.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, according to the second fractured operation, acquisition word Partial section string includes: as set is split in the middle part of symbol string
Starting syllable string is determined according to clicking operation;
Monitor the glide direction of instantaneous slide;
It obtains to originate syllable string as starting point, all syllable strings along glide direction are as fractionation set.
Optionally, the second fractured operation includes continuing slide, according to the second fractured operation, obtains part in character string Syllable string is gathered as fractionation
Monitor the sliding area for continuing slide;
The syllable string in sliding area is obtained as fractionation set.
Optionally, carrying out the candidate string of fractionation acquisition fractionation to the detachable string split in set includes:
It is split to each detachable string in set is split, obtains the corresponding consonant section string of each detachable string;
The detachable string is replaced using at least one corresponding consonant section string of detachable string, obtains and splits candidate string, each It is not exactly the same to split the consonant section string for including in candidate string.
Optionally, the instruction further include:
When monitoring to trigger preset reset operation, candidate string is split using the syllable string replacement of character string.
Optionally, the instruction further include:
When obtaining fractionation candidate's string, triggering carries out timing to no feedback time, and no feedback time is used to characterize not connecing Receive any operation duration;
When no feedback time is more than preset time threshold, candidate string is split using the syllable string replacement of character string.
Optionally, the instruction further include:
When monitoring the operation of preset upper screen, corresponding character string is operated to preset upper screen or is split on candidate string Screen.
The embodiment of the invention also provides a kind of non-transitorycomputer readable storage medium including instruction, for example including The memory 1404 of instruction, above-metioned instruction can be executed by the processor 1420 of device 1400 to complete the above method.For example, described Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light Data storage device etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of electronic equipment When device executes, so that electronic equipment is able to carry out a kind of method that character string is split, which comprises
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger preset fractured operation, the corresponding syllable string of preset fractured operation is obtained as fractionation collection It closes;
The detachable string split in set is carried out to split the candidate string of acquisition fractionation, detachable string is removable during fractionation is gathered The syllable string divided.
Optionally, preset fractured operation is the first fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the first fractured operation, syllable string all in character string is obtained as fractionation set.
Optionally, preset fractured operation is the second fractured operation, obtains the corresponding syllable string of preset fractured operation and makees Include: to split set
According to the second fractured operation, obtains partial section string in the middle part of character string and gather as fractionation.
Optionally, the second fractured operation includes clicking operation and instantaneous slide, according to the second fractured operation, acquisition word Partial section string includes: as set is split in the middle part of symbol string
Starting syllable string is determined according to clicking operation;
Monitor the glide direction of instantaneous slide;
It obtains to originate syllable string as starting point, all syllable strings along glide direction are as fractionation set.
Optionally, the second fractured operation includes continuing slide, according to the second fractured operation, obtains part in character string Syllable string is gathered as fractionation
Monitor the sliding area for continuing slide;
The syllable string in sliding area is obtained as fractionation set.
Optionally, carrying out the candidate string of fractionation acquisition fractionation to the detachable string split in set includes:
It is split to each detachable string in set is split, obtains the corresponding consonant section string of each detachable string;
The detachable string is replaced using at least one corresponding consonant section string of detachable string, obtains and splits candidate string, each It is not exactly the same to split the consonant section string for including in candidate string.
Optionally, this method further include:
When monitoring to trigger preset reset operation, candidate string is split using the syllable string replacement of character string.
Optionally, this method further include:
When obtaining fractionation candidate's string, triggering carries out timing to no feedback time, and no feedback time is used to characterize not connecing Receive any operation duration;
When no feedback time is more than preset time threshold, candidate string is split using the syllable string replacement of character string.
Optionally, this method further include:
When monitoring the operation of preset upper screen, corresponding character string is operated to preset upper screen or is split on candidate string Screen.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the principle of the present invention, it can also make several improvements and retouch, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of method that character string is split, which is characterized in that the described method includes:
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger the preset fractured operation, obtains the corresponding syllable string of the preset fractured operation and make To split set;
The detachable string split in set split to obtain and splits candidate string, the detachable string is the fractionation collection The detachable syllable string in conjunction.
2. the method according to claim 1, wherein the preset fractured operation is the first fractured operation, institute It states to obtain the corresponding syllable string of the preset fractured operation and be used as to split to gather and includes:
According to first fractured operation, obtains the syllable string all in the character string and gather as the fractionation.
3. the method according to claim 1, wherein the preset fractured operation is the second fractured operation, institute It states to obtain the corresponding syllable string of the preset fractured operation and be used as to split to gather and includes:
According to second fractured operation, obtains the syllable string of part in the character string and gather as the fractionation.
4. according to the method described in claim 3, it is characterized in that, second fractured operation includes clicking operation and instantaneously slides Dynamic operation, it is described according to second fractured operation, it obtains the syllable string of part in the character string and collects as the fractionation Conjunction includes:
Starting syllable string is determined according to the clicking operation;
Monitor the glide direction of the instantaneous slide;
It obtains using the starting syllable string as starting point, all syllable strings along the glide direction are gathered as the fractionation.
5. according to the method described in claim 3, it is characterized in that, second fractured operation includes continuing slide, institute It states according to second fractured operation, obtaining the syllable string of part in the character string as fractionation set includes:
Monitor the sliding area for continuing slide;
The syllable string obtained in the sliding area is gathered as the fractionation.
6. method described in -5 any one according to claim 1, which is characterized in that described to removable in the fractionation set Divide to go here and there split obtaining to split candidate and go here and there and includes:
Each detachable string in fractionation set is split, the corresponding consonant section of each detachable string is obtained String;
The detachable string is replaced using the corresponding consonant section string of detachable string described at least one, obtains and splits candidate string, each The consonant section string for including in the candidate string of fractionation is not exactly the same.
7. method described in -6 any one according to claim 1, which is characterized in that the method also includes:
When monitoring to trigger preset reset operation, it is candidate that the fractionation is replaced using the syllable string of the character string String.
8. method described in -6 any one according to claim 1, which is characterized in that the method also includes:
When obtaining the fractionation candidate string, triggering carries out timing to no feedback time, and the no feedback time does not have for having characterized Receive any operation duration;
When the no feedback time is more than preset time threshold, torn open described in the syllable string replacement using the character string Divide candidate string.
9. method according to any one of claims 1 to 8, which is characterized in that the method also includes:
When monitoring the operation of preset upper screen, the corresponding character string is operated to the preset upper screen or the fractionation is waited Shield on choosing string.
10. the device that a kind of character string is split, which is characterized in that described device includes:
First splits module, obtains syllable string for split to the character string of input;
Monitoring modular triggers preset fractured operation for monitoring whether;
Module is obtained, it is corresponding for when monitoring to trigger the preset fractured operation, obtaining the preset fractured operation The syllable string as split set;
Second splits module, splits candidate string for split to the detachable string split in set obtaining, it is described can Splitting string is the syllable string detachable in the fractionation set.
11. a kind of electronic equipment, which is characterized in that include memory and one or more than one program, wherein one A perhaps more than one program is stored in memory and is configured to execute described one by one or more than one processor A or more than one program includes the instruction for performing the following operation:
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger the preset fractured operation, obtains the corresponding syllable string of the preset fractured operation and make To split set;
The detachable string split in set split to obtain and splits candidate string, the detachable string is the fractionation collection The detachable syllable string in conjunction.
12. a kind of non-transitorycomputer readable storage medium, which is characterized in that when the instruction in the storage medium is by electronics When the processor of equipment executes, so that electronic equipment is able to carry out a kind of method that character string is split, which comprises
The character string of input split and obtains syllable string;
It monitors whether to trigger preset fractured operation;
When monitoring to trigger the preset fractured operation, obtains the corresponding syllable string of the preset fractured operation and make To split set;
The detachable string split in set split to obtain and splits candidate string, the detachable string is the fractionation collection The detachable syllable string in conjunction.
CN201711268448.1A 2017-12-05 2017-12-05 A kind of method and device that character string is split Pending CN109871131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711268448.1A CN109871131A (en) 2017-12-05 2017-12-05 A kind of method and device that character string is split

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711268448.1A CN109871131A (en) 2017-12-05 2017-12-05 A kind of method and device that character string is split

Publications (1)

Publication Number Publication Date
CN109871131A true CN109871131A (en) 2019-06-11

Family

ID=66916480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711268448.1A Pending CN109871131A (en) 2017-12-05 2017-12-05 A kind of method and device that character string is split

Country Status (1)

Country Link
CN (1) CN109871131A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252484A (en) * 2013-06-28 2014-12-31 重庆新媒农信科技有限公司 Pinyin error correction method and system
CN105843414A (en) * 2015-01-13 2016-08-10 北京搜狗科技发展有限公司 Input correction method for input method and input method device
CN106774975A (en) * 2016-11-30 2017-05-31 百度在线网络技术(北京)有限公司 Input method and device
CN107340881A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of input method and electronic equipment
CN107422921A (en) * 2017-08-31 2017-12-01 北京搜狗科技发展有限公司 A kind of input method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252484A (en) * 2013-06-28 2014-12-31 重庆新媒农信科技有限公司 Pinyin error correction method and system
CN105843414A (en) * 2015-01-13 2016-08-10 北京搜狗科技发展有限公司 Input correction method for input method and input method device
CN107340881A (en) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 A kind of input method and electronic equipment
CN106774975A (en) * 2016-11-30 2017-05-31 百度在线网络技术(北京)有限公司 Input method and device
CN107422921A (en) * 2017-08-31 2017-12-01 北京搜狗科技发展有限公司 A kind of input method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR101819985B1 (en) Method, device, program and computer-readable recording medium for controlling application
KR101722522B1 (en) Method and apparatus for switching display mode
WO2018027501A1 (en) Terminal, touch response method, and device
RU2651194C2 (en) Button interaction method and apparatus
WO2016045579A1 (en) Application interaction control method and apparatus, and terminal
RU2644130C2 (en) Text input method and device
WO2016029642A1 (en) Background application program control method, device and terminal device
WO2017084183A1 (en) Information displaying method and device
CN109062479A (en) Split screen application switching method, device, storage medium and electronic equipment
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
CN106202150B (en) Information display method and device
CN111695382B (en) Fingerprint acquisition area determining method and fingerprint acquisition area determining device
CN106484138B (en) A kind of input method and device
CN104461348B (en) Information choosing method and device
CN105511777B (en) Session display method and device on touch display screen
CN105872360A (en) Camera control method, camera control device and mobile equipment
CN105786944A (en) Method and device for automatically turning pages of browser
CN108766427B (en) Voice control method and device
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area
CN108073291A (en) A kind of input method and device, a kind of device for input
CN111679746A (en) Input method and device and electronic equipment
CN107179835A (en) A kind of input method and device, a kind of device for being used to input
CN110244860B (en) Input method and device and electronic equipment
CN110096163A (en) A kind of expression input method and device
CN109871131A (en) A kind of method and device that character string is split

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