Methods, devices and electronic equipment for outputting notification messages

CN116800708BActive Publication Date: 2026-09-01VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310495396.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-04
Publication Date
2026-09-01
Estimated Expiration
2043-05-04

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的是提供一种通知消息的输出方法、装置及电子设备,能够解决在现有的信息分享平台中,无法及时获知分享者的分享内容带来的社交分享参与感较弱的技术问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116800708B_ABST
    Figure CN116800708B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and electronic device for outputting notification messages, belonging to the field of communication technology. The method includes: acquiring first sharing information shared on a first display interface; generating target information based on the first sharing information, wherein the target information includes at least one of a notification message and candidate information; and outputting the target information when the electronic device displays a second display interface, wherein the first display interface and the second display interface are different display interfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, and specifically relates to a method, apparatus and electronic device for outputting notification messages. Background Technology

[0002] Nowadays, more and more people share snippets of their daily lives on information-sharing platforms such as WeChat Moments, especially sharing moments of joy or sorrow, such as weddings, birthdays, graduations, and career setbacks. Family and friends of the sharers will browse, like, and comment on the content on WeChat Moments, sharing in the joy or offering comfort.

[0003] Family and friends of the sharer typically hope to be informed immediately when the sharer posts important information and can promptly offer blessings or words of comfort. However, currently, on information sharing platforms such as WeChat Moments, users can only see the content posted by the sharer when they actively visit the platform's homepage. This often prevents those receiving the information from immediately offering blessings or words of comfort, weakening the sense of participation in social sharing. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, and electronic device for outputting notification messages, which can solve the technical problem that the lack of timely access to the content shared by the sharer in existing information sharing platforms results in a weak sense of social participation.

[0005] In a first aspect, embodiments of this application provide a method for outputting a notification message, the method comprising:

[0006] Retrieve the first shared information shared on the first display interface;

[0007] Based on the first shared information, target information is generated, wherein the target information includes at least one of a notification message and candidate information;

[0008] When the electronic device displays a second display interface, the target information is output, wherein the first display interface and the second display interface are different display interfaces.

[0009] Secondly, embodiments of this application provide a notification message output device, the device comprising:

[0010] The acquisition module is used to acquire the first sharing information shared on the first display interface;

[0011] A generation module is configured to generate target information based on the first shared information, wherein the target information includes at least one of a notification message and candidate information;

[0012] The output module is used to output the target information when the electronic device displays the second display interface, wherein the first display interface and the second display interface are different display interfaces.

[0013] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method provided in the first aspect.

[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method provided in the first aspect.

[0015] Fifthly, embodiments of this application provide a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method provided in the first aspect.

[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as provided in the first aspect.

[0017] In the notification message output method, apparatus, and electronic device of this application, a first sharing message shared by a target sharing platform can be obtained, and target information can be generated based on the first sharing message. If the display interface of the electronic device is not the display interface of the target information sharing platform, the target information can be output on the first display interface of the electronic device. Since the target information includes at least one of a notification message and candidate information, the notification message is used to notify the user of the electronic device that the first sharing message exists on the target information sharing platform, and the candidate information is used to assist the user in chatting with the account associated with the first sharing message. Therefore, the output target information allows the user to be notified of the first sharing message's release immediately, or to quickly and conveniently chat with the account associated with the first sharing message, even if the user has not logged into the homepage of the target information sharing platform using a second account on the electronic device, thereby enhancing the sense of participation in social sharing. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a notification message output method provided in one embodiment of this application;

[0019] Figure 2 This is a schematic diagram of the structure of a notification message output device provided in another embodiment of this application;

[0020] Figure 3 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application;

[0021] Figure 4 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0022] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0023] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0024] To address the aforementioned technical problems, this application provides a method for outputting notification messages. The method for outputting notification messages provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0025] like Figure 1 As shown, Figure 1 This is a flowchart illustrating a notification message output method according to an embodiment of this application. This application provides a notification message output method, which may include:

[0026] S101, Obtain the first sharing information shared on the first display interface;

[0027] In this embodiment, the first display interface can be the interface that displays information on the target information sharing platform. The first shared information is the information published by the account on the target information sharing platform. The target information sharing platform can be any kind of information sharing platform. An information sharing platform refers to an online social platform where users can register accounts and share and disseminate various information, such as text, pictures, videos, links, etc. The display pages of other accounts on the information sharing platform can display the sharing and dissemination of various information.

[0028] For example, the first shared information may be information shared by a first account on a target information sharing platform. After the first account publishes the first shared information on the target information sharing platform, the second account can obtain the first shared information from the first display interface of the target information sharing platform. Here, the first account refers to the sharer of information on the target information sharing platform, and the second account refers to the recipient of the information. The first account and the second account can be associated; this association could be that they are friends or in the same group. Based on this association, the first shared information shared by the first account can be seen on the second account's display interface. The electronic device can support the second account logging into the target information sharing platform on it. After the second account logs into the target information sharing platform on the electronic device, the electronic device can obtain the first shared information shared on the first display interface.

[0029] S102, Based on the first shared information, generate target information, wherein the target information includes at least one of a notification message and candidate information;

[0030] In this embodiment, after an electronic device logged into the second account obtains the first shared information shared by the first account on the target information sharing platform, it can analyze the content of the first shared message and generate target information based on the content of the first shared message. The target information includes a notification message and candidate information. The notification message is used to notify the user of the electronic device that the first shared message exists on the target information sharing platform. The candidate information is the information displayed in the candidate word display area of ​​the input box when the second account chats based on the first shared information and the account associated with the first shared information. The candidate information may include words, phrases, pictures, and emoticons associated with the first shared information.

[0031] S103, when the electronic device displays the second display interface, the target information is output, wherein the first display interface and the second display interface are different display interfaces.

[0032] In this embodiment of the application, the first display interface is the display interface of the target information sharing platform, while the second display interface is an interface other than the display interface of the target information sharing platform.

[0033] Therefore, if the electronic device's display interface is the first display interface, it means that the target information sharing platform is running in front of the electronic device, and the user corresponding to the second account can directly see the first shared message on the electronic device's display interface. Therefore, there is no need to output a notification message to the user to inform them that the first shared message exists on the target information sharing platform. If the electronic device's display interface is the second display interface, it means that the target information sharing platform is not running in front of the electronic device, and the user corresponding to the second account cannot directly see the first shared message on the electronic device's display interface. Therefore, a notification message can be output to the user to inform them that the first shared message shared by the first user exists on the target information sharing platform.

[0034] Notification messages can be displayed to users in text form on the primary display screen, or they can be delivered to users via voice broadcast.

[0035] After the notification message is sent to the user, they can enter the first display interface or the chat interface associated with the first shared information by inputting the target information.

