Movatterモバイル変換


[0]ホーム

URL:


CN105320707B - Method and device for prompting hot words based on instant messaging - Google Patents

Method and device for prompting hot words based on instant messaging
Download PDF

Info

Publication number
CN105320707B
CN105320707BCN201410381738.7ACN201410381738ACN105320707BCN 105320707 BCN105320707 BCN 105320707BCN 201410381738 ACN201410381738 ACN 201410381738ACN 105320707 BCN105320707 BCN 105320707B
Authority
CN
China
Prior art keywords
displayed
message
hot word
instant messaging
marked
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.)
Expired - Fee Related
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 LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201410381738.7ApriorityCriticalpatent/CN105320707B/en
Publication of CN105320707ApublicationCriticalpatent/CN105320707A/en
Application grantedgrantedCritical
Publication of CN105320707BpublicationCriticalpatent/CN105320707B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供一种基于即时通信的热词提示方法,包括:当检测到消息刷新指令被触发时,用户终端加载消息列表;根据该消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将该待显示的即时通信消息显示在当前屏幕上时,在该当前屏幕上所有标记了该预置标识的热词的数量小于或等于预置的数值;将该目标热词标记预置提示标识,并将包含标记了该预置提示标识的该目标热词的该待显示的即时通信消息显示在当前屏幕。本发明还提供一种基于即时通信的热词提示装置,上述基于即时通信的热词提示方法及装置可提高即时通信消息处理速度,节约用户处理即时通信消息的时间。

Figure 201410381738

The present invention provides a method for prompting hot words based on instant messaging, which includes: when detecting that a message refresh instruction is triggered, a user terminal loads a message list; and according to the message list and the marked hot word list, determining the instant communication message to be displayed The target hot word in the IM, so that when the instant messaging message to be displayed is displayed on the current screen, the number of all hot words marked with the preset identifier on the current screen is less than or equal to the preset value; The hot word marks a preset prompt identifier, and displays the to-be-displayed instant communication message containing the target hot word marked with the preset prompt identifier on the current screen. The present invention also provides a hot word prompting device based on instant messaging. The above hot word prompting method and device based on instant messaging can improve the processing speed of instant messaging messages and save users' time for processing instant messaging messages.

Figure 201410381738

Description

Translated fromChinese
基于即时通信的热词提示方法及装置Method and device for prompting hot words based on instant messaging

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种基于即时通信的热词提示方法及装置。The present invention relates to the field of computer technology, and in particular, to a method and device for prompting hot words based on instant messaging.

背景技术Background technique

随着互联网的发展,上网通过即时通信客户端聊天交流已经成为越来越多用户的习惯,聊天交流过程之中在即时通信消息中往往出现一些专业名词、流行词等热词。热词即热门词汇,反映了当前人们普遍关注的问题和事物,具有时代特征,反映一个时期的热点话题。With the development of the Internet, it has become the habit of more and more users to chat and communicate through instant messaging clients on the Internet. During the chatting process, some professional terms, buzzwords and other hot words often appear in instant messaging messages. Hot words are hot words, which reflect the issues and things that people are generally concerned about at present, have the characteristics of the times, and reflect the hot topics of a period.

现有技术中,在聊天窗口显示即时通信消息时,通过为热词做特殊标记可以为用户提供更多的便利,用户可通过该特殊标记获取专业热词提供解释,或商业热词提供跳转链接等。In the prior art, when an instant communication message is displayed in a chat window, more convenience can be provided for users by marking the hot words with special marks, and the users can obtain professional hot words to provide explanations through the special marks, or provide jumps to commercial hot words. link etc.

但在以上现有技术中,随着热词词库中热词数量的增加,在聊天的屏幕上做特殊标记的热词降低了处理即时通信消息的效率,并给用户带来极大干扰,误操作几率加大,进一步降低数据处理效率。However, in the above prior art, with the increase of the number of hot words in the hot word thesaurus, the hot words marked with special marks on the chat screen reduce the efficiency of processing instant communication messages, and cause great disturbance to users. The probability of misoperation increases, which further reduces the efficiency of data processing.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明提供一种基于即时通信的热词提示方法及装置,可通过降低在当前屏幕显示的标记有预置标识的热词数量,提高即时通信消息处理速度,节约用户处理即时通信消息的时间。In view of this, the present invention provides a method and device for prompting hot words based on instant messaging, which can improve the processing speed of instant messaging messages by reducing the number of hot words marked with preset identifiers displayed on the current screen and save users from processing instant messaging. time of the message.

本发明实施例提供的一种基于即时通信的热词提示方法,包括:当检测到消息刷新指令被触发时,用户终端加载消息列表;根据所述消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将所述待显示的即时通信消息显示在当前屏幕上时,在所述当前屏幕上所有标记了所述预置标识的热词的数量小于或等于预置的数值;将所述目标热词标记预置提示标识,并将包含标记了所述预置提示标识的所述目标热词的所述待显示的即时通信消息显示在当前屏幕。A method for prompting hot words based on instant messaging provided by an embodiment of the present invention includes: when detecting that a message refresh instruction is triggered, a user terminal loads a message list; according to the message list and the marked hot word list, determining to be displayed The target hot word in the instant messaging message, so that when the instant messaging message to be displayed is displayed on the current screen, the number of all hot words marked with the preset identifier on the current screen is less than or equal to the preset number. mark the target hot word with a preset prompt identifier, and display the to-be-displayed instant communication message containing the target hot word marked with the preset prompt identifier on the current screen.

本发明实施例提供的一种基于即时通信的热词提示装置,运行于用户终端,包括:加载模块,用于当检测到消息刷新指令被触发时,加载消息列表;确定模块,用于根据所述加载模块加载的所述消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将所述待显示的即时通信消息显示在当前屏幕上时,在所述当前屏幕上所有标记了所述预置标识的热词的数量小于或等于预置的数值;标记模块,用于将所述确定模块确定的所述目标热词标记预置提示标识,并将包含标记了所述预置提示标识的所述目标热词的所述待显示的即时通信消息显示在当前屏幕。An instant messaging-based hot word prompting device provided by an embodiment of the present invention runs on a user terminal and includes: a loading module for loading a message list when it is detected that a message refresh instruction is triggered; a determining module for The message list and the marked hot word list loaded by the loading module are used to determine the target hot word in the instant messaging message to be displayed, so that when the instant messaging message to be displayed is displayed on the current screen, in the current The number of all hot words marked with the preset identification on the screen is less than or equal to the preset value; the marking module is used to mark the target hot word determined by the determining module with a preset prompt identification, and will include the mark The to-be-displayed IM message with the target hot word identified by the preset prompt is displayed on the current screen.

本发明实施例提供的上述基于即时通信的热词提示方法及装置,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The above instant messaging-based hot word prompting method and device provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed. When displayed on the current screen, all hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages , and reduce the interference to users, reduce the probability of misoperation, and further improve the efficiency of data processing.

为让本发明的上述和其他目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附图式,作详细说明如下。In order to make the above-mentioned and other objects, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

图1为本发明实施例提供的基于即时通信的热词提示方法及装置的应用环境图;1 is an application environment diagram of a method and device for prompting hot words based on instant messaging provided by an embodiment of the present invention;

图2示出了一种用户终端的结构框图;Fig. 2 shows a structural block diagram of a user terminal;

图3为本发明第一实施例提供的基于即时通信的热词提示方法的流程图;3 is a flowchart of a method for prompting hot words based on instant messaging provided by the first embodiment of the present invention;

图4为本发明第二实施例提供的基于即时通信的热词提示方法的流程图;4 is a flowchart of a method for prompting hot words based on instant messaging provided by the second embodiment of the present invention;

图5为本发明第二实施例提供的基于即时通信的热词提示方法中消息刷新前后当前屏幕的可显示区域上显示的内容的对比示意图;5 is a schematic diagram of the comparison of the contents displayed on the displayable area of the current screen before and after message refresh in the instant messaging-based hot word prompt method provided by the second embodiment of the present invention;

图6为本发明第三实施例提供的基于即时通信的热词提示方法的流程图;6 is a flowchart of a method for prompting hot words based on instant messaging provided by a third embodiment of the present invention;

图7为本发明第四实施例提供的基于即时通信的热词提示方法的流程图;7 is a flowchart of a method for prompting hot words based on instant messaging provided by a fourth embodiment of the present invention;

图8为本发明第五实施例提供的基于即时通信的热词提示装置的结构示意图;8 is a schematic structural diagram of an instant messaging-based hot word prompting device provided by a fifth embodiment of the present invention;

图9为图8的装置的存储环境示意图;9 is a schematic diagram of a storage environment of the device of FIG. 8;

图10为本发明第六实施例提供的基于即时通信的热词提示装置的结构示意图。FIG. 10 is a schematic structural diagram of a device for prompting hot words based on instant messaging according to a sixth embodiment of the present invention.

具体实施方式Detailed ways

为更进一步阐述本发明为实现预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明的具体实施方式、结构、特征及其功效,详细说明如后。In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the specific embodiments, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.

图1为本发明实施例提供的基于即时通信的热词提示方法及装置的应用环境图。本发明实施例提供的基于即时通信的热词提示方法及装置可应用于图1所示的环境中,实现基于即时通信的热词提示。如图1所示,用户终端100、用户终端200与服务器300位于有线或无线网络中,通过该有线或无线网络,用户终端100、用户终端200与服务器300进行数据交互。FIG. 1 is an application environment diagram of a method and apparatus for prompting hot words based on instant messaging according to an embodiment of the present invention. The instant messaging-based hot word prompting method and device provided by the embodiments of the present invention can be applied to the environment shown in FIG. 1 to implement instant messaging-based hot word prompting. As shown in FIG. 1 , theuser terminal 100 , the user terminal 200 and the server 300 are located in a wired or wireless network, and through the wired or wireless network, theuser terminal 100 , the user terminal 200 and the server 300 perform data interaction.

服务器300用于将用户终端100发送的即时通信消息转发给用户终端200,将用户终端200发送的即时通信消息转发给用户终端100。The server 300 is configured to forward the instant communication message sent by theuser terminal 100 to the user terminal 200 , and forward the instant communication message sent by the user terminal 200 to theuser terminal 100 .

用户终端100或用户终端200在检测到消息刷新指令被触发时,加载消息列表;根据该消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将该待显示的即时通信消息显示在屏幕上时,在该屏幕上所有标记了该预置标识的热词小于或等于预置的数值;将该目标热词标记预置提示标识,并将包含标记了该预置提示标识的该目标热词的该待显示的即时通信消息显示在当前屏幕。When detecting that the message refresh instruction is triggered, theuser terminal 100 or the user terminal 200 loads the message list; according to the message list and the marked hot word list, determines the target hot word in the instant messaging message to be displayed, so that the to-be-displayed hot word is to be displayed. When the instant messaging message is displayed on the screen, all the hot words marked with the preset logo on the screen are less than or equal to the preset value; mark the target hot word with the preset prompt logo, and include The to-be-displayed instant messaging message of the target hot word identified by the setting prompt is displayed on the current screen.

其中,该消息刷新指令可因接收到服务器300转发的即时通信消息,接收到用户输入的即时通信消息,检测到用户的查看更多消息的操作而触发。The message refresh instruction may be triggered by receiving the instant communication message forwarded by the server 300, receiving the instant communication message input by the user, and detecting the user's operation of viewing more messages.

用户终端100可以包括:具有即时通信功能的智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机、车载电脑、可穿戴设备、台式计算机、机顶盒、智能电视、一体机等等。Theuser terminal 100 may include: a smart phone with an instant messaging function, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer III) Audio Layer IV, Motion Picture Expert Compression Standard Audio Layer 4) Players, Laptops, Car Computers, Wearables, Desktops, Set-Top Boxes, Smart TVs, All-in-Ones, and more.

