CN105320707B - Hot word prompting method and device based on instant messaging - Google Patents

Hot word prompting method and device based on instant messaging Download PDF

Info

Publication number
CN105320707B
CN105320707B CN201410381738.7A CN201410381738A CN105320707B CN 105320707 B CN105320707 B CN 105320707B CN 201410381738 A CN201410381738 A CN 201410381738A CN 105320707 B CN105320707 B CN 105320707B
Authority
CN
China
Prior art keywords
message
displayed
instant messaging
marked
hotword
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
Application number
CN201410381738.7A
Other languages
Chinese (zh)
Other versions
CN105320707A (en
Inventor
凌星
梁传明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410381738.7A priority Critical patent/CN105320707B/en
Publication of CN105320707A publication Critical patent/CN105320707A/en
Application granted granted Critical
Publication of CN105320707B publication Critical patent/CN105320707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a hot word prompting method based on instant messaging, which comprises the following steps: when detecting that a message refreshing instruction is triggered, the user terminal loads a message list; determining a target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on a current screen, the number of all hot words marked with the preset mark on the current screen is less than or equal to a preset numerical value; marking the target hot word with a preset prompt mark, and displaying the instant communication message to be displayed, which contains the target hot word marked with the preset prompt mark, on a current screen. The invention also provides a hot word prompting device based on instant messaging, and the hot word prompting method and the hot word prompting device based on instant messaging can improve the processing speed of instant messaging messages and save the time for processing the instant messaging messages by users.

Description

Hot word prompting method and device based on instant messaging
Technical Field
The invention relates to the technical field of computers, in particular to a hot word prompting method and device based on instant messaging.
Background
With the development of the internet, the chat and communication of the internet through the instant messaging client becomes a habit of more and more users, and hot words such as professional nouns and popular words often appear in instant messaging messages in the chat and communication process. The hot words are hot words, reflect the problems and things which are generally concerned by people at present, have epoch characteristics, and reflect the hot topics in one period.
In the prior art, when an instant messaging message is displayed in a chat window, more convenience can be provided for a user by making a special mark for a hotword, and the user can obtain a professional hotword through the special mark to provide explanation or provide a jump link for a commercial hotword.
However, in the above prior art, with the increase of the number of hotwords in the hotword bank, the hotwords marked specially on the screen of the chat reduces the efficiency of processing the instant messaging message, brings great interference to the user, increases the probability of misoperation, and further reduces the data processing efficiency.
Disclosure of Invention
In view of this, the present invention provides a hotword prompt method and device based on instant messaging, which can improve the processing speed of instant messaging messages and save the time for users to process instant messaging messages by reducing the number of hotwords marked with preset marks displayed on the current screen.
The embodiment of the invention provides a hot word prompting method based on instant messaging, which comprises the following steps: when detecting that a message refreshing instruction is triggered, the user terminal loads a message list; determining a target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on a current screen, the number of all hot words marked with the preset marks on the current screen is less than or equal to a preset numerical value; marking the target hot words with preset prompt marks, and displaying the instant communication messages to be displayed, which contain the target hot words marked with the preset prompt marks, on a current screen.
The embodiment of the invention provides a hotword prompt device based on instant messaging, which runs at a user terminal and comprises: the loading module is used for loading the message list when detecting that the message refreshing instruction is triggered; the determining module is used for determining a target hotword in the instant messaging message to be displayed according to the message list loaded by the loading module and the marked hotword list, so that when the instant messaging message to be displayed is displayed on a current screen, the number of all hotwords marked with the preset identification on the current screen is smaller than or equal to a preset numerical value; and the marking module is used for marking the target hot words determined by the determining module with preset prompt marks and displaying the instant messaging messages to be displayed, which contain the target hot words marked with the preset prompt marks, on a current screen.
According to the hot word prompting method and device based on instant messaging, provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all hot words marked with the preset marks and displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is an application environment diagram of a hotword prompt method and apparatus based on instant messaging according to an embodiment of the present invention;
fig. 2 shows a block diagram of a structure of a user terminal;
fig. 3 is a flowchart of a hotword prompt method based on instant messaging according to a first embodiment of the present invention;
fig. 4 is a flowchart of a hotword prompt method based on instant messaging according to a second embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a comparison of contents displayed on a displayable region of a current screen before and after a message is refreshed in a hotword prompt method based on instant messaging according to a second embodiment of the present invention;
fig. 6 is a flowchart of a hotword prompt method based on instant messaging according to a third embodiment of the present invention;
fig. 7 is a flowchart of a hotword prompt method based on instant messaging according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a hotword prompt device based on instant messaging according to a fifth embodiment of the present invention;
FIG. 9 is a schematic diagram of a storage environment of the apparatus of FIG. 8;
fig. 10 is a schematic structural diagram of a hotword prompt device based on instant messaging according to a sixth embodiment of the present invention.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be made with reference to the accompanying drawings and preferred embodiments.
Fig. 1 is an application environment diagram of a hotword prompt method and device based on instant messaging according to an embodiment of the present invention. The hot word prompt method and device based on instant messaging provided by the embodiment of the invention can be applied to the environment shown in figure 1, and can realize hot word prompt based on instant messaging. As shown in fig. 1, the user terminals 100 and 200 and the server 300 are located in a wired or wireless network, through which the user terminals 100 and 200 and the server 300 perform data interaction.
The server 300 is configured to forward the instant messaging message sent by the user terminal 100 to the user terminal 200, and forward the instant messaging message sent by the user terminal 200 to the user terminal 100.
When the user terminal 100 or the user terminal 200 detects that the message refresh command is triggered, loading a message list; determining a target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on a screen, all the hot words marked with the preset mark on the screen are less than or equal to a preset numerical value; marking the target hot word with a preset prompt mark, and displaying the instant communication message to be displayed, which contains the target hot word marked with the preset prompt mark, on a current screen.
The message refresh command may be triggered by receiving an instant message forwarded by the server 300, receiving an instant message input by a user, and detecting an operation of the user to view more messages.
The user terminal 100 may include: a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compress standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compress standard Audio Layer 4), a laptop, a vehicle-mounted computer, a wearable device, a desktop computer, a set-top box, a smart television, an all-in-one machine, etc. with an instant messaging function.
Fig. 2 shows a block diagram of a user terminal. As shown in fig. 2, the user terminal 100 includes a memory 102, a memory controller 104, one or more processors 106 (only one shown), a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 120. These components communicate with each other via one or more communication buses/signal lines 122.
It is to be understood that the structure shown in fig. 2 is merely illustrative, and the user terminal 100 may also include more or fewer components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The memory 102 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for hot word prompt based on instant messaging in the embodiments of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the above-mentioned method for hot word prompt based on instant messaging.
The memory 102 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 102 may further include memory located remotely from the processor 106, which may be connected to the user terminal 100 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 102 by the processor 106, and possibly other components, may be under the control of the memory controller 104.
The processor 106 executes various software, instructions within the memory 102 to perform various functions of the user terminal 100 as well as data processing.
Peripheral interface 108 is used to couple various external devices to the CPU and memory 102.
In some embodiments, the memory controller 104, the processor 106, and the peripheral interface 108 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 110 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 110 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., ieee802.11a, ieee802.11b, ieee802.11g and/or ieee802.11n), Voice over internet protocol (VoIP), Worldwide Interoperability Access (internet mail), Wi-Max, short-time messaging (wimax), and other protocols for short-time messaging, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The positioning module 112 is used for acquiring current position information of the user terminal 100. Examples of the positioning module 112 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 114 is used to take a picture or video. The pictures or videos taken may be stored in the memory 102 and transmitted through the radio frequency module 110.
Audio module 116 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 108, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 108 for further processing. The audio data may be retrieved from the memory 102 or through the radio frequency module 110. In addition, the audio data may also be stored in the memory 102 or transmitted through the radio frequency module 110. In some examples, the audio module 116 may also include an earphone jack for providing an audio interface to a headset or other device.
The screen 118 provides an output interface between the user terminal 100 and the user that displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. It will be appreciated that the screen 118 may also provide both an output and input interface between the user terminal 100 and the user. In particular, in addition to displaying video output to users, the screen 118 also receives user input, such as user taps, swipes, and other gesture operations, so that user interface objects respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of the display unit of the screen 118 include, but are not limited to, a liquid crystal display or a light emitting polymer display.
The key module 120 also provides an interface for a user to input to the user terminal 100, and the user can press different keys to cause the user terminal 100 to perform different functions.
First embodiment
Referring to fig. 3, fig. 3 is a flowchart illustrating a hotword prompt method based on instant messaging according to a first embodiment of the present invention. The embodiment can be applied to the application environment shown in fig. 1, and the hotword prompt based on instant messaging is realized through the user terminal 100 shown in fig. 1. As shown in fig. 3, the hotword prompt method based on instant messaging provided by this embodiment includes the following steps:
step S11, when detecting that the message refresh command is triggered, the user terminal loads the message list;
in this embodiment, the user terminal 100 is pre-configured with an instant messaging client program, and through the instant messaging client program, the user terminal 100 can receive an instant messaging message input by a user on an interactive interface of the instant messaging client, and also can receive an instant messaging message forwarded by the server 300 from the user terminal 200 and display the instant messaging message to the user.
The message refresh instruction may be used to refresh the instant messaging message displayed on the displayable region of the current screen, and specifically, the message refresh instruction may be triggered by receiving an instant messaging message input by a local user or receiving an instant messaging message sent by the server 300; or by detecting the operation of viewing more messages performed by the user at the interactive interface of the instant messaging client program.
The message list may record information of all instant messaging messages currently received by the user terminal 100, including: the identifier ID, content, sender identifier ID, and time of receipt of each instant message currently received and historically received, entered by the local user, or sent by the server 300, etc. When detecting that the message refresh command is triggered, the user terminal 100 acquires the message list and loads the content recorded in the message list. Further, to increase the loading speed, the user terminal 100 may load only a preset number of recently received instant messaging messages in the message list.
Step S12, according to the message list and the marked hot word list, determining the target hot word in the instant communication message to be displayed, so that when the instant communication message to be displayed is displayed on the current screen, the number of all the hot words marked with the preset mark on the current screen is less than or equal to the preset value;
specifically, the hotword refers to a popular word or popular phrase. The marked hot words refer to the hot words marked with preset prompt marks and displayed on the displayable area of the current screen.
In this embodiment, the information of the marked hotword marked with the preset prompt identifier and displayed on the displayable region of the current screen may be recorded in the marked hotword list, and includes: the identifier ID, the number of the marked hot words and the row information of the marked hot words corresponding to the displayable area of the current screen. The representation form of the preset prompt identifier can be customized, and specifically includes: underlined, emphasized, italicized, or other representation sufficient to highlight the marked hotword.
The user terminal 100 may first acquire a display rule of the current screen for the instant messaging message, for example: the length and width of the displayable area of the current screen, the length and width of a preset display font, the line spacing between each line of displayed instant messaging messages and the like; then, according to the display rule, the instant messaging message displayed on the current screen and the message list, determining the instant messaging message to be displayed on the current screen after the message is refreshed; and determining a target hotword in the instant messaging message to be displayed according to the marked hotword list, so that when the instant messaging message to be displayed is displayed on a current screen, all hotwords marked with the preset identification on the current screen are smaller than or equal to a preset numerical value.
Step S13, mark the target hotword with a preset prompt identifier, and display the instant messaging message to be displayed containing the target hotword marked with the preset prompt identifier on the current screen.
Specifically, the user terminal 100 may first mark the determined target hotword with an underline, where the underline may further include one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word; and then, rendering the instant communication message to be displayed, which contains the target hot word marked with the preset prompt mark, on a displayable area of the current screen for displaying to the user.
According to the hot word prompting method based on instant messaging provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset marks displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
Second embodiment
Referring to fig. 4, fig. 4 is a flowchart illustrating a hotword prompt method based on instant messaging according to a second embodiment of the present invention. The embodiment can be applied to the application environment shown in fig. 1, and the hotword prompt based on instant messaging is realized through the user terminal 100 shown in fig. 1. As shown in fig. 4, the hotword prompt method based on instant messaging provided by this embodiment includes the following steps:
step S21, when receiving the instant communication message sent by the server or receiving the instant communication message input by the user, determining that the message refresh instruction is triggered, and the user terminal loads the message list;
in this embodiment, the user terminal 100 is pre-configured with an instant messaging client program, and through the instant messaging client program, the user terminal 100 can receive an instant messaging message input by a user on an interactive interface of the instant messaging client, and also can receive an instant messaging message forwarded by the server 300 from the user terminal 200 and display the instant messaging message to the user.
The message refresh command can be used to refresh an instant messaging message displayed on a displayable region of the current screen. When detecting that an instant communication message sent by the server 300 or an instant communication message input by a local user at an interactive interface of the instant communication client is received, the user terminal 100 determines that the message refresh command is triggered.
The message list may record information of all instant messaging messages currently received by the user terminal 100, including: the identifier ID, content, sender identifier ID, and time of receipt of each instant message currently received and historically received, entered by the local user, or sent by the server 300, etc. When detecting that the message refresh command is triggered, the user terminal 100 acquires the message list and loads the content recorded in the message list. Further, to increase the loading speed, the user terminal 100 may load only a preset number of recently received instant messaging messages in the message list.
Step S22, obtaining the display rule of the current screen to the instant communication message from the system;
in this embodiment, the display rule may include: the length and width of the displayable area of the current screen, the length and width of the preset display font, the line spacing between each line of instant messaging messages displayed, and the like.
Step S23, according to the display rule and each instant communication message in the message list, determining each displayed instant communication message and instant communication message to be displayed which are displayed on the current screen after being refreshed;
specifically, the user terminal 100 may determine, according to the length and width of the displayable region of the current screen, the length and width of the preset display font, the display rules such as the line spacing between each line of the displayed instant messaging messages, and the number of characters of each instant messaging message in the message list, and according to the received time sequence, the instant messaging message to be displayed on the current screen after being refreshed. The instant messaging messages to be displayed on the current screen after refreshing include: and refreshing each displayed instant communication message and the instant communication message to be displayed on the current screen. Wherein the instant message to be displayed is the newly received instant message. Then, the user terminal 100 determines, according to the instant communication message displayed on the current screen after the refresh, the displayed instant communication messages from the instant communication messages to be displayed on the current screen after the refresh, that is, the portions of the instant communication messages to be displayed on the current screen after the refresh, except for the newly received instant communication message and the whole or part of the instant communication message to be scrolled out of the current screen. It will be appreciated that an instant message may be displayed in a single line or in multiple lines depending on the number of characters included in each instant message and the display rules.
For example: assume that the message list includes 100 instant messaging messages arranged according to the receiving time sequence, wherein the last instant messaging message is a newly received instant messaging message. The 2 nd to 10 th instant messaging messages in the list of messages are currently displayed on the current screen. Wherein the 10 th last instant message is divided into 2 rows for display. At this time, according to the length and width of the displayable area of the current screen, the length and width of the preset display font, the display rules such as the line spacing between each displayed line of instant messaging messages and the number of characters of each instant messaging message in the message list, and the sequence of the receiving time, it can be determined that in order to display the 1 st last instant messaging message, the first line content of the 10 th last instant messaging message will scroll out of the current screen after the message is refreshed, so that the instant messaging messages to be displayed on the current screen after the refreshing are the 1 st to 9 last instant messaging messages in the message list and the second line content of the 10 th last instant messaging message. The content of the second row of the last 2 to 9 and the last 10 instant messages is each displayed instant message displayed on the current screen after being refreshed, and the last 1 instant message information is an instant message to be displayed on the current screen after being refreshed.
Step S24, in the marked hot word list, inquiring the information of the marked hot words in each displayed instant communication message displayed on the current screen after refreshing;
specifically, the hotword refers to a popular word or popular phrase. The marked hot words refer to the hot words marked with preset prompt marks and displayed on the displayable area of the current screen.
In this embodiment, the information of the marked hotword marked with the preset prompt identifier and displayed on the displayable region of the current screen may be recorded in the marked hotword list, and includes: the identifier ID, the number of the marked hot words and the row information of the marked hot words corresponding to the displayable area of the current screen. The representation form of the preset prompt identifier can be customized, and specifically includes: underlined, emphasized, italicized, or other representation sufficient to highlight the marked hotword.
The user terminal 100 queries the marked hotword list, and obtains the information of the marked hotword in each displayed instant messaging message displayed on the current screen after refreshing, that is, the information of the marked hotword in the instant messaging message displayed on the current screen before and after refreshing. Still taking the example in step S23 as an example, assume that the displayed instant messaging messages displayed on the current screen after the refresh are: and querying the marked hot word list according to the row information of the displayable area, corresponding to each displayed instant communication message, on the current screen, and acquiring the identifier ID of the marked hot word corresponding to the row information, wherein the second row content of the 2 nd to 9 th instant communication messages and the 10 th instant communication messages in the message list are the second row content of the immediately last instant communication message. The hot word corresponding to the information identifier ID of the marked hot word, that is, the marked hot word in each displayed instant messaging message displayed on the current screen after refreshing.
Step S25, if the marked hot word is less than the preset value, selecting a hot word different from the marked hot word as a target hot word from the hot words in the instant messaging message to be displayed, wherein the sum of the target hot word and the marked hot word is less than or equal to the preset value;
specifically, the user terminal 100 counts the number of marked hotwords in each displayed instant messaging message displayed on the current screen after the refresh is determined; when the number of the marked hot words is less than a preset numerical value, determining all hot words and identifier IDs thereof in the instant messaging message to be displayed according to a preset hot word library; according to the identifier ID of the marked hotword in each displayed instant message displayed on the current screen after the refresh obtained in step S24, a hotword different from the marked hotword is selected as a target hotword from the hotwords in the instant message to be displayed, and the sum of the number of the target hotword and the number of the marked hotword is less than or equal to the preset numerical value. Preferably, the preset value is 3.
Further, the target hotword in each instant communication message to be displayed does not exceed one.
Step S26, marking the target hotword with underline, and displaying the instant messaging message to be displayed containing the target hotword marked with the underline on the current screen;
specifically, the underline may include one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word.
The user terminal 100 underlines a target hotword in the instant messaging message to be displayed, and then renders the instant messaging message to be displayed containing the underlined target hotword on a displayable area of a current screen for display to the user. Meanwhile, the user terminal 100 renders the displayed instant messaging messages in the displayable region together, and keeps the marking state of the marked hotword in the displayed instant messaging messages unchanged. The contents displayed on the displayable region of the current screen before and after the refresh may be as shown in fig. 5.
Step S27, emptying the marked hotword list, and recording all hotwords marked with the preset prompt identifier displayed on the current screen in the marked hotword list.
Specifically, the user terminal 100 clears the content recorded in the marked hot word list, and records information such as the identifier IDs of all hot words marked with underlines and the row information corresponding to the current screen, which are displayed on the displayable region of the current screen after the message refresh, in the marked hot word list.
According to the hot word prompting method based on instant messaging provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset marks displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
Third embodiment
Referring to fig. 6, fig. 6 is a flowchart illustrating a hotword prompt method based on instant messaging according to a third embodiment of the present invention. The embodiment can be applied to the application environment shown in fig. 1, and the hotword prompt based on instant messaging is realized through the user terminal 100 shown in fig. 1. As shown in fig. 6, the hotword prompt method based on instant messaging provided by this embodiment includes the following steps:
step S31, when detecting the operation of user to check more messages, determining that the message refresh command is triggered, and the user terminal loads the message list;
in this embodiment, the user terminal 100 is pre-configured with an instant messaging client program, and through the instant messaging client program, the user terminal 100 can receive an instant messaging message input by a user on an interactive interface of the instant messaging client, and also can receive an instant messaging message forwarded by the server 300 from the user terminal 200 and display the instant messaging message to the user.
The message refresh command can be used to refresh an instant messaging message displayed on a displayable region of the current screen. When detecting the operation of viewing more messages by the local user on the interactive interface of the instant messaging client, the user terminal 100 determines that a message refresh instruction is triggered. The view more messages operation may be used to display historical instant messaging messages received by the user terminal 100 or to display portions of newly received instant messaging messages that are not displayed on the displayable area of the current screen.
The message list may record information of all instant messaging messages currently received by the user terminal 100, including: the identifier ID, content, sender identifier ID, and time of receipt of each instant message currently received and historically received, entered by the local user, or sent by the server 300, etc. When detecting that the message refresh command is triggered, the user terminal 100 acquires the message list and loads the content recorded in the message list. Further, to increase the loading speed, the user terminal 100 may load only a preset number of recently received instant messaging messages in the message list.
Step S32, obtaining the display rule of the current screen to the instant communication message from the system;
in this embodiment, the display rule may include: the length and width of the displayable area of the current screen, the length and width of the preset display font, the line spacing between each line of instant messaging messages displayed, and the like.
Step S33, according to the display rule and each instant communication message in the message list, determining each displayed instant communication message and instant communication message to be displayed which are displayed on the current screen after being refreshed;
specifically, the user terminal 100 may determine, according to the length and width of the displayable region of the current screen, the length and width of the preset display font, the display rules such as the line spacing between each line of the displayed instant messaging messages, and the number of characters of each instant messaging message in the message list, and according to the received time sequence, the instant messaging message to be displayed on the current screen after being refreshed. The instant messaging messages to be displayed on the current screen after refreshing include: and refreshing each displayed instant communication message and the instant communication message to be displayed on the current screen. Then, the user terminal 100 determines, according to the instant communication message displayed on the current screen after the refresh, the displayed instant communication messages from the instant communication messages that will be displayed on the current screen after the refresh, that is, the portion of the instant communication messages that will be displayed on the current screen after the refresh, excluding the whole or part of the instant communication messages that will be scrolled out of the current screen.
For example: assuming that the message list comprises 100 instant messaging messages arranged according to the sequence of the receiving time, and the current instant messaging messages are displayed on the displayable area of the current screen from the 1 st to 5 th instant messaging messages in the message list; according to the length and the width of a displayable area of the current screen, the length and the width of a preset display font, display rules such as line spacing between every two lines of displayed instant messaging messages and the number of characters of each instant messaging message in the message list, and according to the sequence of receiving time, the instant messaging messages which are to be displayed on the current screen after being refreshed can be determined to be 4 th to 10 th instant messaging messages from the last number in the message list; according to the instant messaging messages which are displayed on the displayable area of the current screen at present and the instant messaging messages which are displayed on the current screen after refreshing, the instant messaging messages which are displayed on the current screen after refreshing are determined to be 4 th to 5 th instant messaging messages from the last, and the instant messaging messages which are displayed on the current screen after refreshing are determined to be 6 th to 10 th instant messaging messages from the last.
Step S34, in the marked hot word list, inquiring the information of the marked hot words in each displayed instant communication message displayed on the current screen after refreshing;
specifically, the hotword refers to a popular word or popular phrase. The marked hot words refer to the hot words marked with preset prompt marks and displayed on the displayable area of the current screen.
In this embodiment, the information of the marked hotword marked with the preset prompt identifier and displayed on the displayable region of the current screen may be recorded in the marked hotword list, and includes: the identifier ID, the number of the marked hot words and the row information of the marked hot words corresponding to the displayable area of the current screen. The representation form of the preset prompt identifier can be customized, and specifically includes: underlined, emphasized, italicized, or other representation sufficient to highlight the marked hotword.
The user terminal 100 queries the marked hotword list, and obtains the information of the marked hotword in each displayed instant messaging message displayed on the current screen after refreshing, that is, the information of the marked hotword in the instant messaging message displayed on the current screen before and after refreshing. Still taking the example in step S33 as an example, suppose that the displayed instant messaging messages displayed on the current screen after the refresh are: and 4 to 5 instant messaging messages from the last to the last in the message list, the user terminal 100 queries the marked hot word list according to the line information of the displayable area corresponding to the two instant messaging messages on the current screen, and acquires the identifier ID of the marked hot word corresponding to the line information. The hot word corresponding to the information identifier ID of the marked hot word, that is, the marked hot word in each displayed instant messaging message displayed on the current screen after refreshing.
Step S35, if the marked hotword is less than the preset value, selecting the hotword different from the marked hotword as the target hotword from the hotwords in the instant messaging message to be displayed one by one, wherein the number of the target hotword in each instant messaging message to be displayed is not more than 1, and the sum of the number of the target hotword and the number of the marked hotword is less than or equal to the preset value;
specifically, the user terminal 100 counts the number of marked hotwords in each displayed instant messaging message displayed on the current screen after the refresh is determined; when the number of the marked hot words is less than a preset numerical value, determining all hot words and identifier IDs thereof in the instant messaging message to be displayed according to a preset hot word library; according to the identifier ID of the marked hotword in each displayed instant message displayed on the current screen after the refresh obtained in step S34, selecting a hotword different from the marked hotword as the target hotword from the hotwords in the instant messages to be displayed one by one. And the sum of the target hot words and the number of the marked hot words is less than or equal to the preset numerical value. Preferably, the preset value is 3.
For example, assuming that the preset value is 3, the marked hotword in each displayed instant message displayed on the current screen after refreshing is: weather; currently, there are 3 instant messaging messages to be displayed; according to the sequence of the occurrence time and the preset hot word library, determining that the hot words in the first instant messaging message to be displayed are: weather, college entrance examination, explosion; the hotwords in the second instant message to be displayed are respectively: weather, college entrance examination, explosion, typhoon; the hotword in the third instant messaging message to be displayed is: explosion and Vietnam. The user terminal 100 firstly selects a hotword (entrance exam, explosion) different from the marked hotword (weather) in the first instant messaging message to be displayed, and because the target hotword in each instant messaging message to be displayed does not exceed one, the entrance exam is determined as the target hotword in the first instant messaging message to be displayed according to the time sequence of occurrence; then, the user terminal 100 selects a hotword (college entrance examination, explosion, typhoon) different from the marked hotword (weather) in the second instant messaging message to be displayed, and because the college entrance examination has been selected as the target hotword in the first instant messaging message to be displayed and the target hotword in each instant messaging message to be displayed does not exceed one, the explosion is determined as the target hotword in the second instant messaging message to be displayed according to the time sequence of appearance; then, since the number of the already determined target hotwords plus the marked hotwords is already equal to the preset numerical value of 3, the user terminal 100 does not continue to select the target hotword among the hotwords in the third instant messaging message to be displayed.
Further, if it is determined that the number of the marked hotwords included in each displayed instant message displayed on the current screen after the refresh is zero, the user terminal 100 may directly select hotwords of the number equal to the preset number from the front to the back or from the back to the front in the arrangement order among all hotwords of the instant message to be displayed one by one as the target hotword. The target hot words in each instant messaging message to be displayed do not exceed one, and the total number of the target hot words in all the instant messaging messages to be displayed does not exceed the preset numerical value.
Step S36, marking the target hotword with underline, and displaying the instant messaging message to be displayed containing the target hotword marked with the underline on the current screen;
specifically, the underline may include one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word.
The user terminal 100 underlines a target hotword in the instant messaging message to be displayed, and then renders the instant messaging message to be displayed containing the underlined target hotword on a displayable area of a current screen for display to the user. Meanwhile, the user terminal 100 renders the displayed instant messaging messages in the displayable region together, and keeps the marking state of the marked hotword in the displayed instant messaging messages unchanged. The contents displayed on the displayable region of the current screen before and after the refresh may be as shown in fig. 5.
Step S37, emptying the marked hotword list, and recording all hotwords marked with the preset prompt identifier displayed on the current screen in the marked hotword list.
Specifically, the user terminal 100 clears the content recorded in the marked hot word list, and records information such as the identifier IDs of all hot words marked with underlines and the row information corresponding to the current screen, which are displayed on the displayable region of the current screen after the message refresh, in the marked hot word list.
According to the hot word prompting method based on instant messaging provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset marks displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
Fourth embodiment
Referring to fig. 7, fig. 7 is a flowchart illustrating a hotword prompt method based on instant messaging according to a fourth embodiment of the present invention. The embodiment can be applied to the application environment shown in fig. 1, and the hotword prompt based on instant messaging is realized through the user terminal 100 shown in fig. 1. Unlike the previous embodiment, the marked hotword list is updated in real time in the present embodiment. As shown in fig. 7, the hotword prompt method based on instant messaging provided by this embodiment includes the following steps:
step S41, when detecting that the message refresh command is triggered, the user terminal loads the message list;
step S42, obtaining the display rule of the current screen to the instant communication message from the system;
the steps S41 and S42 refer to the related contents of the first to third embodiments, and are not repeated herein.
Step S43, updating the marked hotword list according to the display rule, the instant communication message displayed on the current screen and the message list;
specifically, the hotword refers to a popular word or popular phrase. The marked hot words refer to the hot words marked with preset prompt marks and displayed on the current screen.
In this embodiment, the information of the marked hotword marked with the preset prompt identifier and displayed on the current screen may be recorded in the marked hotword list, and includes: the identifier ID, the number of the marked hot words and the row information of the marked hot words corresponding to the current screen. The representation form of the preset prompt identifier can be customized, and specifically includes: underlined, emphasized, italicized, or other representation sufficient to highlight the marked hotword.
Specifically, the user terminal 100 determines, according to the display rule and the message list, an instant message to be scrolled out of the current screen in the instant message already displayed on the current screen, acquires information of a marked hotword included in the instant message to be scrolled out of the current screen, and updates the marked hotword list according to the information of the marked hotword included in the instant message to be scrolled out of the current screen.
For example: assuming that the number of instant messaging messages that can be displayed on the current screen is 10 lines according to the display rule, the information of 100 instant messaging messages is recorded in the message list, wherein the last 1 is the latest instant messaging message currently acquired, and 10 lines of instant messaging messages are displayed on the current screen. It is to be understood that since one instant message may be displayed in a single line or a plurality of lines according to the width of the current screen, it is assumed that the 10 lines of instant messages are 2-9 last instant messages in the message list, wherein the 9 last instant message is displayed in a plurality of lines.
At this time, if the last received instant message in the message list is to be displayed on the current screen, the content displayed in the first row of the 9 th last instant message in the message list must be scrolled out of the current screen, so the user terminal 100 acquires the information of the marked hotword in the content displayed in the first row (the identifier ID of the marked hotword, the row information corresponding to the current screen), deletes the corresponding information in the list of the marked hotword according to the acquired information of the marked hotword, and updates the number of the marked hotword in the list of the marked hotword and the row information of other marked hotword corresponding to the current screen. That is, the current line number of the other marked hot words on the current screen is updated to the line number of the current screen to be displayed on the current screen after the current screen is refreshed.
It is to be understood that, when there is no instant message to be scrolled out of the current screen among the instant messages already displayed on the current screen, that is, there is still room on the displayable area of the current screen to display other instant messages, the user terminal 100 may not update the content of the tagged hotword list.
Step S44, according to the updated marked hot word list, judging whether the number of the marked hot words is less than the preset value;
preferably, the preset value is 3, that is, at most three hotwords with preset prompt marks can be displayed on the current screen. Specifically, the user terminal 100 determines whether the number of the marked hotwords is smaller than a preset numerical value according to the number of the marked hotwords recorded in the updated marked hotword list.
Step S45, if yes, according to the display rule and each instant communication message in the message list, determining the instant communication message to be displayed on the current screen after refreshing;
specifically, if the number of marked hotwords recorded in the marked hotword list is less than a preset numerical value, the user terminal 100 determines an instant message to be displayed from the message queue according to the instant message, the display rule, and the information of the instant message recorded in the message queue, of the instant messages displayed on the current screen, except the instant message to be scrolled out of the current screen.
It can be understood that, according to the sequence of the obtaining time, counted from the back to the front, the instant messaging messages in the queue messages that meet the display rule do not include the instant messaging messages that are to be displayed, except the instant messaging message that will be scrolled out of the current screen, in the instant messaging messages that are displayed on the current screen.
When the message refresh command is triggered by acquiring an instant message input by a user or receiving an instant message sent by the server 300, the instant message to be displayed is the instant message acquired after the instant message acquisition time displayed at the lowermost end of the current screen recorded in the message list.
When the message refresh command is triggered by detecting an operation of viewing more messages performed by a user on an interactive interface of the instant messaging client program, the operation of viewing the updated messages is used for displaying other instant messaging messages on the current screen, the acquisition time of which is earlier than that of the instant messaging message positioned at the topmost end of the current screen, so all instant messaging messages displayed on the current screen need to be scrolled out of the current screen.
Step S46, selecting the hot words different from the marked hot words from the hot words in the instant communication message to be displayed as target hot words;
specifically, the user terminal 100 determines all hotwords and their identifier IDs in the instant messaging message to be displayed according to the hotword thesaurus. And then determining hot words to be marked from all the hot words according to the identifier IDs of the marked hot words recorded in the updated marked hot word list, and determining target hot words from the hot words to be marked according to the identifier IDs of the marked hot words recorded in the marked hot word list and a preset numerical value, wherein the sum of the number of the target hot words and the number of the marked hot words is equal to the preset numerical value. The hot words to be marked are words different from the marked hot words recorded in the updated marked hot word list, and the number of the target hot words contained in each instant communication message to be displayed is not more than one.
For example: suppose that the marked hotwords recorded in the marked hotword list are: weather, the number of the marked hot words is 1, the preset numerical value is 3, and the hot words to be marked in the first instant messaging message to be displayed are as follows: weather, college entrance examination and explosion, the hot words to be marked in the second instant messaging message to be displayed are as follows: when the college entrance examination, the explosion and the travel are carried out, the number of the marked hot words is 3-1 to 2 according to the rule and the preset numerical value, and only one target hot word can be found in each instant communication message to be displayed, so that the target hot word in the first instant communication message to be displayed can be determined to be college entrance examination and the target hot word in the second instant communication message to be displayed can be determined to be explosion according to the appearance sequence of the hot words to be marked.
Step S47, mark the target hotword with a preset prompt identifier, and display the instant messaging message to be displayed containing the target hotword marked with the preset prompt identifier on the current screen.
The user terminal 100 may mark a preset prompt identifier for the determined target hotword. For example: and marking the determined target hot words with underlines, wherein the underlines can also contain one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word.
Then, the user terminal 100 adds the information of the marked target hotword (the identifier ID of the target hotword and the line information corresponding to the displayable area of the current screen) to the marked hotword list, and at the same time, updates the line information corresponding to other marked hotwords recorded in the marked hotword list.
And then, refreshing the displayable area of the current screen according to the information of the marked hot words recorded in the updated marked hot word list, and updating the content displayed on the displayable area of the current screen through page rendering so as to display the instant communication message to be displayed, which contains the target hot words marked with the preset prompt identifiers, on the current screen.
It can be understood that if the target hotword cannot be matched in the instant messaging message to be displayed, the instant messaging message to be displayed is directly rendered on the current screen.
According to the hot word prompting method based on instant messaging provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset marks displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
Fifth embodiment
Fig. 8 is a schematic structural diagram of a hotword prompt device based on instant messaging according to a fourth embodiment of the present invention. The hotword prompt device based on instant messaging provided by the embodiment can be operated in the user terminal 100 shown in fig. 1, and is used for implementing the hotword prompt method based on instant messaging in the above embodiment. As shown in fig. 8, the hotword prompt device 50 based on instant messaging includes: a loading module 51, a determining module 52 and a marking module 53.
A loading module 51, configured to load a message list when detecting that a message refresh command is triggered;
a determining module 52, configured to determine a target hotword in the instant messaging message to be displayed according to the message list and the marked hotword list loaded by the loading module 51, so that when the instant messaging message to be displayed is displayed on a current screen, all hotwords marked with the preset identifier on the current screen are less than or equal to a preset numerical value;
and a marking module 53, configured to mark the preset prompt identifier for the target hotword determined by the determining module 52, and display the instant messaging message to be displayed, which includes the target hotword marked with the preset prompt identifier, on the current screen.
The above modules may be implemented by software codes, and in this case, the modules may be stored in the memory 102, as shown in fig. 9. The above modules may also be implemented by hardware, such as an integrated circuit chip.
For the specific process of implementing each function of each function module of the hotword prompt device 50 based on instant messaging in this embodiment, please refer to the specific contents described in the embodiments shown in fig. 1 to fig. 7, which are not described herein again.
According to the hot word prompt device based on instant messaging provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset marks displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
Sixth embodiment
Fig. 10 is a schematic structural diagram of a hotword prompt device based on instant messaging according to a sixth embodiment of the present invention. The hotword prompt device based on instant messaging provided by the embodiment may be operated in the user terminal 100 shown in fig. 1, and is used for implementing the hotword prompt method based on instant messaging in the above embodiment. As shown in fig. 10, the hotword prompt device 60 based on instant messaging includes: a loading module 51, a determining module 52, a marking module 53, a selecting module 61, a recording module 62 and a detecting module 63.
A loading module 51, configured to load a message list when detecting that a message refresh command is triggered;
a determining module 52, configured to determine a target hotword in the instant messaging message to be displayed according to the message list and the marked hotword list loaded by the loading module 51, so that when the instant messaging message to be displayed is displayed on a current screen, the number of all hotwords marked with the preset identifier on the current screen is less than or equal to a preset numerical value;
and a marking module 53, configured to mark the preset prompt identifier for the target hotword determined by the determining module 52, and display the instant messaging message to be displayed, which includes the target hotword marked with the preset prompt identifier, on the current screen.
Preferably, the determining module 52 comprises:
an obtaining unit 521, configured to obtain, from the system, a display rule of the current screen for the instant messaging message;
a determining unit 522, configured to determine, according to the display rule and each instant messaging message in the message list, each displayed instant messaging message and the instant messaging message to be displayed, which are displayed on the current screen after being refreshed;
the query unit 523, configured to query, in the marked hot word list, information of a marked hot word in each displayed instant messaging message displayed on the current screen after being refreshed;
a selecting unit 524, configured to select a hotword different from the marked hotword as a target hotword from the hotwords in the instant messaging message to be displayed if the marked hotword is smaller than the preset numerical value, where a sum of the target hotword and the marked hotword is smaller than or equal to the preset numerical value.
A selecting module 61, configured to, if it is determined that the number of the marked hotwords included in each displayed instant messaging message displayed on the current screen after the refreshing is zero, select, from front to back or from back to front, hotwords of the number equal to the preset numerical value among all hotwords of the instant messaging message to be displayed according to the arrangement order as the target hotword.
Preferably, the selecting unit 524 is further configured to select a hotword different from the marked hotword as the target hotword from the hotwords in the instant messaging messages to be displayed one by one, and the number of the target hotwords in each instant messaging message to be displayed is not more than 1.
And a recording module 62, configured to empty the marked hotword list, and record all hotwords marked with the preset prompt identifier and displayed on the current screen in the marked hotword list.
And the detecting module 63 is configured to determine that the message refresh command is triggered when an instant messaging message sent by the server is received or an instant messaging message input by a user is received.
Preferably, the detecting module 63 is further configured to determine that the message refresh command is triggered when an operation of the user to view more messages is detected.
Preferably, the marking module 53 is further configured to mark the target hotword with an underline, where the underline includes one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word.
For the specific process of implementing each function of each function module of the hotword prompt device 60 based on instant messaging in this embodiment, please refer to the specific contents described in the embodiments shown in fig. 1 to fig. 7, which are not described herein again.
According to the hot word prompt device based on instant messaging provided by the embodiment of the invention, the target hot word in the instant messaging message to be displayed is determined according to the message list and the marked hot word list, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset marks displayed on the current screen are smaller than or equal to the preset numerical value, and thus excessive processing on the instant messaging message is limited, the efficiency of processing the instant messaging message is improved, the interference on a user is reduced, the misoperation probability is reduced, and the data processing efficiency is further improved.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A hotword prompt method based on instant messaging is characterized by comprising the following steps:
when detecting that a message refreshing instruction is triggered, the user terminal loads a preset number of recently received instant messaging messages in a message list;
determining a target hotword in the instant messaging message to be displayed according to the instant messaging message with the latest received preset number and the marked hotword list in the message list, so that when the instant messaging message to be displayed is displayed on a current screen, the number of all hotwords marked with preset prompt marks on the current screen is smaller than or equal to a preset numerical value;
marking the target hot words with the preset prompt marks, and displaying the instant communication message to be displayed, which contains the target hot words marked with the preset prompt marks, on a current screen;
wherein, the determining the target hotword in the instant messaging message to be displayed according to the most recently received instant messaging messages with preset number in the message list and the marked hotword list comprises:
acquiring a display rule of the current screen on the instant messaging message from a system;
determining each displayed instant messaging message and the instant messaging message to be displayed which are displayed on the current screen after refreshing according to the display rule and the recently received instant messaging messages with preset number in the message list;
inquiring information of the marked hot words in each displayed instant messaging message displayed on the current screen after refreshing in the marked hot word list;
if the marked hot words are smaller than the preset numerical value, selecting hot words different from the marked hot words from the hot words in the instant messaging message to be displayed as target hot words, wherein the sum of the target hot words and the number of the marked hot words is smaller than or equal to the preset numerical value.
2. The method of claim 1, further comprising:
if the number of the marked hot words contained in each displayed instant communication message displayed on the current screen after refreshing is determined to be zero, selecting the hot words with the number equal to the preset numerical value from front to back or from back to front according to the arrangement sequence from all the hot words of the instant communication message to be displayed as the target hot words.
3. The method of claim 1, wherein the selecting a hotword different from the marked hotword as a target hotword from the hotwords in the instant messaging message to be displayed comprises:
and selecting hot words different from the marked hot words as target hot words from the hot words in the instant messaging messages to be displayed one by one, wherein the number of the target hot words in each instant messaging message to be displayed is not more than 1.
4. The method of claim 3, wherein the instant messaging message to be displayed containing the target hotword marked with the preset reminder identifier is displayed after a current screen, and the method further comprises:
and clearing the marked hotword list, and recording all hotwords marked with the preset prompt identifiers and displayed on the current screen in the marked hotword list.
5. The method of claim 1, wherein before detecting that a message refresh command is triggered, the method further comprises:
and when receiving an instant communication message sent by a server or an instant communication message input by a user, determining that the message refreshing instruction is triggered.
6. The method of claim 1, wherein before detecting that a message refresh command is triggered, the method further comprises:
and when the operation of viewing more messages by the user is detected, determining that the message refreshing instruction is triggered.
7. The method of claim 1, wherein said tagging the target hotword to the preset hint identifier comprises:
the target hotword is marked with an underline, and the underline contains one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word.
8. A hotword prompt device based on instant messaging, run in user terminal, characterized by that, include:
the loading module is used for loading the most recently received instant messaging messages with preset number in the message list when detecting that the message refreshing instruction is triggered;
the determining module is used for determining a target hot word in the instant messaging message to be displayed according to the instant messaging message with the latest received preset number and the marked hot word list in the message list loaded by the loading module, so that when the instant messaging message to be displayed is displayed on a current screen, the number of all hot words marked with preset prompt identifiers on the current screen is smaller than or equal to a preset numerical value;
the marking module is used for marking the target hot words determined by the determining module with preset prompt marks and displaying the instant messaging messages to be displayed, which contain the target hot words marked with the preset prompt marks, on a current screen;
wherein the determining module comprises:
the acquisition unit is used for acquiring the display rule of the current screen on the instant messaging message from the system;
a determining unit, configured to determine, according to the display rule and a preset number of recently received instant messaging messages in the message list, each displayed instant messaging message and the instant messaging message to be displayed, which are displayed on the current screen after being refreshed;
the query unit is used for querying the information of the marked hot words in each displayed instant messaging message displayed on the current screen after refreshing in the marked hot word list;
and the selecting unit is used for selecting a hotword different from the marked hotword as a target hotword from the hotwords in the instant messaging message to be displayed if the marked hotword is smaller than the preset numerical value, and the sum of the target hotword and the marked hotword is smaller than or equal to the preset numerical value.
9. The apparatus of claim 8, further comprising:
and the selecting module is used for selecting the hot words with the number equal to the preset numerical value from front to back or from back to front according to the arrangement sequence from all the hot words of the instant communication message to be displayed as the target hot words if the number of the marked hot words contained in each displayed instant communication message displayed on the current screen after refreshing is determined to be zero.
10. The apparatus of claim 8,
the selecting unit is further configured to select, one by one, a hotword different from the marked hotword as a target hotword from the hotwords in the instant messaging messages to be displayed, and the number of the target hotwords in each instant messaging message to be displayed is not more than 1.
11. The apparatus of claim 10, further comprising:
and the recording module is used for emptying the marked hotword list and recording all hotwords marked with the preset prompt identifier and displayed on the current screen in the marked hotword list.
12. The apparatus of claim 8, further comprising:
and the detection module is used for determining that the message refreshing instruction is triggered when receiving the instant communication message sent by the server or receiving the instant communication message input by the user.
13. The apparatus of claim 8, further comprising:
and the detection module is used for determining that the message refreshing instruction is triggered when the operation of viewing more messages by the user is detected.
14. The apparatus of claim 8, wherein the marking module is further configured to mark the target hotword as an underline, and the underline includes one of the following information: searching the link of the search page website of the target hot word, the local paraphrasing information of the target hot word and the link of the network paraphrasing website of the target hot word.
15. A computer-readable storage medium having stored thereon executable instructions for implementing the instant messaging based hotword prompt method of any one of claims 1 to 7 when executed.
CN201410381738.7A 2014-08-05 2014-08-05 Hot word prompting method and device based on instant messaging Active CN105320707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410381738.7A CN105320707B (en) 2014-08-05 2014-08-05 Hot word prompting method and device based on instant messaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410381738.7A CN105320707B (en) 2014-08-05 2014-08-05 Hot word prompting method and device based on instant messaging