[0036] When entering a chat interface associated with the first shared information, the chat content may be related to the first shared information. Therefore, at least one candidate message can be generated based on the first shared information, and the candidate message can be displayed as candidate words in the chat input box associated with the first shared information. Users can directly select the target candidate message from at least one candidate message by inputting the candidate message, and then display the target candidate message on the screen and send it to the chat box of the chat interface.

[0037] In this application, a first sharing message shared by a target sharing platform can be obtained, and target information can be generated based on the first sharing message. If the display interface of the electronic device is not the display interface of the target information sharing platform, the target information can be output on the first display interface of the electronic device. Since the target information includes at least one of a notification message and candidate information, the notification message is used to notify the user of the electronic device that the first sharing message exists on the target information sharing platform, and the candidate information is used to assist the user in chatting with the account associated with the first sharing message. Therefore, the output target information allows the user to be notified of the release of the first sharing message immediately, or to quickly and conveniently chat with the account associated with the first sharing message, even if the user does not log in to the homepage of the target information sharing platform using a second account on the electronic device, thereby enhancing the sense of participation in social sharing.

[0038] In some embodiments, S102 includes:

[0039] Obtain the sharing content of the first sharing information;

[0040] Based on the shared content of the first shared information, generate attribute tags for the first shared information;

[0041] If the attribute tags of the first shared information match the preset tags in the preset tag library, a notification message is generated based on the attribute tags of the first shared information.

[0042] In this embodiment, attribute tags refer to keywords or phrases describing the content, topic, features, or attributes of the first shared information. Attribute tags for the first shared information can be generated using a trained tag generation model. For example, the shared content of the first shared information can be input into the tag generation model, and the output of the tag generation model is the attribute tag of the first shared information. The tag generation model is a neural network model trained on a target training set, which includes at least one training sample. The training sample includes the shared content and historical tags of historical shared information on the target information sharing platform. The historical tags are manually labeled based on the shared content of the historical shared information.

[0043] The preset tag library is a collection of tags that meet the user's pre-set preset rules. The preset tag library represents the preferences of the user corresponding to the second account. If a preset tag in the library matches the attribute tag of the first shared information, it means the user is interested in the first shared information, and therefore a notification message corresponding to the first shared information can be output to the user. If no preset tag in the library matches the attribute tag of the first shared information, it means the user is not interested in the first shared information, and therefore no notification message corresponding to the first shared information needs to be generated. The preset rules can be associated with historical tags corresponding to historical shared information. Preset rules can be defined as either the number of times a tag appears in historical tags corresponding to historical shared information exceeds a certain threshold, or the frequency of a tag appearing in historical tags corresponding to historical shared information exceeds a certain frequency threshold.

[0044] In this embodiment, the first sharing information can be filtered by attribute tags, and only the notification message corresponding to the first sharing information that the user is interested in can be generated and output on the electronic device. In this way, the user can know the sharing information of the sharing message that he or she is interested in as soon as possible, thereby improving the sense of participation in social sharing.

[0045] In some embodiments, before generating a notification message based on the attribute tags of the first shared information when the attribute tags of the first shared information match preset tags in a preset tag library, the method further includes:

[0046] Retrieve the sharing content of N historical sharing messages;

[0047] Based on the shared content of N historical sharing messages, a similarity score is calculated between each historical sharing message to obtain the similarity score of the N historical sharing messages;

[0048] Based on the similarity scores of the N historical sharing information, at least one target historical sharing information is determined;

[0049] The historical tag of the at least one target historical sharing information is used as a preset tag in the preset tag library, where N is a positive integer greater than 1.

[0050] In this embodiment, historical sharing information refers to the sharing messages that precede the first sharing information that can be displayed on the homepage of the second account on the target information sharing platform. A similarity score can be calculated for each historical sharing message, and based on the similarity scores of multiple historical sharing messages, at least one target historical sharing message can be determined from N historical sharing messages. The historical tag of this at least one target historical sharing message is then set as a preset tag.

[0051] For example, multiple historical shared information can be sorted in descending order of similarity score, and the historical tags of historical shared information with similarity scores greater than the score threshold can be set as preset tags; alternatively, the historical tags of the N historical shared information with the highest similarity scores can be set as preset tags, where N is a positive integer.

[0052] For example, any historical shared information can be considered the first historical shared information. For any first historical shared information, the second historical shared information is any historical shared information other than the first historical shared information. The similarity between the first historical shared information and each second historical shared information can be calculated, and the average similarity between the first historical shared information and each second historical shared information is determined as the similarity score of the first historical shared information. In this way, the similarity score of the first historical shared information can be used to characterize the average similarity between the first historical shared information and other historical shared information on the target information sharing platform. The higher the average similarity, the more important the first historical shared information is considered, and the more it matches the preferences of the user corresponding to the second account. Therefore, the historical tags of historical shared information with similarity scores greater than the score threshold can be used as preset tags in the preset tag library to ensure that the shared information corresponding to the preset tags is shared information that matches the user's preferences.

[0053] For example, the cosine similarity method may be used to calculate the similarity between any two pieces of historical sharing information; specifically, the historical sharing information may first be segmented, converted into a set of words, and stop words are removed based on the word segmentation result, that is, words with no practical significance such as "de", "shi", "wo" are removed, then a word vector for each piece of historical sharing information is constructed based on the word segmentation result, each word in the historical sharing information is represented as a vector, and the cosine similarity formula is used to calculate the similarity between the two pieces of historical sharing information.

[0054] Through the above method, at least one piece of historical sharing information that conforms to the user's preference can be selected from a plurality of pieces of historical sharing information, and the historical tags of the at least one piece of historical sharing information are used as preset tags to match with the attribute tags of the first sharing information, so as to accurately determine whether the first sharing information conforms to the user's preference, and further determine whether a notification message of the first sharing information needs to be generated.

[0055] In some embodiments, said generating a notification message based on the attribute tags of the first sharing information comprises:

[0056] Acquiring account information of a first account, wherein the first account is a user who shares the first sharing information;

[0057] Adding the account information of the first account and the attribute tags of the first sharing information into a preset message template to generate a notification message.

[0058] In this embodiment, the notification message may be a fixed message template, and two empty slots are left at fixed positions of the message template. A notification message can be generated as long as the account information of the first account and the attribute tags of the first sharing information are filled into the empty slots, wherein the account information of the first account may be the account name of the first account, and may also be the account identifier of the first account.

[0059] For example, the message template may be "slot 1" has posted a piece of sharing information related to "slot 2", wherein the account information of the first account can be filled into slot 1, and the attribute tags of the first sharing information can be filled into slot 2, so that the user of the electronic device can accurately know the sharer and the message topic of the first sharing information through the notification message.

[0060] In some embodiments, before S120, the method further comprises:

[0061] Acquiring a target address book of a second account on the target information sharing platform, the target address book comprising a plurality of communication accounts, wherein the second account is an account of the electronic device;