图2示出了一种用户终端的结构框图。如图2所示,用户终端100包括存储器102、存储控制器104,一个或多个(图中仅示出一个)处理器106、外设接口108、射频模块110、定位模块112、摄像模块114、音频模块116、屏幕118以及按键模块120。这些组件通过一条或多条通讯总线/信号线122相互通讯。FIG. 2 shows a structural block diagram of a user terminal. As shown in FIG. 2 , theuser terminal 100 includes amemory 102 , astorage controller 104 , one or more (only one is shown in the figure)processor 106 , aperipheral interface 108 , aradio frequency module 110 , apositioning module 112 , and acamera module 114 , anaudio module 116 , ascreen 118 and akey module 120 . These components communicate with each other via one or more communication bus/signal lines 122 .

可以理解,图2所示的结构仅为示意,用户终端100还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。图2中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 2 is only for illustration, and theuser terminal 100 may further include more or less components than those shown in FIG. 2 , or have different configurations from those shown in FIG. 2 . The components shown in FIG. 2 can be implemented in hardware, software, or a combination thereof.

存储器102可用于存储软件程序以及模块,如本发明实施例中的基于即时通信的热词提示方法及装置对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的基于即时通信的热词提示方法。Thememory 102 can be used to store software programs and modules, such as program instructions/modules corresponding to the instant messaging-based hot word prompting method and device in the embodiment of the present invention, theprocessor 102 runs the software programs and modules stored in thememory 104, Thus, various functional applications and data processing are performed, that is, the above-mentioned instant messaging-based hot word prompting method is implemented.

存储器102可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器102可进一步包括相对于处理器106远程设置的存储器,这些远程存储器可以通过网络连接至用户终端100。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。处理器106以及其他可能的组件对存储器102的访问可在存储控制器104的控制下进行。Thememory 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 instances,memory 102 may further include memory located remotely fromprocessor 106, which may be connected touser terminal 100 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Access tomemory 102 byprocessor 106 and possibly other components may be under the control ofmemory controller 104 .

处理器106运行存储器102内的各种软件、指令以执行用户终端100的各种功能以及进行数据处理。Theprocessor 106 executes various software and instructions within thememory 102 to perform various functions of theuser terminal 100 and perform data processing.

外设接口108用于将各种外部设备耦合至CPU以及存储器102。Aperipheral interface 108 is used to couple various external devices to the CPU andmemory 102 .

在一些实施例中,存储控制器104、处理器106以及外设接口108可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。In some embodiments,memory controller 104,processor 106, andperipheral interface 108 may be implemented in a single chip. In other instances, they may be implemented by separate chips.

射频模块110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通信网络或者其他设备进行通讯。射频模块110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。射频模块110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband code divisionmultiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),蓝牙,无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE802.11a,IEEE802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over internet protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通信及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。Theradio frequency module 110 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. Theradio frequency module 110 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like. Theradio frequency module 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code Wideband code division multiple access technology (W-CDMA), code division multiple access technology (Code division multiple access, CDMA), time division multiple access technology (time division multiple access, TDMA), Bluetooth, wireless fidelity technology (Wireless, Fidelity, WiFi) (such as the American Institute of Electrical and Electronics Engineers standards IEEE802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), Internet telephony (Voice over internet protocol, VoIP), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those that have not yet been developed.

定位模块112用于获取用户终端100的当前位置信息。定位模块112的实例包括但不限于全球卫星定位系统(GPS)、基于无线局域网或者移动通信网的定位技术。Thepositioning module 112 is used to obtain the current location information of theuser terminal 100 . Examples of thepositioning module 112 include, but are not limited to, Global Positioning System (GPS), wireless local area network or mobile communication network based positioning technology.

摄像模块114用于拍摄照片或者视频。拍摄的照片或者视频可以存储至存储器102内,并可通过射频模块110发送。Thecamera module 114 is used for taking photos or videos. The photographed photos or videos can be stored in thememory 102 and can be sent through theradio frequency module 110 .

音频模块116向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。音频电路从外设接口108处接收声音数据,将声音数据转换为电信息,将电信息传输至扬声器。扬声器将电信息转换为人耳能听到的声波。音频电路还从麦克风处接收电信息,将电信号转换为声音数据,并将声音数据传输至外设接口108中以进行进一步的处理。音频数据可以从存储器102处或者通过射频模块110获取。此外,音频数据也可以存储至存储器102中或者通过射频模块110进行发送。在一些实例中,音频模块116还可包括一个耳机播孔,用于向耳机或者其他设备提供音频接口。Audio module 116 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry. The audio circuit receives sound data from theperipheral interface 108, converts the sound data into electrical information, and transmits the electrical information to the speaker. Speakers convert electrical information into sound waves that the human ear can hear. The audio circuit also receives electrical information from the microphone, converts the electrical signal into sound data, and transmits the sound data to theperipheral interface 108 for further processing. Audio data may be obtained frommemory 102 or throughradio frequency module 110 . In addition, the audio data can also be stored in thememory 102 or transmitted through theradio frequency module 110 . In some instances, theaudio module 116 may also include a headphone jack for providing an audio interface to headphones or other devices.

屏幕118在用户终端100与用户之间提供一个输出界面,向用户显示视频输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。可以理解的,屏幕118还可以在用户终端100与用户之间同时提供一个输出及输入界面。具体地,除了向用户显示视频输出之外,屏幕118还接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。屏幕118显示单元的具体实例包括但并不限于液晶显示器或发光聚合物显示器。Thescreen 118 provides an output interface between theuser terminal 100 and the user, and displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. It can be understood that thescreen 118 can also provide an output and input interface between theuser terminal 100 and the user at the same time. Specifically, in addition to displaying video output to the user, thescreen 118 also receives user input, such as the user's tap, swipe, and other gesture operations, so that user interface objects respond to these user inputs. The technology for detecting user input may be based on resistive, capacitive or any other possible touch detection technology. Specific examples ofscreen 118 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.

按键模块120同样提供用户向用户终端100进行输入的接口,用户可以通过按下不同的按键以使用户终端100执行不同的功能。Thekey module 120 also provides an interface for the user to input to theuser terminal 100, and the user can press different keys to make theuser terminal 100 perform different functions.

第一实施例first embodiment

请参阅图3,图3为本发明第一实施例提供的基于即时通信的热词提示方法的流程图。本实施例可应用于图1所示的应用环境中,通过图1所示的用户终端100实现基于即时通信的热词提示。如图3所示,本实施例提供的基于即时通信的热词提示方法包括以下步骤:Please refer to FIG. 3 , which is a flowchart of a method for prompting hot words based on instant messaging according to the first embodiment of the present invention. This embodiment can be applied to the application environment shown in FIG. 1 , and theuser terminal 100 shown in FIG. 1 implements hot word prompting based on instant messaging. As shown in FIG. 3 , the instant messaging-based hot word prompting method provided by this embodiment includes the following steps:

步骤S11,当检测到消息刷新指令被触发时,用户终端加载消息列表;Step S11, when detecting that the message refresh instruction is triggered, the user terminal loads the message list;

于本实施例中,用户终端100中预置有即时通信客户端程序,通过该即时通信客户端程序,用户终端100可接收用户在该即时通信客户端的交互界面输入的即时通信消息,也可接收服务器300转发的来自用户终端200的即时通信消息,并显示给用户。In this embodiment, an instant messaging client program is preset in theuser terminal 100, and through the instant messaging client program, theuser terminal 100 can receive the instant messaging messages input by the user on the interactive interface of the instant messaging client, and can also receive The instant communication message from the user terminal 200 forwarded by the server 300 is displayed to the user.

消息刷新指令可以用于刷新当前屏幕的可显示区域上显示的即时通信消息,具体地,消息刷新指令可以因接收到本机用户输入的即时通信消息,或接收到服务器300发送的即时通信消息而触发;也可以因检测到用户在该即时通信客户端程序的交互界面进行的查看更多消息的操作而触发。The message refresh instruction can be used to refresh the IM message displayed on the displayable area of the current screen. Specifically, the message refresh instruction can be used for receiving an IM message input by the local user or receiving an IM message sent by the server 300. Triggered; it can also be triggered by detecting the user's operation of viewing more messages on the interactive interface of the instant messaging client program.

消息列表中可以记录用户终端100当前已接收的所有即时通信消息的信息,包括:当前接收的与历史接收的本机用户输入的,或服务器300发送的每一条即时通信消息的标示符ID、内容、发送者标识符ID以及接收时间等等。当检测到消息刷新指令被触发时,用户终端100获取该消息列表,并加载该消息列表中记录的内容。进一步的,为提高加载速度,用户终端100可以只加载消息列表中最近接收的预置数量的即时通信消息。The information of all instant messaging messages currently received by theuser terminal 100 can be recorded in the message list, including: the identifier ID and content of each instant messaging message input by the current received and historically received local users, or each instant messaging message sent by the server 300 , sender identifier ID, and reception time, etc. When detecting that the message refresh instruction is triggered, theuser terminal 100 acquires the message list and loads the content recorded in the message list. Further, in order to improve the loading speed, theuser terminal 100 may only load the recently received preset number of instant communication messages in the message list.

步骤S12,根据该消息列表和已标记热词列表,确定待显示的即时通信消息中目标热词,使得将该待显示的即时通信消息显示在当前屏幕上时,在该当前屏幕上所有标记了该预置标识的热词的数量小于等于预置的数值;Step S12, according to the message list and the marked hot word list, determine the target hot word in the instant messaging message to be displayed, so that when the instant messaging message to be displayed is displayed on the current screen, all the marked hot words will be displayed on the current screen. The number of hot words identified by the preset is less than or equal to the preset value;

具体地,热词是指热门词汇或流行用语。已标记热词是指当前屏幕的可显示区域上显示的标记有预置提示标识的热词。Specifically, the hot words refer to hot words or popular terms. A marked hot word refers to a hot word that is displayed on the displayable area of the current screen and marked with a preset prompt.

于本实施例中,已标记热词列表中可以记录当前屏幕的可显示区域上已显示的标记有预置提示标识的已标记热词的信息,包括:该已标记热词的标识符ID、数量以及该已标记热词对应在该当前屏幕的可显示区域上的行信息。其中,预置提示标识的表现形式可以自定义,具体可以包括:下划线,加重显示,斜体字,或其他足以起到醒目提示已标记热词作用的表现形式。In this embodiment, the marked hot word list can record the information of the marked hot word marked with the preset prompt identification displayed on the displayable area of the current screen, including: the identifier ID of the marked hot word, The number and line information corresponding to the marked hot word on the displayable area of the current screen. The expression form of the preset prompt logo can be customized, and may specifically include: underline, emphasized display, italics, or other forms of expression that are sufficient to prominently prompt the marked hot words.

用户终端100可首先获取当前屏幕对即时通信消息的显示规则,例如:该当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信消息之间的行间距等等;然后,根据该显示规则、该当前屏幕上已显示的即时通信消息、该消息列表,确定消息刷新后在该当前屏幕上显示的待显示的即时通信消息;根据已标记热词列表,确定该待显示的即时通信消息中的目标热词,使得将该待显示的即时通信消息显示在当前屏幕上时,在该当前屏幕上所有标记了该预置标识的热词小于或等于预置的数值。Theuser terminal 100 may first obtain the display rules for instant messaging messages on the current screen, for example: the length and width of the displayable area of the current screen, the length and width of the preset display font, the difference between each line of displayed instant messaging messages. line spacing, etc.; then, according to the display rule, the instant messaging messages displayed on the current screen, and the message list, determine the instant messaging messages to be displayed on the current screen after the message is refreshed; according to the marked hot words list, and determine the target hot words in the instant messaging message to be displayed, so that when the instant messaging message to be displayed is displayed on the current screen, all the hot words marked with the preset identifier on the current screen are less than or equal to preset value.

步骤S13,将该目标热词标记预置提示标识,并将包含标记了该预置提示标识的该目标热词的该待显示的即时通信消息显示在当前屏幕。Step S13, marking the target hot word with a preset prompt identifier, and displaying the to-be-displayed instant communication message containing the target hot word marked with the preset prompt identifier on the current screen.

