Method and apparatus for displaying social dynamics
By obtaining public communication messages between users and target social objects, determining their social relationships and setting a dynamic visible range, the problem of not being able to differentiate the social dynamic visible range in the prior art is solved, and personalized social dynamic display is achieved.
Patent Information
- Application Number
- CN202111661046.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-16
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2040-09-16
AI Technical Summary
The prior art cannot differentiate the visible range of social dynamics posted by users for different social objects.
By obtaining public communication messages between the user and the target social object, the social relationship of the target social object is determined, and based on the relationship determines the visible range of the social dynamics posted by the user displayed to the target social object.
It is realized that the visible range of social dynamics is adaptively determined based on the social relationship between the user and the target social object, which meets the user's personalized needs for different social objects, reduces the time for user configuration permissions and reduces the system data processing volume.
Smart Images

Figure CN114329279B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese Patent Application No. CN202010977100.5, titled "Method and Device for Displaying Social Dynamics", filed on September 16, 2020. Technical Field
[0002] This application relates to the field of Internet technologies, and in particular, to a method and device for displaying social dynamics. Background Art
[0003] With the rapid development of mobile Internet technologies, social platforms have become indispensable communication tools for users. In social platforms, users can display or express themselves by posting social dynamics. For each user, the social platform includes social objects with different social relationships from those in the user's real life. For a user, for social objects with different social relationships, the social dynamics (circle of friends dynamics) that the user hopes to display often vary.
[0004] In related technologies, social platforms provide a method for displaying social dynamics. Users can set the visible range of the social dynamics they have posted, such as completely invisible, partially visible, or completely visible. However, this setting is undifferentiated for all social objects. Therefore, there is a technical problem that the visible range of the social dynamics posted by users cannot be set differentially for all social objects. Summary of the Invention
[0005] Embodiments of this application provide a method and device for displaying social dynamics, which can, to a certain extent, solve the technical problem that when displaying the social dynamics posted by users, the visible range of the social dynamics posted by users cannot be set differentially for all social objects.
[0006] Other features and advantages of this application will become apparent through the following detailed description, or be learned in part through the practice of this application.
[0007] According to one aspect of the embodiments of this application, a method for displaying social dynamics is provided, including: obtaining public communication messages between a user and a target social object; determining the social relationship of the target social object based on the public communication messages; and determining the visible range of the social dynamics posted by the user to be displayed to the target social object based on the social relationship.
[0008] According to one aspect of the embodiments of the present application, there is provided a display device for social dynamics, including: an acquisition unit configured to acquire public communication messages between a user and a target social object; a first execution unit configured to determine the social relationship of the target social object based on the public communication messages; and a second execution unit configured to determine the visible range of the user's published social dynamics to be displayed to the target social object based on the social relationship.
[0009] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: determine the object relationship label of the target social object based on the public communication messages; determine the social relationship score between the user and the target social object based on the public communication messages; and determine the social relationship of the target social object based on the object relationship label and the social relationship score.
[0010] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: input the public communication messages into a pre-trained machine learning model, where the pre-trained machine learning model is trained by sample data including public communication messages between users and social objects and relationship categories of social objects; obtain the relationship category output by the pre-trained machine learning model; and generate the object relationship label of the target social object based on the relationship category.
[0011] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: obtain the sending and receiving times of each public communication message from the user included in the public communication messages and the sending and receiving times of each public communication message from the target social object; if it is detected that the time difference between the sending and receiving time of the public communication message of the user and the sending and receiving time of the public communication message from the target social object is less than a predetermined time threshold, then determine the public communication messages from the user and the public communication messages from the target social object as public communication messages with chat interaction behavior; determine the number of public communication messages with chat interaction behavior in the public communication messages; and determine the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behavior in the public communication messages.
[0012] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: identify keywords reflecting the social relationship level included in the public communication message; determine the weight corresponding to the identified keywords according to the identified keywords and the corresponding relationship between the keywords and the weights, where the weight is positively correlated with the social relationship level; determine the social relationship score between the user and the target social object based on the average value of the weights corresponding to the identified keywords and the number of public communication messages with chat interaction behaviors in the public communication message, and the social relationship score is positively correlated with the average value and the number of public communication messages with chat interaction behaviors in the public communication message.
[0013] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: determine the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object; determine the proportion of the number of public communication messages with chat interaction behaviors in the public communication message to the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object; determine the social relationship score between the user and the target social object based on the proportion, and the social relationship score is positively correlated with the proportion.
[0014] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: if duplicate communication messages from the user or from the target social object are detected in the public communication message, determine the number of duplicate communication messages in the public communication message; determine the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication message and the number of duplicate communication messages in the public communication message, and the social relationship score is negatively correlated with the total number of duplicate communication messages in the public communication message.
[0015] In some embodiments of the present application, based on the foregoing solution, the first execution unit is configured to: determine the first social relationship score based on the object relationship label and the corresponding relationship between the object relationship label and the social relationship score; determine the second social relationship score based on the social relationship score and the corresponding relationship between the social relationship score and the social relationship score; determine the social relationship of the target social object based on the first social relationship score and the second social relationship score.
[0016] In some embodiments of the present application, based on the foregoing solution, the second execution unit is configured to: determine the minimum and maximum social relationships based on the social relationships between the user and each social object; calculate a first difference between the social relationship of the target social object and the minimum social relationship; calculate a second difference between the maximum social relationship and the minimum social relationship; determine the relative social relationship of the target social object based on the ratio between the first difference and the second difference; and determine the visible range of the user's published social dynamics to be shown to the target social object based on the relative social relationship of the target social object and the visible range of the user's published social dynamics shown to the social object.
[0017] According to one aspect of the embodiments of the present application, there is provided a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for displaying social dynamics as described in the above embodiments is implemented.
[0018] According to one aspect of the embodiments of the present application, there is provided an electronic device, including: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for displaying social dynamics as described in the above embodiments.
[0019] In the technical solution provided by some embodiments of the present application, by obtaining the public communication messages between the user and the target social object, determining the social relationship of the target social object based on the public communication messages, and determining the visible range of the user's published social dynamics to be shown to the target social object based on the social relationship of the target social object, it is realized that the visible range of the user's published social dynamics to be shown to the target social object is adaptively determined according to the social relationship between the user and the target social object, which meets the personalized needs of the user for differentially displaying the published social dynamics for all social objects, reduces the time for the user to configure the display permissions for the visible range of the published social dynamics, and reduces the data processing volume of the system.
[0020] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings here are incorporated into and form a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application. Obviously, the accompanying drawings in the following description are only some embodiments of this application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts. In the drawings:
[0022] Figure 1 Shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiment of this application can be applied.
[0023] Figure 2 Shows a flowchart of a method for displaying social dynamics according to an embodiment of this application.
[0024] Figure 3 Shows a detailed flowchart of step S220 of the method for displaying social dynamics according to an embodiment of this application.
[0025] Figure 4 Shows a detailed flowchart of step S310 of the method for displaying social dynamics according to an embodiment of this application.
[0026] Figure 5 Shows a detailed flowchart of step S320 of the method for displaying social dynamics according to an embodiment of this application.
[0027] Figure 6 Shows a detailed flowchart of step S540 of the method for displaying social dynamics according to an embodiment of this application.
[0028] Figure 7 Shows a detailed flowchart of step S540 of the method for displaying social dynamics according to an embodiment of this application.
[0029] Figure 8 Shows a detailed flowchart of step S540 of the method for displaying social dynamics according to an embodiment of this application.
[0030] Figure 9 Shows a detailed flowchart of step S330 of the method for displaying social dynamics according to an embodiment of this application.
[0031] Figure 10 Shows a detailed flowchart of step S230 of the method for displaying social dynamics according to an embodiment of this application.
[0032] Figures 11A to 11D Shows a schematic diagram of the interface of the social object terminal 103 according to an embodiment of this application.
[0033] Figure 12A block diagram of a display device for social dynamics according to an embodiment of the present application is shown.
[0034] Figure 13 A schematic structural diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application is shown. Detailed implementation manners
[0035] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.
[0036] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will realize that the technical solutions of the present application can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present application.
[0037] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0038] The flowcharts shown in the drawings are only illustrative and not necessarily include all the contents and operations / steps, nor are they necessarily executed in the described order. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.
[0039] It can be understood that in the specific implementation manners of the present application, when it comes to data related to user information, etc., when the above embodiments of the present application are applied to specific products or technologies, relevant user permissions or consents need to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0040] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied is shown.
[0041] As Figure 1As shown in the figure, the system architecture may include a server 101, a user terminal 102, and a social object terminal 103. The server 101 is used to provide communication services between the user terminal 102 and the social object terminal 103. The user terminal 102 and the social object terminal 103 are connected to the server 101 through a network, which may include various connection types, such as wired communication links, wireless communication links, and so on.
[0042] It should be understood that Figure 1 the numbers of the server 101, the user terminal 102, and the social object terminal 103 in
[0043] are merely illustrative. According to the implementation requirements, there can be any number of servers 101, user terminals 102, and social object terminals 103. For example, the server 101 can be a server cluster composed of multiple servers, etc.
[0044] Step S101, the user terminal 102 sends a public communication message to the public communication message data background 1011 in the server 101.
[0045] Step S102, the public communication message data background 1011 in the server 101 stores the public communication message sent by the user terminal 102 and forwards the public communication message sent by the user terminal 102 to the social object terminal 103.
[0046] Step S103, the social object terminal 103 sends a public communication message to the public communication message data background 1011 in the server 101.
[0047] Step S104, the public communication message data background 1011 in the server 101 stores the public communication message sent by the social object terminal 103 and forwards the public communication message sent by the social object terminal 103 to the user terminal 102.
[0048] Step S105, the public communication message data background 1011 in the server 101 obtains the public communication messages between the user corresponding to the user terminal 102 and the target social object corresponding to the social object terminal 103, and sends the public communication messages to the social relationship calculation module 1012, so that the social relationship calculation module 1012 determines the social relationship of the target social object based on the public communication messages, and this social relationship reflects the degree of social relationship between the user and the target social object.
[0049] Step S106, the social relationship calculation module 1012 sends the calculated social relationship of the target social object to the social dynamics hierarchical display module 1013, so that the social dynamics hierarchical display module 1013 determines the visible range of the social dynamics published by the user to be displayed to the target social object based on the social relationship of the target social object.
[0050] Step S107 : the social object terminal 103 initiates a display request for viewing the social dynamics of the user corresponding to the user terminal 102 to the social dynamics hierarchical display module 1013 in the server 101 .
[0051] In step S108, the social dynamics hierarchical display module 1013 in the server 101 sends the social dynamics data within the visible range to the social object terminal 103 based on the visible range of the social dynamics posted by the user to be displayed to the target social object, so that the social object terminal 103 can display the social dynamics within the visible range, and the social counterpart corresponding to the social object terminal 103 can view the social dynamics posted by the user within the visible range.
[0052] The above technical solution realizes adaptively determining the visible range of the user's published social dynamics displayed to the target social object according to the social relationship between the user and the target social object, thereby improving the accuracy of differentiated social dynamics display for all social objects of the user.
[0053] It should be noted that the social dynamics display method provided in the embodiment of the present application is generally executed by the server 101, and accordingly, the social dynamics display device is generally set in the server 101. However, in other embodiments of the present application, the user terminal 102 and the social object terminal 103 may also have similar functions to the server 101, so as to execute the scheme of the social dynamics display method provided in the embodiment of the present application.
[0054] The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.
[0055] Figure 2 A flowchart of a method for displaying social dynamics according to an embodiment of the present application is shown. The method for displaying social dynamics can be executed by a server, which can be Figure 1 The server 101 shown in FIG. Figure 2 As shown, the method for displaying the social dynamics at least includes:
[0056] Step S210, obtaining public communication messages between the user and the target social object;
[0057] Step S220, determining the social relationship of the target social object based on the public communication message;
[0058] Step S230: Based on the social relationship, determine the visible range of the user's published social dynamics to be shown to the target social object.
[0059] In step S210, obtain the public communication messages between the user and the target social object.
[0060] The social object is a relevant object that can communicate with the user in the social application used by the user. It can be an object with a social friend binding relationship with the user in the social application, or an object without a social friend binding relationship with the user in the social application. Among them, the public communication messages can include one or more types of public messages such as public comment messages and public communication messages in public chat rooms. Specifically, the public communication messages can be voice messages, text messages or picture messages when the user communicates with the social object in the chat box of the social application, and can come from the user or the social object.
[0061] The public communication messages between the user and the social object are pre-stored in the communication history corresponding to the user and the social object. The public communication messages between the user and the social object can be directly obtained from the communication history according to the identification information of the user in the social application and the identification information of the social object in the social application.
[0062] It should be noted that the relevant information such as the public communication messages obtained by this application between the user and the target social object is only for the user side and will not be uploaded to the background such as the server for relevant analysis.
[0063] In step S220, based on the public communication messages, determine the social relationship of the target social object.
[0064] The social relationship refers to the social relationship level between the social object and the user. If the social relationship of the social object is higher, it means that the connection between the social object and the user is closer. On the contrary, if the social relationship of the social object is lower, the relationship between the social object and the user is more distant. The social relationship is associated with at least one of the following factors: the relationship between the user and the social object, the frequency of sending public communication messages between the user and the social object.
[0065] It should be noted that when the user needs to customize the visible range of the social dynamics published by the user through the method of this application, and the user actively turns on the function button for customizing the visible range of the dynamics and submits an application for automatically customizing the visible range of the social dynamics, the system or server will execute the solution of this application. After obtaining the user's separate authorization and consent for obtaining the public communication messages between the user and the social object, the public communication messages between the user and the social object are obtained, and through the processing of steps S210 - S230, the visible range of the social dynamics published by the user to be displayed to the target social object is determined.
[0066] In an actual scenario, after determining the visible range of the social dynamics published by the user to be displayed to the target social object, it is necessary to display each target social object and the corresponding visible range to the user, and then use the target social object and the corresponding visible range selected and confirmed by the user as the finally set target social object and the corresponding visible range.
[0067] In one embodiment, after obtaining the public communication messages between the user and the social object, when determining the social relationship of the social object, semantic recognition processing can be performed according to the content included in the public communication messages to determine the social relationship of the social object.
[0068] In one embodiment, when determining the social relationship of the social object based on the public communication messages between the user and the social object, it can be achieved by first determining the object relationship label of the social object and the social relationship score between the user and the social object, and then determining the social relationship of the social object according to these two factors, namely the object relationship label and the social relationship score.
[0069] The object relationship label is a label that can reflect the relationship attributes between the user and the social object, such as "friends with outdoor sports hobbies", "friends with fitness sports hobbies", "friends with game teaming hobbies", etc. There is an associated relationship between the object relationship label and the social relationship.
[0070] The social relationship score is the social relationship score between the user and the social object determined according to the frequency of the public communication messages between the user and the social object. There is also an associated relationship between this social relationship score and the social relationship.
[0071] Reference Figure 3 , Figure 3 shows a specific flowchart of step S220 of the method for displaying social dynamics according to an embodiment of the present application. In this embodiment, step S220 may specifically include:
[0072] Step S310, based on the public communication messages, determine the object relationship label of the target social object;
[0073] Step S320: Determine the social relationship score between the user and the target social object based on the public communication messages.
[0074] Step S330: Determine the social relationship of the target social object based on the object relationship label and the social relationship score.
[0075] In step S310, when determining the object relationship label of the social object based on the public communication messages, various methods can be adopted.
[0076] In one embodiment, it can be determined whether the public communication message contains keywords that can determine the object relationship label, and then based on the keywords contained in the public communication message and the corresponding relationship between the preset keywords and the object relationship labels, the object relationship label of the social object is determined.
[0077] For example, the public communication messages between the user and the social object contain "I heard that the scenery in place A is very beautiful. Do the hiking enthusiasts want to go hiking?", "The weather is very good today. Do the running enthusiasts want to go running?", or "I'm playing games. Do my teammates want to play together?", and "hiking enthusiasts", "hiking", "running enthusiasts", "running", or "teammates", "games", etc. can be used as keywords to determine the object relationship label. Thus, the object relationship label of the social object can be directly determined according to the keywords and the corresponding relationship between the preset keywords and the object relationship labels. Among them, "hiking enthusiasts" and "hiking" are used as keywords representing the relationship between the social object and the user as "outdoor sports hobby friends", "running enthusiasts" and "running" are used as keywords representing the relationship between the social object and the user as "fitness sports hobby friends", and "teammates" and "games" are used as keywords representing the relationship between the social object and the user as "game teaming hobby friends".
[0078] Reference Figure 4 , Figure 4 shows a specific flowchart of step S310 of the social dynamic display method according to an embodiment of the present application. In this embodiment, step S310 may specifically include:
[0079] Step S410: Input the public communication message into a pre-trained machine learning model, and the pre-trained machine learning model is trained with sample data including the public communication messages between the user and the social object and the relationship categories of the social object.
[0080] Step S420: Obtain the relationship category output by the pre-trained machine learning model.
[0081] Step S430: Generate the object relationship label of the target social object based on the relationship category.
[0082] When determining the object relationship label of a social object based on public communication messages, the public communication messages between the user and the social object can also be input into a pre-trained machine learning model, which is trained with sample data including the public communication messages between the user and the social object and the relationship categories of the social object.
[0083] The public communication messages between the user and the social object can come from all the public communication messages between the user and the social object in the social application. The relationship category of the social object can be a relationship category label determined according to the content included in the public communication messages between the user and the social object, such as "friends with outdoor sports hobbies", "friends with fitness sports hobbies", "friends with game teaming hobbies", "friends", "classmates", "colleagues", etc. These relationship category labels can directly correspond one-to-one with the object relationship labels. Of course, it can also be a more fine-grained label for characterizing the relationship category, and the solution of this application does not limit this.
[0084] The machine learning model can be a CNN (Convolutional Neural Network) model, or it can also be a deep neural network model, etc.
[0085] The process of training the machine learning model is to adjust the coefficients in the network structure corresponding to the machine learning model, so that for the input public communication messages between the user and the social object, after the operations of the coefficients in the network structure corresponding to the machine learning model, the output result is the determined relationship category.
[0086] After inputting the public communication messages between the user and the social object into the pre-trained machine learning model, obtain the result output by the pre-trained machine learning model, that is, obtain the relationship category output by the pre-trained machine learning model, and then generate the object relationship label of the social object according to the relationship category output by the machine learning model.
[0087] In step S320, when determining the social relationship score between the user and the social object based on public communication messages, there are multiple calculation methods.
[0088] In one embodiment, the social relationship score between the user and the social object can be determined according to the number of public communication messages sent between the user and the social object within a predetermined time period. When the number of public communication messages sent between the user and the social object is more, the social relationship score between the user and the social object is higher; conversely, the social relationship score between the user and the social object is lower.
[0089] Reference Figure 5 , Figure 5The specific flowchart of step S320 of the method for displaying social dynamics according to an embodiment of the present application is shown. In this embodiment, step S320 may specifically include:
[0090] Step S510, obtaining the sending and receiving times of each public communication message from the user and the sending and receiving times of each public communication message from the target social object included in the public communication messages;
[0091] Step S520, if it is detected that the time difference between the sending and receiving time of the user's public communication message and the sending and receiving time of the public communication message from the target social object is less than a predetermined time threshold, then determining the public communication messages from the user and the public communication messages from the target social object as the public communication messages with chat interaction behavior;
[0092] Step S530, determining the number of public communication messages with chat interaction behavior in the public communication messages;
[0093] Step S540, based on the number of public communication messages with chat interaction behavior in the public communication messages, determining the social relationship score between the user and the target social object.
[0094] In step S510, in order to more accurately determine the social relationship score between the user and the social object based on the number of public communication messages sent between the user and the social object, it is necessary to first determine the public communication messages with chat interaction behavior. If there are only public communication messages sent by either the user or the social object alone, then the accuracy of determining the social relationship score between the user and the social object based only on the number of public communication messages sent between the user and the social object is not high. To avoid the influence of the above situation on the accuracy of the determined social relationship score between the user and the social object, the sending and receiving times of each public communication message from the user and the sending and receiving times of each public communication message from the target social object included in the public communication messages between the user and the social object can be obtained from the communication history record between the user and the social object.
[0095] In step S520, after obtaining the sending and receiving times of each public communication message from the user and the sending and receiving times of each public communication message from the target social object included in the public communication messages, comparing the time difference between the sending and receiving time of the public communication message from the user and the sending and receiving time of the public communication message from the target social object. When the time difference is less than a predetermined time threshold, then determining the public communication messages from the user and the public communication messages from the social object as the public communication messages with chat interaction behavior. The predetermined time threshold can be set to 24 hours or 36 hours, and the specific value is not limited here.
[0096] In step S530, calculate the number of public communication messages with chat interaction behaviors in the public communication messages.
[0097] In step S540, based on the number of public communication messages with chat interaction behaviors in the public communication messages, determine the social relationship score between the user and the social object. The social relationship score has a positive correlation with the number of public communication messages with chat interaction behaviors in the public communication messages, that is, the more the number of public communication messages with chat interaction behaviors in the public communication messages, the higher the social relationship score between the user and the social object.
[0098] Figure 5 The technical solution of the illustrated embodiment, compared with the embodiment of determining the social relationship score between the user and the social object according to the number of sent public communication messages between the user and the social object, by determining the social relationship score between the user and the social object according to the number of public communication messages with chat interaction behaviors, can effectively solve the problem of low accuracy in determining the social relationship score between the user and the social object according to the number of sent public communication messages between the user and the social object in the extreme case where only one of the user or the social object sends public communication messages alone, and improves the accuracy of the determined social relationship score between the user and the social object.
[0099] Reference Figure 6 , Figure 6 shows a specific flowchart of step S540 of the method for displaying social dynamics according to an embodiment of the present application. In this embodiment, step S540 may specifically include:
[0100] Step S610, identify the keywords reflecting the social relationship level included in the public communication messages;
[0101] Step S620, according to the identified keywords and the corresponding relationship between the keywords and the weights, determine the weights corresponding to the identified keywords. The weights have a negative correlation with the social relationship level;
[0102] Step S630, based on the average value of the weights corresponding to the identified keywords and the number of public communication messages with chat interaction behaviors in the public communication messages, determine the social relationship score between the user and the target social object. The social relationship score has a positive correlation with the average value and the number of public communication messages with chat interaction behaviors in the public communication messages.
[0103] In step S610, when determining the social relationship score between the user and the social object according to the number of public communication messages with chat interaction behaviors in the public communication messages, semantic recognition can also be performed on the content of the public communication messages to identify keywords that can reflect the social relationship level. Then, based on the two factors of the identified keywords and the number of public communication messages with chat interaction behaviors, the social relationship score between the user and the social object is jointly determined.
[0104] Keywords that can reflect the social relationship level may include "good friend", "first meeting", "know each other for so long", "you", "honored", "thank you very much", etc. Different keywords correspond to different social relationship levels. For example, "good friend", "know each other for so long", etc. are keywords corresponding to a relatively high social relationship level, while "first meeting", "you", "honored", "thank you very much", etc. are keywords corresponding to a relatively low social relationship level.
[0105] It can be understood that a keyword vocabulary library can be set in advance, and the keyword vocabulary library contains multiple words corresponding to different social relationship levels. It should be noted that the keyword vocabulary library can also contain keywords with abusive or personally insulting words, and these keywords are keywords corresponding to a relatively low social relationship level.
[0106] Match the public communication messages with the keyword vocabulary library to identify whether the public communication messages contain keywords that can reflect the social relationship level.
[0107] In step S620, after identifying the keywords that can reflect the social relationship level contained in the public communication messages, the weight corresponding to the identified keywords can be determined according to the identified keywords and the corresponding relationship between the keywords and the weights. The weight has a positive correlation with the social relationship level, that is, the higher the social relationship level corresponding to the keyword, the greater the weight corresponding to the identified keyword.
[0108] In step S630, after identifying the weight of the keywords that can reflect the social relationship level contained in the public communication messages and the number of public communication messages with chat interaction behaviors in the public communication messages, the social relationship score between the user and the social object can be determined according to the average value of the weights of the keywords that can reflect the social relationship level contained in the identified public communication messages and the number of public communication messages with chat interaction behaviors in the public communication messages. The social relationship score has a positive correlation with both the average value and the number of public communication messages with chat interaction behaviors in the public communication messages.
[0109] Optionally, in one embodiment, the social relationship score between a user and a social object may be calculated based on the formula S = δ * f, where δ is the average weight of keywords reflecting the social relationship level, f is the number of public communication messages with chat interaction behaviors in the public communication messages, and S is the social relationship score between the user and the social object.
[0110] Figure 6 Compared with the embodiment of determining the social relationship score between a user and a social object only according to the number of public communication messages with chat interaction behaviors, the technical solution of the shown embodiment also comprehensively considers the keywords reflecting the social relationship level included in the public communication messages, making the determined social relationship score between the user and the social object more in line with the actual social relationship level between the user and the social object, and can effectively improve the accuracy of the determined social relationship score between the user and the social object.
[0111] Reference Figure 7 , Figure 7 shows a specific flowchart of step S540 of the method for displaying social dynamics according to an embodiment of the present application. In this embodiment, step S540 may specifically include:
[0112] Step S710, determining the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object;
[0113] Step S720, determining the proportion of the number of public communication messages with chat interaction behaviors in the public communication messages to the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object;
[0114] Step S730, determining the social relationship score between the user and the target social object based on the proportion, and the social relationship score is positively correlated with the proportion.
[0115] In the actual use of the social application, it is found that the number of public communication messages sent between users who like to use the social application and social objects is generally higher than the number of public communication messages sent between users who do not like to use the social application and social objects, that is, there are differences in the frequency of communication between different users and social objects through the social application. Therefore, there will be a situation where the number of public communication messages sent between users who like to use the social application and social objects with a general social relationship level is still more than the number of public communication messages sent between users who do not like to use the social application and social objects with a high social relationship level.
[0116] To avoid the impact of such differences on the social relationship score determined between the user and the social object, the total number of public communication messages with chat interaction behavior in the public communication messages between the user and each social object can be determined first, and further, the ratio of the number of public communication messages with chat interaction behavior in the public communication messages corresponding to the target social object of the user to the total number of public communication messages with chat interaction behavior in the public communication messages between the user and each social object can be determined. Finally, based on the determined ratio, the social relationship score between the user and the target social object can be determined. The social relationship score and the ratio are positively correlated, that is, the higher the ratio, the higher the social relationship score.
[0117] Optionally, in one embodiment, it can be based on the formula to calculate the social relationship score between the user and the social object. Among them, f is the number of public communication messages with chat interaction behavior, F is the total number of public communication messages with chat interaction behavior in the public communication messages between the user and each social object, is the ratio, α is a positive number, and S is the social relationship score between the user and the social object. Specifically, α can be set to 1. Of course, α can also be other normal numbers, which are not limited here.
[0118] Figure 7 The technical solution of the embodiment shown, compared with the embodiment of determining the social relationship score between the user and the social object only according to the number of public communication messages with chat interaction behavior, by first determining the ratio of the number of public communication messages with chat interaction behavior in the public communication messages corresponding to the target social object of the user to the total number of public communication messages with chat interaction behavior in the public communication messages between the user and each social object, and determining the social relationship score between the user and the target social object according to this ratio, can avoid the impact on the determined social relationship score between the user and the target social object due to the difference in the frequency of communication between different users and social objects through social applications, and can improve the accuracy of the determined social relationship score between the user and the social object.
[0119] Refer to Figure 8 , Figure 8 shows a specific flowchart of step S540 of the method for displaying social dynamics according to an embodiment of the present application. In this embodiment, step S630 can specifically include:
[0120] Step S810, if it is detected that there are duplicate communication messages from the user or from the target social object in the public communication messages, determine the number of duplicate communication messages in the public communication messages;
[0121] Step S820: Determine the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors and the number of duplicate communication messages in the public communication messages. The social relationship score has a negative correlation with the total number of duplicate communication messages in the public communication messages.
[0122] In the actual use of social networking, it is found that there are still a large number of duplicate public communication messages sent between the user and the social object. Therefore, it is necessary to consider the situation of duplicate communication messages in the public communication messages between the user and the social object.
[0123] Specifically, it can be detected whether there are duplicate public communication messages between the user and the social object. If duplicate communication messages from the user or from the social object are detected in the public communication messages between the user and the social object, then determine the number of duplicate communication messages in the public communication messages.
[0124] Based on the number of public communication messages with chat interaction behaviors and the number of duplicate communication messages in the public communication messages between the user and the social object, determine the social relationship score between the user and the social object. The social relationship score has a negative correlation with the total number of duplicate communication messages in the public communication messages between the user and the social object, that is, the more the total number of duplicate communication messages in the public communication messages between the user and the social object, the lower the social relationship score between the user and the social object.
[0125] Optionally, in one embodiment, it can be based on the formula to calculate the social relationship score between the user and the social object, where f is the number of public communication messages with chat interaction behaviors, Y is the number of duplicate communication messages in the public communication messages, β is a positive number, and S is the social relationship score between the user and the social object. Specifically, β can be set to the natural constant e. Of course, β can also be other positive constants, which are not limited here.
[0126] Figure 8 In the technical solution of the illustrated embodiment, compared with the embodiment of determining the social relationship score between the user and the social object only based on the number of public communication messages with chat interaction behaviors, it also comprehensively considers the situation that there are still a large number of duplicate public communication messages sent between the user and the social object, making the number of public communication messages with chat interaction behaviors in the public communication messages between the user and the social object determined more accurate, and can effectively improve the accuracy of the determined social relationship score between the user and the social object.
[0127] Optionally, it can be based on the formula To calculate the social relationship score between the user and the social object, δ is the average weight of the keywords reflecting the social relationship level, α and β are positive numbers, f is the number of public communication messages with chat interaction behaviors in the public communication messages, F is the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object, the number of repeated communication messages in the public communication messages, S is the social relationship score between the user and the social object, α can be specifically set to 1, β can be set to the natural constant e. Of course, α and β can be other normal numbers, which are not limited here.
[0128] Please continue to refer to Figure 3 In step S330, after the object relationship label of the social object and the social relationship score between the user and the social object, the social relationship of the social object can be determined according to the object relationship label, the social relationship score, and the preset corresponding relationship between the two and the social relationship of the social object.
[0129] Refer to Figure 9 , Figure 9 FIG. shows a specific flowchart of step S330 of the method for displaying social dynamics according to an embodiment of the present application. In this embodiment, step S330 may specifically include:
[0130] Step S910, based on the object relationship label and the corresponding relationship between the object relationship label and the social relationship score, determine the first social relationship score;
[0131] Step S920, based on the social relationship score and the corresponding relationship between the social relationship score and the social relationship score, determine the second social relationship score;
[0132] Step S930, based on the first social relationship score and the second social relationship score, determine the social relationship of the target social object.
[0133] When determining the social relationship of the social object according to the object relationship label, the social relationship score, and the preset corresponding relationship between the two and the social relationship of the social object, the first social relationship score can be determined first according to the object relationship label and the preset corresponding relationship between the object relationship label and the social relationship score, and the second social relationship score can be determined based on the social relationship score and the corresponding relationship between the social relationship score and the social relationship score.
[0134] Optionally, when determining the second social relationship score based on the social relationship score and the corresponding relationship between the social relationship score and the social relationship score, the social relationship score can be directly used as the second social relationship score.
[0135] When determining the social relationship of a social object based on the first social relationship score and the second social relationship score, specifically, the sum of the first social relationship score and the second social relationship score can be used as the social relationship of the social object.
[0136] For example, the social relationship of a target social object can be calculated based on the formula I = B + S, where B is the first social relationship score, S is the second social relationship score, and I is the social relationship of the target social object.
[0137] In one embodiment, when determining the social relationship of a social object according to the first social relationship score and the second social relationship score, the weighted sum of the first social relationship score and the second social relationship score can be used as the social relationship of the social object.
[0138] The advantage of this embodiment is that the contribution of the object relationship label of the social object to calculating the social relationship of the social object and the contribution of the social relationship score between the user and the social object to calculating the social relationship of the social object may be different. Determining the social relationship of the social object based on the weighted sum of the first social relationship score and the second social relationship score fully takes into account the differences in the contribution of the object relationship label of the social object to calculating the social relationship of the social object and the contribution of the social relationship score between the user and the social object to calculating the social relationship of the social object, making the determined social relationship of the social object more in line with the objective reality.
[0139] Please continue to refer to Figure 2 , in step S230, after obtaining the social relationship of the social object, the visible range of the user's published social dynamics to be displayed to the social object can be determined based on the social relationship of the social object and the corresponding relationship between the social relationship and the visible range of the user's published social dynamics to be displayed to the social object.
[0140] It can be understood that the higher the social relationship of the social object, the longer the visible range of the user's published social dynamics to be displayed to the social object, and the lower the social relationship of the social object, the shorter the visible range of the user's published social dynamics to be displayed to the social object.
[0141] Each time the social object needs to view the user's published social dynamics, the server will only configure the page data of the user's published social dynamics within the visible range according to the determined visible range of the user's published social dynamics to be displayed to the social object, and send the page data to the terminal corresponding to the social object, so that the social object can view the user's published social dynamics within the visible range.
[0142] There can be various corresponding relationships between social relationships and the visible range of the user's published social dynamics displayed to social objects.
[0143] In one embodiment, the corresponding relationship between social relationships and the visible range of the user's published social dynamics displayed to social objects can be as shown in Table 1 below.
[0144] Social relationship X Visible range of the social dynamics published by the user "0≤X<20” All social dynamics are invisible "20≤X<40” Social dynamics within three days from the current time are visible "40≤X<60” Social dynamics within one month from the current time are visible "60≤X<80” Social dynamics within half a year from the current time are visible "X≥80” All social dynamics are visible
[0145] Table 1 Corresponding relationship between social relationships and the visible range of the user's published social dynamics displayed to social objects.
[0146] In other embodiments, the corresponding relationship between social relationships and the visible range of the user's published social dynamics displayed to social objects can also be a functional relationship. For example, the visible range of the user's published social dynamics, that is, the number of visible days of the social dynamics published by the user from the current time point, can be determined based on the following formula:
[0147] Y = C * X.
[0148] Y is the number of visible days of the social dynamics published by the user from the current time point and can have a functional relationship with the social relationship. C is a positive constant, and X is the social relationship.
[0149] Of course, the corresponding relationship between the preset social relationship and the visible range of the user's published social dynamics displayed to social objects can also be other specific forms of corresponding relationships, which are not specifically limited here.
[0150] As can be seen above, by obtaining the public communication messages between the user and the target social object, based on the public communication messages, determining the social relationship of the target social object, which reflects the degree of social relationship between the user and the target social object, and based on the social relationship of the target social object, determining the visible range of the user's published social dynamics displayed to the target social object, it realizes the adaptive determination of the visible range of the user's published social dynamics displayed to the target social object according to the degree of social relationship between the user and the target social object, meets the personalized needs of the user to differentially display the published social dynamics for all social objects, reduces the time for the user to configure the display permissions for the visible range of the published social dynamics, and reduces the data processing volume of the system.
[0151] Reference Figure 10 , Figure 10 shows a specific flowchart of step S230 of the social dynamics display method according to an embodiment of the present application. In this embodiment, step S230 may specifically include:
[0152] Step S1010: Determine the minimum social relationship value and the maximum social relationship value based on the social relationships between the user and each social object.
[0153] Step S1020: Calculate the first difference between the social relationship of the target social object and the minimum social relationship value.
[0154] Step S1030: Calculate the second difference between the maximum social relationship value and the minimum social relationship value.
[0155] Step S1040: Determine the relative social relationship of the target social object based on the ratio between the first difference and the second difference.
[0156] Step S1050: Determine the visible range of the user's published social dynamics to be shown to the target social object based on the relative social relationship of the target social object and the visible range of the user's published social dynamics shown to the social object.
[0157] When determining the visible range of the user's published social dynamics to be shown to the social object based on the social relationship of the target social object, the relative position of the social relationship of the target social object in the ranking of the social relationships corresponding to all the user's social objects can also be comprehensively considered to determine the visible range of the user's published social dynamics to be shown to the social object.
[0158] Specifically, the social relationships between the user and each social object can be obtained first, and sorted from small to large or from large to small based on the social relationships between the user and each social object, and the minimum social relationship value and the maximum social relationship value are selected therefrom; and the first difference between the social relationship of the target social object and the minimum social relationship value is calculated, and the second difference between the maximum social relationship value and the minimum social relationship value is calculated. Finally, the relative social relationship of the target social object is determined according to the ratio between the calculated first difference and the second difference. Among them, the social relationship in the embodiments of the present application can be a value such as a social relationship degree or a social relationship value for representing the degree of social relationship, and the relative social relationship in the embodiments of the present application can be a value such as a relative social relationship degree or a relative social relationship value for representing the degree of relative social relationship.
[0159] Optionally, when determining the relative social relationship of the target social object according to the ratio between the calculated first difference and the second difference, the ratio between the first difference and the second difference can be used as the relative social relationship of the target social object. Finally, based on the relative social relationship of the target social object and the visible range of the user's published social dynamics shown to the social object, the visible range of the user's published social dynamics to be shown to the target social object is determined.
[0160] Optionally, specifically, it can be calculated according to the formula to calculate the relative social relationship of the target social object, where I is the social relationship of the target social object, Min(I) is the minimum social relationship, Max(I) is the maximum social relationship, I - Min(I) is the first difference, Max(I) - Min(I) is the second difference, and Rate(I) is the relative social relationship of the target social object.
[0161] Finally, based on and according to the relative social relationship of the target social object and the visible range of the social dynamics already published by the user who shows the social object, determine the visible range of the social dynamics already published by the user to be shown to the target social object.
[0162] In one embodiment, the corresponding relationship between the relative social relationship of the social object and the visible range of the social dynamics already published by the user who shows the social object can be as shown in Table 2 below.
[0163]
[0164]
[0165] Table 2 Corresponding relationship between the relative social relationship of the social object and the visible range of the social dynamics already published by the user who shows the social object.
[0166] Reference Figures 11A to 11D , Figures 11A to 11D shows a schematic diagram of the interface of the social object terminal 103 according to an embodiment of the present application.
[0167] Figure 11A shows a chat interface diagram of a social object with less chat interaction with the user. This social object is Figure 11B shows the visible range of the social dynamics already published by the user that the friend 1 of this social object can view. Since this social object and the user are newly added friends in a public chat room, the degree of relationship of the social relationship is relatively low. Therefore, all the social dynamics already published by the user are not visible.
[0168] Figure 11C shows a chat interface diagram of a social object with more chat interaction with the user. Figure 11D shows the visible range of the social dynamics already published by the user that this social object can view. Since the number of chats of this social object is relatively large, the degree of relationship of the social relationship is relatively high. Therefore, the social dynamics within one month from the current time among the social dynamics already published by the user are visible.
[0169] In Figure 10In the technical solution of the illustrated embodiment, the relative social relationship reflects the ranking of the target social object in the social relationship levels of all the user's social objects. The larger the ratio, the higher the social relationship level of the target social object compared to all the user's social objects; the smaller the ratio, the lower the social relationship level of the target social object compared to all the user's social objects. Compared with directly determining the visible range of the user's published social dynamics displayed to the target social object based on the social relationship of the target social object, by the ranking of the target social object in the social relationship levels of all the user's social objects, the social relationship level between the target social object and the user can be further determined, and the accuracy of determining the visible range of the user's published social dynamics displayed to the target social object can be improved.
[0170] The following introduces the device embodiments of the present application, which can be used to execute the social dynamics display method in the above embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the embodiments of the social dynamics display method above of the present application.
[0171] Figure 12 The block diagram of a social dynamics display device according to an embodiment of the present application is shown.
[0172] Refer to Figure 12 As shown, a social dynamics display device 1200 according to an embodiment of the present application includes: an acquisition unit 1210, a first execution unit 1220, and a second execution unit 1230. Among them, the acquisition unit 1210 is configured to acquire the public communication messages between the user and the target social object; the first execution unit 1220 is configured to determine the social relationship of the target social object based on the public communication messages; the second execution unit 1230 is configured to determine the visible range of the user's published social dynamics displayed to the target social object based on the social relationship.
[0173] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: determine the object relationship label of the target social object based on the public communication messages; determine the social relationship score between the user and the target social object based on the public communication messages; and determine the social relationship of the target social object based on the object relationship label and the social relationship score.
[0174] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: input the public communication message into a pre-trained machine learning model, where the pre-trained machine learning model is trained by sample data including public communication messages between a user and a social object and relationship categories of the social object; obtain the relationship category output by the pre-trained machine learning model; and generate an object relationship label for the target social object based on the relationship category.
[0175] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: obtain the sending and receiving times of each public communication message from the user and the sending and receiving times of each public communication message from the target social object included in the public communication message; if it is detected that the time difference between the sending and receiving time of the public communication message of the user and the sending and receiving time of the public communication message from the target social object is less than a predetermined time threshold, determine the public communication message from the user and the public communication message from the target social object as public communication messages with a chat interaction behavior; determine the number of public communication messages with a chat interaction behavior in the public communication message; and determine a social relationship score between the user and the target social object based on the number of public communication messages with a chat interaction behavior in the public communication message.
[0176] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: identify keywords reflecting the social relationship level included in the public communication message; determine the weight corresponding to the identified keyword according to the identified keyword and the corresponding relationship between the keyword and the weight, where the weight has a positive correlation with the social relationship level; and determine a social relationship score between the user and the target social object based on the average value of the weights corresponding to the identified keywords and the number of public communication messages with a chat interaction behavior in the public communication message, where the social relationship score has a positive correlation with the average value and the number of public communication messages with a chat interaction behavior in the public communication message.
[0177] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: determine the total number of public communication messages with a chat interaction behavior in the public communication messages between the user and each social object; determine the ratio of the number of public communication messages with a chat interaction behavior in the public communication message to the total number of public communication messages with a chat interaction behavior in the public communication messages between the user and each social object; and determine a social relationship score between the user and the target social object based on the ratio, where the social relationship score has a positive correlation with the ratio.
[0178] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: if it is detected that there are duplicate communication messages from the user or from the target social object in the public communication message, determine the number of duplicate communication messages in the public communication message; based on the number of public communication messages with chat interaction behavior in the public communication message and the number of duplicate communication messages in the public communication message, determine the social relationship score between the user and the target social object, and the social relationship score has a negative correlation with the total number of duplicate communication messages in the public communication message.
[0179] In some embodiments of the present application, based on the foregoing solution, the first execution unit 1220 is configured to: determine a first social relationship score based on the object relationship tag and the corresponding relationship between the object relationship tag and the social relationship score; determine a second social relationship score based on the social relationship score and the corresponding relationship between the social relationship score and the social relationship score; determine the social relationship of the target social object based on the first social relationship score and the second social relationship score.
[0180] In some embodiments of the present application, based on the foregoing solution, the second execution unit 1230 is configured to: determine the minimum social relationship and the maximum social relationship based on the social relationships between the user and each social object; calculate a first difference between the social relationship of the target social object and the minimum social relationship; calculate a second difference between the maximum social relationship and the minimum social relationship; determine the relative social relationship of the target social object based on the ratio between the first difference and the second difference; determine the visible range of the user's published social dynamics displayed to the target social object based on the relative social relationship of the target social object and the visible range of the user's published social dynamics displayed to the social object.
[0181] Figure 13 FIG. shows a schematic structural diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application.
[0182] It should be noted that Figure 13 The computer system 1300 of the electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0183] Such as Figure 13As shown, the computer system 1310 includes a Central Processing Unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the Read-Only Memory (ROM) 1302 or the program loaded from the storage section 1308 into the Random Access Memory (RAM) 1303, such as executing the method described in the above embodiments. In the RAM 1303, various programs and data required for system operation are also stored. The CPU 1301, ROM 1302, and RAM 1303 are connected to each other via a bus 1304. An Input / Output (I / O) interface 1305 is also connected to the bus 1304.
[0184] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including, for example, a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc. and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed so that a computer program read from it can be installed into the storage section 1308 as needed.
[0185] Specifically, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication section 1309, and / or installed from the removable medium 1311. When the computer program is executed by the Central Processing Unit (CPU) 1301, various functions defined in the system of the present application are executed.
[0186] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0187] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0188] The units involved in the embodiments described in this application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, constitute a limitation on the unit itself.
[0189] As another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the methods described in the above embodiments.
[0190] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0191] Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented in software or in a manner combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a touch terminal, or a network device, etc.) to execute the methods according to the embodiments of this application.
[0192] After considering the specification and practicing the embodiments disclosed herein, those skilled in the art will readily conceive of other embodiments of this application. This application is intended to cover any variations, uses, or adaptations of this application, which follow the general principles of this application and include common general knowledge or conventional technical means in the technical field not disclosed in this application.
[0193] It should be understood that this application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is only limited by the appended claims.
Claims
1. A method for displaying social dynamics, characterized in that, comprising: Obtaining the public communication messages between the user and the target social object; Determining the social relationship of the target social object based on the public communication messages; Determining the visible range of the user's published social dynamics to be displayed to the target social object based on the social relationship; Wherein, the determining the social relationship of the target social object based on the public communication messages includes: determining the object relationship label of the target social object based on the public communication messages; determining the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages; determining the social relationship of the target social object based on the object relationship label and the social relationship score; Wherein, the determining the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages includes at least one of the following: Identifying the keywords reflecting the social relationship level included in the public communication messages, and determining the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages and the keywords; Determining the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object, and determining the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages and the total number; Determining the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages and the number of duplicate communication messages in the public communication messages.
2. The method for displaying social dynamics according to claim 1, characterized in that, The determining the object relationship label of the target social object based on the public communication messages includes: Inputting the public communication messages into a pre-trained machine learning model, and the pre-trained machine learning model is trained by sample data including the public communication messages between the user and the social object and the relationship categories of the social object; Obtaining the relationship category output by the pre-trained machine learning model; Generating the object relationship label of the target social object based on the relationship category.
3. The method for displaying social dynamics according to claim 1, characterized in that, Before the determining the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages, the method further includes: Obtaining the sending and receiving times of each public communication message from the user and the sending and receiving times of each public communication message from the target social object included in the public communication messages; If the time difference between the sending and receiving time of the public communication messages of the user and the sending and receiving time of the public communication messages from the target social object is less than a predetermined time threshold, then the public communication messages from the user and the public communication messages from the target social object are determined as public communication messages with chat interaction behavior; Determine the number of public communication messages with chat interaction behavior among the public communication messages.
4. The method for displaying social dynamics according to claim 1, wherein, The determining of the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behavior among the public communication messages and the keyword includes: Determine the weight corresponding to the identified keyword according to the identified keyword and the corresponding relationship between the keyword and the weight, and the weight has a positive correlation with the social relationship level; Based on the average value of the weights corresponding to the identified keywords and the number of public communication messages with chat interaction behavior among the public communication messages, determine the social relationship score between the user and the target social object, and the social relationship score has a positive correlation with the average value and the number of public communication messages with chat interaction behavior among the public communication messages.
5. The method for displaying social dynamics according to claim 1, wherein, The determining of the social relationship score between the user and the target social object based on the number of public communication messages with chat interaction behavior among the public communication messages and the total number includes: Determine the proportion of the number of public communication messages with chat interaction behavior among the public communication messages to the total number of public communication messages with chat interaction behavior among the public communication messages between the user and each social object; Based on the proportion, determine the social relationship score between the user and the target social object, and the social relationship score has a positive correlation with the proportion.
6. The method for displaying social dynamics according to claim 1, wherein, The determining based on the number of public communication messages with chat interaction behavior among the public communication messages and the number of duplicate communication messages in the public communication messages includes: If it is detected that there are duplicate communication messages from the user or from the target social object in the public communication messages, then determine the number of duplicate communication messages in the public communication messages; Based on the number of public communication messages with chat interaction behavior among the public communication messages and the number of duplicate communication messages in the public communication messages, determine the social relationship score between the user and the target social object, and the social relationship score has a negative correlation with the total number of duplicate communication messages in the public communication messages.
7. The method for displaying social dynamics according to claim 1, wherein, The determining of the social relationship of the target social object based on the object relationship label and the social relationship score includes: Determine a first social relationship score based on the object relationship tag and the corresponding relationship between the object relationship tag and the social relationship score; Determine a second social relationship score based on the social relationship rating and the corresponding relationship between the social relationship rating and the social relationship score; Determine the social relationship of the target social object based on the first social relationship score and the second social relationship score.
8. The method for displaying social dynamics according to claim 1, wherein, the visible range of the social dynamics published by the user to be displayed to the target social object determined based on the social relationship includes: Determine the minimum social relationship value and the maximum social relationship value based on the social relationships between the user and each social object; Calculate a first difference between the social relationship of the target social object and the minimum social relationship value; Calculate a second difference between the maximum social relationship value and the minimum social relationship value; Determine the relative social relationship of the target social object based on the ratio between the first difference and the second difference; Determine the visible range of the social dynamics published by the user to be displayed to the target social object based on the relative social relationship of the target social object and the corresponding relationship between the relative social relationship and the visible range of the social dynamics published by the user to be displayed to the social object.
9. A device for displaying social dynamics, wherein, it includes: An acquisition unit for acquiring the public communication messages between the user and the target social object; A first execution unit for determining the object relationship tag of the target social object based on the public communication messages; Determine the social relationship rating between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages; Determine the social relationship of the target social object based on the object relationship tag and the social relationship rating; wherein, determining the social relationship rating between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages includes at least one of the following: Identify the keywords reflecting the social relationship level included in the public communication messages, and determine the social relationship rating between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages and the keywords; Determine the total number of public communication messages with chat interaction behaviors in the public communication messages between the user and each social object, and determine the social relationship rating between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages and the total number; Determine the social relationship rating between the user and the target social object based on the number of public communication messages with chat interaction behaviors in the public communication messages and the number of repeated communication messages in the public communication messages. A second execution unit, configured to determine a visible range of social dynamics published by the user to be displayed to the target social object based on the social relationship.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method described in any one of claims 1-8 is implemented.
11. An electronic device, characterized in that, comprising: one or more processors; a storage device for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1-8.
Citation Information
Patent Citations
A method and system for protecting user privacy information of stranger socialization
CN109344646A