[0062] Calculate the intimacy between the second account and each of the aforementioned communication accounts on at least one intimacy index, wherein the at least one intimacy index is used to characterize the degree of intimacy of at least one of social relationship, interest, and emotion;

[0063] Based on the intimacy level of the at least one intimacy index, at least one target communication account is determined from the plurality of communication accounts;

[0064] The at least one target communication account is identified as a preset account in the preset account database;

[0065] S102 includes:

[0066] If the first account matches a preset account in the preset account database, a notification message is generated based on the first shared information.

[0067] In this embodiment, the target address book includes a set of multiple communication accounts that have communication relationships with the second account on the target information sharing platform. Preset accounts from a preset account library can be selected from these multiple communication accounts. For example, at least one intimacy indicator includes social intimacy, interest intimacy, and emotional intimacy. Social intimacy characterizes the degree of intimacy between the second account and each communication account in terms of social relationship; interest intimacy characterizes the degree of intimacy between the second account and each communication account in terms of interests; and emotional intimacy characterizes the degree of intimacy between the second account and each communication account in terms of emotional relationship. The social intimacy, interest intimacy, and emotional intimacy between the second account and each communication account can be calculated first, and a weighted average of these three intimacy values ​​can be calculated as the intimacy level between the second account and each communication account. Communication accounts with intimacy levels greater than an intimacy threshold are then identified as preset accounts in the preset account library.

[0068] In one embodiment, social intimacy refers to the closeness of social relationships (such as family, friends, and colleagues) between two accounts. The user of the second account can set the social relationship between each contact account and the second account in the address book. Each social relationship corresponds to a quantified social intimacy. Among them, the social intimacy of family is greater than that of friends, and the social intimacy of friends is greater than that of colleagues.

[0069] In another embodiment, interest intimacy refers to the similarity between two accounts in terms of interests and hobbies. This similarity can be calculated by the frequency of interaction between the two accounts, including liking or commenting on each other's shared information on the target information sharing platform, and also including chatting with each other.

[0070] In another embodiment, emotional intimacy refers to the emotional similarity between two accounts. This similarity can be calculated by the proportion of emotional similarity between the content shared on the target information sharing platform. The content sentiment is identified by the similarity of tags for the text content shared by the two accounts on the target information sharing platform, as well as the similarity of the shared images or videos. If two people have similar emotional tendencies, then their emotional intimacy will be relatively high.

[0071] After calculating the emotional intimacy, interest intimacy, and social intimacy between the two accounts, a weight can be assigned to each of these factors. Then, the weighted average of the emotional intimacy, interest intimacy, and social intimacy can be used as the final intimacy between the two accounts.

[0072] In this embodiment, at least one target communication account can be determined based on the intimacy level with the second account, and the set of at least one target communication account can be generated as a preset account library.

[0073] The preset accounts in the preset account library are a collection of accounts with a high degree of affinity to the second account. If the first account matches a preset account in the preset account library, it means that the second account and the first account have a high degree of affinity, so the notification message corresponding to the first shared information can be output to the user of the second account; if the first account does not match a preset account in the preset account library, it means that the second account and the first account have a relatively low degree of affinity, so there is no need to generate a notification message corresponding to the first shared information.

[0074] In this embodiment, the sharing account of the first sharing information and the closeness of the second account can be used for filtering. Only when the first sharing information is information published by a communication account with a high closeness to the second account will a notification message corresponding to the first sharing information be generated and output on the electronic device. In this way, users can know the sharing information published by communication accounts that they are interested in as soon as possible, thereby enhancing the sense of participation in social sharing.

[0075] In some embodiments, after S103, the method further includes:

[0076] Receive the first input to the notification message;

[0077] In response to the first input, a chat interface associated with the first shared information is displayed. The first chat interface is a chat interface between the second account and the first account, or the first chat interface is a chat interface between the second account and the target account, wherein the target account is an account among at least one third account determined based on the shared content of the first shared information.

[0078] In this embodiment, the first input can be a user's touch input to the electronic device. For example, the touch input can be a touch click, a swipe, or other operation. The first input can also be an input operation performed by the user using other input devices connected to the first electronic device, such as a mouse, remote control, or keyboard. Optionally, the first input can indicate a control in a notification message. Unless otherwise specified, the input to the electronic device described below can be a touch click, a swipe, or other operation, or an input operation performed by the user using other input devices connected to the electronic device, such as a mouse, remote control, or keyboard.

[0079] In this embodiment, the first input can be an input that jumps the display interface of the electronic device to the first chat interface, which is the chat interface associated with the first shared information. The electronic device responds to the first input and displays the first chat interface associated with the first shared information. Through the first input of the notification message, the user can quickly enter the chat interface associated with the first shared information, simplifying the user's chat operation.

[0080] In some embodiments, the first chat interface can be a chat interface between a second account and a first account. In other embodiments, the first chat interface can also be a chat interface between a second account and a target account, where the target account is an account among at least one third account determined based on the shared content of the first shared information. The third account is an account other than the first and second accounts.

[0081] When the first chat interface is a chat interface between the second account and the first account, the generated notification message may include a first chat control. The first chat control is used to instruct the display interface of the electronic device to jump to the chat interface between the second account and the first account. The first chat control may be in the form of a slider, button, or other controls; correspondingly, the first input may be input to the first chat control.

[0082] In this manner, after seeing the notification message, it is highly likely that the user of the second account will chat with the first sharer of the information. However, based on this embodiment, the user can jump to the chat interface with the first sharer of the information with just one input, which greatly simplifies the operation process.

[0083] In the case where the first chat interface is the chat interface between the second account and the target account, the third account is an account other than the first and second accounts that is associated with the first shared information. Since the third account is associated with the first shared information, after receiving the notification message of the first shared information, the user of the second account may also want to chat with any third account. Therefore, the first input can be the input that displays the chat interface between the second account and the target account.

[0084] For example, the generated notification message may include a second chat control, which instructs the display of account identifiers of all accounts associated with the first shared information on the electronic device's display screen. When the user of the electronic device makes a first input to the second chat control, the electronic device responds to the first input by triggering the identification of the first shared information, obtaining all accounts associated with the first shared information, then filtering out third accounts other than the first and second accounts from these accounts, and displaying the account identifiers of all third accounts on the electronic device's display screen.

[0085] The electronic device can also receive a seventh input, which can be an input of the account identifier of the target account in at least one third account. In response to the seventh input, the display interface of the electronic device can be switched to the chat interface between the second account and the target account.

[0086] Based on this embodiment, users can jump to the chat interface of any of the first users who shared information with only a few operations, which greatly simplifies the operation process.

[0087] In some embodiments, prior to displaying the first chat interface in response to the first input, the method further includes:

[0088] If the first shared information includes images or videos, and the images or videos include facial images, then the account of the user corresponding to the facial image is identified as at least one third-party account; or,

[0089] If the first shared information includes text information, and the text information includes account information, then the account corresponding to the account information is identified as at least one third account.