具体地,用户终端100可首先将确定的目标热词标记下划线,该下划线中还可以包含以下信息之一:搜索该目标热词的搜索页面网址的链接,该目标热词的本地释义信息,该目标热词的网络释义网址的链接;然后,将包含标记有预置提示标识的目标热词的待显示的即时通信消息渲染在当前屏幕的可显示区域上,以显示给用户。Specifically, theuser terminal 100 may first underline the determined target hot word, and the underline may further include one of the following information: a link to a search page URL for searching the target hot word, local definition information of the target hot word, the A link to the network definition URL of the target hot word; then, the to-be-displayed instant messaging message containing the target hot word marked with a preset prompt identifier is rendered on the displayable area of the current screen to be displayed to the user.

本发明实施例提供的基于即时通信的热词提示方法,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The instant messaging-based hot word prompting method provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed in the current When on the screen, all the hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages and reducing The interference to users reduces the probability of misoperation and further improves data processing efficiency.

第二实施例Second Embodiment

请参阅图4,图4为本发明第二实施例提供的基于即时通信的热词提示方法的流程图。本实施例可应用于图1所示的应用环境中,通过图1所示的用户终端100实现基于即时通信的热词提示。如图4所示,本实施例提供的基于即时通信的热词提示方法包括以下步骤:Please refer to FIG. 4 , which is a flowchart of a method for prompting hot words based on instant messaging according to a second embodiment of the present invention. This embodiment can be applied to the application environment shown in FIG. 1 , and theuser terminal 100 shown in FIG. 1 implements hot word prompting based on instant messaging. As shown in FIG. 4 , the instant messaging-based hot word prompting method provided by this embodiment includes the following steps:

步骤S21,当接收到服务器发送的即时通信消息,或接收到用户输入的即时通信消息时,确定消息刷新指令被触发,用户终端加载消息列表;Step S21, when receiving the instant communication message sent by the server or receiving the instant communication message input by the user, it is determined that the message refresh instruction is triggered, and the user terminal loads the message list;

于本实施例中,用户终端100中预置有即时通信客户端程序,通过该即时通信客户端程序,用户终端100可接收用户在该即时通信客户端的交互界面输入的即时通信消息,也可接收服务器300转发的来自用户终端200的即时通信消息,并显示给用户。In this embodiment, an instant messaging client program is preset in theuser terminal 100, and through the instant messaging client program, theuser terminal 100 can receive the instant messaging messages input by the user on the interactive interface of the instant messaging client, and can also receive The instant communication message from the user terminal 200 forwarded by the server 300 is displayed to the user.

消息刷新指令可以用于刷新当前屏幕的可显示区域上显示的即时通信消息。当检测接收到服务器300发送的即时通信消息,或接收到本机用户在该即时通信客户端的交互界面输入的即时通信消息时,用户终端100确定该消息刷新指令被触发。The message refresh instruction can be used to refresh the instant messaging message displayed on the displayable area of the current screen. Theuser terminal 100 determines that the message refresh instruction is triggered when detecting and receiving the instant messaging message sent by the server 300 or receiving the instant messaging message input by the local user on the interactive interface of the instant messaging client.

消息列表中可以记录用户终端100当前已接收的所有即时通信消息的信息,包括:当前接收的与历史接收的本机用户输入的,或服务器300发送的每一条即时通信消息的标示符ID、内容、发送者标识符ID以及接收时间等等。当检测到该消息刷新指令被触发时,用户终端100获取该消息列表,并加载该消息列表中记录的内容。进一步的,为提高加载速度,用户终端100可以只加载该消息列表中最近接收的预置数量的即时通信消息。The information of all instant messaging messages currently received by theuser terminal 100 can be recorded in the message list, including: the identifier ID and content of each instant messaging message input by the current received and historically received local users, or each instant messaging message sent by the server 300 , sender identifier ID, and reception time, etc. When detecting that the message refresh instruction is triggered, theuser terminal 100 acquires the message list and loads the content recorded in the message list. Further, in order to improve the loading speed, theuser terminal 100 may only load the recently received preset number of instant communication messages in the message list.

步骤S22,从系统中获取当前屏幕对即时通信消息的显示规则;Step S22, obtain the display rule of the current screen to the instant messaging message from the system;

于本实施例中,显示规则可以包括:当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信息消息之间的行间距等等。In this embodiment, the display rules may include: 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 displayed line of instant messaging messages, and the like.

步骤S23,根据该显示规则和该消息列表中各即时通信消息,确定刷新后在该当前屏幕上显示的各条已显示的即时通信消息以及待显示的即时通信消息;Step S23, according to the display rule and each IM message in the message list, determine each displayed IM message and the IM message to be displayed that are displayed on the current screen after refreshing;

具体地,用户终端100可根据该当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信消息之间的行间距等显示规则,该消息列表中各即时通信消息的字符数,按照接收的时间先后顺序,确定刷新后将会在该当前屏幕上显示的即时通信消息。该刷新后将会在该当前屏幕上显示的即时通信消息包括:刷新后在该当前屏幕上显示的各条已显示的即时通信消息以及待显示的即时通信消息。其中,该待显示的即时通信消息,也就是新近接收到的即时通信消息。然后,用户终端100根据刷新前该当前屏幕上显示的即时通信消息,从该刷新后将会在该当前屏幕上显示的即时通信消息中确定出该各条已显示的即时通信消息,也就是该刷新后将会在该当前屏幕上显示的即时通信消息中除了新接收的即时通信消息与即将滚动出该当前屏幕的即时通信消息的整体或部分以外的那部分即时通信消息。可以理解地,根据每一条即时通信消息所包含的字符数以及显示规则,一条即时通信消息可以被单行或多行显示。Specifically, theuser terminal 100 may display rules such as 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 displayed instant messaging messages, etc., in the message list The number of characters of each instant messaging message determines the instant messaging messages that will be displayed on the current screen after being refreshed according to the time sequence of receipt. The instant messaging messages to be displayed on the current screen after the refresh include: the displayed instant messaging messages and the instant messaging messages to be displayed on the current screen after the refreshing. The instant communication message to be displayed is the newly received instant communication message. Then, theuser terminal 100 determines the displayed IM messages from the IM messages that will be displayed on the current screen after the refresh according to the IM messages displayed on the current screen before the refresh, that is, the IM messages that have been displayed. After refreshing, the instant messaging messages displayed on the current screen are the part of the instant messaging messages except the newly received instant messaging messages and the whole or part of the instant messaging messages that will be scrolled off the current screen. It can be understood that, according to the number of characters contained in each instant communication message and the display rules, an instant communication message can be displayed in a single line or multiple lines.

例如:假设消息列表中包含100条按照接收时间的先后顺序排列的即时通信消息,其中最后一条为新近接收的即时通信消息。目前在该当前屏幕上已经显示的是该消息列表中的倒数第2至10条即时通信消息。其中,倒数第10条即时通信消息被分为2行显示。此时,根据该当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信消息之间的行间距等显示规则以及该消息列表中各即时通信消息的字符数,按照接收时间的先后顺序,可确定为了显示倒数第1条即时通信消息,倒数第10条即时通信消息的第一行内容在消息刷新后就会滚动出该当前屏幕,因此刷新后将会在该当前屏幕上显示的即时通信消息为消息列表中倒数第1至9条即时通信消息,以及倒数第10条即时通信消息的第二行内容。其中,倒数第2条至第9条以及倒数第10条即时通信消息的第二行内容为刷新后在该当前屏幕上显示的各条已显示的即时通信消息,倒数第1条即时消息信息为刷新后在该当前屏幕上显示的待显示的即时通信消息。For example, it is assumed that the message list contains 100 instant messaging messages arranged in the order of receiving time, and the last one is a newly received instant messaging message. What has been displayed on the current screen at present are the last 2 to 10 instant messaging messages in the message list. Among them, the 10th instant message from the bottom is divided into 2 lines 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 line of instant messaging messages displayed, and the instant messaging messages in the message list According to the order of reception time, it can be determined that in order to display the 1st IM message from the bottom, the first line of the 10th IM message from the bottom will scroll out of the current screen after the message is refreshed. The instant messaging messages that will be displayed on the current screen are the 1st to 9th instant messaging messages from the bottom in the message list, and the content of the second line of the 10th instant messaging message from the bottom. Among them, the content of the second line of the 2nd to 9th and 10th last instant messaging messages is the displayed instant messaging messages displayed on the current screen after the refresh, and the information of the last 1st instant message is: The instant messaging message to be displayed on the current screen after refreshing.

步骤S24,在已标记热词列表中,查询刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息;Step S24, in the marked hot word list, query the information of the marked hot words in each displayed instant messaging message displayed on the current screen after refreshing;

具体地,热词是指热门词汇或流行用语。已标记热词是指当前屏幕的可显示区域上显示的标记有预置提示标识的热词。Specifically, the hot words refer to hot words or popular terms. A marked hot word refers to a hot word that is displayed on the displayable area of the current screen and marked with a preset prompt.

于本实施例中,已标记热词列表中可以记录当前屏幕的可显示区域上已显示的标记有预置提示标识的已标记热词的信息,包括:该已标记热词的标识符ID、数量以及该已标记热词对应在该当前屏幕的可显示区域上的行信息。其中,预置提示标识的表现形式可以自定义,具体可以包括:下划线,加重显示,斜体字,或其他足以起到醒目提示已标记热词作用的表现形式。In this embodiment, the marked hot word list can record the information of the marked hot word marked with the preset prompt identification displayed on the displayable area of the current screen, including: the identifier ID of the marked hot word, The number and line information corresponding to the marked hot word on the displayable area of the current screen. The expression form of the preset prompt logo can be customized, and may specifically include: underline, emphasized display, italics, or other forms of expression that are sufficient to prominently prompt the marked hot words.

用户终端100查询该已标记热词列表中,获取刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息,也就是刷新前后均在当前屏幕上显示的即时通信息消息中的已标记热词的信息。仍以步骤S23中所举的例子为例,假设该刷新后在该当前屏幕上显示的各条已显示的即时通信消息为:消息列表中的倒数第2条至第9条以及倒数第10条即时通信消息的第二行内容,则根据上述各条已显示的即时通信消息分别对应在该当前屏幕上的可显示区域的行信息,查询该已标记热词列表,获取与该行信息对应的已标记热词的标识符ID。该已标记热词的信息标识符ID对应的热词,也就是刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词。Theuser terminal 100 queries the marked hot word list, and obtains the information of the marked hot words in each displayed instant messaging message displayed on the current screen after the refresh, that is, the information displayed on the current screen before and after the refresh. Information on tagged hot words in instant messenger messages. Still taking the example in step S23 as an example, it is assumed that the displayed instant messaging messages displayed on the current screen after the refresh are: the second to ninth and last tenth messages in the message list. In the second line of the instant messaging message, according to the line information of the displayable area on the current screen corresponding to each of the above displayed instant messaging messages, query the list of marked hot words, and obtain the line information corresponding to the line information. Identifier ID of the tagged hotword. 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.

步骤S25,若该已标记热词小于预置的数值,则在该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词,且该目标热词与该已标记热词的数量之和小于或等于该预置的数值;Step S25, if the marked hot word is smaller than the preset value, select a hot word different from the marked hot word among the hot words in the instant communication message to be displayed as the target hot word, and the target hot word The sum of the number of the marked hot words is less than or equal to the preset value;

具体地,用户终端100统计确定出的刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的数量;当该已标记热词的数量小于预置的数值时,根据预置的热词词库确定该待显示的即时通信消息中的所有热词及其标识符ID;根据步骤S24中获取的刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的标识符ID,在该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词,且该目标热词与该已标记热词的数量之和小于或等于该预置的数值。优选地,该预置的数值为3。Specifically, theuser terminal 100 counts and determines the number of marked hot words in each displayed instant messaging message displayed on the current screen after refreshing; when the number of the marked hot words is less than a preset value , determine all the hot words and their identifier IDs in the instant messaging message to be displayed according to the preset hot word database; according to the refreshed obtained in step S24, the displayed instant messages displayed on the current screen The identifier ID of the marked hot word in the message, select a hot word different from the marked hot word among the hot words in the instant messaging message to be displayed as the target hot word, and the target hot word is the same as the marked hot word The sum of the number of hot words is less than or equal to the preset value. Preferably, the preset value is 3.