Publications (2)

Publication Number Publication Date
CN105320707A CN105320707A (en) 2016-02-10
CN105320707B true CN105320707B (en) 2020-11-06

Family

ID=55248107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410381738.7A Active CN105320707B (en) 2014-08-05 2014-08-05 Hot word prompting method and device based on instant messaging

Country Status (1)

Country Link
CN (1) CN105320707B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027774A (en) * 2016-05-11 2016-10-12 周肇炎 Contact information prompting method
CN109408159A (en) * 2017-08-14 2019-03-01 阿里巴巴集团控股有限公司 Interface message is shown and processing method, device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120191796A1 (en) * 2002-07-17 2012-07-26 Research In Motion Limited Voice and text group chat display management techniques for wireless mobile terminals
CN102880706A (en) * 2012-07-16 2013-01-16 刘二中 Method for processing link information input by search engine terminal user
CN102891874A (en) * 2011-07-21 2013-01-23 腾讯科技(深圳)有限公司 Method, device and system for providing search prompt message based on conversation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120191796A1 (en) * 2002-07-17 2012-07-26 Research In Motion Limited Voice and text group chat display management techniques for wireless mobile terminals
CN102891874A (en) * 2011-07-21 2013-01-23 腾讯科技(深圳)有限公司 Method, device and system for providing search prompt message based on conversation
CN102880706A (en) * 2012-07-16 2013-01-16 刘二中 Method for processing link information input by search engine terminal user

