CN106970899A - A kind of text handling method and device - Google Patents
A kind of text handling method and device Download PDFInfo
- Publication number
- CN106970899A CN106970899A CN201710321558.3A CN201710321558A CN106970899A CN 106970899 A CN106970899 A CN 106970899A CN 201710321558 A CN201710321558 A CN 201710321558A CN 106970899 A CN106970899 A CN 106970899A
- Authority
- CN
- China
- Prior art keywords
- participle
- text
- display
- word
- result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000011218 segmentation Effects 0.000 claims abstract description 48
- 230000004044 response Effects 0.000 claims abstract description 25
- 230000001960 triggered effect Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 abstract description 15
- 230000006870 function Effects 0.000 description 32
- 238000005516 engineering process Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012015 optical character recognition Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003362 replicative effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of text handling method, applied to mobile terminal, including:Show the first participle result of first object text;Whether the display in response to user updates operation, judge that first participle result updates in display and completely shown on the corresponding display more new direction of operation;If so, then showing the second word segmentation result of the second target text, the second target text is on the display more new direction of first object text.When user does not find satisfied keyword in the first participle result currently shown, then show the second word segmentation result of first object text the second target text adjacent on display more new direction to user, continue to choose keyword from the second word segmentation result for user, more word segmentation results can be shown to user without unnecessary step supplies it therefrom to choose the keyword needed for subsequent operation, operating process is simpler convenient, further increases the efficiency of operation.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of text handling method and device.
Background technology
With the popularization of mobile phone, people can receive substantial amounts of on the portable set such as mobile phone or tablet personal computer daily
Text message.For example, message, web page contents and text news that short message, instant messaging class software or other software are pushed etc..When
People want word content interested in text message to be replicated, searched for or translated etc. when operating, it is necessary to first in text
The word content for choosing this interested in this information, then follow-up operation is carried out to the word chosen, if for example, user wants to look into
When asking the rarely used word in text, generally require and replicated after first rarely used word is chosen in the text, then the rarely used word is pasted onto
Inquired about in dictionary or the inquiry column of website, meaning and pronunciation to determine the rarely used word etc., operating process is cumbersome, inconvenience
It is prompt.
The content of the invention
In view of this, the invention provides a kind of text handling method and device, it can solve the problem that in the prior art to text
Content interested carries out the problem of operating process during subsequent operation is cumbersome, operation is not convenient in information.
A kind of text handling method provided in an embodiment of the present invention, applied to mobile terminal, including:
Show the first participle result of first object text;
Display in response to user updates operation, judges that the first participle result updates operation in the display corresponding
Show whether completely shown on more new direction;
If so, then showing the second word segmentation result of the second target text, second target text is in the first object
On the display more new direction of text.
Optionally, it is described judge the first participle result the slide it is corresponding display more new direction on whether
Complete display, is specifically included:
When the display more new direction is top, judges that the first participle result currently shown top whether there is and do not show
The first participle result shown or do not shown completely;Accordingly, second target text is located at the upper of the first object text
Side, and second target text is adjacent with the first object text;
When the display more new direction is lower section, judges that the first participle result currently shown lower section whether there is and do not show
The first participle result shown or do not shown completely;Accordingly, second target text is located under the first object text
Side, and second target text is adjacent with the first object text.
Optionally, the first participle result of the display first object text, also includes before:
The participle operation triggered in response to user, obtains the positional information of the participle operation;
The positional information operated according to the participle, determines participle region, and the participle operation is located at the participle region
It is interior;
The word in the participle region is recognized, the first object text is obtained;
Participle is carried out to the word in the first object text, the first participle result is obtained.
Optionally, the first participle result of the display first object text, is specifically included:
Participle display interface is generated, the participle display interface includes at least one view control;
Show in each word of the first participle result, a view control and show in the view control one by one
A word in the first participle result.
Optionally, the first participle result of the display first object text, also includes afterwards:
Whether in response to the selection operation to the view control, it is preset kind to judge the word shown in the view control
Word, the word of the preset kind includes telephone number and/or E-mail address;
If so, then showing the operating function button corresponding to the word of the preset kind outside the view control;Wherein, phone
The corresponding operating function button of number is including dialling, sending short messages, contact method is stored, message registration is inquired about, replicates, shares and searched
Any one or more in rope, the corresponding operating function button of E-mail address includes hair mail, contact method and stored, again
It is any one or more in making, share and searching for;
Triggering in response to user to the operating function button, the operating work is performed to the word shown in the view control
Can the corresponding operation of button.
A kind of text processing apparatus provided in an embodiment of the present invention, applied to mobile terminal, including:Display module and first
Judge module;
The display module, the first participle result for showing first object text;
First judge module, updates for the display in response to user and operates, judge that the first participle result exists
Whether the display updates completely shows on the corresponding display more new direction of operation;
The display module, is additionally operable to when the judged result of first judge module is is, display the second target text
This second word segmentation result, second target text is on the display more new direction of the first object text.
Optionally, first judge module, is specifically included:First judging submodule and the second judging submodule;
First judging submodule, for when the display more new direction is top, judging first currently shown
With the presence or absence of the first participle result for not showing or not showing completely above word segmentation result;Accordingly, second target text
Positioned at the top of the first object text, and second target text is adjacent with the first object text;
Second judging submodule, for when the display more new direction is lower section, judging first currently shown
With the presence or absence of the first participle result for not showing or not showing completely below word segmentation result;Accordingly, second target text
Positioned at the lower section of the first object text, and second target text is adjacent with the first object text.
Optionally, in addition to:Acquisition module, determining module, identification module and word-dividing mode;
The acquisition module, the participle for being triggered in response to user is operated, and obtains the positional information of the participle operation;
The determining module, for the positional information operated according to the participle, determines participle region, the participle operation
In the participle region;
The identification module, for recognizing the word in the participle region, obtains the first object text;
The word-dividing mode, for carrying out participle to the word in the first object text, obtains the first participle
As a result.
Optionally, the display module, is specifically included:Interface generates submodule and display sub-module;
The interface generates submodule, and for generating participle display interface, the participle display interface includes at least one
View control;
The display sub-module, for shown one by one in the view control first participle result each
A word in the first participle result is shown in word, a view control.
Optionally, in addition to:Second judge module and performing module;
Second judge module, in response to the selection operation to the view control, judging in the view control
The word of display whether be preset kind word, the word of the preset kind includes telephone number and/or E-mail address;
The display module, is additionally operable to when the judged result of second judge module is is, outside the view control
Show the operating function button corresponding to the word of the preset kind;Wherein, the corresponding operating function button of telephone number includes dialling
Number, send short messages, contact method storage, message registration inquire about, replicate, share and search in any one or more, electronics postal
The corresponding operating function button in case address include during hair mail, contact method are stored, replicate, share and searched for any one or
It is multiple;
The performing module, for the triggering in response to user to the operating function button, to showing in the view control
The word shown performs the corresponding operation of the operating function button.
Compared with prior art, the present invention at least has advantages below:
In the embodiment of the present invention, mobile terminal first show the first participle result of first object text to user for user from
It is middle to select keyword interested to carry out the operation of next step, facilitate user directly to choose the keyword in text, without use
The multi-pass operation at family is that the operation to keyword can be achieved, and improves the efficiency of operation.User is by showing that updating operation browses
The first participle result of display, searches keyword interested from first participle result, when first participle result is being shown more
Newly operate and completely shown on corresponding display more new direction, then it represents that user does not look in the first participle result currently shown
To satisfied keyword.Now, the second of display first object text the second target text adjacent on display more new direction
Word segmentation result continues to choose keyword from the second word segmentation result to user for user, can will be more without unnecessary step
Word segmentation result be shown to user keyword needed for subsequent operation therefrom chosen for it, operating process is simple and convenient, further
Improve the efficiency of operation.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of text handling method provided in an embodiment of the present invention;
Fig. 2 a- Fig. 2 d are to show the schematic diagram of the second word segmentation result in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of generation first participle result in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another text handling method provided in an embodiment of the present invention;
Fig. 5 a- Fig. 5 b are the schematic diagram operated to the word of preset kind in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of text processing apparatus provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only this
Invent a part of embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art exist
The every other embodiment obtained under the premise of creative work is not made, the scope of protection of the invention is belonged to.
In general, when certain content is operated in text, it is necessary to user first from text select the content,
The content is copied to again and operated accordingly in corresponding operation software, such as search operation needs to copy to the content
Scanned in search engine, be not easy to user and efficiently the certain content in text is operated.
In view of this, existing a kind of text handling method, is shown to user, user can be straight after carrying out participle to text
Connect and therefrom select word segmentation result interested to carry out subsequent operation, improve the efficiency of operation.But, this text-processing side
Method, it is necessary first to which user is selected to carry out the text of participle, then the text selected to user carries out participle.User is carrying out text choosing
Regularly, the content in a paragraph or a dialog box can only once be selected, i.e., once can only be to a paragraph or one
Content in individual dialog box carries out participle, and the keyword that subsequent operation is related to therefrom is chosen for user.If the desired key of user
When word is located in two independent paragraphs or dialog box respectively, then there is still a need for the multiple operation of user's progress could be obtained completely
Keyword, for example, first choose and replicate the keyword of Part I in the word segmentation result of first paragraph or first dialog box,
After being affixed in the query frame of search engine, then participle, Cong Zhongxuan are carried out to the content of second segment or the first dialog box
In and after replicating the keyword of remainder, the keyword for being affixed to the Part I in the query frame of search engine,
Complete keyword is scanned for again, operating process is cumbersome, not convenient.
Therefore, the embodiments of the invention provide a kind of text handling method and device, first object text is being shown to user
When this first participle result supplies user selected keyword, if user is by showing the first participle result for updating operation to display
When being updated, display, which is updated on the corresponding display more new direction of operation, does not have the first participle knot for not showing or not showing completely
During fruit, illustrate that user does not select complete keyword in the first participle result shown.Now, the first mesh will be directly located at
The word segmentation result for marking the second target text on the display more new direction of text continues to be shown to user and therefrom selects key for it
Word, can provide the user with more word segmentation results without unnecessary operation and select complete keyword, operating process is simple
It is convenient, further increase the efficiency of operation.
It should be noted that text handling method provided in an embodiment of the present invention and device, applied to mobile terminal, the shifting
Dynamic terminal can be the equipment (i.e. touch control terminal) with touch sensing function, and such as touch-screen mobile phone, tablet personal computer have touch-control
The mobile terminal of screen, its extraneous touch-control sensed include and be not limited to single-point or multiple spot pressing, single-point or multiple spot slide,
Single-point or multiple point touching, single-point or multipoint pressure touch-control and touch area sensing etc..When extraneous touch-control meets corresponding sensing threshold
During value, touch control terminal can sense the extraneous touch-control.Certainly, the mobile terminal can also be that other are connected with operation device
The equipment that (such as mouse, keyboard) has display function, can be grasped by the operation device to the content that the equipment is shown
Make.
It should also be noted that, text handling method provided in an embodiment of the present invention and device are any in running of mobile terminal
In the case of application program can be achieved, the application program includes but is not limited to short message, web page browsing, real-time communication and other tool
There is program of text importing function etc..
Before the embodiment of the present invention is introduced, introduce first related to the specific embodiment of the invention multiple
Technical term.
Participle:Refer to a word sequence being cut into single word, word or name entity etc. one by one.Participle
Process is exactly, according to certain specification, continuous word sequence to be reassembled into single word, word or name entity sequence
Process.
Name entity:Refer to name, mechanism name, place name and other all entities with entitled mark.It is widely real
Body also includes numeral, date, currency, address etc..
Keyword:Word fragment in one section of complete sentence interested to user.
Based on above-mentioned thought, in order to facilitate the understanding of the purposes, features and advantages of the present invention, with reference to
Accompanying drawing is described in detail to the embodiment of the present invention.
Embodiment of the method:
Referring to Fig. 1, the figure is a kind of schematic flow sheet of text handling method provided in an embodiment of the present invention.
The text handling method that the present embodiment is provided, comprises the following steps S101-S103.
S101:Show the first participle result of first object text.
First participle result is obtained after carrying out participle operation to first object text, i.e. first participle result is the
Single word, word or the sequence for naming entity that one target text includes.When carrying out participle to first object text, it can adopt
Natural language algorithm is used, participle, specific point are carried out to first object text according to the specific semanteme of word in first object text
Word method and process are repeated no more here.
Explanation is needed exist for, when showing first participle result, it can be shown with new window, first point
There may be spacing between each word, word or name entity in word result, also can only be separated in the absence of spacing by line.When first
Word segmentation result is excessive, in the case where once showing whole first participle results, it is impossible to ensure that user can be told in display
Hold, then can once show whole first participle results but user is showed by the form of slip, can also show by several times
Part first participle result is to user.That is, user can be by showing that updating operation can see complete first participle result.
It is understood that by the selection to the word in first participle result, user can directly select first object
Keyword in text, improves the efficiency of operation.
As an example, step S101 specifically includes S1011-S1012.
S1011:Participle display interface is generated, participle display interface includes at least one view control.
S1012:Show in each word in first participle result, a view control and show in view control one by one
A word in first participle result.
What view control can disperse is shown in participle display interface.User can by the selection to view control,
Continuous or discrete one or more words or name entity, the selected ci poem that the view control is shown are selected from word segmentation result
In be keyword.
S102:Display in response to user updates operation, judges that first participle result updates operation in display corresponding aobvious
Show whether completely shown on more new direction.
In short, step S102 is to judge to expect to whether there is on the direction of viewing in user not show or complete display
First participle result to user.
It is understood that general on the touch control terminals such as mobile phone, tablet personal computer, user can be operated by upward sliding
(showing renewal operation) makes the word on screen scroll up, and occurs new show in the lower section (showing more new direction) of screen
Show content;User, which can be operated by slide downward and (show renewal operation), scrolls down through the word on screen, in screen
Top (showing more new direction) there is new display content.In this case, display update operation instruction direction with
Show that more new direction is relative.
And on non-touch-control computer, user can be by dragging scroll bar (showing renewal operation) so that on screen upwards
Word scroll down through, there is new display content in the top (showing more new direction) of screen;User can be by downward
Dragging scroll bar (show that renewal operates) (shows renewal side so that the word on screen scrolls up in the lower section of screen
To) there is new display content.In this case, display updates the direction of operation instruction and shows that more new direction is opposite.
As an example, when it is top to show more new direction, judge that first participle result updates operation pair in display
Whether completely shown on the display answered more new direction, that is, judge that the top of the first participle result currently shown whether there is and do not show
The first participle result shown or do not shown completely;When it is lower section to show more new direction, judge first participle result in display more
Whether completely display is newly operated on corresponding display more new direction, that is, judges whether is the lower section of first participle result that currently shows
In the presence of the first participle result for not showing or not showing completely.
S103:If so, then showing the word segmentation result of the second target text, the second target text is in the aobvious of first object text
Show on more new direction.
As an example, when it is top to show more new direction, the second target text is located above first object text,
And second target text it is adjacent with first object text;When it is lower section to show more new direction, accordingly, the second target text position
Below first object text, and the second target text is adjacent with first object text.
It is understood that first object text and the second target text are adjacent, i.e. first object text and the second target
Other content of text are not present between text.
In practical operation, user by sliding up and down operation when browsing first participle result, if downwards (or upward)
First participle result, which has shown that, during slip finishes, then user can continue drop-down (or pull-up), unclamps finger in user and cancels
During the slide, the second word segmentation result is shown.
For example, referring to Fig. 2 a- Fig. 2 d, the content of text currently shown is " telephone number " (i.e. first object text)
And its next section of content " 13800000000 " (i.e. the second target text).User first chooses first paragraph content " telephone number " to enter
Row participle, the word segmentation result (i.e. first participle result) of display is " telephone number ", i.e., shown in Fig. 2 a, certainly, the rule of participle
The word segmentation result that difference is obtained is also different, and the word segmentation result of " telephone number " can also be " phone " and " number ".Then, user
The word segmentation result of first paragraph can be checked on touch screen by upward sliding, at the end of the word segmentation result of first paragraph, can show
Text prompt, to remind user whether to want to continue the word segmentation result for checking next section, as shown in Figure 2 b.User continues to slide up
To check the word segmentation result of second segment " 13800000000 ", also, text prompt is shown below the display page, to point out
Whether user needs the word segmentation result of next section of display, as shown in Figure 2 c.When user looses one's grip cancellation slide, display second
The word segmentation result (i.e. the second word segmentation result) of section " 13800000000 ", as shown in Figure 2 d.
It should be noted that the acquisition of the acquisition of the second word segmentation result and display mode and first participle result and aobvious
Show that mode is similar, specifically may refer to described above, repeat no more here.
As an example, when being shown to the second word segmentation result of the second target text, current display can be made
The second word segmentation result is only shown in interface, the second target text rear face can also be directly shown in the top of first participle result
Divide the word segmentation result of content, or, the participle of the second target text previous section content is shown in the lower section of first participle result
As a result.Those skilled in the art can also specifically set according to actual conditions, the display mode of the present invention not to word segmentation result
Any restriction is done, also be will not enumerate here.
So, mobile terminal directly by the first participle result of first object text and with the second adjacent text second
Word segmentation result is shown to user simultaneously, and desired keyword is therefrom selected for user, and user can just select without unnecessary operation
Content in middle second segment or the second dialog box, simplifies operating process, and the selection operation of keyword is more convenient.
In the embodiment of the present invention, mobile terminal first show the first participle result of first object text to user for user from
It is middle to select keyword interested to carry out the operation of next step, facilitate user directly to choose the keyword in text, without use
The multi-pass operation at family is that the operation to keyword can be achieved, and improves the efficiency of operation.User is by showing that updating operation browses
The first participle result of display, searches keyword interested from first participle result, when first participle result is being shown more
Newly operate and completely shown on corresponding display more new direction, then it represents that user does not look in the first participle result currently shown
To satisfied keyword.Now, the second of display first object text the second target text adjacent on display more new direction
Word segmentation result continues to choose keyword from the second word segmentation result to user for user, can will be more without unnecessary step
Word segmentation result be shown to user keyword needed for subsequent operation therefrom chosen for it, operating process is simple and convenient, further
Improve the efficiency of operation.
It is exemplified below, generates the specific method of first participle result, referring to Fig. 3, step is included before step S101
Rapid S301-S304.
S301:The participle operation triggered in response to user, obtains the positional information of participle operation.
It is understood that mobile terminal there can be the equipment of touch sensing function for any one, including but do not limit
In mobile phone and tablet personal computer etc..Its extraneous touch-control sensed includes and is not limited to single-point or multiple spot pressing, single-point or multiple spot cunning
Dynamic operation, single-point or multiple point touching, single-point or multipoint pressure touch-control and touch area sensing etc..When external operation meets corresponding
When sensing threshold value, mobile terminal can sense corresponding external operation.
It is apparent that system may recognize that the position that operation applies, so that the position progress applied to operation is various corresponding
Operation.Then, when mobile terminal senses participle operation, the positional information of participle operation on mobile terminals can be got,
Such as coordinate.The positional information of participle operation is its coordinate on mobile terminals (typically by X-axis coordinate and Y-axis coordinate structure
Into).
S302:The positional information operated according to participle, determines participle region, and participle operation is located in participle region.
In general, the viewing area of various different contents is shown on the diverse location of mobile terminal, such as display word
Region and display image region.Divided between each viewing area by area coordinate.And can typically be preserved in system
The position coordinates of each viewing area on mobile terminal., can be with mobile terminal after the positional information of participle operation is got
The positional information of the position coordinates of each viewing area and extraneous touch-control is foundation, identifies which viewing area participle operation is located at
Domain.Then, you can the viewing area is defined as participle region.
By taking coordinate as an example, the zone position information of each viewing area is a coordinate range region on mobile terminal.Work as acquisition
After the coordinate operated to participle, it can determine whether out in the coordinate range that participle operation falls which viewing area on mobile terminals.
Viewing area belonging to participle operation is participle region.
S303:The word in participle region is recognized, first object text is obtained.
It is understood that when preserving the content information of a display module in system, being directly obtained participle region
Word content in representative text importing module is that can obtain first object text.So that short message is shown as an example, first object
Text is the set of whole words in short message frame;By taking reader as an example, first object text is the whole that now screen display goes out
The set of word.
However, due to there may be incompatible situation between different systems, causing directly obtain mobile terminal
The word of upper display.In some possible implementations of the present embodiment, in order to be carried out to the word shown on mobile terminal
Processing, can carry out screenshotss by the viewing area to mobile terminal, obtain the character image for showing the word.Reapply figure
As identification technology, such as optical character identification (Optical Character Recognition, OCR) technology recognizes word graph
Word as in.Afterwards, you can the word identified is handled.In this way, it is possible to realize can not be directly obtained it is tactile
In the case of the word shown on control terminal, the word shown on touch control terminal is operated.
S304:Participle is carried out to the word in first object text, first participle result is obtained.
When carrying out participle to first object text, natural language algorithm can be used, according to word in first object text
Specific semantic participle is carried out to first object text.
Another text handling method that the embodiment of the present invention is also provided, as shown in Figure 4.
Step S401-S402 in the present embodiment is identical with the step S1011-S1012 in above-described embodiment, herein not
Repeat again.
, can be in corresponding positions after user selects some or multiple view controls for the ease of the subsequent operation of user
Put and generate the operation button corresponding with various action types.Then, user is by clicking on the behaviour near the view control chosen
Make button, trigger corresponding operational order, different operation buttons represent different action types, the action type is included but not
It is limited to search for and shares.However, for some special keywords, it is poor that user can also exist to its action type
It is different.Therefore, step S403-S405 is also included in the efficiency of operation, the present embodiment in order to further improve.
S403:Whether in response to the selection operation to view control, it is default class to judge the word shown in the view control
The word of type, the word of preset kind includes telephone number and/or E-mail address.
It is understood that whether can be 11 continuous numbers and numeral by the word for judging to show in view control
Start and whether be 13,18,15,17 etc. to determine whether phone number, can also be by judging whether to include area code either
No to be whether 7 or 8 continuous digital judgements are base number, can also be matched with preset yellow pages is to judge
No is telephone number.And when determining whether E-mail address, whether can be included with the word shown in the view control
"@" is that foundation is judged.
It is understood that those skilled in the art can be according to actual conditions, how specific setting judges that user chooses
Word whether be telephone number or E-mail address, will not enumerate here.
S404:If so, then showing the corresponding operating function button of word of the preset kind outside the view control.
In general, when the keyword that user chooses from first participle result (or second word segmentation result) is telephone number
When, follow-up operation is there is a high likelihood that be to call, send short message or newly-built/renewal contact person etc..Similarly, when with
When the keyword that family is chosen from first participle result (or second word segmentation result) is E-mail address, follow-up operation has very
Big possibility is hair mail or newly-built/renewal contact person etc..Therefore, when the keyword that user chooses is telephone number or electricity
During sub-voice mailbox address, operating function button corresponding with subsequent operation directly can be shown to user and be clicked for it.User is led to
The triggering to operating function button is crossed, corresponding operation directly can be performed to the keyword chosen.
As an example, the corresponding operating function button of telephone number is including dialling, sending short messages, contact method storage
(i.e. newly-built/update contact person), message registration inquire about, replicate, share and search in it is any one or more.E-mail address
The corresponding operating function button in location include sending mail, contact method storage (i.e. newly-built/update contact person), replicate, share and
It is any one or more in search.
S405:Triggering in response to user to operating function button, the operation is performed to the word shown in the view control
The corresponding operation of function button.
When the operating function button that user triggers is search, then recall the word that search interface shows to the view control and enter
Row search;Share interface when sharing, then to recall when the operating function button that user triggers (such as wechat, QQ, microblogging are logical in real time
That interrogates software shares interface etc.) word that the view control is shown is shared;The behaviour triggered as user to E-mail address
Make function button to send during mail, then recall newly-built e-mail page and fill in the E-mail address to addressee.Ability
Field technique personnel can be according to actual conditions, and the corresponding operation of specific setting operation function button will not enumerate here.
For example, Fig. 5 a- Fig. 5 b are seen, if the keyword that user chooses in practical operation is telephone number, at this
The multiple operating function buttons of neighbouring display of telephone number, correspond to search, contact person, short message, phone, replicate and share respectively,
As shown in Figure 5 a.User can recall interface as shown in Figure 5 b by clicking contact person's button, to carry out follow-up newly-built contact
People, inquire about added to existing contact person, message registration, call, sending the operation such as short message and video calling.
In the present embodiment, after user chooses keyword from word segmentation result, generate and show that the keyword is corresponding
Operating function button is triggered for user.When user's trigger action function button, corresponding operation directly is performed to the keyword,
Carrying out cumbersome operation without user can complete to improve crucial word operation the efficiency of operation.
It should be strongly noted that Fig. 2 a- Fig. 2 d and Fig. 5 a- Fig. 5 b are merely for convenience to understand this in above-described embodiment
The citing for the text handling method that inventive embodiments are provided, is not limitation of the invention.Those skilled in the art can basis
Actual conditions specifically set the embodiment for the text handling method that the present invention is provided, and this is no longer going to repeat them.
Device embodiment:
Referring to Fig. 6, the figure is a kind of structural representation of text processing apparatus provided in an embodiment of the present invention.
Text processing apparatus provided in an embodiment of the present invention, including:The judge module 200 of display module 100 and first.
Display module 100, the first participle result for showing first object text.
First judge module 200, updates for the display in response to user and operates, and judges first participle result in display more
Newly operate and whether completely shown on corresponding display more new direction.
Display module 100, is additionally operable to, when the judged result of the first judge module 200 is is, show the second target text
The second word segmentation result, the second target text is on the display more new direction of first object text.
In some possible implementations of the present embodiment, the first judge module 200 is specifically included:First judges son
Module and the second judging submodule.
First judging submodule, for when it is top to show more new direction, judging the first participle result currently shown
Top whether there is the first participle result for not showing or not showing completely;Accordingly, the second target text is located at first object
The top of text, and the second target text is adjacent with first object text.
Second judging submodule, for when it is lower section to show more new direction, judging the first participle result currently shown
Lower section whether there is the first participle result for not showing or not showing completely;Accordingly, the second target text is located at first object
The lower section of text, and the second target text is adjacent with first object text.
In some possible implementations of the present embodiment, the device also includes:Acquisition module, determining module, identification
Module and word-dividing mode.
Acquisition module, the participle for being triggered in response to user is operated, and obtains the positional information of participle operation.
Determining module, for the positional information operated according to participle, determines participle region, participle operation is located at participle region
It is interior.
Identification module, for recognizing the word in participle region, obtains first object text.
Word-dividing mode, for carrying out participle to the word in first object text, obtains first participle result.
In some possible implementations of the present embodiment, display module 100 is specifically included:Interface generates submodule
And display sub-module.
Interface generates submodule, and for generating participle display interface, participle display interface includes at least one view control.
Display sub-module, each word for showing first participle result in view control one by one, a view control
A word in first participle result is shown in part.
In some possible implementations of the present embodiment, the device also includes:Second judge module and performing module.
Second judge module, in response to the selection operation to view control, judging the word shown in the view control
Whether be preset kind word, the word of preset kind includes telephone number and/or E-mail address.
Display module 100, is additionally operable to when the judged result of the second judge module is is, display should outside the view control
Operating function button corresponding to the word of preset kind.
Wherein, the corresponding operating function button of telephone number include dial, send short messages, contact method store, message registration
Any one or more in inquiring about, replicate, share and searching for, the corresponding operating function button of E-mail address includes hair postal
Part, contact method store, replicate, share and search in it is any one or more.
Performing module, for the triggering in response to user to operating function button, holds to the word shown in the view control
The corresponding operation of the row operating function button.
In the embodiment of the present invention, mobile terminal first show the first participle result of first object text to user for user from
It is middle to select keyword interested to carry out the operation of next step, facilitate user directly to choose the keyword in text, without use
The multi-pass operation at family is that the operation to keyword can be achieved, and improves the efficiency of operation.User is by showing that updating operation browses
The first participle result of display, searches keyword interested from first participle result, when first participle result is being shown more
Newly operate and completely shown on corresponding display more new direction, then it represents that user does not look in the first participle result currently shown
To satisfied keyword.Now, the second of display first object text the second target text adjacent on display more new direction
Word segmentation result continues to choose keyword from the second word segmentation result to user for user, can will be more without unnecessary step
Word segmentation result be shown to user keyword needed for subsequent operation therefrom chosen for it, operating process is simple and convenient, further
Improve the efficiency of operation.
It should be noted that the embodiment of each in this specification is described by the way of progressive, each embodiment emphasis is said
Bright be all between the difference with other embodiment, each embodiment identical similar portion mutually referring to.For reality
Apply for device disclosed in example, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is joined
See method part illustration.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one
Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation
There is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain
Lid nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The above described is only a preferred embodiment of the present invention, not making any formal limitation to the present invention.Though
So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention.It is any to be familiar with those skilled in the art
Member, without departing from the scope of the technical proposal of the invention, all using the methods and techniques content of the disclosure above to the present invention
Technical scheme makes many possible variations and modification, or is revised as the equivalent embodiment of equivalent variations.Therefore, it is every without departing from
The content of technical solution of the present invention, the technical spirit according to the present invention is to any simple modification made for any of the above embodiments, equivalent
Change and modify, still fall within technical solution of the present invention protection in the range of.
Claims (10)
1. a kind of text handling method, it is characterised in that methods described is applied to mobile terminal, including:
Show the first participle result of first object text;
Display in response to user updates operation, judges that the first participle result updates the corresponding display of operation in the display
Whether completely shown on more new direction;
If so, then showing the second word segmentation result of the second target text, second target text is in the first object text
The display more new direction on.
2. text handling method according to claim 1, it is characterised in that the judgement first participle result is in institute
State and whether completely shown on the corresponding display more new direction of slide, specifically included:
When the display more new direction is top, judge above the first participle result that currently shows with the presence or absence of not showing or
The first participle result not shown completely;Accordingly, second target text is located at the top of the first object text, and
Second target text is adjacent with the first object text;
When the display more new direction is lower section, judge below the first participle result that currently shows with the presence or absence of not showing or
The first participle result not shown completely;Accordingly, second target text is located at the lower section of the first object text, and
Second target text is adjacent with the first object text.
3. text handling method according to claim 1, it is characterised in that first point of the display first object text
Word result, also includes before:
The participle operation triggered in response to user, obtains the positional information of the participle operation;
The positional information operated according to the participle, determines participle region, and the participle operation is located in the participle region;
The word in the participle region is recognized, the first object text is obtained;
Participle is carried out to the word in the first object text, the first participle result is obtained.
4. text handling method according to claim 1, it is characterised in that first point of the display first object text
Word result, is specifically included:
Participle display interface is generated, the participle display interface includes at least one view control;
Shown one by one in the view control and show described in each word of the first participle result, a view control
A word in first participle result.
5. text handling method according to claim 4, it is characterised in that first point of the display first object text
Word result, also includes afterwards:
Whether in response to the selection operation to the view control, it is preset kind to judge the word shown in the view control
Word, the word of the preset kind includes telephone number and/or E-mail address;
If so, then showing the operating function button corresponding to the word of the preset kind outside the view control;Wherein, telephone number
During corresponding operating function button includes dial, send short messages, contact method is stored, message registration inquires about, replicates, shares and search for
It is any one or more, the corresponding operating function button of E-mail address include hair mail, contact method storage, replicate,
It is any one or more in sharing and searching for;
Triggering in response to user to the operating function button, performs the operating function to the word shown in the view control and presses
The corresponding operation of key.
6. a kind of text processing apparatus, it is characterised in that described device is applied to mobile terminal, including:Display module and first
Judge module;
The display module, the first participle result for showing first object text;
First judge module, updates for the display in response to user and operates, judge the first participle result described
Whether display updates completely shows on the corresponding display more new direction of operation;
The display module, is additionally operable to when the judged result of first judge module is is, the second target text of display
Second word segmentation result, second target text is on the display more new direction of the first object text.
7. text processing apparatus according to claim 6, it is characterised in that first judge module, is specifically included:The
One judging submodule and the second judging submodule;
First judging submodule, for when the display more new direction is top, judging the first participle currently shown
As a result top is with the presence or absence of the first participle result for not showing or not showing completely;Accordingly, second target text is located at
The top of the first object text, and second target text is adjacent with the first object text;
Second judging submodule, for when the display more new direction is lower section, judging the first participle currently shown
As a result lower section is with the presence or absence of the first participle result for not showing or not showing completely;Accordingly, second target text is located at
The lower section of the first object text, and second target text is adjacent with the first object text.
8. text processing apparatus according to claim 6, it is characterised in that also include:Acquisition module, determining module, knowledge
Other module and word-dividing mode;
The acquisition module, the participle for being triggered in response to user is operated, and obtains the positional information of the participle operation;
The determining module, for the positional information operated according to the participle, determines participle region, the participle operation is located at
In the participle region;
The identification module, for recognizing the word in the participle region, obtains the first object text;
The word-dividing mode, for carrying out participle to the word in the first object text, obtains the first participle result.
9. text processing apparatus according to claim 6, it is characterised in that the display module, is specifically included:Give birth at interface
Into submodule and display sub-module;
The interface generates submodule, and for generating participle display interface, the participle display interface includes at least one view
Control;
The display sub-module, each word for showing the first participle result in the view control one by one, one
A word in the first participle result is shown in individual view control.
10. text processing apparatus according to claim 9, it is characterised in that also include:Second judge module and execution mould
Block;
Second judge module, in response to the selection operation to the view control, judging to show in the view control
Word whether be preset kind word, the word of the preset kind includes telephone number and/or E-mail address;
The display module, is additionally operable to, when the judged result of second judge module is is, show outside the view control
Operating function button corresponding to the word of the preset kind;Wherein, the corresponding operating function button of telephone number includes dialing, hair
Short message, contact method storage, message registration inquire about, replicate, share and search in any one or more, E-mail address
Corresponding operating function button includes any one or more during hair mail, contact method are stored, replicate, share and searched for;
The performing module, for the triggering in response to user to the operating function button, to what is shown in the view control
Word performs the corresponding operation of the operating function button.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710321558.3A CN106970899B (en) | 2017-05-09 | 2017-05-09 | Text processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710321558.3A CN106970899B (en) | 2017-05-09 | 2017-05-09 | Text processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106970899A true CN106970899A (en) | 2017-07-21 |
CN106970899B CN106970899B (en) | 2020-03-27 |
Family
ID=59330749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710321558.3A Active CN106970899B (en) | 2017-05-09 | 2017-05-09 | Text processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106970899B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109426662A (en) * | 2017-08-25 | 2019-03-05 | 阿里巴巴集团控股有限公司 | Exchange method and equipment |
CN109582768A (en) * | 2018-11-23 | 2019-04-05 | 北京搜狗科技发展有限公司 | A kind of text entry method and device |
CN110890095A (en) * | 2019-12-26 | 2020-03-17 | 北京大米未来科技有限公司 | Voice detection method, recommendation method, device, storage medium and electronic equipment |
CN112004138A (en) * | 2020-09-01 | 2020-11-27 | 天脉聚源(杭州)传媒科技有限公司 | Intelligent video material searching and matching method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103425416A (en) * | 2012-05-20 | 2013-12-04 | 北京千橡网景科技发展有限公司 | Display control method and device used for portable device |
CN103559223A (en) * | 2013-10-21 | 2014-02-05 | 东莞市东信网络技术有限公司 | Table data refreshing system and method |
CN103699313A (en) * | 2012-09-27 | 2014-04-02 | 腾讯科技(深圳)有限公司 | Method and device for refreshing data by dragging |
US20140123163A1 (en) * | 2012-10-26 | 2014-05-01 | International Business Machines Corporation | Managing display of content in a content feed |
CN106325688A (en) * | 2016-08-17 | 2017-01-11 | 北京锤子数码科技有限公司 | Text processing method and device |
CN106484266A (en) * | 2016-10-18 | 2017-03-08 | 北京锤子数码科技有限公司 | A kind of text handling method and device |
-
2017
- 2017-05-09 CN CN201710321558.3A patent/CN106970899B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103425416A (en) * | 2012-05-20 | 2013-12-04 | 北京千橡网景科技发展有限公司 | Display control method and device used for portable device |
CN103699313A (en) * | 2012-09-27 | 2014-04-02 | 腾讯科技(深圳)有限公司 | Method and device for refreshing data by dragging |
US20140123163A1 (en) * | 2012-10-26 | 2014-05-01 | International Business Machines Corporation | Managing display of content in a content feed |
CN103559223A (en) * | 2013-10-21 | 2014-02-05 | 东莞市东信网络技术有限公司 | Table data refreshing system and method |
CN106325688A (en) * | 2016-08-17 | 2017-01-11 | 北京锤子数码科技有限公司 | Text processing method and device |
CN106484266A (en) * | 2016-10-18 | 2017-03-08 | 北京锤子数码科技有限公司 | A kind of text handling method and device |
Non-Patent Citations (2)
Title |
---|
JIANFENG GAO等: "Chinese Word Segmentation and Named Entity Recognition:A Pragmatic Approach", 《COMPUTATIONAL LINGUISTICS》 * |
徐宏博 等: "一种基于MapReduce的改进文本输入方式的并行分词方法研究", 《电脑知识与技术》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109426662A (en) * | 2017-08-25 | 2019-03-05 | 阿里巴巴集团控股有限公司 | Exchange method and equipment |
CN109582768A (en) * | 2018-11-23 | 2019-04-05 | 北京搜狗科技发展有限公司 | A kind of text entry method and device |
CN109582768B (en) * | 2018-11-23 | 2021-08-24 | 北京搜狗科技发展有限公司 | Text input method and device |
CN110890095A (en) * | 2019-12-26 | 2020-03-17 | 北京大米未来科技有限公司 | Voice detection method, recommendation method, device, storage medium and electronic equipment |
CN112004138A (en) * | 2020-09-01 | 2020-11-27 | 天脉聚源(杭州)传媒科技有限公司 | Intelligent video material searching and matching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106970899B (en) | 2020-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9172789B2 (en) | Contextual search by a mobile communications device | |
KR102314274B1 (en) | Method for processing contents and electronics device thereof | |
US7168046B2 (en) | Method and apparatus for assisting data input to a portable information terminal | |
US8442970B2 (en) | Creating and editing user search queries | |
US8831209B2 (en) | Conference call dialing | |
US9280278B2 (en) | Electronic apparatus and method to organize and manipulate information on a graphical user interface via multi-touch gestures | |
US20170076181A1 (en) | Converting text strings into number strings, such as via a touchscreen input | |
CN106484266A (en) | A kind of text handling method and device | |
CN103324674B (en) | Web page contents choosing method and device | |
CN102929924A (en) | Method and device for generating word selecting searching result based on browsing content | |
CN102929925A (en) | Search method and device based on browsing content | |
CN103827779A (en) | Systems and methods for using entered text to access and process contextual information | |
CN104662507B (en) | Search at user equipment | |
CN106970899A (en) | A kind of text handling method and device | |
CN105468256A (en) | Input method keyboard switching method and device | |
CN106354570A (en) | Method and device for copying and pasting account information | |
CN102394960A (en) | Dialing system and method and mobile communication terminal | |
CN101287026A (en) | System and method for executing quick dialing by hand-write recognition function | |
CN104133815A (en) | Input and search method and system | |
CN108762857A (en) | A kind of information processing method and device, terminal, readable storage medium storing program for executing | |
CN106886364A (en) | A kind of text handling method and terminal based on speech recognition | |
US20090327880A1 (en) | Text input | |
CN107038080A (en) | A kind of method and terminal for obtaining destination object | |
CN106686240B (en) | Method for obtaining event information on mobile terminal and mobile terminal | |
CN106970848A (en) | Input control method, device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190118 Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing. Applicant after: BEIJING ZIJIE TIAODONG NETWORK TECHNOLOGY CO., LTD. Address before: 100176 Beijing Daxing District Beijing economic and Technological Development Zone, Chuang Chuang fourteen Street 99, 33 D building 3 floors 309, 310 rooms. Applicant before: Beijing hammer numeral science and technology company limited |
|
GR01 | Patent grant | ||
GR01 | Patent grant |