进一步地,每一条待显示的即时通信消息中的目标热词不超过一个。Further, there is no more than one target hot word in each instant communication message to be displayed.

步骤S26,将该目标热词标记下划线,并将包含标记了该下划线的该目标热词的该待显示的即时通信消息显示在当前屏幕;Step S26, underline the target hot word, and display on the current screen the instant messaging message to be displayed that includes the target hot word marked with the underline;

具体地,该下划线中可以包含以下信息之一:搜索该目标热词的搜索页面网址的链接,该目标热词的本地释义信息,该目标热词的网络释义网址的链接。Specifically, the underline may include one of the following information: a link to a search page URL for searching the target hot word, local definition information of the target hot word, and a link to a web definition URL of the target hot word.

用户终端100将该待显示的即时通信消息中的目标热词标记下划线,然后将包含标记了该下划线的目标热词的该待显示的即时通信消息渲染在当前屏幕的可显示区域上,以显示给用户。同时,用户终端100一并将该各条已显示的即时通信消息也渲染在该可显示区域中,并且保持该各条已显示的即时通信消息中的已标记热词的标记状态不变。刷新前后该当前屏幕的可显示区域上所显示的内容,可如图5所示。Theuser terminal 100 underlines the target hot word in the to-be-displayed instant messaging message, and then renders the to-be-displayed instant messaging message containing the underlined target hot word on the displayable area of the current screen to display to users. At the same time, theuser terminal 100 also renders the various displayed IM messages in the displayable area, and keeps the marked state of the marked hot words in the various displayed IM messages unchanged. The content displayed on the displayable area of the current screen before and after refreshing may be as shown in FIG. 5 .

步骤S27,清空该已标记热词列表,并将该当前屏幕上显示的标记了该预置提示标识的所有热词记录在该已标记热词列表中。Step S27, clearing the marked hot word list, and recording all the hot words displayed on the current screen marked with the preset prompt identifier in the marked hot word list.

具体地,用户终端100清空已标记热词列表中记录的内容,并根据消息刷新后当前屏幕的可显示区域上显示的标记了下划线的所有热词的标识符ID、对应在该当前屏幕的行信息等信息记录在该已标记热词列表中。Specifically, theuser terminal 100 clears the content recorded in the marked hot word list, and refreshes the current screen according to the identifier IDs of all underlined hot words displayed on the displayable area of the current screen after the message is refreshed, and the row corresponding to the current screen. Information and other information are recorded in this marked hot word list.

本发明实施例提供的基于即时通信的热词提示方法,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The instant messaging-based hot word prompting method provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed in the current When on the screen, all the hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages and reducing The interference to users reduces the probability of misoperation and further improves data processing efficiency.

第三实施例Third Embodiment

请参阅图6,图6为本发明第三实施例提供的基于即时通信的热词提示方法的流程图。本实施例可应用于图1所示的应用环境中,通过图1所示的用户终端100实现基于即时通信的热词提示。如图6所示,本实施例提供的基于即时通信的热词提示方法包括以下步骤:Please refer to FIG. 6 , which is a flowchart of a method for prompting hot words based on instant messaging according to a third embodiment of the present invention. This embodiment can be applied to the application environment shown in FIG. 1 , and theuser terminal 100 shown in FIG. 1 implements hot word prompting based on instant messaging. As shown in FIG. 6 , the instant messaging-based hot word prompting method provided by this embodiment includes the following steps:

步骤S31,当检测到用户的查看更多消息的操作时,确定消息刷新指令被触发,用户终端加载消息列表;Step S31, when the user's operation of viewing more messages is detected, it is determined that the message refresh instruction is triggered, and the user terminal loads the message list;

于本实施例中,用户终端100中预置有即时通信客户端程序,通过该即时通信客户端程序,用户终端100可接收用户在该即时通信客户端的交互界面输入的即时通信消息,也可接收服务器300转发的来自用户终端200的即时通信消息,并显示给用户。In this embodiment, an instant messaging client program is preset in theuser terminal 100, and through the instant messaging client program, theuser terminal 100 can receive the instant messaging messages input by the user on the interactive interface of the instant messaging client, and can also receive The instant communication message from the user terminal 200 forwarded by the server 300 is displayed to the user.

消息刷新指令可以用于刷新当前屏幕的可显示区域上显示的即时通信消息。当检测到本机用户在该即时通信客户端的交互界面进行的查看更多消息的操作时,用户终端100确定消息刷新指令被触发。该查看更多消息操作,可用于显示用户终端100接收的历史即时通信消息,或用于显示新接收到的即时通信消息中未被显示在该当前屏幕的可显示区域上的部分。The message refresh instruction can be used to refresh the instant messaging message displayed on the displayable area 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, theuser terminal 100 determines that the message refresh instruction is triggered. The viewing more messages operation may be used to display historical instant messaging messages received by theuser terminal 100, or may be used to display parts of newly received instant messaging messages that are not displayed on the displayable area of the current screen.

消息列表中可以记录用户终端100当前已接收的所有即时通信消息的信息,包括:当前接收的与历史接收的本机用户输入的,或服务器300发送的每一条即时通信消息的标示符ID、内容、发送者标识符ID以及接收时间等等。当检测到消息刷新指令被触发时,用户终端100获取该消息列表,并加载该消息列表中记录的内容。进一步的,为提高加载速度,用户终端100可以只加载消息列表中最近接收的预置数量的即时通信消息。The information of all instant messaging messages currently received by theuser terminal 100 can be recorded in the message list, including: the identifier ID and content of each instant messaging message input by the current received and historically received local users, or each instant messaging message sent by the server 300 , sender identifier ID, and reception time, etc. When detecting that the message refresh instruction is triggered, theuser terminal 100 acquires the message list and loads the content recorded in the message list. Further, in order to improve the loading speed, theuser terminal 100 may only load the recently received preset number of instant communication messages in the message list.

步骤S32,从系统中获取当前屏幕对即时通信消息的显示规则;Step S32, obtain the display rule of the current screen to the instant messaging message from the system;

于本实施例中,显示规则可以包括:当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信息消息之间的行间距等等。In this embodiment, the display rules may include: 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 displayed line of instant messaging messages, and the like.

步骤S33,根据该显示规则和该消息列表中各即时通信消息,确定刷新后在该当前屏幕上显示的各条已显示的即时通信消息以及待显示的即时通信消息;Step S33, according to the display rule and each IM message in the message list, determine each displayed IM message and to-be-displayed IM message displayed on the current screen after refreshing;

具体地,用户终端100可根据该当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信消息之间的行间距等显示规则,该消息列表中各即时通信消息的字符数,按照接收的时间先后顺序,确定刷新后将会在该当前屏幕上显示的即时通信消息。该刷新后将会在该当前屏幕上显示的即时通信消息包括:刷新后在该当前屏幕上显示的各条已显示的即时通信消息以及待显示的即时通信消息。然后,用户终端100根据刷新前该当前屏幕上显示的即时通信消息,从该刷新后将会在该当前屏幕上显示的即时通信消息中确定出该各条已显示的即时通信消息,也就是该刷新后将会在该当前屏幕上显示的即时通信消息中除去即将滚动出该当前屏幕的即时通信消息的整体或部分的那部分即时通信消息。Specifically, theuser terminal 100 may display rules such as 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 displayed instant messaging messages, etc., in the message list The number of characters of each instant messaging message determines the instant messaging messages that will be displayed on the current screen after being refreshed according to the time sequence of receipt. The instant messaging messages to be displayed on the current screen after the refresh include: the displayed instant messaging messages and the instant messaging messages to be displayed on the current screen after the refreshing. Then, theuser terminal 100 determines the displayed IM messages from the IM messages that will be displayed on the current screen after the refresh according to the IM messages displayed on the current screen before the refresh, that is, the IM messages that have been displayed. After refreshing, the whole or part of the instant communication message that is about to be scrolled out of the current screen will be removed from the instant communication message displayed on the current screen.

例如:假设消息列表中包含100条按照接收时间的先后顺序排列的即时通信消息,目前在该当前屏幕的可显示区域上已经显示的为该消息列表中的倒数第1至5条即时通信消息;根据该当前屏幕的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行即时通信消息之间的行间距等显示规则以及该消息列表中各即时通信消息的字符数,按照接收时间的先后顺序,可确定刷新后将会在该当前屏幕上显示的即时通信消息为消息列表中倒数第4至10条即时通信消息;根据目前在该当前屏幕的可显示区域上已经显示的即时通信消息以及刷新后将会在该当前屏幕上显示的即时通信消息,可以确定刷新后在该当前屏幕上显示的各条已显示的即时通信消息为倒数第4至5条即时通信消息,刷新后在该当前屏幕上显示的待显示的即时通信消息为倒数第6至10条即时通信消息。For example: Suppose the message list contains 100 instant messaging messages arranged in the order of the receiving time, and currently displayed on the displayable area of the current screen are the last 1 to 5 instant messaging messages in the message list; 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 line of instant messaging messages displayed, and the number of characters of each instant messaging message in the message list , according to the order of reception time, it can be determined that the instant messaging messages that will be displayed on the current screen after the refresh are the fourth to tenth last instant messaging messages in the message list; The displayed IM messages and the IM messages that will be displayed on the current screen after refreshing, it can be determined that each displayed IM message displayed on the current screen after refreshing is the 4th to 5th IM messages from the bottom , the to-be-displayed instant messaging messages displayed on the current screen after the refresh are the 6th to 10th instant messaging messages from the bottom.

步骤S34,在已标记热词列表中,查询刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息;Step S34, in the marked hot word list, query the information of the marked hot words in each displayed instant messaging message displayed on the current screen after refreshing;

具体地,热词是指热门词汇或流行用语。已标记热词是指当前屏幕的可显示区域上显示的标记有预置提示标识的热词。Specifically, the hot words refer to hot words or popular terms. A marked hot word refers to a hot word that is displayed on the displayable area of the current screen and marked with a preset prompt.

于本实施例中,已标记热词列表中可以记录当前屏幕的可显示区域上已显示的标记有预置提示标识的已标记热词的信息,包括:该已标记热词的标识符ID、数量以及该已标记热词对应在该当前屏幕的可显示区域上的行信息。其中,预置提示标识的表现形式可以自定义,具体可以包括:下划线,加重显示,斜体字,或其他足以起到醒目提示已标记热词作用的表现形式。In this embodiment, the marked hot word list can record the information of the marked hot word marked with the preset prompt identification displayed on the displayable area of the current screen, including: the identifier ID of the marked hot word, The number and line information corresponding to the marked hot word on the displayable area of the current screen. The expression form of the preset prompt logo can be customized, and may specifically include: underline, emphasized display, italics, or other forms of expression that are sufficient to prominently prompt the marked hot words.

用户终端100查询该已标记热词列表中,获取刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息,也就是刷新前后均在当前屏幕上显示的即时通信息消息中的已标记热词的信息。仍以步骤S33中所举的例子为例,假设刷新后在该当前屏幕上显示的各条已显示的即时通信消息为:消息列表中的倒数第4至5条即时通信消息,则用户终端100根据上述两条即时通信消息分别对应在当前屏幕上的可显示区域的行信息,查询该已标记热词列表,获取与该行信息对应的已标记热词的标识符ID。该已标记热词的信息标识符ID对应的热词,也就是刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词。Theuser terminal 100 queries the marked hot word list, and obtains the information of the marked hot words in each displayed instant messaging message displayed on the current screen after the refresh, that is, the information displayed on the current screen before and after the refresh. Information on tagged hot words in instant messenger messages. Still taking the example in step S33 as an example, assuming that the displayed instant messaging messages displayed on the current screen after refreshing are: the fourth to fifth instant messaging messages from the bottom in the message list, then theuser terminal 100 According to the row information of the displayable area on the current screen respectively corresponding to the two instant messaging messages, query the marked hot word list to obtain the identifier ID of the marked hot word corresponding to the row 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.