[0090] In this embodiment, the first account can be determined by the content of the first shared information. If the first shared information includes text information, the text information can be identified, and the third account can be determined based on the identification result. Specifically, if the first shared information includes text information, and the text information includes account information, at least one account corresponding to the account information can be identified, and the account other than the first and second accounts among the at least one accounts can be identified as the third account. The account information can be the account name included in the text information of the first shared information, or it can be the username of the user corresponding to the account included in the text information of the first shared information.

[0091] If the first shared information includes images or videos, the images or videos can be identified, and a third account can be determined based on the identification results. Specifically, if the first shared information includes images or videos, and the images or videos include facial images, at least one user included in the facial images can be identified, and at least one account corresponding to the at least one user can be identified. The account other than the first and second accounts among the at least one accounts can be identified as the third account.

[0092] Using the methods described above, all accounts that are associated with the first shared information can be accurately identified.

[0093] In some embodiments, after outputting the notification message, the method further includes:

[0094] Receive a second input to the notification message;

[0095] In response to the second input, a target group identifier associated with the first shared information is displayed, the target group identifier being used to identify a target chat group, the target chat group including at least one of a first account and at least one third account;

[0096] Receive a third input regarding the identifier of the target group;

[0097] In response to the third input, a second chat interface associated with the target chat group is displayed.

[0098] In this embodiment, the generated notification message may include a first group control, which is used to instruct the display of a target group identifier associated with the first shared information on the display interface of the electronic device. The first group control may be in the form of a slider, button, or other control; correspondingly, the second input may be input to the first group control.

[0099] Upon responding to the second input, the electronic device's display will show multiple group identifiers associated with the first shared information. The user can select a target group identifier from among the multiple group identifiers. The third input is the input of the target group identifier. Upon responding to the third input, the electronic device's display will jump to the second chat interface associated with the target chat group corresponding to the target group identifier.

[0100] After seeing the notification message, it is highly likely that the user of the second account will chat in the group where the first user who shared the information is located. However, based on this embodiment, the user can jump to the chat interface of the target chat group with just a simple operation, which greatly simplifies the operation process.

[0101] In some embodiments, displaying the target group identifier associated with the first shared information includes:

[0102] Display at least one group identifier associated with the first shared information, the at least one group identifier including the target group identifier;

[0103] Before receiving the third input regarding the target group identifier, the method further includes:

[0104] Determine the number of target accounts included in the chat groups corresponding to each of the at least one group identifiers, wherein the target account is either the first account or the third account;

[0105] The at least one group identifier is sorted according to the number of target accounts included in each of the chat groups;

[0106] The third input is the input that selects the target group identifier based on the sorting.

[0107] In this embodiment, the group identifier is used to identify existing chat groups in the address book of the second account. When the received second input is an input to display a target group identifier associated with the first shared information on the display interface of the electronic device, the first shared information is identified, the target account associated with the first shared information is obtained, and all chat groups including the target account are further filtered out. Then, at least one group identifier of all chat groups can be sorted according to the number of target accounts in the chat groups, and the sorted at least one group identifier is displayed on the display interface of the electronic device. The sorting can be performed in descending order of the number of target accounts in the chat groups.

[0108] The third input can be the user's input of the target group identifier. In response to the third input, the electronic device displays the second chat interface associated with the target chat group identified by the target group identifier on the display interface of the electronic device.

[0109] Furthermore, before displaying the target group identifier associated with the first shared information, the user can create a target chat group. During the creation of the target chat group, the account identifiers of the first account and at least one third account can be displayed on the display interface of the electronic device. Then, the electronic device receives a fourth input from the user regarding multiple account identifiers among the account identifiers of the first account and at least one third account; and in response to the fourth input, a target chat group including multiple accounts corresponding to the multiple account identifiers is created.

[0110] In the above embodiment of creating a target chat group, the generated notification message may include a second group control. This second group control instructs the display of the first account and at least one third account's identifiers on the electronic device's display interface. The second group control may be in the form of a slider, button, or other control; correspondingly, the second input may be input to the second group control. In response to the second input, the identifiers of the first account and all third accounts can be displayed on the electronic device's display interface.

[0111] The fourth input can be an input to select multiple account identifiers from the account identifiers of the first account and at least one third account, and to create a target chat group that includes the multiple accounts corresponding to the multiple account identifiers. Responding to the fourth input allows the creation of the target chat group.

[0112] After seeing the notification message, it is highly likely that the user of the second account will create a new group containing the associated user of the first shared information to chat. However, based on this embodiment, a new target chat group can be created and the user can be redirected to the chat interface of the target chat group with a simple operation, which greatly simplifies the operation process.

[0113] In some embodiments, generating target information based on the first shared information includes:

[0114] If the first shared information includes an image or video, extract the display area of ​​interest from the first shared information, and use the image in the display area of ​​interest of the first shared information as the target image.

[0115] Based on the target image, first facial expression information is generated.

[0116] The at least one candidate information includes the first expression information.

[0117] In this embodiment, the target information includes candidate information, which can be first expression information, either a static emoticon or a dynamic emoticon. If the first sharing information includes an image, and the image includes a face image, face image recognition can be performed on the image to identify the region of interest (ROI) where the face image is located, and the image within the ROI is used as the target image. The facial expressions of the person in the target image can be identified, and first expression information can be generated based on these expressions. For example, each person in the image has a corresponding emoticon, therefore the first expression information includes at least one emoticon.

[0118] If the first shared information includes video, and the video includes facial images, the video can be recognized frame by frame to obtain at least one video frame. Then, facial image recognition is performed on the at least one video frame to identify the region of interest (ROI) where the facial image is located in each of the at least one video frame, and the image in the ROI is used as the target image. Facial expressions of people can be recognized in each video frame, and the voice of people in the video can be obtained. First expression information is generated based on the facial expressions and voice. For example, each person in each video frame has a corresponding emoji set, so each person in the video has a set of corresponding emoji sets. The first expression information can include at least one set of emoji sets corresponding to at least one person.

[0119] For example, the first shared information includes images or videos, and thus at least one candidate information generated includes at least one set of emoticons, each set of emoticons corresponding to a first account or a third account.

[0120] When the chat interface associated with the first shared information is a chat interface between the second account and the first account, the emoticons corresponding to the first account can be displayed as the highest priority emoticons in the input box candidate word display area, and the emoticons corresponding to other accounts can be displayed in the input box candidate word display area in the order they are recognized from the image or video.

[0121] When the chat interface associated with the first shared information is a chat interface between the second account and the target account, the emoticons corresponding to the target account can be displayed as the highest priority emoticons in the input box candidate word display area, and the emoticons corresponding to other accounts can be displayed in the input box candidate word display area in the order they are identified from the image or video.

[0122] In some embodiments, the second display interface is a chat interface between the second account and the fourth account;

[0123] The step of generating target information based on the first shared information includes:

[0124] Obtain at least one historical emoticon from the historical chat history between the second account and the fourth account;

[0125] Based on the at least one historical expression information and the first expression information, generate second expression information.

[0126] The at least one candidate information includes the second expression information.

[0127] In this embodiment, at least one historical chat emoticon information can characterize the preferences of the fourth and second accounts in terms of emoticon type and style during the chat process. Therefore, user preferences can be determined based on at least one historical emoticon information, and a second emoticon can be generated based on the user preferences and the first emoticon information. This newly generated second emoticon is then displayed in the candidate word display area of ​​the input box on the chat interface. During the chat, the user of the second account can select the desired target second emoticon in the candidate word display area of ​​the input box, and then display and send the target second emoticon to the chat box on the chat interface. This ensures that the emoticons in the candidate information better match the second account's preferences in terms of emoticon type and style.

[0128] In some embodiments, generating target information based on the first shared information includes:

[0129] Retrieve comment information associated with the first shared information;

[0130] The comment information is segmented into multiple words.

[0131] Among the multiple word segments, at least one target word is determined.

[0132] The at least one candidate information includes the at least one target word.

[0133] In this embodiment, the candidate information can be the target word segment. If the first shared information contains comment information, all comment information is segmented to obtain multiple word segments. Based on the frequency of occurrence of these word segments, the segment with the highest frequency is identified as the target word. For example, word segments with an occurrence frequency greater than a threshold can be identified as target words, or the top P most frequent word segments can be identified as target words. After identifying the target word, it can be displayed on the chat interface associated with the first shared information. In this way, words highly associated with the first shared information can be selected, allowing the second account to directly use these words in the chat.

[0134] In some embodiments, the second display interface is a chat interface associated with the first shared information;

[0135] After displaying the at least one candidate information on the second display interface, the method further includes:

[0136] Receive a fifth input on third emoticon information, the fifth input being used to instruct the third emoticon information to be sent in the second display interface, the at least one candidate information including the third emoticon information;

[0137] In response to the fifth input, target text is generated, which is used to represent the third expression information;

[0138] Specifically, when the electronic device sends a third emoticon in a chat interface associated with the first shared information, the fifth account in the chat interface associated with the first shared information displays the target text.

[0139] In this embodiment, the third emoticon information can be any emoticon. The target text is the annotation text that annotates the third emoticon information; after receiving the fifth input, the target text corresponding to the third emoticon information can be generated.

[0140] Then, when sending the third emoticon information to the chat box, you can display only the third emoticon information in the chat box, or only the target text corresponding to the third emoticon information in the chat box, or both the third emoticon information and the target text corresponding to the third emoticon information in the chat box.

[0141] For example, after the fifth input, a conversion control and a comment control can be displayed on the chat interface. The conversion control can be used to indicate that when the third emoticon is sent to the chat box, only the target text corresponding to the third emoticon is displayed in the chat box. The comment control can be used to indicate that when the third emoticon is sent to the chat box, both the third emoticon and the target text corresponding to the third emoticon are displayed in the chat box. The comment control can also be used to indicate that when the third emoticon is sent to the chat box, the third emoticon is displayed in the chat box, and after the recipient of the third emoticon adds a comment to the third emoticon, the target text corresponding to the third emoticon is displayed next to the third emoticon.

[0142] In some embodiments, the second display interface is a group chat interface associated with the first shared information;

[0143] After displaying the at least one candidate information on the second display interface, the method further includes:

[0144] Receive a sixth input for at least one account in the group chat interface;

[0145] In response to the sixth input, the at least one account is identified as the fifth account.

[0146] In this embodiment, the sixth input can be used to select some or all of the accounts in the address book of the second account as the fifth account; the input of the comment control and the conversion control only applies to the fifth account.

[0147] For example, both the annotation control and the conversion control can be checkboxes. When the checkbox of the annotation control is selected, when a user sends a third emoji message in a group with more than 2 accounts, the fifth account in the group receives the target text corresponding to the third emoji message, while accounts other than the fifth account in the group receive the third emoji message.

[0148] Similarly, when the checkbox of the conversion control is selected, when a user sends a third emoji message in a group with more than 2 accounts, all accounts in the group can receive the third emoji message. However, when the fifth account clicks on the received third emoji message, the target text corresponding to the third emoji message will be displayed on the interface below the third emoji message.

[0149] Figure 2 This is a schematic diagram of the structure of a notification message output device provided in another embodiment of this application, as shown below. Figure 2 As shown, the device for outputting the notification message may include:

[0150] The acquisition module 201 is used to acquire the first sharing information shared on the first display interface;

[0151] The generation module 202 is used to generate target information based on the first shared information, wherein the target information includes at least one of a notification message and candidate information;

[0152] The output module 203 is used to output the target information when the electronic device displays the second display interface, wherein the first display interface and the second display interface are different display interfaces.

[0153] In this application, a first sharing message shared by a target sharing platform can be obtained, and target information can be generated based on the first sharing message. If the display interface of the electronic device is not the display interface of the target information sharing platform, the target information can be output on the first display interface of the electronic device. Since the target information includes at least one of a notification message and candidate information, the notification message is used to notify the user of the electronic device that the first sharing message exists on the target information sharing platform, and the candidate information is used to assist the user in chatting with the account associated with the first sharing message. Therefore, the output target information allows the user to be notified of the release of the first sharing message immediately, or to quickly and conveniently chat with the account associated with the first sharing message, even if the user does not log in to the homepage of the target information sharing platform using a second account on the electronic device, thereby enhancing the sense of participation in social sharing.

[0154] In another alternative example, the generation module 202 includes:

[0155] The first acquisition unit is used to acquire the sharing content of the first sharing information;

[0156] The first generation unit is used to generate attribute tags for the first sharing information based on the sharing content of the first sharing information;

[0157] The first generation unit is further configured to generate a notification message based on the attribute tags of the first shared information when the attribute tags of the first shared information match the preset tags in the preset tag library.

[0158] In another optional example, the first acquisition unit is also used to acquire the sharing content of N historical sharing information;

[0159] The first generation unit is also used to calculate the similarity score of each of the historical sharing information based on the sharing content of the N historical sharing information, so as to obtain the similarity score of the N historical sharing information.

[0160] The generation module 202 further includes:

[0161] The first determining unit is used to determine at least one target historical sharing information based on the similarity score of the N historical sharing information;

[0162] The first determining unit is further configured to use the historical tag of the at least one target historical sharing information as a preset tag in the preset tag library, where N is a positive integer greater than 1.

[0163] In another alternative example, the generation module 202 further includes:

[0164] The second acquisition module is used to acquire the account information of the first account, wherein the first account is the user who shared the first shared information;

[0165] The first generation unit is also used to add the account information of the first account and the attribute tags of the first shared information to a preset message template to generate a notification message.

