A method for inputting related user recommendations and related device
By constructing a social relationship graph and searching for feature tags in the input method software, the problem of being unable to directly find feature users in the existing technology is solved, and efficient user recommendation and input experience improvement are achieved.
Patent Information
- Application Number
- CN201910133149.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-02-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-02-22
AI Technical Summary
Existing input method software cannot directly find the user's characteristic users, cannot meet the user's need to find users with certain characteristics in the social network, and the search efficiency is low.
By constructing a social relationship graph based on the personal social relationship graph of the user and other individual users, determine the feature tags of candidate user identifiers that are less than or equal to N paths away from the user identifier, and search for feature tags matching the target text in these tags, based on The social relationship graph recommends the target user identification corresponding to the target feature label to the user.
This enables users to use input method software to find other users who have social relationships with them and whose input matches them, improving search efficiency and performance, and improving user input experience.
Smart Images

Figure CN111611339B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of input methods, and in particular to a method for recommending input-related users and a related device. Background Art
[0002] At present, input method software is a key channel for human-computer interaction. Among them, input method software refers to software that comes with a method of encoding various symbols into computers or other devices (such as mobile phones, tablets, etc.), which can enable users to input symbols into the device.
[0003] However, the progress of intelligent science and technology has led to an increasing demand for input method software. Existing input method software can only simply input the symbols input by the user into the device, but cannot meet some other needs of the user. For example, when a user wants to find a user with a certain characteristic in a social network, directly inputting the characteristic into the input method software cannot obtain the corresponding characteristic user. That is, the existing input method software does not provide the above-mentioned function of directly finding characteristic users, and thus cannot meet the demand for directly finding characteristic users. Summary of the invention
[0004] The technical problem to be solved by the present application is to provide a method and related device for recommending input-related users, so that users can quickly obtain other users who have social relationships with them and whose inputs match. It not only realizes the function of searching for users with input-related characteristics by inputting using input method software, but also improves the search efficiency and performance, thereby enhancing the user input experience.
[0005] In a first aspect, an embodiment of the present application provides a method for inputting a recommendation of related users, the method comprising:
[0006] Receiving target text and user ID input by the user;
[0007] Determine a characteristic label corresponding to a candidate user identifier that is less than or equal to N paths away from the user identifier in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, and N is a positive integer;
[0008] Searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text;
[0009] If a target characteristic tag matching the target text is found, a target user identifier corresponding to the target characteristic tag is recommended to the user based on the social relationship graph.
[0010] Optionally, searching the characteristic tags corresponding to the candidate user identifiers for a characteristic tag matching the target text includes:
[0011] Determine, based on the social relationship graph, an Mth candidate user identifier among the candidate user identifiers that is M preset paths away from the user identifier;
[0012] Determining the characteristic tag corresponding to the Mth candidate user identifier among the characteristic tags corresponding to the candidate user identifiers;
[0013] Searching the characteristic tags corresponding to the Mth candidate user identifier for a characteristic tag matching the target text;
[0014] Here, M is set to 1 to N in ascending order.
[0015] Optionally, searching the target relationship graph for a characteristic tag that matches the target text is specifically:
[0016] Directly search the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text.
[0017] Optionally, the target text is directly formed based on user input, based on semantic analysis of user input, or obtained by extracting keywords based on user input.
[0018] Optionally, the step of constructing the personal social relationship graph includes:
[0019] Obtain characteristic labels of the individual user and the corresponding other users and the social relationship between the individual user and the corresponding other users by deep learning the communication content between the individual user and the corresponding other users;
[0020] A personal social relationship graph of the personal user is constructed according to the user identifications, characteristic tags and social relationships between the personal user and the corresponding other users.
[0021] Optionally, the characteristic tag includes an occupation tag, an interest tag, a region tag, a school tag and / or an age tag.
[0022] Optionally, also include:
[0023] If the personal social relationship graph of the user or the at least one other individual user is updated, the social relationship graph is updated.
[0024] Optionally, also include:
[0025] Based on the user identifier, the target user identifier and the social relationship graph, the social relationship between the target user and the user is recommended to the user corresponding to the target user identifier.
[0026] Optionally, also include:
[0027] The target characteristic tag is recommended to the user corresponding to the target user identifier.
[0028] In a second aspect, an embodiment of the present application provides a device for inputting a recommendation of related users, the device comprising:
[0029] A receiving unit, used for receiving a target text and a user identifier input by a user;
[0030] a determining unit, configured to determine a characteristic label corresponding to a candidate user identifier whose distance from the user identifier is less than or equal to N paths in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, and N is a positive integer;
[0031] A searching unit, configured to search the characteristic tags corresponding to the candidate user identifiers for characteristic tags matching the target text;
[0032] A recommendation unit is configured to recommend a target user identifier corresponding to the target characteristic tag to the user based on the social relationship graph if a target characteristic tag matching the target text is found.
[0033] Optionally, the search unit includes:
[0034] A first determining subunit is configured to determine, based on the social relationship graph, an Mth candidate user identifier among the candidate user identifiers that is M preset paths away from the user identifier;
[0035] A second determining subunit is used to determine the characteristic tag corresponding to the Mth candidate user identifier among the characteristic tags corresponding to the candidate user identifiers;
[0036] A searching subunit, configured to search the characteristic tags corresponding to the Mth candidate user identifier for a characteristic tag matching the target text;
[0037] Here, M is set to 1 to N in ascending order.
[0038] Optionally, the search unit is specifically used for:
[0039] Directly search the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text.
[0040] Optionally, the target text is directly formed based on user input, based on semantic analysis of user input, or obtained by extracting keywords based on user input.
[0041] Optionally, the construction unit of the personal social relationship graph includes:
[0042] A first obtaining unit is used to obtain characteristic labels of the individual user and the corresponding other users and a social relationship between the individual user and the corresponding other users through deep learning of communication content between the individual user and the corresponding other users;
[0043] The first construction unit is used to construct a personal social relationship graph of the personal user according to the user identifications and characteristic tags of the personal user and the corresponding other users, and the social relationship between the personal user and the corresponding other users.
[0044] Optionally, the characteristic tag includes an occupation tag, an interest tag, a region tag, a school tag and / or an age tag.
[0045] Optionally, the device further comprises:
[0046] An updating unit is configured to update the social relationship graph if the personal social relationship graph of the user or the at least one other individual user is updated.
[0047] Optionally, the device further comprises:
[0048] A second recommendation unit is configured to recommend, to the user, based on the user identifier, the target user identifier and the social relationship graph, the social relationship between the target user and the user corresponding to the target user identifier.
[0049] Optionally, the device further comprises:
[0050] A third recommendation unit is configured to recommend the target characteristic tag to the user corresponding to the target user identifier.
[0051] In a third aspect, an embodiment of the present application provides a device for inputting recommendations of related users, the device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:
[0052] Receiving target text and user ID input by the user;
[0053] Determine a characteristic label corresponding to a candidate user identifier that is less than or equal to N paths away from the user identifier in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, and N is a positive integer;
[0054] Searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text;
[0055] If a target characteristic tag matching the target text is found, a target user identifier corresponding to the target characteristic tag is recommended to the user based on the social relationship graph.
[0056] In a fourth aspect, an embodiment of the present application provides a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute a method for recommending input-related users as described in one or more of the first aspects above.
[0057] Compared with the prior art, this application has at least the following advantages:
[0058] According to the technical solution of the embodiment of the present application, after receiving the target text and user identification obtained based on the user input, first, in the social relationship graph constructed based on the personal social relationship graph of the user and at least one other individual user, determine the characteristic labels corresponding to the candidate user identifications whose distance from the user identification is less than or equal to N paths, where N is a positive integer; then, search for characteristic labels matching the target text among these characteristic labels; finally, if the target characteristic label matching the target text is searched, recommend the target user identification corresponding to the target characteristic label to the user based on the social relationship graph. It can be seen that when the user uses the input method software to input, the target user identification corresponding to the target characteristic label in the social relationship graph that is related to the user identification and matches the target text input by the user is recommended, so that the user can quickly obtain other users who have social relations with him and whose input matches, which not only realizes the function of directly searching for input-related characteristic users by using the input method software, but also improves the search efficiency and performance, thereby enhancing the user input experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0060] Figure 1A schematic diagram of a system framework involved in an application scenario in an embodiment of the present application;
[0061] Figure 2 A flowchart of a method for inputting recommendations of related users provided in an embodiment of the present application;
[0062] Figure 3 A personal social relationship diagram of user A provided in an embodiment of the present application;
[0063] Figure 4 A social relationship diagram provided in an embodiment of the present application;
[0064] Figure 5 A partial social relationship diagram provided in an embodiment of the present application;
[0065] Figure 6 A schematic diagram of the structure of a device for inputting recommendations of related users provided in an embodiment of the present application;
[0066] Figure 7 A schematic diagram of the structure of a device for inputting recommendations of related users provided in an embodiment of the present application;
[0067] Figure 8 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0069] At present, input method software is a key channel for realizing human-computer interaction, which can realize the function of users inputting symbols into the device. However, the existing input method software simply inputs the symbols input by the user into the device, but cannot meet some other needs of the user. The progress of science and technology has made people's requirements for input method software continue to increase.
[0070] For example, when a user's child suffers from a certain disease, the user hopes to find a reliable pediatrician with whom he has a social relationship. Generally, the user uses the input method software to input "pediatrician" and uses other search tools to find whether there is a user with the "pediatrician" tag in his communication user list. However, it is very likely that there may be no user with the "pediatrician" tag in the communication user list, while there may be users with the "pediatrician" tag in the communication user list of the users included in the communication user list. Based on the above existing search method alone, it is difficult to find a user with the "pediatrician" tag who has a social relationship with him. That is, the existing input method software cannot realize the function of directly finding a characteristic user, and thus cannot meet the special needs of users.
[0071] In order to solve the above problems, in an embodiment of the present application, after receiving the target text and user identification obtained based on the user input, first, in the social relationship graph constructed based on the personal social relationship graph of the user and at least one other individual user, determine the characteristic labels corresponding to the candidate user identifications whose distance from the user identification is less than or equal to N paths, where N is a positive integer; then, search for characteristic labels matching the target text among these characteristic labels; finally, if the target characteristic label matching the target text is searched, recommend the target user identification corresponding to the target characteristic label to the user based on the social relationship graph. It can be seen that when the user uses the input method software to input, the target user identification corresponding to the target characteristic label in the social relationship graph that is related to the user identification and matches the target text input by the user is recommended, so that the user can quickly obtain other users who have social relations with him and whose input matches, which not only realizes the function of directly searching for input-related characteristic users by using the input method software, but also improves the search efficiency and performance, thereby enhancing the user input experience.
[0072] For example, one of the scenarios of the embodiments of the present application may be applied to Figure 1 In the scenario shown, the scenario includes a server 101 and a terminal device 102, wherein the terminal device 102 is loaded with input method software. The user uses the input method software to input on the terminal device 102, and the terminal device 102 obtains the target text and the user identification based on the user input and sends them to the server 101. When the server 101 receives the target text and the user identification obtained based on the user input, the server 101 determines the characteristic tags corresponding to the candidate user identifications in the social relationship graph that are less than or equal to N paths away from the user identification, where N is a positive integer. The server 101 uses the characteristic tags corresponding to the candidate user identifications as the search range to search for characteristic tags that match the target text. If the server 101 searches for a target characteristic tag that matches the target text, it sends the target user identification corresponding to the target characteristic tag to the terminal device 102 based on the social relationship graph for recommendation to the user.
[0073] It is understandable that in the above application scenarios, although the actions of the implementation methods of the present application are described as being performed by the server 101, these actions may also be performed by the terminal device 102, or may also be partially performed by the terminal device 102 and partially performed by the server 101. The present application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation methods of the present application are performed.
[0074] It can be understood that the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.
[0075] The specific implementation of the method for inputting recommendation of related users and related devices in the embodiments of the present application will be described in detail below with reference to the accompanying drawings through embodiments.
[0076] Exemplary Methods
[0077] See also Figure 2 , shows a flow chart of a method for inputting recommendations of related users in an embodiment of the present application. In this embodiment, the method may include the following steps:
[0078] Step 201: receiving a target text and a user identifier input by a user.
[0079] It is understandable that when a user wants to find a user with a certain characteristic who has a social relationship with him / her, he / she generally uses input method software to input on the terminal device, wherein the input form is various, which can be voice input or keyboard input. For example, when a user's child suffers from a certain disease, the user wants to find a reliable pediatrician, and the user inputs "pediatrician" on the keyboard or voice inputs "pediatrician".
[0080] Among them, the corresponding target text can be obtained based on the user input, and the target text can be directly formed based on the user input, or obtained based on the semantic analysis of the user input, or obtained based on the keyword extracted from the user input. As an example, the user inputs "pediatrician" on the keyboard, and the target text "pediatrician" can be directly formed based on "pediatrician"; as another example, the user inputs "the child is sick and needs to find a doctor" on the keyboard, and the target text "pediatrician" can be obtained based on the semantic analysis of "the child is sick and needs to find a doctor"; as another example, the user inputs "C++ programmer with strong programming ability" on the keyboard, and the keyword "C++ programmer" can be extracted based on "C++ programmer with strong programming ability" to obtain the target text "C++ programmer". In order to achieve the purpose of finding a user with certain characteristics who has a social relationship with the user, it is necessary to send the target text and the user ID of the user to the server so that the server can receive it for subsequent search operations. The user ID refers to a unique identifier representing the identity of the user, for example, it can be the user's personal communication number.
[0081] Step 202: Determine the characteristic labels corresponding to the candidate user identifiers in the social relationship graph that are less than or equal to N paths away from the user identifier, wherein the social relationship graph is pre-constructed based on the personal social relationship graph of the user and at least one other individual user, and the personal social relationship graph is pre-constructed by deep learning the communication content between the individual user and the corresponding other users, and N is a positive integer.
[0082] Among them, since each individual user will communicate and socialize with other users, there is a certain social relationship between the two users in the communication and socialization, and therefore, each individual user has his or her own personal social relationship graph. The personal social relationship graphs of multiple individual users can be connected to form a relatively large social relationship graph, which can reflect the direct or indirect social relationships between multiple individual users. Since the social relationship graph needs to be used to find characteristic users, the characteristic labels of each user in the social relationship graph should be clarified, that is, the characteristic labels of each user should be indicated in the personal social relationship graph.
[0083] Among them, for each individual user, when constructing his personal social relationship graph, based on the communication and social interaction between the user and other users, it is first necessary to clarify the characteristic labels of the individual user and other users communicating with him, as well as the social relationship between the individual user and the above other users, and then add the above content based on the identification of the user and the above other users to complete the construction of the user's personal social relationship graph. Among them, the characteristic labels and social relationships are obtained after deep learning based on the communication content between the individual user and the above other users. Therefore, in some implementations of the embodiments of the present application, the steps of constructing the personal social relationship graph include:
[0084] Step A: obtaining characteristic labels of the individual user and the corresponding other users and the social relationship between the individual user and the corresponding other users through deep learning of the communication content between the individual user and the corresponding other users;
[0085] Step B: constructing a personal social relationship graph of the personal user according to the user identifications and characteristic tags of the personal user and the corresponding other users, and the social relationship between the personal user and the corresponding other users.
[0086] It should be noted that the characteristic tag is used to represent a certain characteristic of the user, and the characteristic tags can be divided into occupation, interest, region, school, age, etc. according to the type. Therefore, in some implementations of this embodiment, the characteristic tag is an occupation tag, an interest tag, a region tag, a school tag and / or an age tag. As an example, when the characteristic tag is an occupation tag, the specific occupations of the user and other users are obtained through deep learning of the communication content between the user and other users, and the specific occupations are used as characteristic tags. For example, deep learning obtains that the specific occupation of a user is "C++ programmer", then its characteristic tag is "C++ programmer".
[0087] As an example, assume that user A has social communication with user B, user C, and user D. Through deep learning of the communication content between user A, user B, user C, and user D, it is obtained that user A's characteristic label is "C++ programmer", user B's characteristic label is "pediatrician", user C's characteristic label is "C++ programmer", and user D's characteristic label is "middle school teacher", and the social relationship between user A and user B is "couple", the social relationship between user A and user C is "colleague", and the social relationship between user A and user D is "friend"; based on the above content, a personal social relationship graph of user A is constructed. For example, Figure 3 The personal social relationship graph of user A is shown, where the user ID of user A is A, the user ID of user B is B, the user ID of user C is C, and the user ID of user D is D. B, C, and D are each only one path away from A.
[0088] Based on the above-mentioned method of constructing the personal social relationship graph of the individual user, for the social relationship graph, the above-mentioned steps A and B are used to pre-construct the personal social relationship graph of the user and the personal social relationship graph of at least one other individual user, and the social relationship graph can be constructed in combination. Therefore, in some implementations of the embodiments of the present application, at least before step 202, the following steps may be included, for example:
[0089] Step C: pre-constructing a personal social relationship graph between the user and the at least one other personal user;
[0090] Step D: constructing the social relationship graph by integrating the personal social relationship graphs of the user and the at least one other individual user.
[0091] As an example, assume that a personal relationship graph of user A, user B, user C, user D, user E, user F and user G is pre-constructed, wherein user C is the user, and the personal relationship graphs of user A, user B, user C, user D, user E, user F and user G are linked to form the following: Figure 4 The social relationship diagram shown can not only show the social relationship between user A, user B, user C, user D, user E, user F and user G and other users, but also show the direct or indirect social relationship between user A, user B, user C, user D, user E, user F and user G.
[0092] It is understandable that in order to find a user with a certain characteristic who has a social relationship with the user, after obtaining the user identifier in step 201 and pre-building the social relationship graph, first, based on the user identifier and the social relationship graph, it is necessary to determine the characteristic labels corresponding to some user identifiers that are close to the user identifier path, indicating the characteristics of users who have a direct or indirect close social relationship with the user. Specifically, a preset number of paths, that is, N paths, is set, and the characteristic labels corresponding to the candidate user identifiers are determined with the maximum path distance from the user identifier as N paths in the social relationship graph, that is, the candidate user identifier is less than or equal to N paths away from the user identifier.
[0093] As an example, assume that the user is user C, whose user ID is C, and the social relationship diagram is as follows Figure 4 As shown, the preset paths are 2 paths, then Figure 4 In the social relationship graph shown in FIG. 1 , the maximum path distance from the user identifier C is 2 paths, and the candidate user identifiers are determined as follows: Figure 5 Part of the social relationship graph is shown, in which, except for user identifier C, all other user identifiers are candidate user identifiers. It can be seen that the labels corresponding to the candidate user identifiers are "teacher", "pediatrician", "C++ programmer", "engineer" and "artist".
[0094] It should also be noted that after the social relationship graph is constructed, there may be a situation where the personal social relationship graph of one of the users is updated. At this time, the social relationship graph needs to be updated to ensure the accuracy of the social relationship graph, and then to ensure the accuracy of the user search based on the social relationship graph. Therefore, in some implementations of the embodiments of the present application, for example, step E may also be included: if the personal social relationship graph of the user or the at least one other individual user is updated, the social relationship graph is updated.
[0095] Step 203: searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text.
[0096] In the embodiment of the present application, the feature tags corresponding to the candidate user identifiers may be searched for a feature tag matching the target text in at least the following two ways.
[0097] In the implementation of the first optional step 203, since the path amount of the candidate user identifier from the user identifier in step 202 is different when the preset number of paths is greater than or equal to 2 paths, the smaller the path amount of the candidate user identifier from the user identifier, the closer the social relationship between the candidate user and the user. Taking into account the distance between different candidate users and the user's social relationship, the candidate user identifiers can be divided based on the path amount of the candidate user identifier from the user identifier to obtain candidate user identifier classifications with different path amounts from the user identifier, and then the characteristic tags corresponding to each type of candidate user identifier are searched in turn until the search for the characteristic tags corresponding to all candidate user identifiers is completed. Therefore, in some implementations of the embodiments of the present application, the step 203 may, for example, include the following steps:
[0098] Step F: determining, based on the social relationship graph, an Mth candidate user identifier among the candidate user identifiers that is M preset paths away from the user identifier;
[0099] Step G: Determine the characteristic tag corresponding to the Mth candidate user identifier among the characteristic tags corresponding to the candidate user identifiers;
[0100] Step H: searching the characteristic tags corresponding to the Mth candidate user identifier for a characteristic tag matching the target text;
[0101] Here, M is set to 1 to N in ascending order.
[0102] As an example, assuming that the user is user C, N is 2, and the user ID is C, then the following is obtained: Figure 5 The partial social relationship graph shown in FIG. 1 is a graph of user relationships, in which all user identities except user identity C are candidate user identities. First, determine the user identity among the candidate user identities that is one preset path away from user identity C, record it as the first candidate user identity, and search for the characteristic label that matches the target text in its corresponding characteristic label. Figure 5It can be seen that the user identifiers that are one path away from user C are A, F, and I. Then user identifiers A, F, and I are the first candidate user identifiers. The feature tags corresponding to user identifiers A, F, and I are searched for feature tags that match the target text. Then, the user identifiers that are two preset paths away from user identifier C are determined as the second candidate user identifiers. The feature tags corresponding to them are searched for feature tags that match the target text. Figure 5 It can be seen that the user identifiers that are 2 paths away from user C are B, D, E and K. Then user identifiers B, D, E and K are the second candidate user identifiers, and the feature tags corresponding to user identifiers B, D, E and K are searched for feature tags that match the target text.
[0103] In the second optional implementation of step 203, no other operation is performed on the characteristic tag corresponding to the candidate user identifier determined in step 202, and the characteristic tag is used as the search scope to directly search for characteristic tags matching the target text, thereby completing the search operation simply, conveniently and quickly. Therefore, in some implementations of the embodiments of the present application, step 203 may specifically be, for example, directly searching for characteristic tags matching the target text in the characteristic tags corresponding to the candidate user identifier.
[0104] Step 204: If a target characteristic tag matching the target text is found, a target user identifier corresponding to the target characteristic tag is recommended to the user based on the social relationship graph.
[0105] It can be understood that searching for a target characteristic tag that matches the target text means finding a characteristic tag that matches the target text among the characteristic tags corresponding to the candidate user identifiers. This characteristic tag serves as the target characteristic tag, and its corresponding user identifier is the user identifier of the target user that the above-mentioned user wants to find, recorded as the target user identifier, which needs to be recommended to the above-mentioned user so that the user can directly contact the target user based on the target user identifier, wherein the target user identifier refers to a unique identifier that represents the identity of the target user, for example, it can be the personal communication number of the target user.
[0106] It should be noted that, when only the target user identifier is recommended, although the user can directly contact the target user based on the target user identifier, the user is not clear about the social relationship between himself and the target user. In this case, the social relationship between the target user and the user can be determined in the social relationship graph based on the user identifier and the target user identifier and recommended to the user. Therefore, in some implementations of this embodiment, step I can also be included: based on the user identifier, the target user identifier and the social relationship graph, the social relationship between the target user and the user corresponding to the target user identifier is recommended to the user. Among them, step 204 can be performed first, and then step I can be performed, or step 204 and step I can be performed simultaneously.
[0107] It should also be noted that, in order to more clearly indicate that the target user corresponding to the target user identifier is the characteristic user that the user wants to find, the target characteristic tag corresponding to the target user identifier can also be recommended so that the user can clearly understand the characteristics of the target user. Therefore, in some implementations of this embodiment, step J can also be included: recommending the target characteristic tag to the user corresponding to the target user identifier. Among them, step 204 can be performed first, and then step J can be performed, or step 204 and step J can be performed at the same time.
[0108] Of course, in the embodiment of the present application, the execution order of step 204, step I and step J is varied. Step 204, step I and step J can be executed sequentially; step 204, step J and step I can be executed sequentially; step 204, step I and step J can also be executed simultaneously.
[0109] Through the various implementation methods provided by this embodiment, after receiving the target text and user identification obtained based on the user input, first, in the social relationship graph constructed based on the personal social relationship graph of the user and at least one other individual user, determine the characteristic tags corresponding to the candidate user identifications that are less than or equal to N paths away from the user identification, where N is a positive integer; then, search for characteristic tags that match the target text among these characteristic tags; finally, if the target characteristic tag that matches the target text is searched, recommend the target user identification corresponding to the target characteristic tag to the user based on the social relationship graph. It can be seen that when the user uses the input method software to input, the target user identification corresponding to the target characteristic tag in the social relationship graph that is related to the user identification and matches the target text input by the user is recommended, so that the user can quickly obtain other users who have social relations with him and whose input matches, which not only realizes the function of directly searching for input-related characteristic users by using the input method software, but also improves the search efficiency and performance, thereby improving the user input experience.
[0110] Corresponding to the above method embodiments, the present application also provides corresponding related device embodiments, which are described in detail below.
[0111] Exemplary Devices
[0112] See also Figure 6 , shows a schematic diagram of the structure of a device for inputting recommendations of related users in an embodiment of the present application. In this embodiment, the device may specifically include:
[0113] A receiving unit 601 is used to receive a target text and a user identifier input by a user;
[0114] A determination unit 602 is used to determine a characteristic label corresponding to a candidate user identifier that is less than or equal to N paths away from the user identifier in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, and N is a positive integer;
[0115] A searching unit 603, configured to search the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text;
[0116] The first recommendation unit 604 is configured to recommend a target user identifier corresponding to the target characteristic tag to the user based on the social relationship graph if a target characteristic tag matching the target text is found.
[0117] Optionally, the searching unit 603 includes:
[0118] A first determining subunit is configured to determine, based on the social relationship graph, an Mth candidate user identifier among the candidate user identifiers that is M preset paths away from the user identifier;
[0119] A second determining subunit is used to determine the characteristic tag corresponding to the Mth candidate user identifier among the characteristic tags corresponding to the candidate user identifiers;
[0120] A searching subunit, configured to search the characteristic tags corresponding to the Mth candidate user identifier for a characteristic tag matching the target text;
[0121] Here, M is set to 1 to N in ascending order.
[0122] Optionally, the searching unit 603 is specifically configured to:
[0123] Directly search the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text.
[0124] Optionally, the target text is directly formed based on user input, based on semantic analysis of user input, or obtained by extracting keywords based on user input.
[0125] Optionally, the construction unit of the personal social relationship graph includes:
[0126] A first obtaining unit is used to obtain characteristic labels of the individual user and the corresponding other users and a social relationship between the individual user and the corresponding other users through deep learning of communication content between the individual user and the corresponding other users;
[0127] The first construction unit is used to construct a personal social relationship graph of the personal user according to the user identifications and characteristic tags of the personal user and the corresponding other users, and the social relationship between the personal user and the corresponding other users.
[0128] Optionally, the characteristic tag includes an occupation tag, an interest tag, a region tag, a school tag and / or an age tag.
[0129] Optionally, the device further comprises:
[0130] An updating unit is configured to update the social relationship graph if the personal social relationship graph of the user or the at least one other individual user is updated.
[0131] Optionally, the device further comprises:
[0132] A second recommendation unit is configured to recommend, to the user, based on the user identifier, the target user identifier and the social relationship graph, the social relationship between the target user and the user corresponding to the target user identifier.
[0133] Optionally, the device further comprises:
[0134] A third recommendation unit is configured to recommend the target characteristic tag to the user corresponding to the target user identifier.
[0135] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0136] Through the various implementation methods provided by this embodiment, after receiving the target text and user identification obtained based on the user input, first, in the social relationship graph constructed based on the personal social relationship graph of the user and at least one other individual user, determine the characteristic tags corresponding to the candidate user identifications that are less than or equal to N paths away from the user identification, where N is a positive integer; then, search for characteristic tags that match the target text among these characteristic tags; finally, if the target characteristic tag that matches the target text is searched, recommend the target user identification corresponding to the target characteristic tag to the user based on the social relationship graph. It can be seen that when the user uses the input method software to input, the target user identification corresponding to the target characteristic tag in the social relationship graph that is related to the user identification and matches the target text input by the user is recommended, so that the user can quickly obtain other users who have social relations with him and whose input matches, which not only realizes the function of directly searching for input-related characteristic users by using the input method software, but also improves the search efficiency and performance, thereby improving the user input experience.
[0137] Figure 7 7 is a block diagram of an apparatus 700 for inputting recommendations of related users according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0138] Reference Figure 7 , the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0139] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0140] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0141] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.
[0142] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0143] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the device 700 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0144] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0145] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect the position change of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and the temperature change of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0146] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0147] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0148] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by the processor 720 of the device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0149] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a method for inputting a recommendation of related users, the method comprising:
[0150] Receiving target text and user ID input by the user;
[0151] Determine a characteristic label corresponding to a candidate user identifier that is less than or equal to N paths away from the user identifier in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, and N is a positive integer;
[0152] Searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text;
[0153] If a target characteristic tag matching the target text is found, a target user identifier corresponding to the target characteristic tag is recommended to the user based on the social relationship graph.
[0154] Figure 8 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 may be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 may be configured to communicate with the storage medium 830 to execute a series of instruction operations in the storage medium 830 on the server 800.
[0155] The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, one or more keyboards 856, and / or one or more operating systems 841, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0156] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0157] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0158] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0159] The above is only a preferred embodiment of the present application and does not constitute any formal limitation to the present application. Although the present application has been disclosed as above with a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present application using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of protection of the technical solution of the present application.
Claims
1. A method for recommending related users, characterized in that: Applicable to input method software, including: Receiving target text and user ID input by the user; Determine a characteristic label corresponding to a candidate user identifier that is less than or equal to N paths away from the user identifier in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, wherein N is a positive integer, and the characteristic label includes an interest label, a region label, a school label, and / or an age label; Searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text; If a target characteristic tag matching the target text is searched, a target user identifier corresponding to the target characteristic tag is recommended to the user based on the social relationship graph; The steps of constructing the personal social relationship graph include: Obtain characteristic labels of the individual user and the corresponding other users and the social relationship between the individual user and the corresponding other users by deep learning the communication content between the individual user and the corresponding other users; A personal social relationship graph of the personal user is constructed according to the user identifications, characteristic tags and social relationships between the personal user and the corresponding other users.
2. The method according to claim 1, characterized in that The step of searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags matching the target text includes: Determine, based on the social relationship graph, an Mth candidate user identifier among the candidate user identifiers that is M preset paths away from the user identifier; Determining the characteristic tag corresponding to the Mth candidate user identifier among the characteristic tags corresponding to the candidate user identifiers; Searching the characteristic tags corresponding to the Mth candidate user identifier for a characteristic tag matching the target text; Here, M is set to 1 to N in ascending order.
3. The method according to claim 1, characterized in that The step of searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags matching the target text includes: Directly search the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text.
4. The method according to claim 1, characterized in that: The target text is directly formed based on user input, based on semantic analysis of user input, or obtained by extracting keywords based on user input.
5. The method according to any one of claims 1 to 4, characterized in that Also includes: If the personal social relationship graph of the user or the at least one other individual user is updated, the social relationship graph is updated.
6. The method according to claim 1, characterized in that Also includes: Based on the user identifier, the target user identifier and the social relationship graph, the social relationship between the target user and the user is recommended to the user corresponding to the target user identifier.
7. The method according to claim 1, characterized in that Also includes: The target characteristic tag is recommended to the user corresponding to the target user identifier.
8. A device for inputting recommendation of related users, characterized in that: Applicable to input method software, including: A receiving unit, used for receiving a target text and a user identifier input by a user; a determining unit, configured to determine a characteristic label corresponding to a candidate user identifier whose distance from the user identifier is less than or equal to N paths in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, wherein N is a positive integer, and the characteristic label includes an interest label, a region label, a school label, and / or an age label; A searching unit, configured to search the characteristic tags corresponding to the candidate user identifiers for characteristic tags matching the target text; A recommendation unit, configured to recommend a target user identifier corresponding to the target characteristic tag to the user based on the social relationship graph if a target characteristic tag matching the target text is searched; Wherein, the construction unit of the personal social relationship graph includes: A first obtaining unit is used to obtain characteristic labels of the individual user and the corresponding other users and a social relationship between the individual user and the corresponding other users through deep learning of communication content between the individual user and the corresponding other users; The first construction unit is used to construct a personal social relationship graph of the personal user according to the user identifications and characteristic tags of the personal user and the corresponding other users, and the social relationship between the personal user and the corresponding other users.
9. The device according to claim 8, characterized in that The search unit comprises: A first determining subunit is configured to determine, based on the social relationship graph, an Mth candidate user identifier among the candidate user identifiers that is M preset paths away from the user identifier; A second determining subunit is used to determine the characteristic tag corresponding to the Mth candidate user identifier among the characteristic tags corresponding to the candidate user identifiers; A searching subunit, configured to search the characteristic tags corresponding to the Mth candidate user identifier for a characteristic tag matching the target text; Here, M is set to 1 to N in ascending order.
10. The device according to claim 8, characterized in that The search unit is specifically used for: Directly search the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text.
11. The device according to claim 8, characterized in that The target text is directly formed based on user input, based on semantic analysis of user input, or obtained by extracting keywords based on user input.
12. The device according to any one of claims 8 to 11, characterized in that The device also includes: An updating unit is configured to update the social relationship graph if the personal social relationship graph of the user or the at least one other individual user is updated.
13. The device according to claim 8, characterized in that The device also includes: A second recommendation unit is configured to recommend, to the user, based on the user identifier, the target user identifier and the social relationship graph, the social relationship between the target user and the user corresponding to the target user identifier.
14. The device according to claim 8, characterized in that The device also includes: A third recommendation unit is configured to recommend the target characteristic tag to the user corresponding to the target user identifier.
15. A device for inputting recommendations of related users, characterized in that Applied to input method software, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: Receiving target text and user ID input by the user; Determine a characteristic label corresponding to a candidate user identifier that is less than or equal to N paths away from the user identifier in a social relationship graph, wherein the social relationship graph is pre-constructed based on a personal social relationship graph of the user and at least one other individual user, wherein the personal social relationship graph is pre-constructed by deep learning of communication content between the individual user and the corresponding other users, wherein N is a positive integer, and the characteristic label includes an interest label, a region label, a school label, and / or an age label; Searching the characteristic tags corresponding to the candidate user identifiers for characteristic tags that match the target text; If a target characteristic tag matching the target text is searched, a target user identifier corresponding to the target characteristic tag is recommended to the user based on the social relationship graph; The steps of constructing the personal social relationship graph include: Obtain characteristic labels of the individual user and the corresponding other users and the social relationship between the individual user and the corresponding other users by deep learning the communication content between the individual user and the corresponding other users; A personal social relationship graph of the personal user is constructed according to the user identifications, characteristic tags and social relationships between the personal user and the corresponding other users.
16. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to execute the input-related user recommendation method as claimed in one or more of claims 1 to 7.