步骤S35,若该已标记热词小于预置的数值,则逐条在该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词,每一条该待显示的即时通信消息中的目标热词不超过1个,且该目标热词与该已标记热词的数量之和小于或等于该预置的数值;Step S35, if the marked hot word is less than the preset value, select a hot word different from the marked hot word among the hot words in the instant message to be displayed one by one as the target hot word. There is no more than one target hot word in the displayed instant messaging message, and the sum of the number of the target hot word and the marked hot word is less than or equal to the preset value;

具体地,用户终端100统计确定出的刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的数量;当该已标记热词的数量小于预置的数值时,根据预置的热词词库确定该待显示的即时通信消息中的所有热词及其标识符ID;根据步骤S34中获取的刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的标识符ID,逐条在该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词。其中,每一条待显示的即时通信消息中的目标热词不超过一个,且该目标热词与该已标记热词的数量之和小于或等于该预置的数值。优选地,该预置的数值为3。Specifically, theuser terminal 100 counts and determines the number of marked hot words in each displayed instant messaging message displayed on the current screen after refreshing; when the number of the marked hot words is less than a preset value , determine all the hot words and their identifier IDs in the instant messaging message to be displayed according to the preset hot word database; according to the refreshed obtained in step S34, the displayed instant messages displayed on the current screen The identifier ID of the marked hot word in the message, and a hot word different from the marked hot word among the hot words in the instant communication message to be displayed one by one is selected as the target hot word. Wherein, there is no more than one target hot word in each instant communication message to be displayed, and the sum of the number of the target hot word and the marked hot word is less than or equal to the preset value. Preferably, the preset value is 3.

举例来说,假设预置的数值为3,刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词为:天气;当前一共有3条待显示的即时通信消息;按照出现的时间先后顺序,根据预置的热词词库,确定出第一条待显示的即时通信消息中的热词为:天气、高考、爆炸;第二条待显示的即时通信消息中的热词分别为:天气、高考、爆炸、台风;第三条待显示的即时通信息消息中的热词为:爆炸、越南。则用户终端100首先在第一条待显示的即时通信消息中选择与已标记热词(天气)不同的热词(高考、爆炸),由于每一条待显示的即时通信消息中的目标热词不超过一个,因此按照出现的时间先后顺序,将高考确定为第一条待显示的即时通信消息中的目标热词;其后,用户终端100在第二条待显示的即时通信消息中选择与已标记热词(天气)不同的热词(高考、爆炸、台风),由于高考已经被选为第一条待显示的即时通信消息中的目标热词,并且每一条待显示的即时通信消息中的目标热词不超过一个,因此按照出现的时间先后顺序,将爆炸确定为第二条待显示的即时通信消息中的目标热词;接着,由于已经确定出的目标热词加上已标记热词的数量已经等于预置的数值3,因此用户终端100不继续在第三待显示的即时通信消息中的热词中选择目标热词。For example, assuming that the preset value is 3, the marked hot words in each displayed IM message displayed on the current screen after refresh are: weather; there are currently 3 IM messages to be displayed. ; According to the chronological order of appearance, according to the preset hot word thesaurus, it is determined that the hot words in the first instant message to be displayed are: weather, college entrance examination, explosion; in the second instant message to be displayed The hot words are: weather, college entrance examination, explosion, typhoon; the hot words in the third instant messaging message to be displayed are: explosion, Vietnam. Then theuser terminal 100 first selects a hot word (college entrance examination, explosion) that is different from the marked hot word (weather) in the first instant communication message to be displayed, because the target hot word in each instant communication message to be displayed is different. There are more than one, therefore, according to the chronological order of appearance, the college entrance examination is determined as the target hot word in the first instant communication message to be displayed; after that, theuser terminal 100 selects and has been selected in the second instant communication message to be displayed. Mark hot words (weather) with different hot words (gaokao, explosion, typhoon), because the college entrance examination has been selected as the target hot word in the first instant message to be displayed, and the There is no more than one target hot word, so according to the chronological order of appearance, the explosion is determined as the target hot word in the second instant messaging message to be displayed; then, since the determined target hot word is added to the marked hot word The number of is already equal to the preset value of 3, so theuser terminal 100 does not continue to select the target hot word among the hot words in the third instant communication message to be displayed.

进一步地,若确定刷新后在该当前屏幕上显示的各条已显示的即时通信消息中包含的该已标记热词的数量为零,则用户终端100可直接逐条在该待显示的即时通信消息的所有热词中,按照排列顺序从前往后或从后往前选取与该预置数值相等的数量的热词作为该目标热词。其中每一条待显示的即时通信消息中的目标热词不超过一个,且所有待显示的即时通信消息中的目标热词的总数不超过该预置的数值。Further, if it is determined that the number of the marked hot words included in each displayed IM message displayed on the current screen after refreshing is zero, theuser terminal 100 can directly display the IM message to be displayed one by one. Among all the hot words of , according to the sorting order, select the hot words in the number equal to the preset value as the target hot words from front to back or from back to front. The target hot word in each instant communication message to be displayed does not exceed one, and the total number of target hot words in all the instant communication messages to be displayed does not exceed the preset value.

步骤S36,将该目标热词标记下划线,并将包含标记了该下划线的该目标热词的该待显示的即时通信消息显示在当前屏幕;Step S36, underline the target hot word, and display on the current screen the instant messaging message to be displayed that includes the target hot word marked with the underline;

具体地,该下划线中可以包含以下信息之一:搜索该目标热词的搜索页面网址的链接,该目标热词的本地释义信息,该目标热词的网络释义网址的链接。Specifically, the underline may include one of the following information: a link to a search page URL for searching the target hot word, local definition information of the target hot word, and a link to a web definition URL of the target hot word.

用户终端100将该待显示的即时通信消息中的目标热词标记下划线,然后将包含标记了该下划线的目标热词的该待显示的即时通信消息渲染在当前屏幕的可显示区域上,以显示给用户。同时,用户终端100一并将该各条已显示的即时通信消息也渲染在该可显示区域中,并且保持该各条已显示的即时通信消息中的已标记热词的标记状态不变。刷新前后该当前屏幕的可显示区域上所显示的内容,可如图5所示。Theuser terminal 100 underlines the target hot word in the to-be-displayed instant messaging message, and then renders the to-be-displayed instant messaging message containing the underlined target hot word on the displayable area of the current screen to display to users. At the same time, theuser terminal 100 also renders the various displayed IM messages in the displayable area, and keeps the marked state of the marked hot words in the various displayed IM messages unchanged. The content displayed on the displayable area of the current screen before and after refreshing may be as shown in FIG. 5 .

步骤S37,清空该已标记热词列表,并将该当前屏幕上显示的标记了该预置提示标识的所有热词记录在该已标记热词列表中。Step S37, clearing the marked hot word list, and recording all the hot words displayed on the current screen marked with the preset prompt identifier in the marked hot word list.

具体地,用户终端100清空已标记热词列表中记录的内容,并根据消息刷新后当前屏幕的可显示区域上显示的标记了下划线的所有热词的标识符ID、对应在该当前屏幕的行信息等信息记录在该已标记热词列表中。Specifically, theuser terminal 100 clears the content recorded in the marked hot word list, and refreshes the current screen according to the identifier IDs of all underlined hot words displayed on the displayable area of the current screen after the message is refreshed, and the row corresponding to the current screen. Information and other information are recorded in this marked hot word list.

本发明实施例提供的基于即时通信的热词提示方法,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The instant messaging-based hot word prompting method provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed in the current When on the screen, all the hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages and reducing The interference to users reduces the probability of misoperation and further improves data processing efficiency.

第四实施例Fourth Embodiment

请参阅图7,图7为本发明第四实施例提供的基于即时通信的热词提示方法的流程图。本实施例可应用于图1所示的应用环境中,通过图1所示的用户终端100实现基于即时通信的热词提示。与前述实施例不同的是,在本实施例中实时更新已标记热词列表。如图7所示,本实施例提供的基于即时通信的热词提示方法包括以下步骤:Please refer to FIG. 7 , which is a flowchart of a method for prompting hot words based on instant messaging according to a fourth embodiment of the present invention. This embodiment can be applied to the application environment shown in FIG. 1 , and theuser terminal 100 shown in FIG. 1 implements hot word prompting based on instant messaging. Different from the previous embodiment, in this embodiment, the marked hot word list is updated in real time. As shown in FIG. 7 , the instant messaging-based hot word prompting method provided by this embodiment includes the following steps:

步骤S41,当检测到消息刷新指令被触发时,用户终端加载消息列表;Step S41, when detecting that the message refresh instruction is triggered, the user terminal loads the message list;

步骤S42,从系统中获取当前屏幕对即时通信消息的显示规则;Step S42, obtain the display rule of the current screen to the instant messaging message from the system;

步骤S41与步骤S42具体可参考第一至第三实施例的相关内容,此处不再赘述。For details of step S41 and step S42, reference may be made to the relevant contents of the first to third embodiments, and details are not repeated here.

步骤S43,根据该显示规则、该当前屏幕上已显示的即时通信消息以及该消息列表,更新已标记热词列表;Step S43, update the marked hot word list according to the display rule, the instant messaging messages displayed on the current screen and the message list;

具体地,热词是指热门词汇或流行用语。已标记热词是指当前屏幕上显示的标记有预置提示标识的热词。Specifically, the hot words refer to hot words or popular terms. A marked hot word refers to a hot word that is currently displayed on the screen and marked with a preset prompt.

于本实施例中,已标记热词列表中可以记录当前屏幕上显示的标记有预置提示标识的已标记热词的信息,包括:该已标记热词的标识符ID、数量、以及该已标记热词对应在该当前屏幕上的行信息。其中,预置提示标识的表现形式可以自定义,具体可以包括:下划线,加重显示,斜体字,或其他足以起到醒目提示已标记热词作用的表现形式。In this embodiment, the marked hot word list can record the information of the marked hot word displayed on the current screen marked with the preset prompt identifier, including: the identifier ID of the marked hot word, the number, and the number of the marked hot word. The marked hot word corresponds to the line information on the current screen. The expression form of the preset prompt logo can be customized, and may specifically include: underline, emphasized display, italics, or other forms of expression that are sufficient to prominently prompt the marked hot words.

具体地,用户终端100根据显示规则以及消息列表,确定该当前屏幕上已经显示的即时通信消息中将滚动出当前屏幕的即时通信消息,获取该将滚动出当前屏幕的即时通信消息中包含的已标记热词的信息,根据该将滚动出当前屏幕的即时通信消息中包含的已标记热词的信息,更新该已标记热词列表。Specifically, according to the display rule and the message list, theuser terminal 100 determines that among the instant messaging messages that have been displayed on the current screen, the instant messaging messages that will scroll out of the current screen, and obtains the already scrolled out instant messaging messages that are included in the current screen. The information of the marked hot words is updated according to the information of the marked hot words contained in the instant communication message that will scroll out of the current screen.

例如:假设根据显示规则,在该当前屏幕上能够显示的即时通信消息的数目为10行,消息列表中记录了100条即时通信消息的信息,其中最后1条是当前获取的最新即时通信消息,当前屏幕上已显示了10行即时通信消息。可以理解地,由于一条即时通信消息根据当前屏幕的宽度,可以被单行或多行显示,因此假设这10行即时通信消息为消息列表中的倒数第2-9条即时通信消息,其中倒数第9条即时通信息是多行显示的。For example: suppose that according to the display rules, the number of instant messaging messages that can be displayed on the current screen is 10 lines, the information of 100 instant messaging messages is recorded in the message list, and the last one is the latest instant messaging message currently obtained. 10 lines of instant messaging messages are currently displayed on the screen. Understandably, since an instant messaging message can be displayed in a single line or multiple lines according to the width of the current screen, it is assumed that these 10 lines of instant messaging messages are the 2nd to 9th IM messages from the bottom in the message list, of which the 9th from the bottom. An instant messenger message is displayed on multiple lines.