[0166] In another optional example, the acquisition module 201 is further configured to acquire the target address book of the second account on the target information sharing platform, the target address book including multiple communication accounts;

[0167] The notification message output device further includes:

[0168] The calculation module 204 is used to calculate the intimacy between the second account and each of the communication accounts on at least one intimacy index, wherein the at least one intimacy index is used to characterize the degree of intimacy of at least one of social relationship, interest and emotion;

[0169] Determination module 205 is used to determine at least one target communication account among the plurality of communication accounts based on the intimacy of the at least one intimacy index;

[0170] The determining module 205 is further configured to determine the at least one target communication account as a preset account in the preset account database;

[0171] The first generation unit is further configured to generate a notification message based on the first sharing information when the first account matches a preset account in a preset account database.

[0172] In another alternative example, the notification message output device further includes:

[0173] The receiving module 206 is used to receive a first input to the notification message;

[0174] The output module 203 is also configured to respond to the first input by displaying a first chat interface, wherein the first chat interface is a chat interface between the second account and the first account, or the first chat interface is a chat interface between the second account and a target account, wherein the target account is an account among at least one third account determined based on the sharing content of the first sharing information.

[0175] In another optional example, the determining module 205 is further configured to, when the first shared information includes an image or video, and the image or video includes a facial image, determine the account of the user corresponding to the facial image as at least one third account; or,

[0176] If the first shared information includes text information, and the text information includes account information, then the account corresponding to the account information is identified as at least one third account.

[0177] In another alternative example, the receiving module 206 is also configured to receive a second input regarding the target group identifier;

[0178] Output module 203 is also configured to, in response to the second input, display a target group identifier associated with the first shared information, the target group identifier being used to identify a target chat group, the target chat group including at least one of a first account and at least one third account.

[0179] The receiving module 206 is also configured to receive a third input regarding the target group identifier;

[0180] Output module 203 is also configured to display a second chat interface associated with the target chat group in response to the third input.

[0181] In another alternative example, the output module 203 is also configured to display at least one group identifier associated with the first shared information, the at least one group identifier including the target group identifier;

[0182] The determining module 205 is used to determine the number of target accounts included in the chat groups corresponding to each of the at least one group identifier, wherein the target account is the first account or the third account;

[0183] The notification message output device further includes:

[0184] The sorting module 207 is used to sort the at least one group identifier according to the number of target accounts included in each chat group;

[0185] The third input is the input that selects the target group identifier based on the sorting.

[0186] In another alternative example, the generation module 202 is further configured to, upon receiving a fourth input on target candidate information among the at least one candidate information, send the target candidate information in a chat interface associated with the first shared information in response to the fourth input.

[0187] In another optional example, the generation module 202 is further configured to extract the display area of ​​interest in the first shared information when the first shared information includes an image or a video, and the image in the display area of ​​interest of the first shared information is used as the target image;

[0188] The generation module 202 is further configured to generate first expression information based on the target image.

[0189] The at least one candidate information includes the first expression information.

[0190] In another optional example, the chat interface is used for chatting between the first account and the fourth account; the acquisition module 201 is also used to acquire at least one historical chat emoticon information from the historical chat process between the second account and the fourth account;

[0191] The generation module 202 is further configured to generate second emoticon information based on the at least one historical chat emoticon information and the first emoticon information.

[0192] The at least one candidate information includes the second expression information.

[0193] In another optional example, the first acquisition unit is further configured to acquire comment information associated with the first shared information;

[0194] The first generation unit is also used to perform word segmentation on the comment information to obtain multiple words;

[0195] The first determining unit is further configured to determine at least one target segmentation word among the plurality of segmentations.

[0196] The at least one candidate information includes the at least one target word.

[0197] In another alternative example, the receiving module 206 is further configured to receive a fifth input on the third emoticon information, the fifth input being used to instruct the third emoticon information to be sent in a chat interface associated with the first shared information;

[0198] The generation module 202 is also configured to generate target text in response to the fifth input, the target text being used to characterize the third expression information;

[0199] Specifically, when the electronic device sends a third emoticon in a chat interface associated with the first shared information, the fifth account in the chat interface associated with the first shared information displays the target text.

[0200] In another alternative example, the chat interface associated with the first shared information is a group chat interface; the receiving module 206 is also configured to receive a sixth input for at least one account in the group chat interface;

[0201] The determining module 205 is also configured to, in response to the sixth input, determine the at least one account as the fifth account.

[0202] The notification message output device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.

[0203] The notification message output device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0204] The notification message output device provided in this application embodiment can realize Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0205] Optionally, such as Figure 3 As shown, this application embodiment also provides an electronic device 100, including a processor 110, a memory 119, and a program or instructions stored in the memory 119 and executable on the processor 110. When the program or instructions are executed by the processor 110, they implement the various processes of the above-described notification message output method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0206] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.

[0207] Please refer to the following: Figure 4 , Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. The electronic device 100 includes, but is not limited to, components such as: a radio frequency unit 121, a network module 122, an audio output unit 123, an input unit 124, a sensor 125, a display unit 126, a user input unit 127, an interface unit 128, a memory 129, and a processor 120. The processor 120 includes a central processing unit (CPU) 1201 and a GPU compression processing unit 1202.

[0208] Those skilled in the art will understand that the electronic device 120 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 120 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0209] The processor 129 is used to obtain the first sharing information shared on the first display interface;

[0210] Processor 129 is configured to generate target information based on the first shared information, wherein the target information includes at least one of a notification message and candidate information;

[0211] Display unit 126 is used to output the target information when the electronic device displays a second display interface, wherein the first display interface and the second display interface are different display interfaces.

[0212] In this application, a first sharing message shared by a target sharing platform can be obtained, and target information can be generated based on the first sharing message. If the display interface of the electronic device is not the display interface of the target information sharing platform, the target information can be output on the first display interface of the electronic device. Since the target information includes at least one of a notification message and candidate information, the notification message is used to notify the user of the electronic device that the first sharing message exists on the target information sharing platform, and the candidate information is used to assist the user in chatting with the account associated with the first sharing message. Therefore, the output target information allows the user to be notified of the release of the first sharing message immediately, or to quickly and conveniently chat with the account associated with the first sharing message, even if the user does not log in to the homepage of the target information sharing platform using a second account on the electronic device, thereby enhancing the sense of participation in social sharing.

[0213] In another alternative example, the processor 129 includes:

[0214] The first acquisition unit is used to acquire the sharing content of the first sharing information;

[0215] The first generation unit is used to generate attribute tags for the first sharing information based on the sharing content of the first sharing information;

[0216] The first generation unit is further configured to generate a notification message based on the attribute tags of the first shared information when the attribute tags of the first shared information match the preset tags in the preset tag library.

[0217] In another optional example, the first acquisition unit is also used to acquire the sharing content of N historical sharing information;