Also Published As

Publication number Publication date
CN105320707A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
US20200042148A1 (en) Screen capturing method and terminal, and screenshot reading method and terminal
US10303327B2 (en) Information display method and device
US20170249934A1 (en) Electronic device and method for operating the same
AU2017219385A1 (en) Electronic device and method of application data display therefor
US20150213127A1 (en) Method for providing search result and electronic device using the same
EP3955153A1 (en) Method and apparatus for inserting information into online document
EP2642412A1 (en) System and method for managing browsing histories of web browser
EP2924593A1 (en) Method and apparatus for constructing documents
CN107463643B (en) Barrage data display method and device and storage medium
JP2016522483A (en) Page rollback control method, page rollback control device, terminal, program, and recording medium
WO2015043203A1 (en) Method,apparatus and terminal for processing documents
US20120323679A1 (en) System and method for providing mobile advertisement
KR102046582B1 (en) Method and apparatus for providing call log in electronic device
CN107436948B (en) File searching method and device and terminal
US10235030B2 (en) Electronic device and user interface display method for the same
KR20160059455A (en) Method and device for identifying encoding of web page
CN106844572B (en) Search result processing method and device for search result processing
CN105095253A (en) Webpage display method and webpage display device
CN109783244B (en) Processing method and device for processing
US20160004784A1 (en) Method of providing relevant information and electronic device adapted to the same
CN105468606B (en) Webpage saving method and device
CN105320707B (en) Hot word prompting method and device based on instant messaging
CN108874758B (en) Note processing method and device, and device for note processing
CN112748970B (en) Message display method and terminal equipment
CN111460180A (en) Information display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 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