此时,如果要将消息列表中最后接收到的那条即时通信消息显示在当前屏幕上,则必须将消息列表中的倒数第9条即时通信消息中第一行显示的内容滚动出当前屏幕,于是用户终端100获取该第一行显示的内容中的已标记热词的信息(该已标记热词的标识符ID、对应在当前屏幕上的行信息),根据获取的该已标记热词的信息,删除已标记热词列表中对应的信息,并更新已标记热词列表中的已标记热词的数量,及其他已标记热词对应在当前屏幕上的行信息。也就是将其他已标记热词在当前屏幕上所处的当前行数,更新为当前屏幕刷新后将会被显示在当前屏幕上的行数。At this point, if you want to display the last received instant messaging message in the message list on the current screen, you must scroll the content displayed in the first line of the ninth last instant messaging message in the message list out of the current screen. Then theuser terminal 100 obtains the information of the marked hot word in the content displayed in the first line (the identifier ID of the marked hot word, the line information corresponding to the current screen), and according to the obtained information of the marked hot word information, delete the corresponding information in the marked hot word list, and update the number of marked hot words in the marked hot word list, and the line information on the current screen corresponding to other marked hot words. That is, the current line number of other marked hot words on the current screen is updated to the line number that will be displayed on the current screen after the current screen is refreshed.

可以理解地,当该当前屏幕上已经显示的即时通信消息中不存在将滚动出当前屏幕的即时通信消息时,也即当前屏幕的可显示区域上还有空间可以显示其他即时通信息时,用户终端100可不更新该已标记热词列表的内容。Understandably, when there is no IM message that will be scrolled out of the current screen among the IM messages already displayed on the current screen, that is, when there is still room for other IM messages to be displayed on the displayable area of the current screen, the user The terminal 100 may not update the content of the marked hot word list.

步骤S44,根据更新的已标记热词列表,判断该已标记热词的数量是否小于预置的数值;Step S44, according to the updated marked hot word list, determine whether the number of the marked hot words is less than a preset value;

优选地,预置的数值为3,也就是说当前屏幕上最多可以显示三个带有预置提示标识的热词。具体地,用户终端100根据更新的已标记热词列表中记录的已标记热词的数量,判断该已标记热词的数量是否小于预置的数值。Preferably, the preset value is 3, that is to say, at most three hot words with preset prompt signs can be displayed on the current screen. Specifically, theuser terminal 100 determines whether the number of the marked hot words is less than the preset value according to the number of the marked hot words recorded in the updated marked hot word list.

步骤S45,若小于,则根据该显示规则和该消息列表中各即时通信消息,确定刷新后在该当前屏幕上显示的待显示的即时通信消息;Step S45, if it is less than, according to the display rule and each instant messaging message in the message list, determine the instant messaging message to be displayed on the current screen after refreshing;

具体地,若已标记热词列表中记录的已标记热词的数量小于预置的数值,则用户终端100根据当前屏幕上已显示的即时通信消息中除了将滚动出当前屏幕的即时通信消息以外的即时通信消息、显示规则以及消息队列中记录的即时通信消息的信息,从该消息队列中确定出待显示的即时通信消息。Specifically, if the number of marked hot words recorded in the marked hot word list is less than the preset value, theuser terminal 100 will scroll out the instant messaging messages on the current screen according to the instant messaging messages displayed on the current screen. The instant messaging message, the display rule, and the information of the instant messaging message recorded in the message queue, and the instant messaging message to be displayed is determined from the message queue.

可以理解地,按照获取时间的先后顺序,从后往前数,该队列消息中符合该显示规则即时通信消息中,不包含该当前屏幕上已显示的即时通信消息中除了将滚动出当前屏幕的即时通信消息以外的其他即时通消息的部分,就是待显示的即时通信消息。Understandably, according to the order of acquisition time, counting from the back to the front, the instant messaging messages in the queue message that meet the display rule do not include the instant messaging messages displayed on the current screen except for the ones that will scroll out of the current screen. The part of other instant messaging messages other than the instant messaging message is the instant messaging message to be displayed.

当消息刷新指令因获取到用户输入的即时通信消息,或接收到服务器300发送的即时通信消息而触发时,该待显示的即时通信消息就是消息列表中记录的在当前屏幕的最下端显示的即时通信消息获取时间之后获取到的即时通信消息。When the message refresh instruction is triggered by acquiring the IM message input by the user or receiving the IM message sent by the server 300, the IM message to be displayed is the IM message recorded in the message list and displayed at the bottom of the current screen. The instant communication message obtained after the communication message acquisition time.

当消息刷新指令因检测到用户在该即时通信客户端程序的交互界面进行的查看更多消息的操作而触发时,由于该查看更新消息的操作是用于在当前屏幕上显示获取时间早于位于当前屏幕的最顶端的即时通信消息的其他即时通信消息,因此需要将当前屏幕上已显示的所有即时通信消息滚动出当前屏幕,此时,消息列表中获取时间早于位于当前屏幕的最顶端的即时通信消息的符合当前屏幕可显示的数目的数量个即时通信消息,就是该待显示的即时通信消息。When the message refresh instruction is triggered by detecting the user's operation of viewing more messages on the interactive interface of the instant messaging client program, because the operation of viewing and updating messages is used to display the acquisition time on the current screen earlier than The IM messages at the top of the current screen are other IM messages. Therefore, all IM messages displayed on the current screen need to be scrolled out of the current screen. The number of instant messaging messages of the instant messaging message that matches the number that can be displayed on the current screen is the instant messaging messages to be displayed.

步骤S46,从该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词;Step S46, selecting a hot word different from the marked hot word from the hot word in the instant messaging message to be displayed as the target hot word;

具体地,用户终端100根据热词词库确定该待显示的即时通信消息中的所有热词及其标识符ID。然后根据更新的已标记热词列表中记录的已标记热词的标识符ID,从所有热词确定出待标记热词,并根据已标记热词列表中记录的已标记热词的标识符ID以及预置的数值,从该待标记热词中确定出目标热词,该目标热词的数量与该已标记热词的数量之和等于该预置的数值。其中待标记热词是与更新的已标记热词列表中记录的已标记热词不一样的词,并且每一条待显示的即时通信消息中所包含的目标热词的个数不超过一个。Specifically, theuser terminal 100 determines all hot words and their identifier IDs in the to-be-displayed instant messaging message according to the hot word thesaurus. Then, according to the identifier ID of the marked hot word recorded in the updated marked hot word list, determine the hot word to be marked from all the hot words, and according to the identifier ID of the marked hot word recorded in the marked hot word list and a preset numerical value, the target hot word is determined from the hot word to be marked, and the sum of the number of the target hot word and the number of the marked hot word is equal to the preset numerical value. The hot word to be marked is a word different from the marked hot word recorded in the updated marked hot word list, and each instant message to be displayed contains no more than one target hot word.

例如:假设已标记热词列表中记录的已标记热词为:天气,已标记热词的数量为1,预置的数值为3,第一条待显示的即时通信消息中的待标记热为:天气、高考、爆炸,第二条待显示的即时通信消息中的待标记热词为:高考、爆炸、旅游,则根据上述规则已标记热词的数量与预置的数值可知目标热词的数量为3-1=2,并且由于每一条待显示的即时通信消息中只能有一个目标热词,因此,根据待标记热词的出现顺序,可确定第一条待显示的即时通信消息中的目标热词为高考,第二条待显示的即时通信消息中的目标热词为爆炸。For example: Suppose the marked hot words recorded in the marked hot words list are: weather, the number of marked hot words is 1, the preset value is 3, and the hot words to be marked in the first instant messaging message to be displayed are : weather, college entrance examination, explosion, the hot words to be marked in the second instant message to be displayed are: college entrance examination, explosion, travel, according to the above rules, the number of marked hot words and the preset value can be used to know the target hot word The number is 3-1=2, and since there can only be one target hot word in each instant message to be displayed, therefore, according to the appearance order of hot words to be marked, it can be determined that the first instant message to be displayed contains The target hot word is college entrance examination, and the target hot word in the second instant message to be displayed is explosion.

步骤S47,将该目标热词标记预置提示标识,并将包含标记了该预置提示标识的该目标热词的该待显示的即时通信消息显示在当前屏幕。Step S47, marking the target hot word with a preset prompt identifier, and displaying the to-be-displayed instant communication message containing the target hot word marked with the preset prompt identifier on the current screen.

用户终端100可为确定出的目标热词标记预置提示标识。例如:将所确定出的目标热词标记下划线,该下划线中还可以包含以下信息之一:搜索该目标热词的搜索页面网址的链接,该目标热词的本地释义信息,该目标热词的网络释义网址的链接。Theuser terminal 100 may pre-set a prompt mark for the determined target hot word mark. For example: mark the determined target hot word with an underline, and the underline may also contain one of the following information: the link of the search page URL for searching the target hot word, the local definition information of the target hot word, the information of the target hot word A link to a web paraphrase URL.

然后,用户终端100将标记的目标热词的信息(目标热词的标识符ID及对应在当前屏幕的可显示区域上的行信息)添加在已标记热词列表中,同时更新已标记热词列表中记录的其他已标记热词对应的行信息。Then, theuser terminal 100 adds the information of the marked target hot word (the identifier ID of the target hot word and the line information corresponding to the displayable area of the current screen) in the marked hot word list, and at the same time updates the marked hot word Line information corresponding to other marked hot words recorded in the list.

之后,根据更新后的该已标记热词列表中记录的已标记热词的信息,刷新当前屏幕的可显示区域,通过页面渲染,更新当前屏幕的可显示区域上显示的内容,以便将包含标记有该预置提示标识的目标热词的该待显示的即时通信消息显示在当前屏幕上。After that, according to the information of the marked hot words recorded in the updated marked hot word list, refresh the displayable area of the current screen, and update the content displayed on the displayable area of the current screen through page rendering, so as to include the markup The to-be-displayed instant messaging message with the target hot word identified by the preset prompt is displayed on the current screen.

可以理解地,若无法在待显示的即时通信消息中匹配出目标热词,则直接将该待显示的即时通信消息渲染在当前屏幕上。Understandably, if the target hot word cannot be matched in the instant communication message to be displayed, the instant communication message to be displayed is directly rendered on the current screen.

本发明实施例提供的基于即时通信的热词提示方法,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The instant messaging-based hot word prompting method provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed in the current When on the screen, all the hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages and reducing The interference to users reduces the probability of misoperation and further improves data processing efficiency.

第五实施例Fifth Embodiment

图8为本发明第四实施例提供的基于即时通信的热词提示装置的结构示意图。本实施例提供的基于即时通信的热词提示装置可运行于图1所示的用户终端100中,用于实现上述实施例中的基于即时通信的热词提示方法。如图8所示,基于即时通信的热词提示装置50包括:加载模块51、确定模块52以及标记模块53。FIG. 8 is a schematic structural diagram of a device for prompting hot words based on instant messaging according to a fourth embodiment of the present invention. The instant messaging-based hot word prompting device provided in this embodiment may run in theuser terminal 100 shown in FIG. 1 to implement the instant messaging-based hot word prompting method in the foregoing embodiment. As shown in FIG. 8 , the instant messaging-based hotword prompting device 50 includes: aloading module 51 , a determiningmodule 52 and a markingmodule 53 .

加载模块51,用于当检测到消息刷新指令被触发时,加载消息列表;Theloading module 51 is used to load the message list when it is detected that the message refresh instruction is triggered;

