CN109917988A - Choose content display method, device, terminal and computer readable storage medium - Google Patents

Choose content display method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109917988A
CN109917988A CN201711327646.0A CN201711327646A CN109917988A CN 109917988 A CN109917988 A CN 109917988A CN 201711327646 A CN201711327646 A CN 201711327646A CN 109917988 A CN109917988 A CN 109917988A
Authority
CN
China
Prior art keywords
content
word segmentation
segmentation result
specified operation
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711327646.0A
Other languages
Chinese (zh)
Other versions
CN109917988B (en
Inventor
曹颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711327646.0A priority Critical patent/CN109917988B/en
Publication of CN109917988A publication Critical patent/CN109917988A/en
Application granted granted Critical
Publication of CN109917988B publication Critical patent/CN109917988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Machine Translation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides one kind to choose content display method, device, terminal and computer readable storage medium, belongs to field of terminal technology.The described method includes: obtaining first specified operation corresponding text position in current page;Obtain the context of the text position;Obtain the object content in the context;In the current page, marking frame will be chosen to be covered on text filed where the object content and shown.The embodiment of the present invention is by obtaining the content near the first specified operation, content near the first specified operation is analyzed, it chooses content and it is shown by way of choosing marking frame to cover, improve the accuracy for choosing content, user can be effectively reduced to the number of operations for choosing content to be adjusted, operating process is simplified, operating efficiency is improved.

Description

Choose content display method, device, terminal and computer readable storage medium
Technical field
The present invention relates to field of terminal technology, in particular to one kind chooses content display method, device, terminal and computer Readable storage medium storing program for executing.
Background technique
With the development of terminal technology, the function of providing in terminal is more and more abundant, for example, user can be by terminal Browsing pages on carry out long press operation, to select the word content in the browsing pages, so as to in choosing Hold and the operation such as is replicated, searched for, shared.
Currently, terminal can determine the position of the long press operation after user carries out long press operation, then obtain long-pressing behaviour Make one or several texts at position as content is chosen, alternatively, the terminal can be determined according to the position of the long press operation A nearest word, then extracts a word and latter one word before this word, determines this with long press operation distance Whether a word and previous word or the latter word can form phrase, if it can, determining that this phrase is used as chooses content, if Cannot, just using this word as content is chosen, last terminal can choose content to be highlighted this.User passes through terminal When seeing that this chooses content, if it is exactly the content that the user wants to operate on it that this, which chooses content, which can be with Directly content is chosen to operate this, and if it is that the user wants the content operated on it that this, which chooses content not, The user also needs to choose content to be adjusted this by drag operation, is finally wanted to be replicated, searches for, shares The content of operation.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Terminal, which determines, chooses the process of content to take into consideration only several combinatorics on words near long press operation, and terminal provides The number of words for choosing content it is restricted, cause what terminal showed to choose content not accurate enough, so, user always need into Row drag operation is come to choosing content to be adjusted, operating process is complicated, and operating efficiency is very low.
Summary of the invention
The embodiment of the invention provides one kind to choose content display method, device, terminal and computer readable storage medium, Solve the problems, such as that operating efficiency is low in the prior art.The technical solution is as follows:
On the one hand, it provides one kind and chooses content display method, be applied to terminal, which comprises
Obtain first specified operation corresponding text position in current page;
Obtain the context of the text position;
Obtain the object content in the context;
In the current page, marking frame will be chosen to be covered on text filed where the object content and shown Show.
On the one hand, it provides one kind and chooses content display, be applied to terminal, described device includes:
Module is obtained, for obtaining first specified operation corresponding text position in current page;
The acquisition module, is also used to obtain the context of the text position;
The acquisition module, is also used to obtain the object content in the context;
Display module is used in the current page, by the text where choosing marking frame to be covered on the object content It is shown on one's respective area.
On the one hand, a kind of terminal is provided, the terminal includes: processor;For storing the memory of computer program; Wherein, the processor is chosen in content display method described in realization for executing the computer program stored on memory The method and step of any one.
On the one hand, a kind of computer readable storage medium is provided, meter is stored in the computer readable storage medium Calculation machine program chooses the method for any one of content display method to walk when the computer program is executed by processor described in realization Suddenly.
Technical solution provided in an embodiment of the present invention has the benefit that
The embodiment of the present invention is by obtaining the content near the first specified operation, to the content near the first specified operation It is analyzed, choose content and it is shown by way of choosing marking frame to cover, improved and choose content Accuracy can be effectively reduced user to the number of operations for choosing content to be adjusted, simplify operating process, improve Operating efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention;
Fig. 2 is that one kind provided in an embodiment of the present invention chooses content display method flow chart;
Fig. 3 is a kind of schematic diagram of terminal page provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of terminal page provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram for choosing content display mode provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram for choosing content display mode provided in an embodiment of the present invention;
Fig. 7 is that one kind provided in an embodiment of the present invention chooses content display method flow chart;
Fig. 8 is a kind of structural schematic diagram for choosing content display provided in an embodiment of the present invention;
Fig. 9 is a kind of structural block diagram of terminal 900 provided in an embodiment of the present invention;
Figure 10 is a kind of block diagram for choosing content display 1000 provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
In order to be better understood by technical solution of the present invention, first implementation environment of the invention is introduced.Fig. 1 is this hair The schematic diagram for a kind of implementation environment that bright embodiment provides, as shown in Figure 1, the implementation environment may include terminal 101 and service Device 102.
Data interaction can be carried out based on network connection between the terminal 101 and server 102, which can be with When receiving the request of the terminal 101 transmission, participle and the determining service for choosing content are provided for the terminal 101.
Multiple applications clients can be installed in the terminal 101, in each applications client, possible different user Operation corresponds to different operational orders, and when the terminal 101 detects user's operation, the available user's operation is corresponding Operational order, and the operational order is executed, to realize function corresponding to the operational order.The terminal 101 can pass through application Client accesses server 102, and network data, down loading network resource are obtained from server 102.The network data or network Resource can also be shown by the applications client in terminal 101.
Fig. 2 is that one kind provided in an embodiment of the present invention chooses content display method flow chart, and this method is applied in terminal, Referring to fig. 2, this choose content display method the following steps are included:
201, terminal obtains first specified operation corresponding text position in current page.
The first specified operation can be the clicking operation that duration is more than preset duration, that is to say long press operation.With Family can choose content in the page by the first specified operation.Specifically, when the terminal detects clicking operation, And the duration of the clicking operation, when being greater than preset duration, which can confirmly detect the first specified operation.
The terminal detects the first specified operation, can by obtaining the operating area of the first specified operation, namely It is the coordinate of the contact position of the user and terminal, to obtain first specified operation corresponding text position in current page It sets.
202, terminal obtains the context of text position.
Terminal is when detecting the first specified operation, it is thus necessary to determine that the content that the first specified operation is chosen is, because And the terminal can obtain the context of text position according to the text position of the specified operation of first got, from And the context can be analyzed, find the content that user wants to choose.The context is that this is first specified Content near operation, that is to say the first specified operation in current page before corresponding text position and later in Hold, for example, the content before text position can be the content of the first pre-set text relationship, which can Think belong to same paragraph and statement sequence be in current text location previous row content.Content after text position It can be the content of the second pre-set text relationship, which can be to belong at same paragraph and statement sequence The content of a line after current text location.
In carrying out the scenes such as the selection to text, duplication, what user thought selection may be certain a part in the paragraph Content, however, the first specified operation is limited to itself by its opereating specification, actual operating position can only correspond to very little One opereating specification, it is therefore contemplated that the content chosen of user's actual needs appear in the above of text position and/or Hereinafter.By the process of above-mentioned acquisition context, the available content chosen to user's most probable, to reach subsequent Improve the purpose of operating efficiency.
In specific implementation, which can have the possible implementation of following two, separately below to two kinds of possibility Implementation is illustrated:
The first implementation, terminal obtain the first specified operation content of the row, the first specified operation is expert at Lastrow content and/or the first specified operation next line of the row content.
In first implementation, the available first specified operation of terminal be expert at and upper and lower two row it is interior Hold, but the first specified operation is in current page when corresponding text position difference, which is expert at possibility There is no lastrow or next line, then the context that terminal is got is also different.Specifically, which is working as Corresponding text position can there are three types of situations in the preceding page, in these three situations, above and below terminal acquisition text position The specific steps of literary content are as follows:
The first situation, when corresponding text position is located at paragraph first trip in current page for the first specified operation, Obtain the content of first specified the operation content and the first specified operation next line of the row of the row.
Second situation, when corresponding text position is located at paragraph tail row in current page for the first specified operation, Obtain the content of first specified the operation content and the first specified operation lastrow of the row of the row.
The third situation is not located at paragraph head when first specified operation corresponding text position in current page It is of the row to obtain the first specified operation content of the row, the first specified operation nor when being located at paragraph tail row for row The content of the content of lastrow and the first specified operation next line of the row.
For example, Fig. 3 is a kind of schematic diagram of terminal page provided in an embodiment of the present invention, as shown in figure 3, when first finger Fixed operation corresponding text position in current page is located on " work " of paragraph first trip, then terminal obtains " every article all bodies Show the farsighted of author to know and scientific prediction.Pandect contains scientist and knows ".When the first specified operation is in current page Corresponding text position is located on " Shandong " of paragraph tail row, then terminal obtain " palm ', ' only fist ', ' an only foot ', write Shandong up to wealthy It is ample, hit the person ostentatious." when the first specified operation " second section of corresponding text position certainly in a row in current page On " point " in comment ", then terminal obtains " second node is commented ".When first specified operation corresponding text in current page Position is not located at paragraph first trip, nor then " every article all embodies for terminal acquisition when being located on " accumulateing " of paragraph tail row The farsighted of author is known and scientific prediction.Pandect contains scientist and highbrow intuitive knowledge, is impregnated with him to entire 20 ".
Second of implementation, obtain the first specified operation content of the row, the first specified operation it is of the row on Content in the content of a line and/or the content of the first specified operation next line of the row between punctuation mark.
In second of implementation, which can be comma, branch, question mark, exclamation mark or fullstop etc.. Since punctuation mark can indicate the property or effect of pause, the tone and word, when the first specified operation nearby has punctuate When symbol, the content between punctuation mark can indicate a Duan Yuyi, then terminal obtains the content between punctuation mark as time Content is chosen in choosing.
Specifically, when the first specified operation is expert at, this first specified operates lastrow and/or next line of the row Content when including punctuation mark, using the punctuation mark as the starting point of context and/or terminal, obtain include this first The content of specified operation corresponding text position in current page.
Due to including marking in the content near the text position difference and the first specified operation of the first specified operation The case where point symbol, is different, and the content that terminal is got is also different.Being expert at the first specified operation has lastrow and next line In case where, the above process may include following several possible scenes:
The first possible scene: when the first specified operation is expert at, this first it is specified operate lastrow of the row and/ Or in the content of next line, which has punctuation mark in current page before and after corresponding text position when, Terminal obtains the content between former and later two punctuation marks nearest apart from text position.
Second may scene: when the first specified operation is expert at, this first it is specified operate lastrow of the row and/ Or in the content of next line, which has punctuation mark before corresponding text position in current page, this first When specified operation does not have punctuation mark after corresponding text position in current page, terminal obtains the above-mentioned first specified operation It is expert at, in the first specified content for operating lastrow and next line of the row, that punctuate symbol before text position Content after number.
The third possible scene: when the first specified operation is expert at, this first it is specified operate lastrow of the row and/ Or in the content of next line, which has punctuation mark after corresponding text position in current page, this first When specified operation does not have punctuation mark before corresponding text position in current page, terminal obtains the above-mentioned first specified operation It is expert at, in the first specified content for operating lastrow and next line of the row, that punctuate symbol behind text position Content before number.
Certainly, when the first specified operation is expert at, this first specified operates lastrow and/or next line of the row When content does not include punctuation mark, terminal can obtain context by the first implementation.And it is above-mentioned only with this One specified operation corresponding text position in current page is to be illustrated for the third situation in the first implementation, If it is other two kinds of situations, whether terminal determines before and after text position has punctuation mark and obtains the mistake of context In journey and the third situation similarly, it does not repeat herein.
For example, as shown in figure 3, the first specified operation corresponding text position in current page is at " accumulateing ", at this " every article all embodies the farsighted of author and knows and scientific prediction three row contents near text position.Pandect contains science Family and highbrow intuitive knowledge, be impregnated with he in entire 20 ", have before the position this paper punctuation mark ".", behind text position Have punctuation mark ", ", thus, terminal obtain context when it is available " pandect contain scientist with it is highbrow Intuitive knowledge ".
203, terminal obtains the object content in the context.
In specific implementation, which can be with are as follows: probability is selected in the available context of the terminal Meet the object content of preset condition.Context is screened based on selected probability, is enabled to subsequent right When content carries out choosing display, the selected content of display most probable operates to avoid excessive adjustment.It, should in specific implementation Step 203 can be realized by following steps:
2031, terminal carries out word segmentation processing to the context, obtains multiple word segmentation results.
Participle refers to the processing by one section of content resolution for smaller text units such as multiple independent words, phrase, phrases Process.Can be configured with the configuration file for segmenting function in the terminal, which can be by participle function to context Content carries out word segmentation processing, and word sequence continuous in context is reconfigured, if phrase or phrase after combination It is conventional noun, if the then phrase using the phrase after the combination after perhaps phrase is combined as word segmentation result or short Language is not conventional noun, then ignores this combination.
In specific implementation, in the step 2031 terminal can use any segmentation methods, to the context into Row participle.In a kind of possible implementation, terminal can by a large amount of content and known word segmentation result training pattern, Participle model is obtained, and realizes that the terminal carries out the process of word segmentation processing to context by participle model.For example, point Word algorithm can be hidden Markov model (Hidden Markov Model, HMM), item with maximum matching method, participle model The Natural Language Processing Models such as part random field (Conditional Random Field, CRF) model.
In a kind of possible implementation, when in the context including punctuation marks used to enclose the title, terminal can not be upper and lower to this Literary content carries out word segmentation processing, directly acquires the content between the punctuation marks used to enclose the title, the content between punctuation marks used to enclose the title is determined object content.
2032, when any of multiple word segmentation results word segmentation result is less than pre-determined distance at a distance from the first specified operation When, terminal is using the word segmentation result as word segmentation result to be selected.
When any of multiple word segmentation results word segmentation result be greater than or equal at a distance from the first specified operation it is default away from From when, the word segmentation result is far at a distance from the first specified operation, can be not as word segmentation result to be selected.It is default away from It is determined from situation can be actually used according to user.
For example, the context that terminal is got is " pandect contains scientist and highbrow intuitive knowledge ", and the Text position of the one specified operation corresponding to current page is " accumulateing ", thus " implication ", " implication " and " pandect " with should The distance of first specified operation is less than pre-determined distance, and other word segmentation results are because too far at a distance from the first specified operation, Not as word segmentation result to be selected.
The step 2032 is the process screened at a distance from the first specified operation to word segmentation result according to word segmentation result, A part of word segmentation result is deleted, calculation amount is reduced, further speeds up and treats the analysis speed for choosing content.
In a kind of possible implementation, which can be with are as follows: terminal according to the part of speech of multiple word segmentation result, Multiple word segmentation result is screened, multiple word segmentation results to be selected are obtained.For example, terminal can by some prepositions, pronoun, Conjunction or adverbial word etc. screen out, and to reduce calculation amount, further speed up and treat the analysis speed for choosing content.
2033, terminal determines the selected of each word segmentation result according to the timeliness n parameter and/or frequency of use of word segmentation result Middle probability.
In the specific implementation, the server of search engine can count each by each portal website, applications client The service condition of word segmentation result, and determine that the timeliness n of each word segmentation result is joined according to the service condition of each word segmentation result Several and/or frequency of use.
Wherein, the acquisition process of the timeliness n parameter of each word segmentation result can be with are as follows: each described point of terminal statistics Word result is clicked number, selected number and the sum for being queried number in the preset time period before current slot Value, the timeliness n parameter by described and value as each word segmentation result.The timeliness n parameter can be used to indicate to segment As a result in the popular degree of nearest a period of time.
The acquisition process of the frequency of use of each word segmentation result can be with are as follows: counts each described word segmentation result in unit In time be clicked number, selected number and be queried number and value, will described and value as it is described each divide The frequency of use of word result, the unit time can be one day, one week, one month etc..
Terminal can get above-mentioned data by preset calling interface from the database of search engine, above-mentioned true Determine process and be only illustrated with a kind of example, the present invention is to the timeliness n parameter of word segmentation result and the determination process of frequency of use Required data source is not especially limited.
When the data difference needed for the terminal determines the selected probability of word segmentation result, terminal determines each word segmentation result Selected probability specific implementation it is also different.Specifically, which may include following three kinds of situations:
The first situation, terminal determine the selected probability of each word segmentation result according to the timeliness n parameter of word segmentation result.
In the first situation, for each word segmentation result, each described participle is obtained by search engine and is tied The timeliness n parameter of fruit, using the timeliness n parameter as the selected probability of each word segmentation result.
Second situation, terminal determine the selected probability of each word segmentation result according to the frequency of use of word segmentation result.
In the second situation, for each word segmentation result, each described participle is obtained by search engine and is tied The frequency of use of fruit, by the selected probability for using frequency as each word segmentation result.
The third situation, terminal determine each word segmentation result according to the timeliness n parameter and frequency of use of word segmentation result Selected probability.
In the third situation, it is also provided with timeliness n parameter in the database of search engine and frequency of use is each Self-corresponding weight, terminal need comprehensive analysis timeliness n parameter and frequency of use, obtain the selected probability of word segmentation result.Tool Body, for each word segmentation result, terminal by search engine obtain each word segmentation result timeliness n parameter and Frequency of use is weighted according to timeliness n parameter and the corresponding weight of frequency of use, obtains each described participle knot The selected probability of fruit.The selected probability for the word segmentation result that timeliness n is bigger, frequency of use is bigger is bigger.
For example, the weight of timeliness n parameter is 0.7, the weight of frequency of use is 0.3, and a word segmentation result is " implication ", The timeliness n parameter of " implication " is 45, frequency of use 34, then the selected probability of the word segmentation result is " 45*0.7+34* 0.3 ", it is 41.7, another word segmentation result is " implication ", and " implication " timeliness n parameter is 51, and frequency of use 31 then should The selected probability of word segmentation result " implication " is " 51*0.7+31*0.3 ", is 45, then word segmentation result " implication " is selected Probability is larger.It is of course also possible to which the selected probability for being somebody's turn to do " implication " and " implication " is converted to the multiple of this calculating It is selected probability relatively in word segmentation result, for example, the selected probability of " implication " can be 41.7/ (41.7+45), is 51.90%, it is 48.10% that the selected probability of " implication ", which can be 45/ (41.7+45),.
Above-mentioned steps 2033 are the timeliness n parameter and/or frequency of use according to word segmentation result, determine each word segmentation result Selected probability process, step 2032 can be executed before the step 2033, word segmentation result is screened, with reduce Calculation amount further speeds up and treats the analysis speed for choosing content.In a kind of possible implementation, which can also should Multiple word segmentation results are at a distance from the first specified operation as one of selected probabilistic process is calculated in the step 2033 Dimension is calculated, i.e., is also corresponding with the weight of oneself at a distance from word segmentation result and the first specified operation, which can be according to dividing The timeliness n parameter of word result, frequency of use and at a distance from the first specified operation, determine the selected of each word segmentation result Probability.
Certainly, in specific implementation, after which can also be performed end step 2031, that is, step 2033 is executed, and Do not execute the step 2032.
2034, terminal obtains the word segmentation result of selected maximum probability.
Terminal selects the word segmentation result of selected maximum probability as object content, and the comparison for selecting user to be typically chosen is more Object content, can be improved the accuracy of object content, reduce the subsequent number being adjusted of user.
For example, Fig. 4 is a kind of schematic diagram of terminal page provided in an embodiment of the present invention, it is assumed that first refers to Fixed operation corresponding text position on current page is " every ", and terminal by step 202 obtains context, and " Pan Sunshi is remote Without simultaneous taste, poor old unstrained spirits of cup wineshop.Agree drink opposite with adjacent father-in-law, is exhaled every hedge and exhaust Yu cup." terminal passes through participle obtain multiple points In word result, the selected maximum probability of " exhale every hedge and exhaust Yu cup ", then terminal, which obtained, " to exhale every hedge and exhaust Yu cup ".
It should be noted that the terminal periodically can obtain newest participle strategy from server, or periodically receive clothes The newest participle strategy that business device issues, to be updated to the configuration file in the terminal with participle function, it is ensured that The accuracy and real-time of the word segmentation result of the terminal.
Above-mentioned steps 2031 to step 2034 is to obtain the process of the object content in context, be that is to say in acquisition The process that probability meets the object content of preset condition is selected in ensuing disclosure, since the content between punctuation marks used to enclose the title is usually one A proper noun is usually intended to select this specially when user operates the content position between the punctuation marks used to enclose the title There is noun.Specifically, in a kind of possible implementation, when in the context including punctuation marks used to enclose the title, terminal is available Content between punctuation marks used to enclose the title is determined as the content of selected maximum probability by the content between the punctuation marks used to enclose the title.
For example, as shown in Figure 3, obtaining context, " thin portion for focusing on works makees crucial touch formula to terminal Comment, such as golden sage, which sighs, comments in " Shandong proposes linchpin and punches the town Northwest " section Shandong to retouch up to beating one section of waiter " when, find the context In include punctuation marks used to enclose the title, then the participle knot by " Shandong proposes linchpin and punches the town Northwest " between the punctuation marks used to enclose the title, as selected maximum probability Fruit, and it is obtained as object content.
In specific implementation, when the terminal is in connected state, object content which gets can be with It is determined, can also be determined by server by terminal oneself, and determining object content is sent to terminal, terminal receives the mesh Content is marked, to realize the process for obtaining object content.
The terminal by interacted with server obtain the process of object content can be with are as follows: terminal can be sent out to server Participle is sent to request, participle request is used to indicate the context that the server carries participle request and segments, base Object content is determined in word segmentation result, and returns to the object content, and terminal receives the object content.Specifically, the server pair Context carries out the step of segmenting and determine the process and above-mentioned steps 2031 to 2034 of object content similarly, which can With are as follows: the server carries out word segmentation processing to the context, carries out word segmentation processing to the context, obtains multiple points Word is as a result, server can determine the selected of each word segmentation result according to the timeliness n parameter and/or frequency of use of word segmentation result Middle probability, then server obtains the word segmentation result of selected maximum probability, using the word segmentation result of the maximum probability as in target Hold.
In practical applications, terminal can be using context as a separate unit, then by the first specified behaviour The coordinate of work is converted to the opposite offset origin coordinates and offset distance of the first specified operation relative to separate unit, this is opposite The specific representation for deviating origin coordinates and offset distance can be [opposite offset origin coordinates, offset distance], wherein phase To offset origin coordinates for indicating since which word of separate unit, offset distance is for indicating from the opposite offset Beginning coordinate starts, and offsets by several words backward, and the participle request that then terminal is sent to the server can carry up and down Literary content and the opposite offset origin coordinates and offset distance of the first specified operation relative to separate unit, for example, the end Holding the context got is " pandect contains scientist and highbrow intuitive knowledge ", and the coordinate of the first specified operation is At " accumulateing ", then the first specified operation can be then expressed as relative to the opposite offset origin coordinates and offset distance of separate unit [3,0] are somebody's turn to do [3,0] and are used to indicate that coordinate of the first specified operation to be located at the third word in the context.Wherein, " 3 " for indicating the coordinate position since the third word of context, " 0 " is used to indicate that offset distance is 0, then The coordinate of the first specified operation is only located at third word.Server receives context and the first specified operation Relative to the opposite offset origin coordinates and offset distance of separate unit, can execute same to step 2034 with above-mentioned steps 2031 The step of reason, and object content and the object content are returned relative to the opposite offset origin coordinates of the separate unit and offset Distance, terminal receive the opposite offset origin coordinates and partially of the object content and the object content relative to the separate unit Distance is moved, to realize that terminal obtains the process of object content.For example, the object content that server returns is " implication ", the target Content is [3,1] relative to the opposite offset origin coordinates and offset distance of separate unit, wherein " 3 " are for indicating the mesh Content is marked since the third word " accumulateing " of the context, " 1 " represents and offsets by a word backward since " accumulateing ", thus Third word and the 4th word are the object content " implication ".
204, in this prior in the page, it is text filed enterprising where the object content that terminal will choose marking frame to be covered on Row display.
After terminal gets object content, marking frame can will be chosen to be covered on text filed where the object content It is shown, to indicate that the object content is to choose content, it is usually to be highlighted that this, which chooses the display mode of content,.Fig. 5 is A kind of schematic diagram for choosing content display mode provided in an embodiment of the present invention, as shown in figure 5, object content is " to exhale and take every hedge To the greatest extent Yu cup ", terminal will choose marking frame be covered on " every hedge exhale exhaust Yu cup " on shown when, choose content and the current page The display effect of other contents is different in face.
In the step 203, the participle and the service for determining object content that terminal is provided by server obtain target After content, which, can be according to the object content relative to context when receiving the object content of server offer The position of content determines the text filed coordinate in current page where the object content, then based on the coordinate, will Choose marking frame be covered on it is described it is text filed on shown.Specifically, while server returns to end objectives content, The object content can be returned can be according to this relative to the opposite offset origin coordinates and offset distance, terminal of context Opposite offset origin coordinates and offset distance, determine the text filed coordinate in current page where the object content, and Based on the coordinate, marking frame will be chosen to be covered on this article one's respective area and shown.
In practical applications, after the step 204, when the terminal, which detects, chooses content adaptation operations, terminal can be with Content is chosen to highlight to adjusted.User by terminal after being seen and choosing content, it can be determined that is currently chosen Whether content is the desired content for carrying out subsequent operation of the user, if it is, the user does not choose content to be adjusted this, If it is not, then the user can carry out choosing content adaptation operations on the terminal, for example, carrying out dragging behaviour on current page Make, marking frame will be chosen to be covered on the user and want to carry out in the content of subsequent operation.Fig. 6 is provided in an embodiment of the present invention one Kind chooses the schematic diagram of content display mode, referring to Fig. 6, before (a) figure is adjustment in Fig. 6, after (b) figure is adjustment in Fig. 6, works as end When the object content that end is got is " every ", user chooses content to be adjusted to display, and content is chosen to be adjusted from " every " It is whole to have arrived " exhale every hedge and exhaust Yu cup ".
205, when detecting the second specified operation, whether terminal detection currently chooses content identical as the object content, The second specified operation is used to indicate the terminal to currently content being chosen to carry out subsequent processing, if not, thening follow the steps 206.
Wherein, subsequent processing may include search, duplication, sharing, translation etc., when detecting the second specified operation, eventually End can be handled currently choosing content to scan for, replicating, share, translate etc. according to the second specified operation.And due to Terminal can choose content adaptation operations according to user, and to choosing content to be adjusted, terminal is detecting the second specified behaviour When making, it can detecte and currently choose content whether identical as object content, when estimate of situation difference, the processing of the SS later Mode is also different.If it is different, then executing step 206, if identical, terminal only currently chooses content to carry out subsequent place to this Reason, without currently choosing the timeliness n parameter of content and/or frequency of use to be updated this.
In alternatively possible scene, when the second specified operation is not detected in terminal, but detects other operations, terminal The object content can be abandoned, no longer using the object content as choosing content to show.For example, other operations can To refer to the clicking operation to text other parts.
206, when this currently chooses content and the object content difference, terminal currently chooses the timeliness n of content to join this Several and/or frequency of use is updated.
It since step 203 can be executed by terminal oneself, can also be executed by server, terminal is determining in current choose Hold with object content not it is also possible to which there are two types of processing modes.When this currently chooses content and the object content difference, eventually End can this in the database to the search engine of the terminal currently choose the timeliness n parameter of content and/or frequency of use to carry out It updates, may be implemented to be accustomed to being adjusted according to the personal use of user, can satisfy the individual demand of the user.In step In 203 in alternatively possible implementation, when this currently chooses content and the object content difference, terminal can also be to service Device sends this and currently chooses content, and server receives this and currently chooses content, can also currently choose the stylish of content to this Property parameter and/or frequency of use are updated, so that the real-time basis of timeliness n parameter and/or frequency of use of various word segmentation results The actual use situation of user is adjusted, and also may be implemented to excavate neologisms in this way, certainly, the updated participle knot The timeliness n parameter and/or frequency of use of fruit can be used for the expansion of the word in input method.
Above-mentioned steps mainly choose the specific implementation details of each step in content display method to be illustrated this, below The above-mentioned detailed process for choosing content display method is illustrated by embodiment shown in Fig. 7, in the embodiment illustrated in fig. 7 In, which sends participle request, provides participle by server for the terminal and determines the service of object content. Specifically, user is during browsing webpage, the operation such as is if desired replicated, shared, searched for, translated to some content, When it carries out long press operation in the content for needing to carry out subsequent operation, terminal can get long opsition dependent screen coordinate and The context of long opsition dependent.The length for the long opsition dependent that terminal obtains hereafter is independent unit, by the screen of long opsition dependent Coordinate is converted to opposite offset origin coordinates and offset distance based on the separate unit, and by the context, relatively partially It moves the information such as origin coordinates and offset distance and is sent to server.When being connected to the network normal, server is based at natural language It manages model and word segmentation processing is carried out to context, and maximum be chosen is calculated according to opposite offset origin coordinates and offset distance The word segmentation result of middle probability, it may be possible to an individual character, a phrase, a short sentence etc., and by the maximum based on the separate unit Selected probability word segmentation result is determined as object content, and the information of the object content is back to terminal.Terminal receives clothes It is engaged in after the information that device returns, is identified by the opposite offset origin coordinates and offset distance, the content identified is to select Middle content.If choosing content to meet, user is expected, and user clicks directly on subsequent operation.If it is pre- to choose content not meet user Phase, user can be by adjusting choosing content to complete subsequent operation again, and currently chooses content for be finally completed subsequent operation It is sent to server, server is currently chosen content to execute optimization logic, adjusted at its natural language in real time according to return Manage the strategy of model.
The embodiment of the present invention is by obtaining the content near the first specified operation, to the content near the first specified operation It is analyzed, choose content and it is shown by way of choosing marking frame to cover, improved and choose content Accuracy can be effectively reduced user to the number of operations for choosing content to be adjusted, simplify operating process, improve Operating efficiency.Further, the embodiment of the present invention also passes through in the content near the selection first specified operation, is selected probability Maximum content improves the accuracy for choosing content, user can be effectively reduced to this as choosing content to be shown The number of operations that content is adjusted is chosen, operating process is simplified, improves operating efficiency.Further, the present invention is implemented Example is also divided by punctuation mark, obtains the context of the first specified operation, it is possible to reduce in the context for needing to segment Hold, improves the speed of participle, further speed up and treat the analysis speed for choosing content.Further, the embodiment of the present invention is also logical The content between acquisition punctuation marks used to enclose the title is crossed as content is chosen, more intelligently content is chosen in determination, improves the standard for choosing content True property, improves operating efficiency.Further, the embodiment of the present invention also passes through user's timeliness n adjusted for choosing content and joins Several and/or frequency of use is updated, so that word segmentation result is more able to satisfy the individual demand of user, improves the standard for choosing content True property, improves operating efficiency.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
Fig. 8 is a kind of structural schematic diagram for choosing content display provided in an embodiment of the present invention, this chooses content aobvious Showing device is applied to terminal, this chooses the content display to include:
Module 801 is obtained, for obtaining first specified operation corresponding text position in current page;
The acquisition module 801, is also used to obtain the context of text position;
The acquisition module 801, is also used to obtain the object content in the context;
Display module 802, for marking frame will be chosen to be covered on where the object content in the current page It is shown on text filed.
In one embodiment, the acquisition module 801 is also used to obtain in the context selected probability and meets The object content of preset condition.
In one embodiment, the acquisition module 801 is also used to when the first specified operation is corresponding in current page When text position is located at paragraph first trip, obtains the first specified operation content of the row and the first specified operation is of the row The content of next line;Or,
When corresponding text position is located at paragraph tail row in current page for the first specified operation, first finger is obtained Surely the content of content of the row and the first specified operation lastrow of the row is operated;Or,
When first specified operation corresponding text position in current page is not located at paragraph first trip, nor being located at When the tail row of paragraph, obtain the first specified operation content of the row, the first specified operation lastrow of the row it is interior Content of appearance and the first specified operation next line of the row;Or,
When the first specified operation is expert at, the first specified content for operating lastrow and/or next line of the row When including punctuation mark, using the punctuation mark as the starting point of context and/or terminal, obtaining includes the first specified behaviour Make the content of the corresponding text position in current page.
In one embodiment, the acquisition module 801, is also used to:
When the first specified operation is expert at, the first specified content for operating lastrow and/or next line of the row In, which has punctuation mark in current page before and after corresponding text position when, obtain apart from the text Content between former and later two nearest punctuation marks of position;Or,
When the first specified operation is expert at, in the first specified content for operating lastrow and next line of the row, The first specified operation has punctuation mark before corresponding text position in current page, and the first specified operation is in current page When there is no punctuation mark after corresponding text position in face, obtain that the above-mentioned first specified operation is expert at, this first is specified The content after punctuation mark in the content for operating lastrow and next line of the row, before text position;Or,
When the first specified operation is expert at, in the first specified content for operating lastrow and next line of the row, The first specified operation has punctuation mark after corresponding text position in current page, and the first specified operation is in current page When there is no punctuation mark before corresponding text position in face, obtain that the above-mentioned first specified operation is expert at, this first is specified The content before punctuation mark in the content for operating lastrow and next line of the row, after text position.
In one embodiment, the acquisition module 801, is also used to:
To server send participle request, the participle request be used to indicate the server to the participle request carry up and down Literary content is segmented, and determines object content based on word segmentation result, and return to the object content;
Receive the object content.
In one embodiment, the display module 802, is also used to according to the object content relative to context Position determines the text filed coordinate in current page where the object content;Based on the coordinate, mark will be chosen Frame be covered on it is described it is text filed on shown.
In one embodiment, the acquisition module 801, is also used to:
Word segmentation processing is carried out to the context, obtains multiple word segmentation results;
According to the timeliness n parameter and/or frequency of use of word segmentation result, the selected probability of each word segmentation result is determined;
Obtain the word segmentation result of selected maximum probability.
In one embodiment, the acquisition module 801, is also used to:
For each word segmentation result, the timeliness n parameter of each word segmentation result is obtained by search engine, it will Selected probability of the timeliness n parameter as each word segmentation result;Or,
For each word segmentation result, the frequency of use of each word segmentation result is obtained by search engine, by institute State the selected probability for using frequency as each word segmentation result;Or,
For each word segmentation result, the timeliness n parameter of each word segmentation result is obtained by search engine and is made It with frequency, is weighted according to timeliness n parameter and the corresponding weight of frequency of use, obtains each described word segmentation result Selected probability.
In one embodiment, the acquisition module 801 is also used to count each described word segmentation result in current slot In preset time period before be clicked number, selected number and be queried number and value, will be described and be worth conduct The timeliness n parameter of each word segmentation result.
In one embodiment, the acquisition module 801 is also used to count each described word segmentation result within the unit time Be clicked number, selected number and be queried number and value, will described and value each word segmentation result as described in Frequency of use.
In one embodiment, the acquisition module 801, is also used to: when any of multiple word segmentation result word segmentation result When being less than pre-determined distance at a distance from the first specified operation, using the word segmentation result as word segmentation result to be selected.
In one embodiment, the acquisition module 801, is also used to: according to the part of speech of multiple word segmentation result, to multiple Word segmentation result is screened, and multiple word segmentation results to be selected are obtained.
In one embodiment, the acquisition module 801 is also used to obtain when in the context including punctuation marks used to enclose the title Content between the punctuation marks used to enclose the title.
In one embodiment, the device further include:
Detection module, for when detecting the second specified operation, whether detection currently chooses content and the object content Identical, which is used to indicate the terminal and chooses content to carry out subsequent processing to current;
Update module, for when this currently chooses content and when the object content difference, this is currently chosen content when New property parameter and/or frequency of use are updated.
The embodiment of the present invention is by obtaining the content near the first specified operation, to the content near the first specified operation It is analyzed, choose content and it is shown by way of choosing marking frame to cover, improved and choose content Accuracy can be effectively reduced user to the number of operations for choosing content to be adjusted, simplify operating process, improve Operating efficiency.
It should be understood that provided by the above embodiment choose content display when content is chosen in display, only more than The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference Functional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, provided by the above embodiment choose content display and content display method embodiment chosen to belong to Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Fig. 9 is a kind of structural block diagram of terminal 900 provided in an embodiment of the present invention.The terminal 900 may is that intelligent hand (Moving Picture Experts Group Audio Layer III, dynamic image are special for machine, tablet computer, MP3 player Family's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image Expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 900 is also possible to referred to as user and sets Other titles such as standby, portable terminal, laptop terminal, terminal console.
In general, terminal 900 includes: processor 901 and memory 902.
Processor 901 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 901 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 901 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 901 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 901 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 902 may include one or more computer readable storage mediums, which can To be non-transient.Memory 902 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 902 can Storage medium is read for storing at least one instruction, at least one instruction for performed by processor 901 to realize this hair What bright middle embodiment of the method provided chooses content display method.
In some embodiments, terminal 900 is also optional includes: peripheral device interface 903 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 901, memory 902 and peripheral device interface 903.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface 903.Specifically, peripheral equipment includes: radio circuit 904, at least one of touch display screen 905, camera 906, voicefrequency circuit 907, positioning component 908 and power supply 909.
Peripheral device interface 903 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 901 and memory 902.In some embodiments, processor 901, memory 902 and peripheral equipment Interface 903 is integrated on same chip or circuit board;In some other embodiments, processor 901, memory 902 and outer Any one or two in peripheral equipment interface 903 can realize on individual chip or circuit board, the embodiment of the present invention pair This is not limited.
Radio circuit 904 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 904 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 904 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 904 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 904 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates Frequency circuit 904 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this Invention is not limited this.
Display screen 905 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 905 is touch display screen, display screen 905 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 905.The touch signal can be used as control signal and be input to processor 901 are handled.At this point, display screen 905 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 905 can be one, and the front panel of terminal 900 is arranged;In other embodiments In, display screen 905 can be at least two, be separately positioned on the different surfaces of terminal 900 or in foldover design;In still other reality It applies in example, display screen 905 can be flexible display screen, be arranged on the curved surface of terminal 900 or on fold plane.Even, it shows Display screen 905 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 905 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
CCD camera assembly 906 is for acquiring image or video.Optionally, CCD camera assembly 906 include front camera and Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 906 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 907 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 901, to be handled, or is input to radio circuit 904 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 900 to be multiple.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 901 or radio circuit will to be come from 904 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 907 can also include Earphone jack.
Positioning component 908 is used for the current geographic position of positioning terminal 900, to realize navigation or LBS (Location Based Service, location based service).Positioning component 908 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 909 is used to be powered for the various components in terminal 900.Power supply 909 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 909 includes rechargeable battery, which can be wired charging electricity Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 900 further includes having one or more sensors 910.The one or more sensors 910 include but is not limited to: acceleration transducer 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, Optical sensor 915 and proximity sensor 916.
The acceleration that acceleration transducer 911 can detecte in three reference axis of the coordinate system established with terminal 900 is big It is small.For example, acceleration transducer 911 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 901 can With the acceleration of gravity signal acquired according to acceleration transducer 911, touch display screen 905 is controlled with transverse views or longitudinal view Figure carries out the display of user interface.Acceleration transducer 911 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 912 can detecte body direction and the rotational angle of terminal 900, and gyro sensor 912 can To cooperate with acquisition user to act the 3D of terminal 900 with acceleration transducer 911.Processor 901 is according to gyro sensor 912 Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 905 in terminal 900 can be set in pressure sensor 913.Work as pressure When the side frame of terminal 900 is arranged in sensor 913, user can detecte to the gripping signal of terminal 900, by processor 901 Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 913 acquires.When the setting of pressure sensor 913 exists When the lower layer of touch display screen 905, the pressure operation of touch display screen 905 is realized to UI circle according to user by processor 901 Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu At least one of control.
Fingerprint sensor 914 is used to acquire the fingerprint of user, collected according to fingerprint sensor 914 by processor 901 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 914 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 901 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 914 900 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 900, fingerprint sensor 914 can be with It is integrated with physical button or manufacturer Logo.
Optical sensor 915 is for acquiring ambient light intensity.In one embodiment, processor 901 can be according to optics The ambient light intensity that sensor 915 acquires controls the display brightness of touch display screen 905.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 905 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 905 is bright Degree.In another embodiment, the ambient light intensity that processor 901 can also be acquired according to optical sensor 915, dynamic adjust The acquisition parameters of CCD camera assembly 906.
Proximity sensor 916, also referred to as range sensor are generally arranged at the front panel of terminal 900.Proximity sensor 916 For acquiring the distance between the front of user Yu terminal 900.In one embodiment, when proximity sensor 916 detects use When family and the distance between the front of terminal 900 gradually become smaller, touch display screen 905 is controlled from bright screen state by processor 901 It is switched to breath screen state;When proximity sensor 916 detects user and the distance between the front of terminal 900 becomes larger, Touch display screen 905 is controlled by processor 901 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 900 of structure shown in Fig. 9, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
Figure 10 is a kind of block diagram for choosing content display 1000 provided in an embodiment of the present invention.For example, choosing content Display device 1000 may be provided as a server.Referring to Fig.1 0, choosing content display 1000 includes processing component 1022, it further comprise one or more processors, and the memory resource as representated by memory 1032, for storing It can be by the instruction of the execution of processing component 1022, such as application program.The application program stored in memory 1032 may include It is one or more each correspond to one group of instruction module.In addition, processing component 1022 is configured as executing instruction, To execute the above-mentioned method and step for choosing server-side in content display method.
Choose content display 1000 that can also be configured as executing including a power supply module 1026 that content is chosen to show The power management of showing device 1000, a wired or wireless network interface 1050 are configured as that content display 1000 will be chosen It is connected to network and input and output (I/O) interface 1058.It chooses content display 1000 that can operate to be based on being stored in The operating system of memory 1032, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr It is similar.
In the exemplary embodiment, a kind of computer readable storage medium for being stored with computer program, example are additionally provided Such as it is stored with the memory of computer program, when above-mentioned computer program execution processed is realized to be chosen shown in above-described embodiment Content display method.For example, above-mentioned computer readable storage medium can be read-only memory (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), tape, floppy disk and optical data storage devices etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, which can store in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It above are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all in the spirit and principles in the present invention Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (15)

1. one kind chooses content display method, which is characterized in that be applied to terminal, which comprises
Obtain first specified operation corresponding text position in current page;
Obtain the context of the text position;
Obtain the object content in the context;
In the current page, marking frame will be chosen to be covered on text filed where the object content and shown.
2. the method according to claim 1, wherein the object content packet obtained in the context It includes:
It obtains and is selected the object content that probability meets preset condition in the context.
3. the method according to claim 1, wherein the context packet for obtaining the text position It includes:
When corresponding text position is located at paragraph first trip in current page for the described first specified operation, obtains described first and refer to Surely the content of content of the row with the described first specified operation next line of the row is operated;Or,
When corresponding text position is located at paragraph tail row in current page for the described first specified operation, obtains described first and refer to Surely the content of content of the row with the described first specified operation lastrow of the row is operated;Or,
When described first specified operation corresponding text position in current page is not paragraph first trip, nor being located at paragraph tail When row, obtain the described first specified operation content of the row, the content of the first specified operation lastrow of the row with And described first specified operation next line of the row content;Or,
When the described first specified operation is expert at, the described first specified content for operating lastrow and/or next line of the row When including punctuation mark, using the punctuation mark as the starting point of context and/or terminal, obtaining includes first finger The content of fixed operation corresponding text position in current page.
4. according to the method described in claim 3, it is characterized in that, the context packet for obtaining the text position It includes:
When the described first specified operation is expert at, the described first specified content for operating lastrow and/or next line of the row In, the described first specified operation has punctuation mark in current page before and after corresponding text position when, obtain described in distance Content between former and later two nearest punctuation marks of text position;Or
When the described first specified operation is expert at, in the described first specified content for operating lastrow and next line of the row, Described first specified operation has punctuation mark in current page before corresponding text position, the described first specified operation is being worked as When there is no punctuation mark after corresponding text position in the preceding page, obtains the described above first specified operation and be expert at, be described It is interior after the punctuation mark before the text position in the first specified content for operating lastrow and next line of the row Hold;Or,
When the described first specified operation is expert at, in the described first specified content for operating lastrow and next line of the row, Described first specified operation has punctuation mark in current page after corresponding text position, the described first specified operation is being worked as When there is no punctuation mark before corresponding text position in the preceding page, obtains the described above first specified operation and be expert at, be described It is interior before the punctuation mark after the text position in the first specified content for operating lastrow and next line of the row Hold.
5. the method according to claim 1, wherein the object content packet obtained in the context It includes:
It sends participle to server to request, the participle request is used to indicate the server to the upper of the participle request carrying Ensuing disclosure is segmented, and determines object content based on word segmentation result, and return to the object content;
Receive the object content.
6. according to the method described in claim 5, marking frame will be chosen to cover it is characterized in that, described in the current page It covers on text filed where the object content and carries out display and include:
Position according to the object content relative to context, determine where the object content text filed is working as Coordinate in the preceding page;
Based on the coordinate, will choose marking frame be covered on it is described it is text filed on show.
7. method according to claim 1 or 2, which is characterized in that in the target obtained in the context Appearance includes:
Word segmentation processing is carried out to the context, obtains multiple word segmentation results;
According to the timeliness n parameter and/or frequency of use of word segmentation result, the selected probability of each word segmentation result is determined;
Obtain the word segmentation result of selected maximum probability.
8. the method according to the description of claim 7 is characterized in that the timeliness n parameter according to word segmentation result and/or making With frequency, the selected probability of each word segmentation result is determined, comprising:
For each word segmentation result, the timeliness n parameter of each word segmentation result is obtained by search engine, it will be described Selected probability of the timeliness n parameter as each word segmentation result;Or,
For each word segmentation result, the frequency of use of each word segmentation result is obtained by search engine, is made described Use frequency as the selected probability of each word segmentation result;Or,
For each word segmentation result, the timeliness n parameter of each word segmentation result is obtained by search engine and using frequency Rate is weighted according to timeliness n parameter and the corresponding weight of frequency of use, obtains the quilt of each word segmentation result Choose probability.
9. according to the method described in claim 8, it is characterized in that, the acquisition of the timeliness n parameter of each word segmentation result Process includes:
It counts each described word segmentation result and is clicked number, selected time in the preset time period before current slot Number and be queried number and value, by described and value each word segmentation result as described in timeliness n parameter.
10. the method according to the description of claim 7 is characterized in that the timeliness n parameter according to word segmentation result and/or making With frequency, before the selected probability for determining each word segmentation result, the method also includes:
When any of the multiple word segmentation result word segmentation result is less than pre-determined distance at a distance from the described first specified operation, Using the word segmentation result as word segmentation result to be selected.
11. the method according to claim 1, wherein the object content obtained in the context Include:
When in the context including punctuation marks used to enclose the title, the content between the punctuation marks used to enclose the title is obtained.
12. marking frame will be chosen to cover the method according to claim 1, wherein described in the current page It covers on text filed where the object content after being shown, the method also includes:
When detecting the second specified operation, whether detection currently chooses content identical as the object content, and described second refers to Fixed operation is used to indicate the terminal and chooses content to carry out subsequent processing to current;
Currently choose content and when the object content difference when described, to the timeliness n parameter for currently choosing content and/ Or frequency of use is updated.
13. one kind chooses content display, which is characterized in that be applied to terminal, described device includes:
Module is obtained, for obtaining first specified operation corresponding text position in current page;
The acquisition module, is also used to obtain the context of the text position;
The acquisition module, is also used to obtain the object content in the context;
Display module is used in the current page, by the text area where choosing marking frame to be covered on the object content It is shown on domain.
14. a kind of terminal characterized by comprising
Processor;
For storing the memory of computer program;
Wherein, the processor realizes any one of claim 1-12 for executing the computer program stored on memory The method and step.
15. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-12 described in any item method and steps when the computer program is executed by processor.
CN201711327646.0A 2017-12-13 2017-12-13 Selected content display method, device, terminal and computer readable storage medium Active CN109917988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711327646.0A CN109917988B (en) 2017-12-13 2017-12-13 Selected content display method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711327646.0A CN109917988B (en) 2017-12-13 2017-12-13 Selected content display method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109917988A true CN109917988A (en) 2019-06-21
CN109917988B CN109917988B (en) 2021-12-21

Family

ID=66958638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711327646.0A Active CN109917988B (en) 2017-12-13 2017-12-13 Selected content display method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109917988B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308769A (en) * 2019-06-28 2019-10-08 维沃移动通信有限公司 A kind of information display method and terminal
CN110568981A (en) * 2019-09-12 2019-12-13 北京安云世纪科技有限公司 Character operation method and device
CN110691028A (en) * 2019-09-16 2020-01-14 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
WO2022179330A1 (en) * 2021-02-26 2022-09-01 Oppo广东移动通信有限公司 Text processing method and apparatus, and electronic device and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369122A (en) * 2012-03-31 2013-10-23 盛乐信息技术(上海)有限公司 Voice input method and system
US20140068509A1 (en) * 2012-09-05 2014-03-06 Sap Portals Israel Ltd Managing a Selection Mode for Presented Content
US20140063050A1 (en) * 2012-08-30 2014-03-06 Atheer, Inc. Method and apparatus for selectively presenting content
WO2014098798A1 (en) * 2012-12-17 2014-06-26 Empire Technology Development, Llc Progressively triggered auto-fill
CN104516674A (en) * 2014-12-19 2015-04-15 网易有道信息技术(北京)有限公司 Word processing method and device
CN105580384A (en) * 2013-09-27 2016-05-11 微软技术许可有限责任公司 Actionable content displayed on a touch screen
CN105637507A (en) * 2013-10-07 2016-06-01 微软技术许可有限责任公司 Smart selection of text spans
CN106104451A (en) * 2014-03-25 2016-11-09 富士通株式会社 Termination, display control method and program
CN106155550A (en) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 The display packing at a kind of interface and device
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
CN106570001A (en) * 2016-10-24 2017-04-19 广州酷狗计算机科技有限公司 Method and device for transliterating characters
CN106708797A (en) * 2015-07-15 2017-05-24 中兴通讯股份有限公司 Text processing method and apparatus
CN106815356A (en) * 2017-01-20 2017-06-09 泰华智慧产业集团股份有限公司 Precision target user message method for pushing and system based on semantic analysis
CN106933809A (en) * 2017-03-27 2017-07-07 三角兽(北京)科技有限公司 Information processor and information processing method
CN107229403A (en) * 2017-05-27 2017-10-03 北京小米移动软件有限公司 A kind of information content system of selection and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369122A (en) * 2012-03-31 2013-10-23 盛乐信息技术(上海)有限公司 Voice input method and system
US20140063050A1 (en) * 2012-08-30 2014-03-06 Atheer, Inc. Method and apparatus for selectively presenting content
US20140068509A1 (en) * 2012-09-05 2014-03-06 Sap Portals Israel Ltd Managing a Selection Mode for Presented Content
WO2014098798A1 (en) * 2012-12-17 2014-06-26 Empire Technology Development, Llc Progressively triggered auto-fill
CN105580384A (en) * 2013-09-27 2016-05-11 微软技术许可有限责任公司 Actionable content displayed on a touch screen
CN105637507A (en) * 2013-10-07 2016-06-01 微软技术许可有限责任公司 Smart selection of text spans
CN106104451A (en) * 2014-03-25 2016-11-09 富士通株式会社 Termination, display control method and program
CN104516674A (en) * 2014-12-19 2015-04-15 网易有道信息技术(北京)有限公司 Word processing method and device
CN106708797A (en) * 2015-07-15 2017-05-24 中兴通讯股份有限公司 Text processing method and apparatus
CN106155550A (en) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 The display packing at a kind of interface and device
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
CN106570001A (en) * 2016-10-24 2017-04-19 广州酷狗计算机科技有限公司 Method and device for transliterating characters
CN106815356A (en) * 2017-01-20 2017-06-09 泰华智慧产业集团股份有限公司 Precision target user message method for pushing and system based on semantic analysis
CN106933809A (en) * 2017-03-27 2017-07-07 三角兽(北京)科技有限公司 Information processor and information processing method
CN107229403A (en) * 2017-05-27 2017-10-03 北京小米移动软件有限公司 A kind of information content system of selection and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308769A (en) * 2019-06-28 2019-10-08 维沃移动通信有限公司 A kind of information display method and terminal
CN110308769B (en) * 2019-06-28 2021-08-24 维沃移动通信有限公司 Information display method and terminal
CN110568981A (en) * 2019-09-12 2019-12-13 北京安云世纪科技有限公司 Character operation method and device
CN110691028A (en) * 2019-09-16 2020-01-14 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
CN110691028B (en) * 2019-09-16 2022-07-08 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
WO2022179330A1 (en) * 2021-02-26 2022-09-01 Oppo广东移动通信有限公司 Text processing method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN109917988B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN110377365A (en) The method and apparatus for showing small routine
CN109917988A (en) Choose content display method, device, terminal and computer readable storage medium
CN108924737A (en) Localization method, device, equipment and computer readable storage medium
CN110110263A (en) Webpage display process, device, terminal and storage medium
CN109168073A (en) The method and apparatus that direct broadcasting room cover is shown
CN109634489A (en) Method, apparatus, equipment and the readable storage medium storing program for executing made comments
CN109922356A (en) Video recommendation method, device and computer readable storage medium
CN108848394A (en) Net cast method, apparatus, terminal and storage medium
CN110019929A (en) Processing method, device and the computer readable storage medium of web page contents
CN109298904A (en) Information processing method, device, storage medium and calculating equipment
CN109068008A (en) The tinkle of bells setting method, device, terminal and storage medium
CN108806670B (en) Audio recognition method, device and storage medium
US20220035745A1 (en) Data processing method and chip, device, and storage medium
CN109068160A (en) The methods, devices and systems of inking video
CN109346111A (en) Data processing method, device, terminal and storage medium
CN110290426A (en) Method, apparatus, equipment and the storage medium of showing resource
CN109275013A (en) Method, apparatus, equipment and the storage medium that virtual objects are shown
CN112632445A (en) Webpage playing method, device, equipment and storage medium
CN109635202A (en) Content item processing method, device, electronic equipment and storage medium
CN109982129A (en) Control method for playing back, device and the storage medium of short-sighted frequency
CN109218751A (en) The method, apparatus and system of recommendation of audio
CN110099360A (en) Voice message processing method and device
CN110245255A (en) Song display methods, device, equipment and storage medium
CN110244999A (en) Control method, apparatus, equipment and the storage medium of destination application operation
CN109547847A (en) Add the method, apparatus and computer readable storage medium of video information

Legal Events

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