CN111435270B - Recommendation method and device and electronic equipment - Google Patents
Recommendation method and device and electronic equipment Download PDFInfo
- Publication number
- CN111435270B CN111435270B CN201910027932.8A CN201910027932A CN111435270B CN 111435270 B CN111435270 B CN 111435270B CN 201910027932 A CN201910027932 A CN 201910027932A CN 111435270 B CN111435270 B CN 111435270B
- Authority
- CN
- China
- Prior art keywords
- screen
- information
- user
- continuous
- click position
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a recommendation method, a recommendation device and electronic equipment, wherein the recommendation method comprises the following steps: acquiring screen operation information, wherein the screen operation information comprises screen information and screen click position information; receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information; if the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in the area matched with the last screen click position; therefore, when the user is determined to need to perform continuous input, the association information is displayed in the same area, so that the user can continuously screen in the same area in the process of inputting a continuous text, and the screen is not required to be switched back and forth in a plurality of areas, and the input efficiency is improved.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a recommendation method, apparatus, and electronic device.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more popular, and great convenience is brought to life, study and work of people. These electronic devices are typically installed with an input method application (input method for short) so that a user can input information using the input method.
In order to improve the input efficiency of the user, the input method is more and more intelligent, for example, the input method can be associated, namely, based on the input context of the user, the user is associated to want to input the context, such as 'I am not eating', and the conceivable context is 'you eat not', 'I am with a bread', 'good hunger' and the like; the user can directly select the content to be input from the content, so that the input efficiency of the user is improved; the input method can be associated with a server (also called cloud association), and also can be associated with the input method locally, the cloud association result is more accurate relative to the local association result, the cloud association result is displayed in a cloud candidate bar of the input method, and the local association result is displayed in the local candidate bar.
During the input process, the user may have a need to input a continuous text, such as a lyric, a poem, a sub-text, etc.; however, in the prior art, only cloud association results are displayed in the cloud candidate bar, and local association results are displayed in the local candidate bar; when the cloud association result is overlapped with the local association result, the association result is only displayed locally; the user needs to switch back and forth between the local candidate bar and the cloud candidate bar to finish the input of a continuous text, the operation is complex, and the input efficiency is low. For example, in the process of inputting continuous text 1 (including 6 sentences, A-F respectively), if B can be associatively considered locally but C-F cannot be associatively considered locally, after the user is on screen A, the user can firstly screen B from the local candidate bar and then select from the cloud candidate bar for C-F input. Alternatively, assuming that B-C, E-F cannot be suggested locally, D can be suggested, since only the local candidate bar shows the repeated results in the prior art; the user can first screen B-C from the cloud candidate bar, then screen D from the local candidate bar, and then screen E-F from the cloud candidate bar; it can be seen that the user needs to switch back and forth between the local candidate bar and the cloud candidate bar for input, and the input efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a recommendation method for improving input efficiency.
Correspondingly, the embodiment of the invention also provides a recommending device and electronic equipment, which are used for guaranteeing the implementation and application of the method.
In order to solve the above problems, an embodiment of the present invention discloses a recommendation method, which specifically includes: acquiring screen operation information, wherein the screen operation information comprises screen information and screen click position information; receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information; if the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in the area matched with the last screen click position.
Optionally, the determining whether the user has the continuous input intention according to the on-screen operation information includes at least one of: judging whether a user has continuous input intention or not according to the screen information; and judging whether the user has continuous input intention or not according to the information of the clicking position of the upper screen.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: calculating an index number corresponding to the screen information, and acquiring attribute information corresponding to the screen information according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: matching the on-screen information with a set word stock, wherein the set word stock comprises a plurality of fragments, each fragment belongs to at least one section of continuous text, each fragment has adjacent fragments and continuous tags, and the continuous tags of the fragments in one section of continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
Optionally, the on-screen click position information includes a plurality of pieces, and the on-screen operation information further includes click time corresponding to each piece of on-screen click position information; judging whether the user has continuous input intention according to the on-screen click position information comprises the following steps: determining continuous clicking times in the same area within the set time according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention.
Optionally, the displaying the association information in the area matched with the last click position includes: if the area matched with the last click position is a cloud candidate bar, displaying the association information in the cloud candidate bar; and if the area matched with the last click position is a local candidate bar, displaying the association information in the local candidate bar.
Optionally, the displaying the association information in the area matched with the last click position includes: and determining candidate display positions matched with the last screen click position, and displaying the association information at the candidate display positions.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a fragment, displaying the fragment in the area matched with the last click position; the method further comprises the following steps: receiving a screen-on instruction, and screen-on the segment corresponding to the screen-on instruction; and acquiring the next segment of the segment, and displaying the next segment in the area matched with the last click position.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a plurality of continuous fragments, displaying a first fragment in the association information in a region matched with the last click position; the method further comprises the following steps: receiving a screen-on instruction, and screen-on a first segment corresponding to the screen-on instruction; and displaying the next fragment in the area matched with the last click position.
Optionally, the continuous text comprises at least one of the following types: song word class, poem class, table word class, hot spot class.
The embodiment of the invention also discloses a recommending device, which specifically comprises: the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring screen operation information, and the screen operation information comprises screen information and screen click position information; the judging module is used for receiving the association information corresponding to the on-screen information and judging whether the user has continuous input intention or not according to the on-screen operation information; and the display module is used for determining the last screen click position according to the screen click position information if the user has continuous input intention, and displaying the association information in the area matched with the last screen click position.
Optionally, the judging module includes: the first intention judging submodule is used for judging whether the user has continuous input intention or not according to the on-screen information; and the second intention judging sub-module is used for judging whether the user has continuous input intention or not according to the on-screen click position information.
Optionally, the first intention judgment submodule includes: the first content judging unit is used for calculating an index number corresponding to the screen information and acquiring attribute information corresponding to the screen information according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text.
Optionally, the first intention judgment submodule includes: the second content judging unit is used for matching the screen information with a set word stock, wherein the set word stock comprises a plurality of fragments, each fragment belongs to at least one section of continuous text, each fragment is provided with adjacent fragments and continuous labels, and the continuous labels of the fragments in one section of continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
Optionally, the on-screen click position information includes a plurality of pieces, and the input information further includes click time corresponding to each piece of on-screen click position information; the second intention judging submodule is used for determining continuous clicking times in the same area within set time according to the information of the multiple on-screen clicking positions and the corresponding on-screen clicking time; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention.
Optionally, the display module includes: the first information display sub-module is used for displaying the association information in the cloud candidate bar if the area matched with the last click position is the cloud candidate bar; and the first information display sub-module is used for displaying the association information in the local candidate bar if the area matched with the last click position is the local candidate bar.
Optionally, the display module includes: and the third information display sub-module is used for determining candidate display positions matched with the last screen click position and displaying the association information at the candidate display positions.
Optionally, the display module includes: a fourth information display sub-module, configured to display a segment if the association information includes the segment in a region matching a previous click position; the device also comprises: the screen-on module is used for receiving a screen-on instruction and screening the segment corresponding to the screen-on instruction; and the first segment display module is used for acquiring the next segment of the segment, and displaying the next segment in the area matched with the last screen click position.
Optionally, the display module includes: a fifth information display sub-module, configured to display, if the association information includes a plurality of consecutive segments, a first segment in the association information in a region where a previous click position matches; the device also comprises: the screen-on module receives a screen-on instruction and screens a first segment corresponding to the screen-on instruction; and the second segment display module displays the next segment in the area matched with the last click position.
Optionally, the continuous text comprises at least one of the following types: song word class, poem class, table word class, hot spot class.
The embodiment of the invention also discloses a readable storage medium, which enables the electronic equipment to execute the recommendation method according to any one of the embodiments of the invention when the instructions in the storage medium are executed by the processor of the electronic equipment.
The embodiment of the invention also discloses an electronic device, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs comprise instructions for: acquiring screen operation information, wherein the screen operation information comprises screen information and screen click position information; receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information; if the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in the area matched with the last screen click position.
Optionally, the determining whether the user has the continuous input intention according to the on-screen operation information includes at least one of: judging whether a user has continuous input intention or not according to the screen information; and judging whether the user has continuous input intention or not according to the information of the clicking position of the upper screen.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: calculating an index number corresponding to the screen information, and acquiring attribute information corresponding to the screen information according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: matching the on-screen information with a set word stock, wherein the set word stock comprises a plurality of fragments, each fragment belongs to at least one section of continuous text, each fragment has adjacent fragments and continuous tags, and the continuous tags of the fragments in one section of continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
Optionally, the on-screen click position information includes a plurality of pieces, and the on-screen operation information further includes click time corresponding to each piece of on-screen click position information; judging whether the user has continuous input intention according to the on-screen click position information comprises the following steps: determining continuous clicking times in the same area within the set time according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention.
Optionally, the displaying the association information in the area matched with the last click position includes: if the area matched with the last click position is a cloud candidate bar, displaying the association information in the cloud candidate bar; and if the area matched with the last click position is a local candidate bar, displaying the association information in the local candidate bar.
Optionally, the displaying the association information in the area matched with the last click position includes: and determining candidate display positions matched with the last screen click position, and displaying the association information at the candidate display positions.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a fragment, displaying the fragment in the area matched with the last click position; also included are instructions for: receiving a screen-on instruction, and screen-on the segment corresponding to the screen-on instruction; and acquiring the next segment of the segment, and displaying the next segment in the area matched with the last click position.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a plurality of continuous fragments, displaying a first fragment in the association information in a region matched with the last click position; also included are instructions for: receiving a screen-on instruction, and screen-on a first segment corresponding to the screen-on instruction; and displaying the next fragment in the area matched with the last click position.
Optionally, the continuous text comprises at least one of the following types: song word class, poem class, table word class, hot spot class.
The embodiment of the invention has the following advantages:
In the embodiment of the invention, the information of the screen operation can be acquired, and the information of the screen operation can comprise the information of the screen operation and the information of the clicking position of the screen; furthermore, an association request can be sent to the server according to the on-screen information, so that the server returns corresponding association information; the subsequent association information corresponding to the on-screen information can be received, and after the association information is received, whether the user has continuous input intention or not is judged according to the on-screen operation information; when the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in a region matched with the last screen click position; therefore, when the user is determined to need to perform continuous input, the association information is displayed in the same area, so that the user can continuously screen in the same area in the process of inputting a continuous text, and the screen is not required to be switched back and forth in a plurality of areas, and the input efficiency is improved.
Drawings
FIG. 1 is a flow chart of the steps of one preferred method embodiment of the present invention;
FIG. 2 is a flow chart of steps of an alternative embodiment of a recommendation method of the present invention;
FIG. 3 is a block diagram of one embodiment of a recommender in accordance with the present invention;
FIG. 4 is a block diagram of an alternative embodiment of a recommender in accordance with the present invention;
FIG. 5 illustrates a block diagram of a structure for recommending electronic equipment, according to an exemplary embodiment;
fig. 6 is a schematic structural view of an electronic device for recommendation according to another exemplary embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
When determining that the user has continuous input intention, displaying association information in a region matched with the last click position of the user, and further enabling the user to continuously screen in the same region without switching among a plurality of regions, thereby improving input efficiency.
Referring to fig. 1, a flowchart illustrating steps of a preferred method embodiment of the present invention may specifically include the steps of:
step 102, acquiring screen operation information, wherein the screen operation information comprises screen information and screen clicking position information.
Step 104, receiving association information corresponding to the on-screen information, and judging whether the user has continuous input intention according to the on-screen operation information.
According to the embodiment of the invention, in the process of inputting by a user through the input method, candidates to be input can be selected through executing the screen operation, and further, when the user executes the screen operation, the input method can acquire screen operation information corresponding to the screen operation of the user. The on-screen operation information may include on-screen information and on-screen click position information, the on-screen information may include candidate items corresponding to the on-screen operation, and the on-screen click position information may include pixel point coordinates corresponding to the click position of the on-screen operation; of course, the information about the on-screen operation may also include other information related to the on-screen operation, such as click time, which is not limited by the embodiment of the present invention.
In the embodiment of the invention, after the input method acquires the on-screen operation information, an association request can be generated according to the on-screen information in the on-screen operation information, and then the association request is uploaded to the server so as to instruct the server to carry out association or prediction. After receiving the association request, the server can carry out association or prediction according to the on-screen information, determine association information, and then return the association information to the client. The client can receive association information corresponding to the on-screen information, and in order to improve the input efficiency of the user, whether the user has continuous input intention or not can be judged according to the on-screen operation information; for example, whether the user has a continuous input intention can be judged by judging whether the on-screen information belongs to a continuous text such as a certain lyric, poem, segment and the like; if the on-screen information belongs to a certain section of continuous text, the user can be determined to have continuous input intention, and if the on-screen information does not belong to a certain section of continuous text, the user can be determined to have no continuous input intention. And judging whether the user is continuously clicked or not according to the information of the screen click position, so as to judge whether the user has the continuous input intention, if the user is continuously clicked, the user can be determined to have the continuous input intention, and if the user is not continuously clicked, the user can be determined to not have the continuous input intention.
And 106, if the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in the area matched with the last screen click position.
If it is determined that the user has a continuous input intention, after receiving association information corresponding to the association request, determining a last screen click position (last screen click position) corresponding to a last screen operation executed by the user according to the acquired screen click position information, and displaying the association information in an area matched with the last screen click position of the user; for example, if the area with the last click position matching is the local candidate bar, the association information may be displayed in the local candidate bar, and if the area with the last click position matching is the cloud candidate bar, the association information may be displayed in the cloud candidate bar. And in the process of inputting a section of continuous text, a user can continuously screen in the same area without switching among a plurality of areas to screen, so that the input efficiency is improved.
Of course, if it is determined that the user does not have the continuous input intention, after receiving the association information corresponding to the association request, a display area corresponding to the association information may be determined according to a preset rule, and the association information may be displayed in the display area; such as showing local association information in a local candidate bar, and showing server association information in a cloud candidate bar that does not coincide with the local association information, etc.
In one example of the present invention, the screen operation information is acquired, including screen information such as "there are" and "green days on wine" including screen information corresponding to two screen operations "tomorrow's day" and screen position information (A1, B1) and (A2, B2) corresponding to two screen operations, respectively. Then, the association information corresponding to the screen information such as 'unknown Tianshangque' can be received, and whether the user has a continuous input intention or not is judged according to the screen operation information, for example, the screen information is determined to belong to the word 'Kangqu' and the user can be determined to have the continuous input intention; and then determining the last screen click position such as (A2, B2) according to the screen position information, and displaying the association information received from the server in the area matched with the last screen click position, for example, if the area corresponding to (A2, B2) is a cloud candidate bar, displaying the association information such as 'unknown Tianshangque' in the cloud candidate bar.
In one example of the present invention, the screen operation information is acquired, including screen information such as "listen to mother's words" and "let her injured" including screen information corresponding to two screen operations, and screen position information (A3, B3) and (A3, B3) corresponding to two screen operations, respectively. Then, the association information corresponding to the on-screen information such as 'want to grow up quickly to protect her' can be received, whether the user has continuous input intention is judged according to the on-screen operation information, and if the two clicking positions are the same, the user can be determined to be continuously clicked, and the user can be determined to have continuous input intention; and then determining the last screen click position (A3, B3) according to the screen position information, and displaying the association information received from the server in the area matched with the last screen click position, for example, the area corresponding to (A3, B3) is a local candidate bar, and displaying the association information in the local candidate bar, for example, the association information can be protected only by 'want to grow fast'.
In the embodiment of the invention, the information of the screen operation can be acquired, and the information of the screen operation can comprise the information of the screen operation and the information of the clicking position of the screen; furthermore, an association request can be sent to the server according to the on-screen information, so that the server returns corresponding association information; the subsequent association information corresponding to the on-screen information can be received, and after the association information is received, whether the user has continuous input intention or not is judged according to the on-screen operation information; when the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in a region matched with the last screen click position; therefore, when the user is determined to need to perform continuous input, the association information is displayed in the same area, so that the user can continuously screen in the same area in the process of inputting a continuous text, and the screen is not required to be switched back and forth in a plurality of areas, and the input efficiency is improved.
In another embodiment of the present invention, the step of determining whether the user has a continuous input intention may be further described, specifically as follows:
Referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of the recommendation method of the present invention may specifically include the steps of:
step 202, acquiring screen operation information, wherein the screen operation information comprises screen information, screen click position information and corresponding click time.
In the embodiment of the invention, the input method can acquire corresponding on-screen operation information when the on-screen operation is executed each time, and the on-screen operation information can comprise on-screen information, on-screen click position information and corresponding click time; in addition, other information such as the related information of the on-screen information, for example, opposite-end information, weather information, location information, etc. may also be acquired, which is not limited in the embodiment of the present invention. And then, an association request can be generated according to the on-screen information and the association information of the on-screen information and sent to the server, so that the accuracy of the server in determining the association information is improved.
And 204, receiving association information corresponding to the on-screen information.
In the embodiment of the invention, after receiving the association request, the server can associate according to the on-screen information and the association information of the on-screen information; in the association process, a continuous text corresponding to the on-screen information can be determined, a segment after the on-screen information is determined from the corresponding continuous text, and the segment is used as association information; for example, the screen information "bright moon light before bed" corresponds to the continuous text of "quiet night thinking", and the next sentence of "bright moon light before bed" can be determined to be "suspected to be ground frost", and then the "suspected to be ground frost" is used as the association information. Of course, after determining the continuous text corresponding to the on-screen information, determining a plurality of continuous fragments after the on-screen information from the corresponding continuous text, and taking the fragments as association information; for example, in the above example, it may be determined that all the texts after "bed front bright moon" are "suspicious to be frosted," the head is looking for bright moon, the head is low, and the head is thinking of hometown ", and then the three sentences are used as association information. The association information is then returned to the client, which may then receive the association information.
And 206, judging whether the user has continuous input intention according to the on-screen operation information.
In the embodiment of the present invention, the method for determining whether the user has the continuous input intention may include multiple ways, wherein one method for determining whether the user has the continuous input intention according to the on-screen operation information may be to determine whether the user has the continuous input intention according to the on-screen information.
In one example of the present invention, a method for judging whether the user has a continuous input intention according to the on-screen information may be that an index number corresponding to the on-screen information is calculated, and attribute information corresponding to the on-screen information is obtained according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text. For example, hash calculation can be performed on the on-screen information to obtain a hash value corresponding to the on-screen information, and then the hash value is used as an index number for indexing; and further, attribute information corresponding to the on-screen information, such as attribute information of word stock information to which the on-screen information belongs, such as type, and the like, can be obtained according to the index number. Then judging whether the on-screen information belongs to set content according to the attribute information; for example, judging whether the type of the word stock is a set type, if the type of the word stock is the set type, determining that the on-screen information belongs to set content; if the type of the word stock is not the setting type, the information on the screen can be determined not to belong to the setting content. Wherein the setting content may include a plurality of pieces of continuous text including at least one type of: a song part of speech, a poem part of speech, a table part of speech and a hot part of speech; the continuous text of the song word class can comprise lyrics of various songs such as rock class, popular class and the like, and certainly comprises corresponding words such as Beijing opera, yellow plum opera and the like, the continuous text of the poetry word class can comprise poetry and words, the continuous text of the station word class can comprise television lines, telephone lines, movie lines and the like, and the continuous text of the hot class can comprise segments, hot news, hot events and the like; the setting type may refer to a type of continuous text.
In another example of the present invention, a method for determining whether a user has a continuity input intention according to the on-screen information may be that the on-screen information is matched with a set word stock, where the set word stock includes a plurality of segments, each segment belongs to at least one continuous text, each segment has an adjacent segment and a continuity tag, and the continuity tags of the segments in the continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
The embodiment of the invention can build a set word stock in advance according to a plurality of sections of continuous texts, wherein a continuous label can be set for each section of continuous text, each text in the section of continuous text is used as a segment, then an association relation between any two adjacent segments is built, and the continuous label is added for each segment; and then, establishing a set word stock by adopting fragments with association relations and continuity labels in the multi-section continuous text. And further, after the on-screen information is acquired, the on-screen information can be matched with the fragments in the set word stock, and the fragments matched with the on-screen information are searched. When a segment matched with the on-screen information exists, judging whether the segment exists a next adjacent segment with the same continuity label; if the segment has a next adjacent segment with the same continuity tag, the user may be determined to have a continuity input intent, and if the segment does not have a next adjacent segment with the same continuity tag, the user may be determined to have no continuity input intent. When a plurality of fragments matched with the screen information exist, judging whether the last two fragments in the matched fragments have the same continuity label or not; if the last two fragments in the matched fragments have the same continuous label, then judging whether the last fragment has the next adjacent fragment with the same continuous label; if the last segment has a next adjacent segment with the same continuity tag, determining that the user has a continuity input intention, and if the last segment does not have a next adjacent segment with the same continuity tag, determining that the user does not have a continuity input intention. If the last two of the matched segments do not have the same continuity tag, it is determined that the user does not have a continuity input intent.
In an embodiment of the present invention, another way of determining whether the user has a continuous input intention according to the on-screen operation information may be that the determining whether the user has the continuous input intention according to the on-screen click position information includes: determining continuous clicking times in the same area within the set time according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention. Wherein, the setting time and the threshold value can be set according to the requirement, and the embodiment of the invention is not limited to this. Of course, an alternative way may be to determine the number of continuous clicks of the same area according to the information of the multiple on-screen click positions; if the number of times meets the threshold, determining that the user has continuous input intention. In another alternative manner, according to the multiple pieces of on-screen click position information and the corresponding click time, the time difference between the click time corresponding to the first piece of on-screen click position information and the click time corresponding to the last piece of on-screen click position information; and if the time difference meets the time length threshold, determining that the user has continuous input intention. The time length threshold can be set according to requirements.
Of course, in one example of the present invention, a method for determining whether the user has a continuous input intention according to the on-screen operation information may be a combination of the above two methods, for example, whether the user has a continuous input intention is determined according to the on-screen information, and when it is determined that the user does not have a continuous input intention, whether the user has a continuous input intention may be determined according to the on-screen click position information and the corresponding click time; and judging whether the user has the continuous input intention or not according to the on-screen click position information and the corresponding click time, and judging whether the user has the continuous input intention or not according to the on-screen information when the user is determined to have no continuous input intention. Of course, whether the user has the continuous input intention or not can be judged according to the on-screen information and whether the user has the continuous input intention or not can be judged according to the on-screen click position information and the corresponding click time; when both determinations determine that the user has a continuity input intent, it may be determined that the user has a continuity input intent.
And step 208, determining the last screen click position according to the screen click position information.
In the embodiment of the invention, when the intention of continuous input of the user is determined, the last screen click position can be determined according to the screen click position information and the corresponding click time.
And 210, judging whether the area matched with the last click position is a cloud candidate bar.
Then judging whether the area matched with the last click position is a cloud candidate bar or not; if the area with the last click position is the cloud candidate bar, step 212 is executed, and if the area with the last click position is the local bar, step 214 is executed.
Step 212, displaying the association information received from the server in the cloud candidate bar.
Step 214, displaying the association information received from the server in the local candidate bar.
In the embodiment of the invention, if the cloud candidate bar and the local candidate bar can both display a plurality of candidates, the candidate display position matched with the last click position on the screen can be determined, the association information is displayed at the candidate display position, and further, the user can realize continuous input by clicking the same position, so that the input efficiency is further improved.
And step 216, determining a display area according to a preset rule, and displaying the association information received from the server in the display area.
In the embodiment of the invention, when the intention of the user without continuous input is determined, a display area can be determined according to a preset rule, and the association information received from the server is displayed in the display area; wherein, the local association information can be displayed in the local candidate bar, the server association information which is not overlapped with the local association information can be displayed in the cloud candidate bar, and the like.
In another embodiment of the present invention, if the association information includes a segment after the on-screen information in the continuous text corresponding to the on-screen information, the segment may be displayed in a region matching the last on-screen click position; and if the continuous text corresponding to the on-screen information comprises a plurality of pieces, the displayed pieces are a plurality of pieces. The subsequent user can execute the screen-on operation from the candidate bar to select candidates to be input, the input method can receive a screen-on instruction corresponding to the screen-on operation, and screen the segment corresponding to the screen-on instruction; and acquiring the next segment of the segment, and displaying the association information in the area matched with the last click position to display the next segment. For example, an association request may be generated and uploaded according to the on-screen information and the segments, and then the server may return to the next segment corresponding to the on-screen segment, and so on.
Of course, if the association information includes a plurality of continuous segments after the on-screen information in the continuous text corresponding to the on-screen information, the first segment may be displayed in the region where the last on-screen click position matches; and if the continuous text corresponding to the on-screen information comprises a plurality of pieces, the first piece is displayed in a plurality. The subsequent user can execute the screen-on operation from the candidate bar to select candidates to be input, the input method can receive a screen-on instruction corresponding to the screen-on operation, and screen the segment corresponding to the screen-on instruction; and displaying the next fragment in the area matched with the last click position.
In the embodiment of the invention, the information of the screen operation can be acquired, and the information of the screen operation can comprise the information of the screen operation and the information of the clicking position of the screen; furthermore, an association request can be sent to the server according to the on-screen information, so that the server returns corresponding association information; the subsequent association information corresponding to the on-screen information can be received, and after the association information is received, whether the user has continuous input intention or not is judged according to the on-screen operation information; when the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in a region matched with the last screen click position; therefore, when the user is determined to need to perform continuous input, the association information is displayed in the same area, so that the user can continuously screen in the same area in the process of inputting a continuous text, and the screen is not required to be switched back and forth in a plurality of areas, and the input efficiency is improved.
Secondly, in the embodiment of the present invention, whether the user has a continuous input intention is determined according to the on-screen operation information, which may include at least one of determining whether the user has a continuous input intention according to the on-screen information, and determining whether the user has a continuous input intention according to the on-screen click position information; and further, the accuracy of judgment can be improved, and the input efficiency is further improved.
In the embodiment of the invention, the association information can comprise a plurality of continuous fragments, so that after a user screens one fragment, the next fragment can be continuously displayed without acquiring the next fragment from a server, and the input efficiency is further improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 3, a block diagram of an embodiment of a recommendation device of the present invention is shown, and may specifically include the following modules:
the acquiring module 302 is configured to acquire on-screen operation information, where the on-screen operation information includes on-screen information and on-screen click position information;
the judging module 304 is configured to receive association information corresponding to the on-screen information, and judge whether the user has a continuous input intention according to the on-screen operation information;
and the display module 306 is configured to determine a last on-screen click position according to the on-screen click position information if it is determined that the user has a continuous input intention, and display the association information in an area where the last on-screen click position matches.
Referring to fig. 4, a block diagram of an alternative embodiment of the recommender is shown.
In an alternative embodiment of the present invention, the determining module 304 includes:
the first intention judging submodule 3042 is used for judging whether the user has continuous input intention or not according to the on-screen information;
the second intention judging sub-module 3044 is configured to judge whether the user has a continuous input intention according to the on-screen click position information.
In an alternative embodiment of the present invention, the first intention judgment submodule 3042 includes:
A first content determining unit 30422, configured to calculate an index number corresponding to the on-screen information, and obtain attribute information corresponding to the on-screen information according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text.
In an alternative embodiment of the present invention, the first intention judgment submodule 3042 includes:
a second content determining unit 30416, configured to match the on-screen information with a set word stock, where the set word stock includes a plurality of segments, each segment belongs to at least one continuous text, each segment has an adjacent segment and a continuous tag, and the continuous tags of the segments in the continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
In an optional embodiment of the present invention, the on-screen click position information includes a plurality of pieces, and the input information further includes a click time corresponding to each piece of on-screen click position information;
The second intention judging sub-module 3044 is configured to determine the number of continuous clicks in the same area within a set time according to the information of the click positions on the multiple screens and the corresponding click times; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention.
In an alternative embodiment of the present invention, the display module 306 includes:
the first information display submodule 3062 is used for displaying the association information in the cloud candidate bar if the area matched with the last click position is the cloud candidate bar;
and the second information display sub-module 3064 is configured to display the association information in the local candidate bar if the area matched with the last click position is the local candidate bar.
In an alternative embodiment of the present invention, the display module 306 includes:
and a third information display sub-module 3066, configured to determine a candidate display position matched with the last click position, and display the association information at the candidate display position.
In an alternative embodiment of the present invention, the display module 306 includes:
a fourth information displaying sub-module 3068, configured to display a segment if the association information includes the segment in a region matching a previous click position;
The device also comprises:
the screen module 308 is configured to receive a screen instruction, and screen a segment corresponding to the screen instruction;
and the first segment display module 310 is configured to obtain a next segment of the segment, and display the next segment in the area with the matching position of the last click.
In an alternative embodiment of the present invention, the display module 306 includes:
a fifth information displaying sub-module 30610, configured to display, if the association information includes a plurality of consecutive segments, a first segment in the association information in a region where a previous click position matches;
the device also comprises:
the screen-on module 308 receives a screen-on instruction and screens a first segment corresponding to the screen-on instruction;
the second segment display module 312 displays the next segment in the region with the matching last click position.
In an alternative embodiment of the present invention, the continuous text includes at least one of the following types: song word class, poem class, table word class, hot spot class.
In the embodiment of the invention, the information of the screen operation can be acquired, and the information of the screen operation can comprise the information of the screen operation and the information of the clicking position of the screen; furthermore, an association request can be sent to the server according to the on-screen information, so that the server returns corresponding association information; the subsequent association information corresponding to the on-screen information can be received, and after the association information is received, whether the user has continuous input intention or not is judged according to the on-screen operation information; when the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in a region matched with the last screen click position; therefore, when the user is determined to need to perform continuous input, the association information is displayed in the same area, so that the user can continuously screen in the same area in the process of inputting a continuous text, and the screen is not required to be switched back and forth in a plurality of areas, and the input efficiency is improved.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
FIG. 5 is a block diagram illustrating a structure of an electronic device 500 for recommendation, according to an example embodiment. For example, electronic device 500 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, an electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
Memory 504 is configured to store various types of data to support operations at device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500.
The multimedia component 508 includes a screen between the electronic device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. When the electronic device 500 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the electronic device 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of components, such as a display and keypad of the electronic device 500, the sensor assembly 514 may also detect a change in position of the electronic device 500 or a component of the electronic device 500, the presence or absence of a user's contact with the electronic device 500, the orientation or acceleration/deceleration of the electronic device 500, and a change in temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices, either wired or wireless. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication part 514 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 514 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of electronic device 500 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a recommendation method, the method comprising: acquiring screen operation information, wherein the screen operation information comprises screen information and screen click position information; receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information; if the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in the area matched with the last screen click position.
Optionally, the determining whether the user has the continuous input intention according to the on-screen operation information includes at least one of: judging whether a user has continuous input intention or not according to the screen information; and judging whether the user has continuous input intention or not according to the information of the clicking position of the upper screen.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: calculating an index number corresponding to the screen information, and acquiring attribute information corresponding to the screen information according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: matching the on-screen information with a set word stock, wherein the set word stock comprises a plurality of fragments, each fragment belongs to at least one section of continuous text, each fragment has adjacent fragments and continuous tags, and the continuous tags of the fragments in one section of continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
Optionally, the on-screen click position information includes a plurality of pieces, and the on-screen operation information further includes click time corresponding to each piece of on-screen click position information; judging whether the user has continuous input intention according to the on-screen click position information comprises the following steps: determining continuous clicking times in the same area within the set time according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention.
Optionally, the displaying the association information in the area matched with the last click position includes: if the area matched with the last click position is a cloud candidate bar, displaying the association information in the cloud candidate bar; and if the area matched with the last click position is a local candidate bar, displaying the association information in the local candidate bar.
Optionally, the displaying the association information in the area matched with the last click position includes: and determining candidate display positions matched with the last screen click position, and displaying the association information at the candidate display positions.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a fragment, displaying the fragment in the area matched with the last click position; the method further comprises the following steps: receiving a screen-on instruction, and screen-on the segment corresponding to the screen-on instruction; and acquiring the next segment of the segment, and displaying the next segment in the area matched with the last click position.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a plurality of continuous fragments, displaying a first fragment in the association information in a region matched with the last click position; the method further comprises the following steps: receiving a screen-on instruction, and screen-on a first segment corresponding to the screen-on instruction; and displaying the next fragment in the area matched with the last click position.
Optionally, the continuous text comprises at least one of the following types: song word class, poem class, table word class, hot spot class.
Fig. 6 is a schematic structural diagram of an electronic device 600 for recommendation according to another exemplary embodiment of the present invention. The electronic device 600 may be a server that may vary widely in configuration or performance and may include one or more central processing units (central processing units, CPU) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) that store applications 642 or data 644. Wherein memory 632 and storage medium 630 may be transitory or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on a server.
The server(s) may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input/output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641 such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for: acquiring screen operation information, wherein the screen operation information comprises screen information and screen click position information; receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information; if the user is determined to have continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in the area matched with the last screen click position.
Optionally, the determining whether the user has the continuous input intention according to the on-screen operation information includes at least one of: judging whether a user has continuous input intention or not according to the screen information; and judging whether the user has continuous input intention or not according to the information of the clicking position of the upper screen.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: calculating an index number corresponding to the screen information, and acquiring attribute information corresponding to the screen information according to the index number; if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention; wherein the setting content comprises a plurality of pieces of continuous text.
Optionally, the determining whether the user has the continuous input intention according to the on-screen information includes: matching the on-screen information with a set word stock, wherein the set word stock comprises a plurality of fragments, each fragment belongs to at least one section of continuous text, each fragment has adjacent fragments and continuous tags, and the continuous tags of the fragments in one section of continuous text are the same; if the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention; wherein the next adjacent segment is identical to the continuity tag of the matched segment.
Optionally, the on-screen click position information includes a plurality of pieces, and the on-screen operation information further includes click time corresponding to each piece of on-screen click position information; judging whether the user has continuous input intention according to the on-screen click position information comprises the following steps: determining continuous clicking times in the same area within the set time according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time; and if the continuous clicking times meet the threshold value, determining that the user has continuous input intention.
Optionally, the displaying the association information in the area matched with the last click position includes: if the area matched with the last click position is a cloud candidate bar, displaying the association information in the cloud candidate bar; and if the area matched with the last click position is a local candidate bar, displaying the association information in the local candidate bar.
Optionally, the displaying the association information in the area matched with the last click position includes: and determining candidate display positions matched with the last screen click position, and displaying the association information at the candidate display positions.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a fragment, displaying the fragment in the area matched with the last click position; also included are instructions for: receiving a screen-on instruction, and screen-on the segment corresponding to the screen-on instruction; and acquiring the next segment of the segment, and displaying the next segment in the area matched with the last click position.
Optionally, the displaying the association information in the area matched with the last click position includes: if the association information comprises a plurality of continuous fragments, displaying a first fragment in the association information in a region matched with the last click position; also included are instructions for: receiving a screen-on instruction, and screen-on a first segment corresponding to the screen-on instruction; and displaying the next fragment in the area matched with the last click position.
Optionally, the continuous text comprises at least one of the following types: song word class, poem class, table word class, hot spot class.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of a recommendation method, a recommendation device and an electronic device provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (7)
1. A recommendation method, comprising:
acquiring screen operation information, wherein the screen operation information comprises screen information and screen clicking position information, the screen information comprises candidate items corresponding to screen operation, and the screen clicking position information comprises pixel point coordinates corresponding to clicking positions of the screen operation;
receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information;
if the user is determined to have the continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in a region matched with the last screen click position, wherein the last screen click position refers to the screen click position corresponding to the last screen operation executed by the user;
the step of judging whether the user has a continuous input intention according to the on-screen operation information comprises at least one of the following steps:
judging whether a user has continuous input intention or not according to the screen information; when the on-screen information belongs to a section of continuous text, determining that the user has continuous input intention;
judging whether the user has continuous input intention or not according to the on-screen click position information; the on-screen clicking position information comprises a plurality of pieces of on-screen clicking position information, and the on-screen operation information also comprises clicking time corresponding to each piece of on-screen clicking position information; if the continuous clicking times in the same area in the determined set time meet the threshold according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time, determining that the user has continuous input intention;
The displaying the association information in the area matched with the last click position comprises the following steps:
if the area matched with the last click position is a cloud candidate bar, displaying the association information in the cloud candidate bar;
and if the area matched with the last click position is a local candidate bar, displaying the association information in the local candidate bar.
2. The method of claim 1, wherein determining whether the user has a continuous input intention based on the on-screen information, further comprises:
calculating an index number corresponding to the screen information, and acquiring attribute information corresponding to the screen information according to the index number;
if the screen information is determined to belong to the set content according to the attribute information, determining that the user has a continuous input intention;
wherein the setting content comprises a plurality of pieces of continuous text.
3. The method of claim 1, wherein determining whether the user has a continuous input intention based on the on-screen information, further comprises:
matching the on-screen information with a set word stock, wherein the set word stock comprises a plurality of fragments, each fragment belongs to at least one section of continuous text, each fragment has adjacent fragments and continuous tags, and the continuous tags of the fragments in one section of continuous text are the same;
If the segment matched with the on-screen information exists and the matched segment has the next adjacent segment, determining that the user has a continuous input intention;
wherein the next adjacent segment is identical to the continuity tag of the matched segment.
4. The method of claim 1, wherein the area matching the last on-screen click location reveals the association information, further comprising:
and determining candidate display positions matched with the last screen click position, and displaying the association information at the candidate display positions.
5. A recommendation device, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring screen operation information, the screen operation information comprises screen information and screen clicking position information, the screen information comprises candidates corresponding to the screen operation, and the screen clicking position information comprises pixel point coordinates corresponding to the clicking position of the screen operation;
the judging module is used for receiving the association information corresponding to the on-screen information and judging whether the user has continuous input intention or not according to the on-screen operation information;
the display module is used for determining the last screen click position according to the screen click position information if the user has the continuous input intention, displaying the association information in the area matched with the last screen click position, wherein the last screen click position refers to the screen click position corresponding to the last screen operation executed by the user;
Wherein, the judging module includes: the first intention judging submodule is used for judging whether the user has continuous input intention or not according to the on-screen information; when the on-screen information belongs to a section of continuous text, determining that the user has continuous input intention;
the second intention judging sub-module is used for judging whether the user has continuous input intention or not according to the on-screen click position information; the on-screen clicking position information comprises a plurality of pieces of on-screen clicking position information, and the on-screen operation information also comprises clicking time corresponding to each piece of on-screen clicking position information; the second intention judging sub-module is used for determining that the user has continuous input intention if the continuous click times in the same area in the determined set time meet the threshold value according to the information of the click positions of the plurality of upper screens and the corresponding click time;
wherein, the show module includes:
the first information display sub-module is used for displaying the association information in the cloud candidate bar if the area matched with the last click position is the cloud candidate bar; and the second information display sub-module is used for displaying the association information in the local candidate bar if the area matched with the last click position is the local candidate bar.
6. A readable storage medium, characterized in that instructions in said storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the recommendation method according to any of the method claims 1-4.
7. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring screen operation information, wherein the screen operation information comprises screen information and screen clicking position information, the screen information comprises candidate items corresponding to screen operation, and the screen clicking position information comprises pixel point coordinates corresponding to clicking positions of the screen operation;
receiving association information corresponding to the screen information, and judging whether a user has continuous input intention or not according to the screen operation information;
if the user is determined to have the continuous input intention, determining the last screen click position according to the screen click position information, and displaying the association information in a region matched with the last screen click position, wherein the last screen click position refers to the screen click position corresponding to the last screen operation executed by the user;
The step of judging whether the user has a continuous input intention according to the on-screen operation information comprises at least one of the following steps:
judging whether a user has continuous input intention or not according to the screen information; when the on-screen information belongs to a section of continuous text, determining that the user has continuous input intention;
judging whether the user has continuous input intention or not according to the on-screen click position information; the on-screen clicking position information comprises a plurality of pieces of on-screen clicking position information, and the on-screen operation information also comprises clicking time corresponding to each piece of on-screen clicking position information; if the continuous clicking times in the same area in the determined set time meet the threshold according to the information of the clicking positions of the plurality of upper screens and the corresponding clicking time, determining that the user has continuous input intention;
the displaying the association information in the area matched with the last click position comprises the following steps:
if the area matched with the last click position is a cloud candidate bar, displaying the association information in the cloud candidate bar;
and if the area matched with the last click position is a local candidate bar, displaying the association information in the local candidate bar.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910027932.8A CN111435270B (en) | 2019-01-11 | 2019-01-11 | Recommendation method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910027932.8A CN111435270B (en) | 2019-01-11 | 2019-01-11 | Recommendation method and device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111435270A CN111435270A (en) | 2020-07-21 |
| CN111435270B true CN111435270B (en) | 2024-03-01 |
Family
ID=71579782
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910027932.8A Active CN111435270B (en) | 2019-01-11 | 2019-01-11 | Recommendation method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111435270B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112068711B (en) * | 2020-08-25 | 2024-12-03 | 北京搜狗科技发展有限公司 | Input method information recommendation method, device and electronic device |
| CN114461081B (en) * | 2020-11-10 | 2024-10-29 | 北京搜狗科技发展有限公司 | Information display method and device and electronic equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104268166A (en) * | 2014-09-09 | 2015-01-07 | 北京搜狗科技发展有限公司 | Input method, device and electronic device |
| WO2016107344A1 (en) * | 2014-12-30 | 2016-07-07 | 北京奇虎科技有限公司 | Method and device for screening on-screen candidate items of input method |
| CN107291362A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of data inputting method, device and intelligent terminal |
| CN108803891A (en) * | 2017-04-28 | 2018-11-13 | 北京搜狗科技发展有限公司 | A kind of information displaying method, device, electronic equipment and storage medium |
| CN109002184A (en) * | 2017-06-07 | 2018-12-14 | 北京搜狗科技发展有限公司 | A kind of association method and device of input method candidate word |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104298429B (en) * | 2014-09-25 | 2018-05-04 | 北京搜狗科技发展有限公司 | A kind of information displaying method and input method system based on input |
-
2019
- 2019-01-11 CN CN201910027932.8A patent/CN111435270B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104268166A (en) * | 2014-09-09 | 2015-01-07 | 北京搜狗科技发展有限公司 | Input method, device and electronic device |
| WO2016107344A1 (en) * | 2014-12-30 | 2016-07-07 | 北京奇虎科技有限公司 | Method and device for screening on-screen candidate items of input method |
| CN107291362A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of data inputting method, device and intelligent terminal |
| CN108803891A (en) * | 2017-04-28 | 2018-11-13 | 北京搜狗科技发展有限公司 | A kind of information displaying method, device, electronic equipment and storage medium |
| CN109002184A (en) * | 2017-06-07 | 2018-12-14 | 北京搜狗科技发展有限公司 | A kind of association method and device of input method candidate word |
Non-Patent Citations (3)
| Title |
|---|
| QUAN FANG 等.STCAPLRS: A Spatial-Temporal Context-Aware Personalized Location Recommendation System.《ACM Transactions on Intelligent Systems and Technology》.2016,第7卷(第4期),全文. * |
| 基于朴素贝叶斯点击预测的查询推荐方法;石雁 等;《计算机应用与软件》(第10期);全文 * |
| 基于用户签到和地理属性的个性化位置推荐算法研究;蔡海尼 等;《计算机科学》(第12期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111435270A (en) | 2020-07-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10296201B2 (en) | Method and apparatus for text selection | |
| US20180121040A1 (en) | Method and device for managing notification messages | |
| CN107315487B (en) | Input processing method and device and electronic equipment | |
| CN107423296B (en) | Searching method and device for searching | |
| CN108664663A (en) | Recommendation information display methods, device and storage medium | |
| CN109799916B (en) | Candidate item association method and device | |
| CN109144285B (en) | Input method and device | |
| JP6456403B2 (en) | Resource search method, apparatus, program, and recording medium | |
| CN109918001A (en) | Interface display method, device and storage medium | |
| CN105376412A (en) | Information processing method and device | |
| CN111198620A (en) | A method, apparatus and device for presenting input candidates | |
| CN110110207B (en) | Information recommendation method and device and electronic equipment | |
| CN111435270B (en) | Recommendation method and device and electronic equipment | |
| CN110309431B (en) | Data processing method, device and electronic equipment | |
| CN106993085A (en) | Positioning result display methods and device, electronic equipment | |
| CN109725736B (en) | Candidate sorting method and device and electronic equipment | |
| CN105487746A (en) | Search result displaying method and device | |
| CN112329480B (en) | A method, device and electronic device for adjusting region | |
| CN108733397A (en) | More new state determines method, equipment and storage medium | |
| CN112015281B (en) | Cloud association method and related device | |
| CN110399566B (en) | Position searching method and device and electronic equipment | |
| CN111796690B (en) | Data processing method and device and electronic equipment | |
| CN104933107A (en) | Searching method of push message and searching device of push message | |
| CN108108356A (en) | A kind of character translation method, apparatus and equipment | |
| CN108874172B (en) | Input method and device |
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 |