确定模块52,用于根据加载模块51加载的该消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将该待显示的即时通信消息显示在当前屏幕上时,在该当前屏幕上所有标记了该预置标识的热词小于或等于预置的数值;The determiningmodule 52 is used to determine the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list loaded by theloading module 51, so that when the instant messaging message to be displayed is displayed on the current screen , all the hot words marked with the preset identifier on the current screen are less than or equal to the preset value;

标记模块53,用于将确定模块52确定的该目标热词标记预置提示标识,并将包含标记了该预置提示标识的该目标热词的该待显示的即时通信消息显示在当前屏幕。The markingmodule 53 is configured to mark the target hot word determined by the determiningmodule 52 with a preset prompt identifier, and display the to-be-displayed IM message containing the target hot word marked with the preset prompt identifier on the current screen.

以上各模块可以是由软件代码实现,此时,上述的各模块可存储于存储器102内,如图9所示。以上各模块同样可以由硬件例如集成电路芯片实现。The above modules may be implemented by software codes. In this case, the above modules may be stored in thememory 102, as shown in FIG. 9 . The above modules can also be implemented by hardware such as integrated circuit chips.

本实施例对基于即时通信的热词提示装置50的各功能模块实现各自功能的具体过程,请参见上述图1至图7所示实施例中描述的具体内容,此处不再赘述。For the specific process of each functional module of the instant messaging-based hotword prompting device 50 implementing their respective functions in this embodiment, please refer to the specific content described in the embodiments shown in FIG. 1 to FIG. 7 above, and will not be repeated here.

本发明实施例提供的基于即时通信的热词提示装置,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The instant messaging-based hot word prompting device provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed in the current When on the screen, all the hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages and reducing The interference to users reduces the probability of misoperation and further improves data processing efficiency.

第六实施例Sixth Embodiment

图10为本发明第六实施例提供的基于即时通信的热词提示装置的结构示意图。本实施例提供的基于即时通信的热词提示装置可以运行于图1所示的用户终端100中,用于实现上述实施例中的基于即时通信的热词提示方法。如图10所示,基于即时通信的热词提示装置60包括:加载模块51、确定模块52、标记模块53、选取模块61、记录模块62以及检测模块63。FIG. 10 is a schematic structural diagram of a device for prompting hot words based on instant messaging according to a sixth embodiment of the present invention. The instant messaging-based hot word prompting device provided in this embodiment may run in theuser terminal 100 shown in FIG. 1 to implement the instant messaging-based hot word prompting method in the foregoing embodiment. As shown in FIG. 10 , the instant messaging-based hotword prompting device 60 includes: aloading module 51 , adetermination module 52 , a markingmodule 53 , aselection module 61 , arecording module 62 and adetection module 63 .

加载模块51,用于当检测到消息刷新指令被触发时,加载消息列表;Theloading module 51 is used to load the message list when it is detected that the message refresh instruction is triggered;

确定模块52,用于根据加载模块51加载的该消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将该待显示的即时通信消息显示在当前屏幕上时,在该当前屏幕上所有标记了该预置标识的热词的数量小于或等于预置的数值;The determiningmodule 52 is used to determine the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list loaded by theloading module 51, so that when the instant messaging message to be displayed is displayed on the current screen , the number of all hot words marked with the preset identifier on the current screen is less than or equal to the preset value;

标记模块53,用于将确定模块52确定的该目标热词标记预置提示标识,并将包含标记了该预置提示标识的该目标热词的该待显示的即时通信消息显示在当前屏幕。The markingmodule 53 is configured to mark the target hot word determined by the determiningmodule 52 with a preset prompt identifier, and display the to-be-displayed IM message containing the target hot word marked with the preset prompt identifier on the current screen.

优选地,确定模块52包括:Preferably, the determiningmodule 52 includes:

获取单元521,用于从系统中获取该当前屏幕对即时通信消息的显示规则;Obtainingunit 521, used to obtain the display rule of the current screen to the instant messaging message from the system;

确定单元522,用于根据该显示规则和该消息列表中各即时通信消息,确定刷新后在该当前屏幕上显示的各条已显示的即时通信消息以及该待显示的即时通信消息;A determiningunit 522, configured to determine, according to the display rule and each IM message in the message list, each displayed IM message and the to-be-displayed IM message displayed on the current screen after refreshing;

查询单元523,用于在该已标记热词列表中,查询刷新后在该当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息;Thequery unit 523 is used to query 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;

选择单元524,用于若该已标记热词小于该预置的数值,则在该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词,且该目标热词与该已标记热词的数量之和小于或等于该预置的数值。Aselection unit 524, configured to select a hot word different from the marked hot word among the hot words in the instant communication message to be displayed as the target hot word if the marked hot word is smaller than the preset value, and The sum of the number of the target hot word and the marked hot word is less than or equal to the preset value.

选取模块61,用于若确定刷新后在该当前屏幕上显示的各条已显示的即时通信消息中包含的该已标记热词的数量为零,则在该待显示的即时通信消息的所有热词中,按照排列顺序从前往后或从后往前选取与该预置的数值相等的数量的热词作为该目标热词。Theselection module 61 is configured to, if it is determined that the number of the marked hot words contained in each displayed instant messaging message displayed on the current screen after refreshing is zero, then select all hot words in the instant messaging message to be displayed in all hot words. Among the words, a number of hot words equal to the preset value are selected as the target hot words from front to back or from back to front according to the arrangement order.

优选地,选择单元524,还用于逐条在该待显示的即时通信消息中的热词中选择与该已标记热词不同的热词作为目标热词,且每一条该待显示的即时通信消息中的目标热词不超过1个。Preferably, theselection unit 524 is further configured to select a hot word different from the marked hot word among the hot words in the instant communication message to be displayed one by one as the target hot word, and each instant communication message to be displayed The target hot word in is not more than 1.

记录模块62,用于清空该已标记热词列表,并将该当前屏幕上显示的标记了该预置提示标识的所有热词记录在该已标记热词列表中。Therecording module 62 is configured to clear the marked hot word list, and record all the hot words displayed on the current screen marked with the preset prompt identifier in the marked hot word list.

检测模块63,用于当接收到服务器发送的即时通信消息,或接收到用户输入的即时通信消息时,确定该消息刷新指令被触发。Thedetection module 63 is configured to determine that the message refresh instruction is triggered when the instant communication message sent by the server or the instant communication message input by the user is received.

优选地,检测模块63,还用于当检测到用户的查看更多消息的操作时,确定该消息刷新指令被触发。Preferably, thedetection module 63 is further configured to determine that the message refresh instruction is triggered when the user's operation of viewing more messages is detected.

优选地,标记模块53,还用于将该目标热词标记下划线,该下划线中包含以下信息之一:搜索该目标热词的搜索页面网址的链接,该目标热词的本地释义信息,该目标热词的网络释义网址的链接。Preferably, the markingmodule 53 is further configured to underline the target hot word, and the underline contains one of the following information: a link to a search page URL for searching the target hot word, local definition information of the target hot word, the target hot word The link to the web definition URL of the hot word.

本实施例对基于即时通信的热词提示装置60的各功能模块实现各自功能的具体过程,请参见上述图1至图7所示实施例中描述的具体内容,此处不再赘述。For the specific process of each functional module of the instant messaging-based hotword prompting device 60 implementing their respective functions in this embodiment, please refer to the specific content described in the embodiments shown in FIG. 1 to FIG. 7 above, and will not be repeated here.

本发明实施例提供的基于即时通信的热词提示装置,通过根据消息列表和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将待显示的即时通信消息显示在当前屏幕上时,在当前屏幕上显示的所有标记了预置标识的热词小于或等于预置的数值,以此限制对即时通信消息进行过多处理,从而提高处理即时通讯消息的效率,并降低对用户形成的干扰,降低误操作几率,进一步提高数据处理效率。The instant messaging-based hot word prompting device provided by the embodiment of the present invention determines the target hot word in the instant messaging message to be displayed according to the message list and the marked hot word list, so that the instant messaging message to be displayed is displayed in the current When on the screen, all the hot words marked with the preset logo displayed on the current screen are less than or equal to the preset value, so as to limit the excessive processing of instant messaging messages, thereby improving the efficiency of processing instant messaging messages and reducing The interference to users reduces the probability of misoperation and further improves data processing efficiency.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts among the various embodiments, refer to each other Can. As for the apparatus type embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant part, please refer to the partial description of the method embodiment.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.

以上,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. , without departing from the scope of the technical solution of the present invention, when the technical content disclosed above can be used to make some changes or modifications to equivalent embodiments of equivalent changes, as long as it does not depart from the technical solution content of the present invention, according to the technical solution of the present invention Substantially any simple modifications, equivalent changes and modifications made to the above embodiments still fall within the scope of the technical solutions of the present invention.

Claims (15)