[0218] The first generation unit is also used to calculate the similarity score of each of the historical sharing information based on the sharing content of the N historical sharing information, so as to obtain the similarity score of the N historical sharing information.

[0219] The processor 129 further includes:

[0220] The first determining unit is used to determine at least one target historical sharing information based on the similarity score of the N historical sharing information;

[0221] The first determining unit is also used to use the historical tags of the at least one target historical sharing information as preset tags in the preset tag library.

[0222] In another optional example, the processor 129 is further configured to obtain account information of a first account, wherein the first account is the user who shared the first shared information;

[0223] The first generation unit is also used to add the account information of the first account and the attribute tags of the first shared information to a preset message template to generate a notification message.

[0224] In another optional example, the processor 129 is further configured to obtain the target address book of the second account on the target information sharing platform, the target address book including multiple communication accounts;

[0225] The notification message output device further includes:

[0226] Processor 129 is configured to calculate the intimacy between the second account and each of the communication accounts on at least one intimacy index, the at least one intimacy index being used to characterize the degree of intimacy of at least one of social relationship, interest, and emotion;

[0227] Processor 129 is configured to determine at least one target communication account among the plurality of communication accounts based on the intimacy level on the at least one intimacy metric.

[0228] The processor 129 is also configured to identify the at least one target communication account as a preset account in the preset account library.

[0229] The first generation unit is further configured to generate a notification message based on the first sharing information when the first account matches a preset account in a preset account database.

[0230] In another alternative example, the notification message output device further includes:

[0231] Radio frequency unit 121 is used to receive a first input to the notification message;

[0232] The display unit 126 is also configured to respond to the first input by displaying a chat interface associated with the first shared information.

[0233] In another alternative example, the display unit 126 is further configured to display a first chat interface in response to the first input, the first chat interface being a chat interface between the second account and the first account, or the first chat interface being a chat interface between the second account and a target account, the target account being an account among at least one third account determined based on the sharing content of the first sharing information.

[0234] In another optional example, the processor 129 may further determine, if the first shared information includes an image or video, and the image or video includes a facial image, the account of the user corresponding to the facial image as at least one third-party account; or,

[0235] If the first shared information includes text information, and the text information includes account information, then the account corresponding to the account information is identified as at least one third account.

[0236] In another alternative example, the radio frequency unit 121 is also configured to receive a second input regarding the target group identifier;

[0237] The display unit 126 is also configured to respond to the second input by displaying a target group identifier associated with the first shared information, the target group identifier being used to identify a target chat group, the target chat group including at least one of a first account and at least one third account;

[0238] Radio frequency unit 121 is also configured to receive a third input regarding the target group identifier;

[0239] The display unit 126 is also configured to display a second chat interface associated with the target chat group in response to the third input.

[0240] In another alternative example, the display unit 126 is further configured to display at least one group identifier associated with the first shared information, the at least one group identifier including the target group identifier;

[0241] Processor 129 is used to determine the number of target accounts included in the chat groups corresponding to each of the at least one group identifier, wherein the target account is the first account or the third account;

[0242] The notification message output device further includes:

[0243] Processor 129 is configured to sort the at least one group identifier according to the number of target accounts included in each of the chat groups;

[0244] The second input is the input that selects the target group identifier based on the sorting.

[0245] In another alternative example, the processor 129 is further configured to, upon receiving a fourth input regarding target candidate information among the at least one candidate information, send the target candidate information in a chat interface associated with the first shared information in response to the fourth input.

[0246] In another optional example, the processor 129 is further configured to extract a display area of ​​interest from the first shared information when the first shared information includes an image or a video, wherein the image in the display area of ​​interest of the first shared information is used as the target image;

[0247] Processor 129 is also configured to generate first expression information based on the target image.

[0248] The at least one candidate information includes the first expression information.

[0249] In another optional example, the chat interface is used for chatting between the first account and the fourth account; the processor 129 is also used to obtain at least one historical chat emoticon information from the historical chat process between the second account and the fourth account;

[0250] Processor 129 is further configured to generate second emoticon information based on the at least one historical chat emoticon information and the first emoticon information.

[0251] The at least one candidate information includes the second expression information.

[0252] In another optional example, the first acquisition unit is further configured to acquire comment information associated with the first shared information;

[0253] The first generation unit is also used to perform word segmentation on the comment information to obtain multiple words;

[0254] The first determining unit is further configured to determine at least one target segmentation word among the plurality of segmentations.

[0255] The at least one candidate information includes the at least one target word.

[0256] In another alternative example, the radio frequency unit 121 is also configured to receive a fifth input on the third emoticon information, the fifth input being configured to instruct the third emoticon information to be sent in a chat interface associated with the first shared information;

[0257] Processor 129 is also configured to generate target text in response to the fifth input, the target text being used to characterize the third expression information;

[0258] Specifically, when the electronic device sends a third emoticon in a chat interface associated with the first shared information, the fifth account in the chat interface associated with the first shared information displays the target text.

[0259] In another alternative example, the chat interface associated with the first shared information is a group chat interface; the radio frequency unit 121 is also configured to receive a sixth input to at least one account in the group chat interface;

[0260] Processor 129 is also configured to, in response to the sixth input, identify the at least one account as the fifth account.

[0261] It should be understood that, in this embodiment, the input unit 124 may include a graphics processing unit (GPU) 1241 and a microphone 1242. The GPU 1241 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 126 may include a display panel 1261, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 127 includes at least one of a touch panel 1271 and other input devices 1272. The touch panel 1271 is also called a touch screen. The touch panel 1271 may include a touch detection device and a touch controller. Other input devices 1272 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0262] The memory 129 can be used to store software programs and various data. The memory 129 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 129 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 129 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0263] Processor 120 may include one or more processing units; optionally, processor 120 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 120.

[0264] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described notification message output method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0265] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0266] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described notification message output method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0267] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0268] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described notification message output method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0269] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0270] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0271] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method of outputting a notification message, characterized by, Performed by electronic devices, including: Obtain the first sharing information shared on the first display interface, wherein the first sharing information is the information published by the first account on the target information sharing platform; Based on the first shared information, target information is generated, wherein the target information includes at least one of a notification message and candidate information, the notification message is a message generated by adding the account information of the first account and the attribute tags of the first shared information to a preset message template, and the candidate information is used to assist the user in chatting with the associated account of the first shared information through the account; When the electronic device displays the second display interface, the target information is output, wherein the first display interface and the second display interface are different display interfaces; Receive the first input to the notification message; In response to the first input, a first chat interface is displayed. The first chat interface is a chat interface between the second account and the first account, or the first chat interface is a chat interface between the second account and the target account. The second account is the account of the electronic device, and the target account is an account among at least one third account determined based on the sharing content of the first sharing information. Before displaying the first chat interface in response to the first input, the method further includes: If the first shared information includes images or videos, and the images or videos include facial images, then the account of the user corresponding to the facial image is identified as at least one third-party account; or, If the first shared information includes text information and the text information includes account information, the account corresponding to the account information is determined to be at least one third account. The step of generating target information based on the first shared information includes: Obtain the sharing content of the first sharing information; Based on the shared content of the first shared information, generate attribute tags for the first shared information; If the attribute tags of the first shared information match the preset tags in the preset tag library, the notification message is generated based on the attribute tags of the first shared information. Before generating a notification message based on the attribute tags of the first shared information, when the attribute tags of the first shared information match preset tags in a preset tag library, the method further includes: Retrieve the sharing content of N historical sharing messages; Based on the shared content of N historical sharing messages, a similarity score is calculated between each historical sharing message to obtain the similarity score of the N historical sharing messages; Based on the similarity scores of the N historical sharing information, at least one target historical sharing information is determined; The historical tag of the at least one target historical sharing information is used as a preset tag in the preset tag library, where N is a positive integer greater than 1.