Translated fromChinese
1.一种基于即时通信的热词提示方法,其特征在于,包括:1. a hot word prompting method based on instant messaging, is characterized in that, comprising:当检测到消息刷新指令被触发时,用户终端加载消息列表中最近接收的预置数量的即时通信消息;When detecting that the message refresh instruction is triggered, the user terminal loads the recently received preset number of instant messaging messages in the message list;根据所述消息列表中最近接收的预置数量的即时通信消息和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将所述待显示的即时通信消息显示在当前屏幕上时,在所述当前屏幕上所有标记了预置提示标识的热词的数量小于或等于预置的数值;Determine the target hot word in the instant communication message to be displayed according to the recently received preset number of instant communication messages and the marked hot word list in the message list, so that the instant communication message to be displayed is displayed on the current screen On the current screen, the number of all the hot words marked with the preset prompt identification is less than or equal to the preset numerical value;将所述目标热词标记所述预置提示标识,并将包含标记了所述预置提示标识的所述目标热词的所述待显示的即时通信消息显示在当前屏幕;Marking the target hot word with the preset prompt identifier, and displaying the to-be-displayed instant messaging message containing the target hot word marked with the preset prompt identifier on the current screen;其中,所述根据所述消息列表中最近接收的预置数量的即时通信消息和已标记热词列表,确定待显示的即时通信消息中的目标热词,包括:Wherein, determining the target hot word in the instant communication message to be displayed according to the recently received preset number of instant communication messages and the marked hot word list in the message list includes:从系统中获取所述当前屏幕对即时通信消息的显示规则;Obtain the display rules of the current screen for instant messaging messages from the system;根据所述显示规则和所述消息列表中最近接收的预置数量的即时通信消息,确定刷新后在所述当前屏幕上显示的各条已显示的即时通信消息以及所述待显示的即时通信消息;According to the display rule and the preset number of IM messages received recently in the message list, determine each displayed IM message and the IM message to be displayed that are displayed on the current screen after refreshing ;在所述已标记热词列表中,查询刷新后在所述当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息;In the list of marked hot words, query the information of the marked hot words in each displayed instant messaging message displayed on the current screen after refreshing;若所述已标记热词小于所述预置的数值,则在所述待显示的即时通信消息中的热词中选择与所述已标记热词不同的热词作为目标热词,且所述目标热词与所述已标记热词的数量之和小于或等于所述预置的数值。If the marked hot word is smaller than the preset value, select a hot word different from the marked hot word among the hot words in the to-be-displayed instant messaging message as the target hot word, and the The sum of the target hot words and the number of the marked hot words is less than or equal to the preset value.2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises:若确定刷新后在所述当前屏幕上显示的各条已显示的即时通信消息中包含的所述已标记热词的数量为零,则在所述待显示的即时通信消息的所有热词中,按照排列顺序从前往后或从后往前选取与所述预置的数值相等的数量的热词作为所述目标热词。If it is determined that the number of the marked hot words included in each displayed instant messaging message displayed on the current screen after refreshing is zero, then among all the hot words of the instant messaging message to be displayed, A number of hot words equal to the preset value are selected as the target hot words from front to back or from back to front according to the arrangement order.3.根据权利要求1所述的方法,其特征在于,所述在所述待显示的即时通信消息中的热词中选择与所述已标记热词不同的热词作为目标热词,包括:3 . The method according to claim 1 , wherein selecting a hot word different from the marked hot word among the hot words in the instant communication message to be displayed as the target hot word, comprising: 3 .逐条在所述待显示的即时通信消息中的热词中选择与所述已标记热词不同的热词作为目标热词,且每一条所述待显示的即时通信消息中的目标热词不超过1个。One by one, a hot word different from the marked hot word is selected as the target hot word among the hot words in the instant communication message to be displayed, and the target hot word in each instant communication message to be displayed does not exceed 1.4.根据权利要求3所述的方法,其特征在于,所述将包含标记了所述预置提示标识的所述目标热词的所述待显示的即时通信消息显示在当前屏幕之后,所述方法还包括:4 . The method according to claim 3 , wherein after the to-be-displayed instant messaging message containing the target hot word marked with the preset prompt identifier is displayed on the current screen, the Methods also include:清空所述已标记热词列表,并将所述当前屏幕上显示的标记了所述预置提示标识的所有热词记录在所述已标记热词列表中。Empty the marked hot word list, and record all the hot words displayed on the current screen and marked with the preset prompt identifier in the marked hot word list.5.根据权利要求1所述的方法,其特征在于,所述当检测到消息刷新指令被触发之前,所述方法还包括:5. The method according to claim 1, characterized in that, before detecting that the message refresh instruction is triggered, the method further comprises:当接收到服务器发送的即时通信消息,或接收到用户输入的即时通信消息时,确定所述消息刷新指令被触发。When an instant communication message sent by a server or an instant communication message input by a user is received, it is determined that the message refresh instruction is triggered.6.根据权利要求1所述的方法,其特征在于,所述当检测到消息刷新指令被触发之前,所述方法还包括:6 . The method according to claim 1 , wherein, before detecting that the message refresh instruction is triggered, the method further comprises: 6 .当检测到用户的查看更多消息的操作时,确定所述消息刷新指令被触发。When a user's operation of viewing more messages is detected, it is determined that the message refresh instruction is triggered.7.根据权利要求1所述的方法,其特征在于,所述将所述目标热词标记所述预置提示标识,包括:7. The method according to claim 1, wherein the marking the target hot word with the preset prompt identifier comprises:将所述目标热词标记下划线,所述下划线中包含以下信息之一:搜索所述目标热词的搜索页面网址的链接,所述目标热词的本地释义信息,所述目标热词的网络释义网址的链接。Mark the target hot word with an underline, and the underline contains one of the following information: the link of the search page URL for searching the target hot word, the local definition information of the target hot word, the network definition of the target hot word URL link.8.一种基于即时通信的热词提示装置,运行于用户终端,其特征在于,包括:8. A hot word prompting device based on instant messaging, running on a user terminal, is characterized in that, comprising:加载模块,用于当检测到消息刷新指令被触发时,加载消息列表中最近接收的预置数量的即时通信消息;The loading module is used to load the recently received preset number of instant messaging messages in the message list when it is detected that the message refresh instruction is triggered;确定模块,用于根据所述加载模块加载的所述消息列表中最近接收的预置数量的即时通信消息和已标记热词列表,确定待显示的即时通信消息中的目标热词,使得将所述待显示的即时通信消息显示在当前屏幕上时,在所述当前屏幕上所有标记了预置提示标识的热词的数量小于或等于预置的数值;The determining module is configured to determine the target hot word in the instant messaging message to be displayed according to the preset number of instant messaging messages and the marked hot word list recently received in the message list loaded by the loading module, so that all When the instant communication message to be displayed is displayed on the current screen, the number of all hot words marked with the preset prompt identifier on the current screen is less than or equal to the preset value;标记模块,用于将所述确定模块确定的所述目标热词标记预置提示标识,并将包含标记了所述预置提示标识的所述目标热词的所述待显示的即时通信消息显示在当前屏幕;a marking module, configured to mark the target hot word determined by the determining module with a preset prompt identifier, and display the to-be-displayed instant messaging message containing the target hot word marked with the preset prompt identifier on the current screen;其中,所述确定模块包括:Wherein, the determining module includes:获取单元,用于从系统中获取所述当前屏幕对即时通信消息的显示规则;an acquisition unit, used for acquiring the display rules of the current screen for instant messaging messages from the system;确定单元,用于根据所述显示规则和所述消息列表中最近接收的预置数量的即时通信消息,确定刷新后在所述当前屏幕上显示的各条已显示的即时通信消息以及所述待显示的即时通信消息;The determining unit is configured to determine, according to the display rule and the preset number of IM messages received recently in the message list, each displayed IM message displayed on the current screen after refreshing and the IM messages to be displayed on the current screen. displayed instant messaging;查询单元,用于在所述已标记热词列表中,查询刷新后在所述当前屏幕上显示的各条已显示的即时通信消息中的已标记热词的信息;a query unit, configured to query 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;选择单元,用于若所述已标记热词小于所述预置的数值,则在所述待显示的即时通信消息中的热词中选择与所述已标记热词不同的热词作为目标热词,且所述目标热词与所述已标记热词的数量之和小于或等于所述预置的数值。A selection unit, configured to select a hot word different from the marked hot word among the hot words in the instant messaging message to be displayed as the target hot word if the marked hot word is smaller than the preset value. word, and the sum of the number of the target hot word and the marked hot word is less than or equal to the preset value.9.根据权利要求8所述的装置,其特征在于,所述装置还包括:9. The apparatus of claim 8, wherein the apparatus further comprises:选取模块,用于若确定刷新后在所述当前屏幕上显示的各条已显示的即时通信消息中包含的所述已标记热词的数量为零,则在所述待显示的即时通信消息的所有热词中,按照排列顺序从前往后或从后往前选取与所述预置的数值相等的数量的热词作为所述目标热词。The selection module is configured to, if it is determined that the number of the marked hot words contained in each displayed instant messaging message displayed on the current screen after the refresh is zero, then select the number of the marked hot words in the instant messaging message to be displayed. Among all the hot words, the number of hot words equal to the preset value is selected as the target hot words from front to back or from back to front according to the arrangement order.10.根据权利要求8所述的装置,其特征在于,10. The device of claim 8, wherein所述选择单元,还用于逐条在所述待显示的即时通信消息中的热词中选择与所述已标记热词不同的热词作为目标热词,且每一条所述待显示的即时通信消息中的目标热词不超过1个。The selection unit is further configured to select a hot word different from the marked hot word among the hot words in the instant messaging messages to be displayed one by one as the target hot word, and each of the instant messaging to be displayed There should be no more than one target hot word in the message.11.根据权利要求10所述的装置,其特征在于,所述装置还包括:11. The apparatus of claim 10, wherein the apparatus further comprises:记录模块,用于清空所述已标记热词列表,并将所述当前屏幕上显示的标记了所述预置提示标识的所有热词记录在所述已标记热词列表中。A recording module, configured to clear the marked hot word list, and record all the hot words displayed on the current screen and marked with the preset prompt identifier in the marked hot word list.12.根据权利要求8所述的装置,其特征在于,所述装置还包括:12. The apparatus of claim 8, wherein the apparatus further comprises:检测模块,用于当接收到服务器发送的即时通信消息,或接收到用户输入的即时通信消息时,确定所述消息刷新指令被触发。The detection module is configured to determine that the message refresh instruction is triggered when an instant communication message sent by the server or an instant communication message input by a user is received.13.根据权利要求8所述的装置,其特征在于,所述装置还包括:13. The apparatus of claim 8, wherein the apparatus further comprises:检测模块,用于当检测到用户的查看更多消息的操作时,确定所述消息刷新指令被触发。The detection module is configured to determine that the message refresh instruction is triggered when the user's operation of viewing more messages is detected.14.根据权利要求8所述的装置,其特征在于,所述标记模块,还用于将所述目标热词标记下划线,所述下划线中包含以下信息之一:搜索所述目标热词的搜索页面网址的链接,所述目标热词的本地释义信息,所述目标热词的网络释义网址的链接。14. The apparatus according to claim 8, wherein the marking module is further configured to underline the target hot word, and the underline contains one of the following information: searching for the target hot word The link of the page URL, the local definition information of the target hot word, and the link of the network definition URL of the target hot word.15.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有可执行指令,所述可执行指令被执行时,用于实现如权利要求1至7任一项的基于即时通信的热词提示方法。15. A computer-readable storage medium, characterized in that, executable instructions are stored on the computer-readable storage medium, and when the executable instructions are executed, they are used to implement the method according to any one of claims 1 to 7. Hot word prompt method based on instant messaging.
CN201410381738.7A2014-08-052014-08-05 Method and device for prompting hot words based on instant messagingExpired - Fee RelatedCN105320707B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410381738.7ACN105320707B (en)2014-08-052014-08-05 Method and device for prompting hot words based on instant messaging

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410381738.7ACN105320707B (en)2014-08-052014-08-05 Method and device for prompting hot words based on instant messaging

Publications (2)

Publication NumberPublication Date
CN105320707A CN105320707A (en)2016-02-10
CN105320707Btrue CN105320707B (en)2020-11-06

Family

ID=55248107

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410381738.7AExpired - Fee RelatedCN105320707B (en)2014-08-052014-08-05 Method and device for prompting hot words based on instant messaging

Country Status (1)

CountryLink
CN (1)CN105320707B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106027774A (en)*2016-05-112016-10-12周肇炎Contact information prompting method
CN109408159A (en)*2017-08-142019-03-01阿里巴巴集团控股有限公司Interface message is shown and processing method, device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20120191796A1 (en)*2002-07-172012-07-26Research In Motion LimitedVoice and text group chat display management techniques for wireless mobile terminals
CN102880706A (en)*2012-07-162013-01-16刘二中Method for processing link information input by search engine terminal user
CN102891874A (en)*2011-07-212013-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 numberPriority datePublication dateAssigneeTitle
US20120191796A1 (en)*2002-07-172012-07-26Research In Motion LimitedVoice and text group chat display management techniques for wireless mobile terminals
CN102891874A (en)*2011-07-212013-01-23腾讯科技(深圳)有限公司Method, device and system for providing search prompt message based on conversation
CN102880706A (en)*2012-07-162013-01-16刘二中Method for processing link information input by search engine terminal user

Also Published As

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

Similar Documents

PublicationPublication DateTitle
US11003331B2 (en)Screen capturing method and terminal, and screenshot reading method and terminal
US11606620B2 (en)Method and device for acquiring virtual resource and storage medium
US20220075932A1 (en)Method and apparatus for inserting information into online document
CN108073605B (en)Method and device for loading and pushing service data and generating interactive information
US9904906B2 (en)Mobile terminal and data provision method thereof
US10049147B2 (en)Method, apparatus and terminal for processing documents
US20170235435A1 (en)Electronic device and method of application data display therefor
US9241242B2 (en)Information recommendation method and apparatus
CN105740263B (en)Page display method and device
CN108156508B (en)Barrage information processing method and device, mobile terminal, server and system
CN106557330A (en)Mobile terminal system informing announcement information processing method, device and mobile terminal
US20170249934A1 (en)Electronic device and method for operating the same
US20180020252A1 (en)Information display method, channel management platform, and terminal
CN108052591A (en) Information recommendation method, device, mobile terminal and computer-readable storage medium
CN107436948B (en)File searching method and device and terminal
US11216997B2 (en)Method and apparatus for displaying historical chat record
WO2018196588A1 (en)Information sharing method, apparatus and system
US10235030B2 (en)Electronic device and user interface display method for the same
US12164935B2 (en)Message display method and terminal device
WO2015003636A1 (en)Method and device for interception of page elements
KR20140132427A (en)Method and apparatus for providing call log in electronic device
CN105095161B (en)Method and device for displaying rich text information
WO2015101330A1 (en)Method and apparatus for opening data processing page
CN113220954A (en)Information display method and device and projection equipment
CN105320707B (en) Method and device for prompting hot words based on instant messaging

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20201106


[8]ページ先頭

©2009-2025 Movatter.jp