2. The method of claim 1, wherein, The step of generating a notification message based on the attribute tags of the first shared information includes: Obtain the account information of the first account; The account information of the first account and the attribute tags of the first shared information are added to the preset message template to generate a notification message.

3. The method of claim 1, wherein, Before generating the target information based on the first shared information, the method further includes: Obtain the target address book of the second account on the target information sharing platform, wherein the target address book includes multiple communication accounts; Calculate the intimacy between the second account and each of the aforementioned communication accounts on at least one intimacy index, wherein the at least one intimacy index is used to characterize the degree of intimacy of at least one of social relationship, interest, and emotion; Based on the intimacy level of the at least one intimacy index, at least one target communication account is determined from the plurality of communication accounts; The at least one target communication account is identified as a preset account in a preset account database; The step of generating target information based on the first shared information includes: If the first account matches a preset account in the preset account database, a notification message is generated based on the first shared information.

4. The method of claim 1, wherein, After outputting the notification message, the method further includes: Receive a second input to the notification message; In response to the second input, a target group identifier associated with the first shared information is displayed, the target group identifier being used to identify a target chat group, the target chat group including at least one of a first account and at least one third account; Receive a third input regarding the identifier of the target group; In response to the third input, a second chat interface associated with the target chat group is displayed.

5. The method according to claim 4, characterized in that, The display of the target group identifier associated with the first shared information includes: Display at least one group identifier associated with the first shared information, the at least one group identifier including the target group identifier; Before receiving the third input regarding the target group identifier, the method further includes: Determine the number of target accounts included in the chat groups corresponding to each of the at least one group identifiers, wherein the target account is either the first account or the third account; The at least one group identifier is sorted according to the number of target accounts included in each of the chat groups; The third input is the input that selects the target group identifier based on the sorting.

6. The method according to claim 1, characterized in that, After displaying the at least one candidate information on the second display interface, the method further includes: Upon receiving a fourth input regarding the target candidate information among the at least one candidate information, in response to the fourth input, the target candidate information is sent in a chat interface associated with the first shared information.

7. The method according to claim 1, characterized in that, The step of generating target information based on the first shared information includes: If the first shared information includes an image or video, extract the display area of ​​interest from the first shared information and use the image in the display area of ​​interest of the first shared information as the target image. Based on the target image, first facial expression information is generated. The at least one candidate information includes the first expression information.

8. The method according to claim 7, characterized in that, The second display interface is the chat interface between the second account and the fourth account; The step of generating target information based on the first shared information includes: Obtain at least one historical chat emoticon from the historical chat process between the second account and the fourth account; Based on the at least one historical chat emoticon information and the first emoticon information, generate second emoticon information. The at least one candidate information includes the second expression information.

9. The method according to claim 1, characterized in that, The step of generating target information based on the first shared information includes: Retrieve comment information associated with the first shared information; The comment information is segmented into multiple words. Among the multiple word segments, at least one target word is determined. The at least one candidate information includes the at least one target word.

10. The method according to claim 1, characterized in that, The second display interface is a chat interface associated with the first shared information; After displaying the at least one candidate information on the second display interface, the method further includes: Receive a fifth input on third emoticon information, the fifth input being used to instruct the third emoticon information to be sent in the second display interface, the at least one candidate information including the third emoticon information; In response to the fifth input, target text is generated, which is used to represent the third expression information; Specifically, when the electronic device sends a third emoticon in a chat interface associated with the first shared information, the fifth account in the chat interface associated with the first shared information displays the target text.

11. The method according to claim 10, characterized in that, The second display interface is a group chat interface associated with the first shared information; After displaying the at least one candidate information on the second display interface, the method further includes: Receive a sixth input for at least one account in the group chat interface; In response to the sixth input, the at least one account is identified as the fifth account.

12. A notification message output device, characterized in that, include: The acquisition module is used to acquire the first sharing information shared on the first display interface, wherein the first sharing information is the information published by the first account on the target information sharing platform; The generation module is used to generate target information based on the first shared information. The target information includes at least one of a notification message and candidate information. The notification message is a message generated by adding the account information of the first account and the attribute tags of the first shared information to a preset message template. The candidate information is used to assist users in chatting with the associated account of the first shared information through their account. The output module is used to output the target information when the electronic device displays the second display interface, wherein the first display interface and the second display interface are different display interfaces; A receiving module is configured to receive a first input to the notification message; The output module is further configured to respond to the first input by displaying a first chat interface, wherein the first chat interface is a chat interface between the second account and the first account, or the first chat interface is a chat interface between the second account and the target account, wherein the second account is the account of the electronic device, and the target account is an account among at least one third account determined based on the sharing content of the first sharing information. The device further includes: The determining module is configured to, before displaying the first chat interface in response to the first input, determine the account of the user corresponding to the facial image as at least one third account if the first shared information includes an image or video, and the image or video includes a facial image; or, If the first shared information includes text information and the text information includes account information, the account corresponding to the account information is determined to be at least one third account. The generation module includes: The first acquisition unit is used to acquire the sharing content of the first sharing information; The first generation unit is used to generate attribute tags for the first sharing information based on the sharing content of the first sharing information; The first generation unit is further configured to generate the notification message based on the attribute tags of the first shared information when the attribute tags of the first shared information match the preset tags in the preset tag library; The first acquisition unit is further configured to acquire the sharing content of N historical sharing information before generating a notification message based on the attribute tags of the first sharing information, when the attribute tags of the first sharing information match the preset tags in the preset tag library; The first generation unit is further configured to calculate the similarity score between each of the historical sharing information based on the sharing content of the N historical sharing information, and obtain the similarity score of the N historical sharing information; The device further includes: The first determining unit is used to determine at least one target historical sharing information based on the similarity score of the N historical sharing information; The first determining unit is further configured to use the historical tag of the at least one target historical sharing information as a preset tag in the preset tag library, where N is a positive integer greater than 1.

13. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the notification message output method as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Display method and electronic equipment

    CN114690985A