Associated object recommendation method and device based on semantic extension, equipment, medium and product
Through multi-level semantic expansion of the labels of the objects to be processed, the objects associated with the target objects are determined, which solves the problem of insufficient differentiation of recommendation results in the existing technology and improves the user experience and sense of surprise.
Patent Information
- Application Number
- CN202410815762.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-27
AI Technical Summary
The existing associated object recommendation method based on tag matching is limited to the literal meaning of the tag in its semantic expansion range, resulting in less differentiation in the recommendation results, poor surprise, and failure to achieve an ideal user experience.
By performing at least two levels of semantic expansion on the object tag list of the object to be processed, the semantic expansion results are determined, thereby identifying associated objects that have strong semantic correlation with the target object but large content differentiation, and push their information to the customer. Recommendations.
It achieves deeper semantic expansion and determination of associated objects, improves users’ sense of surprise and usage experience, and ensures the accuracy of associated objects.
Smart Images

Figure CN118708809A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment, medium and product for recommending associated objects based on semantic extension. Background Art
[0002] With the rapid development of Internet technology, intelligent recommendation has been integrated into all aspects of people's daily life. Intelligent recommendation can adaptively adjust the content to be recommended according to the changes in user interests, and find resources that can well meet the user's information needs from the information-exploding network.
[0003] At present, it is a common method to determine and recommend related objects based on tag matching. This method mainly calculates the relevance of items based on the tag list of the current object to be processed, and then determines the related objects and recommendation results according to the relevance. This method is simple to implement, and the recommendation results have a high text similarity in the tags. However, the related objects and recommendation results determined by this method are too similar in text, and the semantic extension range is limited to the literal meaning of the tag, so that the recommendation results are often within the user's expectations, with little differentiation and poor surprise, which leads to unsatisfactory results in the determination and recommendation of related objects, and cannot achieve a good user experience. Summary of the invention
[0004] The present invention provides a method, device, equipment, medium and product for recommending associated objects based on semantic extension. The determined associated objects have large differences in content from the target objects, but still have strong semantic relevance, thereby achieving deeper semantic extension and associated object determination. The associated object recommendation achieved based on the deep semantic extension improves the user's sense of surprise and ensures the user's usage experience while ensuring the accuracy of the associated objects.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for recommending associated objects based on semantic extension, comprising:
[0006] Obtain an object label list of each object to be processed in the set of objects to be processed, and determine a target object from the set of objects to be processed;
[0007] For each of the objects to be processed, performing at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed to determine a semantic expansion result of the object to be processed;
[0008] According to each of the semantic expansion results, determining the associated objects of the target object from the set of objects to be processed;
[0009] The object information of the associated object is pushed to the corresponding client, so that the client can make an associated object recommendation.
[0010] In a second aspect, an embodiment of the present disclosure provides a device for determining an associated object based on semantic extension, comprising:
[0011] A label list determination module, used to obtain an object label list of each object to be processed in the set of objects to be processed, and determine a target object from the set of objects to be processed;
[0012] A multi-layer semantic expansion module, for performing at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed for each of the objects to be processed, and determining a semantic expansion result of the object to be processed;
[0013] An associated object determination module, used to determine the associated objects of the target object from the set of objects to be processed according to each of the semantic expansion results;
[0014] The associated object recommendation module is used to push the object information of the associated object to the corresponding client so that the client can make an associated object recommendation.
[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0016] at least one processor; and
[0017] a memory communicatively connected to at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute a method for recommending associated objects based on semantic extension provided in the above-mentioned first aspect embodiment.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement a method for recommending associated objects based on semantic extension provided in the embodiment of the first aspect above when executing the computer instructions.
[0020] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements a method for recommending associated objects based on semantic extension provided in the embodiment of the first aspect.
[0021] The embodiment of the present invention provides a method, device, equipment, medium and product for recommending associated objects based on semantic expansion, which obtains the object label list of each object to be processed in the set of objects to be processed, and determines the target object from the set of objects to be processed; for each object to be processed, performs at least two levels of semantic expansion on each object label in the object label list of the object to be processed, and determines the semantic expansion result of the object to be processed; according to each of the semantic expansion results, determines the associated object of the target object from the set of objects to be processed; pushes the object information of the associated object to the corresponding client, so that the client recommends the associated object. The above technical scheme, by performing at least two semantic expansions on each object to be processed in the set of objects to be processed, determines several associated objects most related to the target object based on the results of at least two semantic expansions, the associated objects determined by this method are greatly different from the content of the target object, but still have a strong semantic relevance, realizes deeper semantic expansion and associated object determination, and recommends associated objects based on deep semantic expansion, which improves the user's sense of surprise and ensures the user's use experience under the premise of ensuring the accuracy of the associated objects.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flowchart of a method for recommending associated objects based on semantic extension provided in Embodiment 1 of the present invention;
[0025] Figure 2 is a flowchart of a method for recommending associated objects based on semantic extension provided in Embodiment 2 of the present invention;
[0026] Figure 3 is a structural diagram of a device for recommending associated objects based on semantic extension provided in Embodiment 3 of the present invention;
[0027] Figure 4 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second" and "target" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 It is a flowchart of a method for recommending associated objects based on semantic extension provided in the first embodiment of the present invention. This embodiment can be applied to the situation where deep semantic extension is performed on the label of each object to be processed in the set of objects to be processed so as to more optimally realize the recommendation of associated objects. The method can be executed by an associated object recommendation device based on semantic extension, and the associated object recommendation device based on semantic extension can be implemented in the form of hardware and / or software.
[0032] like Figure 1 As shown, the method includes:
[0033] S101 , obtaining an object label list of each object to be processed in a set of objects to be processed, and determining a target object from the set of objects to be processed.
[0034] In this embodiment, the set of objects to be processed is a collection of objects to be processed. The objects to be processed can be understood as products, commodities, news or information, etc., which are the content on the display interface of the client software. The object tag list can be understood as a collection of object tags of the objects to be processed. The object tag can be understood as the attribute information of the objects to be processed. The target object is any object to be processed in the set of objects to be processed, which can be determined based on browsing frequency, information value, or client-specified methods, and this embodiment does not set any limitation on this.
[0035] Specifically, the set of objects to be processed includes several objects to be processed, and each object to be processed has several corresponding object tags. The object tag list of each object to be processed in the set of objects to be processed is obtained from the client, and a certain object to be processed is determined as the target object from the set of objects to be processed according to the preset target object determination rule. It can be understood that the target object can be determined in this step or when executing step S103.
[0036] S102: For each object to be processed, perform at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed to determine a semantic expansion result of the object to be processed.
[0037] In this embodiment, the semantic expansion result can be understood as a set obtained by deduplicating new object labels obtained after expanding each object label and original object labels.
[0038] Specifically, the iteration level is determined in advance, and for each object to be processed, each object label in the object label list of the object to be processed is semantically extended to determine the extended label list of the extended object labels; each new object label in the extended label list obtained after the first extension is used as the label to be extended in the second iteration, and the corresponding semantic extension is continued to obtain the updated extended object label list again, and the preset level is repeatedly iterated (preferably twice) to obtain the final extended object label list; the extended label list obtained in each iteration and the initial object label list are merged and deduplicated, and the deduplicated label list is determined as the semantic extension result of the object to be processed. Based on this, a number of semantic extension results corresponding to the number of objects to be processed can be obtained.
[0039] S103: Determine the associated objects of the target object from the set of objects to be processed according to the semantic expansion results.
[0040] In this embodiment, the associated object can be understood as an object to be processed that is somewhat different from the target object but has a strong semantic relevance.
[0041] In this embodiment, based on the semantic expansion results of each object to be processed, merging and deduplication are performed again to determine the label queue corresponding to the object set to be processed after the final merger, vector calculation is performed based on the labels of each object in the label queue to determine the label vector of each label, and the label vector of the target object is correlated with the label vectors of other objects to be processed in the object set to be processed to determine the correlation between the target object and other objects to be processed, and a preset number of objects to be processed are taken as associated objects in order of correlation from high to low.
[0042] S104: Push the object information of the associated object to the corresponding client, so that the client can recommend the associated object.
[0043] In this embodiment, the object information can be understood as product content, commodity content, news content, etc. The client can be understood as a mobile phone or computer terminal that interacts with the user.
[0044] Specifically, after the associated objects are determined, the object information of the associated objects is pushed to the client that obtains the corresponding set of objects to be processed, so that the associated objects can be recommended through the corresponding software on the client, meeting the user's information needs and improving the user experience and residence time.
[0045] The embodiment of the present invention provides a method for recommending associated objects based on semantic expansion, including obtaining an object label list of each object to be processed in a set of objects to be processed, and determining a target object from the set of objects to be processed; for each object to be processed, performing at least two levels of semantic expansion on each object label in the object label list of the object to be processed, and determining the semantic expansion result of the object to be processed; determining the associated object of the target object from the set of objects to be processed according to each semantic expansion result; and pushing the object information of the associated object to the corresponding client so that the client can recommend the associated object. The above technical scheme, by performing at least two semantic expansions on each object to be processed in the set of objects to be processed, determines several associated objects that are most relevant to the target object based on the results of at least two semantic expansions. The associated objects determined in this way have a large difference in content from the target object, but still have a strong semantic relevance, realizing a deeper semantic expansion and associated object determination, and the associated object recommendation realized based on the deep semantic expansion improves the user's sense of surprise and ensures the user's use experience under the premise of ensuring the accuracy of the associated object.
[0046] Embodiment 2
[0047] Figure 2 It is a flowchart of a method for recommending associated objects based on semantic extension provided in the second embodiment of the present invention. This embodiment is a further optimization of any of the above embodiments, and can be applied to the situation of performing deep semantic extension on the label of each object to be processed in the set of objects to be processed so as to more optimally realize the recommendation of associated objects. The method can be executed by an associated object recommendation device based on semantic extension, and the associated object recommendation device based on semantic extension can be implemented in the form of hardware and / or software.
[0048] like Figure 2 As shown, the method includes:
[0049] S201 , obtaining an object label list of each object to be processed in a set of objects to be processed, and determining a target object from the set of objects to be processed.
[0050] Specifically, a set of items for which associated recommendation results are to be generated, that is, a set of objects to be processed S, is obtained.
[0051] S202: For each object to be processed, semantically expand each object tag in the object tag list of the object to be processed, and determine an extended tag list including at least one expanded object tag.
[0052] In this embodiment, the extended tag list can be understood as a set of extended object tags obtained after semantic expansion of an object tag.
[0053] Specifically, for any object item in the object set S, which has n tags, the object tag list of the item is represented as tag item =[t1,t2,…,t n ], where t i Indicates the i-th label of item. For label t i , perform semantic expansion and obtain the relative label t i List of extended tags in, 1 in the middle indicates relative t i The first semantic expansion of the object tag list. The expanded tag list contains N expanded object tags, where N is a constant greater than 0. At this time, n object tag lists corresponding to the number of object tags in the object tag list of the object to be processed are obtained. Each object tag list includes N extended object tags. The n object tag lists are merged and deduplicated, that is, n*N object tags are merged and deduplicated, duplicate object tags are removed, and the unique object tags after deduplication are combined to form an extended tag list tag_l1 item , as the result of the first semantic expansion. Among them, the expanded tag list tag_l1 item The length of the list is len1.
[0054] S203 . For each expanded object label, return to continue semantic expansion to obtain an expanded label list for this iteration until the set number of iterations is met.
[0055] In this embodiment, the number of iterations is set to be at least two, preferably two.
[0056] Specifically, for each expanded object tag, a new semantic extension is performed based on each object tag in the expanded object tag list. For example, for the first-level semantic expansion tag list tag_l1 of item item The jth label t in j , perform semantic expansion and obtain the relative label tj List of extended tags in, 2 in the middle indicates relative t i The second semantic expansion. The extended tag list contains M extended object tags, where M is a constant greater than 0. At this time, the extended tag list tag_l1 obtained by the first semantic expansion is obtained. item The length of the list len1 corresponds to the number of object label lists Each object tag list includes M extended object tags. The object tag lists corresponding to the length len1 are merged and deduplicated, that is, len1*M object tags are merged and deduplicated, and duplicate object tags are removed. The unique object tags after deduplication are combined to form an extended tag list tag_l2 item , as the result of the second semantic expansion. Among them, the expanded tag list tag_l2 item The length of the list is len2.
[0057] After completing the second-level semantic expansion, determine whether the preset number of iterations is met. If not, based on the extended tag list tag_l2 item and its list length len2, and perform the next semantic expansion until the preset number of iterations is met, thus ending the multi-layer semantic expansion of each object label of the object to be processed.
[0058] Optionally, the semantic expansion step in steps S202 and S203 includes:
[0059] a) For each object label of this iteration, semantic expansion is performed on the object label through the semantic expansion tool to obtain an initial label list.
[0060] In this embodiment, the initial label list can be understood as all the expanded object labels obtained.
[0061] Specifically, for each object label of this iteration, semantic expansion is performed using the word2vec tool to obtain an expansion result, and all the expanded object labels are combined to form an initial label list.
[0062] b) determining an intermediate tag list satisfying a similarity condition according to the initial tag list, wherein the intermediate tag list includes a preset number of intermediate extended tags.
[0063] In this embodiment, the similarity condition can be understood as a condition for screening a preset number of object tags with the highest similarity. The intermediate tag list can be understood as a new tag list optimized and screened from the initial tag list according to the similarity condition, storing a preset number of intermediate extended tags. The intermediate extended tag is the object tag after expansion in the above step.
[0064] Specifically, in each semantic expansion iteration, there is a corresponding preset number, such as N for the first semantic expansion and M for the second semantic expansion in the above steps. It can be understood that the values of M and N can be consistent. Since there may be a large number of expanded object labels for each object label, in order to ensure the accuracy and strong correlation of the associated object determination, the expanded object labels in the initial label list are sorted according to the similarity between the original object labels before expansion, and based on the similarity from high to low, a preset number of expanded object labels corresponding to the number of iterations are taken from the initial object labels as intermediate expanded labels, which are combined to form an intermediate label list. The intermediate label list is the above or
[0065] c) Merge the intermediate label lists and remove duplicates to form an extended label list relative to the object label.
[0066] In this embodiment, each intermediate label list is merged to form a larger label list, and each expanded object label in the label list is merged and deduplicated to remove duplicate object labels to form an extended label list relative to the object label. Each expanded object label in the extended label list is unique.
[0067] For example, in the first semantic expansion, a list of n intermediate tags is obtained: Each object tag list includes N extended object tags. The n object tag lists are merged and deduplicated, that is, n*N object tags are merged and deduplicated, duplicate object tags are removed, and the unique object tags after deduplication are combined to form an extended tag list tag_l1 item The same goes for each semantic expansion iteration, which will not be repeated here.
[0068] S204: De-duplicate the object label list and the extended label list of each iteration to determine a target label list, and determine the target label list as a semantic extension result of the object to be processed.
[0069] In this embodiment, the target label list is obtained by merging and deduplicating the object label list and the extended label list of each iteration, and includes an object label set of all object labels before and after expansion of the object to be processed. In the target label list, each object label is also unique.
[0070] Specifically, the object label list and the extended label list of each iteration are merged to form a large label list, which contains all object labels before and after the expansion of the object to be processed. However, there may be duplicate object labels in this label list. Therefore, label merging and deduplication are performed. After deduplication, a target label list is formed in which each object label is unique. The target label list is determined as the semantic expansion result of the object to be processed.
[0071] For example, the preset number of iterations is 2, that is, two semantic expansion iterations are performed for each object to be processed. At this time, the original object tag list tag item , the extended tag list tag_l1 obtained by the first semantic expansion item And the extended tag list tag_l2 obtained by the second semantic expansion item Merge and remove duplicates to obtain the target label list T after the final fusion of the object item to be processed item , which is the result of semantic expansion.
[0072] S205 , performing deduplication according to the semantic expansion result corresponding to each object to be processed in the set of objects to be processed, and determining a merged object label list.
[0073] In this embodiment, the merged object label list can be understood as a merged set of semantic expansion results of all objects to be processed in the set of objects to be processed.
[0074] Specifically, the object set to be processed contains several objects to be processed, and each object item to be processed has a corresponding semantic expansion result T item , a number of T corresponding to the number of objects to be processed in the set of objects to be processed item Merge to form a new label list, remove duplicates from the label list, and determine the merged object label list Q containing k object labels after removal of duplicates tag =[t1,t2,…,t k ], each object label in the merged object label list is unique.
[0075] S206 . For each object to be processed, determine a label vector of the object to be processed according to the merged object label list and the object label list of the object to be processed.
[0076] In this embodiment, for each object to be processed in the set of objects to be processed, the object to be processed is added to the merged object label list Q tag The corresponding object labels in the semantic expansion result T item Compare the corresponding object labels in to obtain the label vector V for each object to be processed.
[0077] Optionally, determining a label vector of the object to be processed according to the merged object label list and the object label list of the object to be processed includes:
[0078] S2061. Determine the inclusion relationship between the object labels corresponding to the object to be processed in the merged object label list and the object label list of the object to be processed, and obtain the relationship determination result of each object label.
[0079] In this embodiment, the relationship determination result is a judgment result of whether each object label corresponding to the object to be processed in the merged object label list is included in the object label list of the object to be processed, including inclusion or non-inclusion.
[0080] Specifically, the semantic expansion result T corresponding to the object to be processed m is item T m , m corresponds to mk object labels in the merged object label list. mk object labels are all included in the merged object label list Q tag (t r ∈Q tag ), where t r Indicates the rth object label among the mk object labels of the object to be processed m. At this time, it is determined whether each object label is included in the semantic expansion result T m , that is (t r ∈T m or ) to obtain the relationship determination result.
[0081] S2062: When the relationship determination result is inclusion, generate a first vector value, and fill the first vector value into a label position corresponding to the object label.
[0082] In this embodiment, the first vector value may be understood as a preset vector value corresponding to when the relationship determination result is inclusion, for example, 1.
[0083] Specifically, when the relationship is determined to be contained, then t r ∈Q tag And t r ∈T m , then, apply v mr =1,t r ∈Q tag And t r ∈T m , where v mr Represents the object label t r The label vector of the object to be processed is V m =[v m1 ,v m2 ,…v mr,…,v mk ], fill 1 to V m Medium mr location.
[0084] S2063: When the relationship determination result is not contained, generate a second vector value, and fill the second vector value into the label position corresponding to the object label.
[0085] In this embodiment, the second vector value may be understood as a preset vector value corresponding to when the relationship determination result is not included, for example, 0.
[0086] Specifically, when the relationship is determined to be non-inclusion, then t r ∈Q tag and At this time, apply v mr =0,t r ∈Q tag and Fill 0 to V m Medium mr location.
[0087] S2064. Determine the label vector of the object to be processed according to the vector value corresponding to each label position.
[0088] In this embodiment, after the first vector value 1 and the second vector value are filled into the label position corresponding to the object label, a complete label vector is obtained, for example, V m =[1,1,1,0,1,0,0,0,1].
[0089] S207 . Determine, based on the label vector of the target object, the correlation between the target object and other objects to be processed in the set of objects to be processed except the target object.
[0090] In this embodiment, the target object is the object to be processed p in the set of objects to be processed. Based on the label vector V of the target object p The correlation is calculated with the label vectors of other objects to be processed except the target object in the set of objects to be processed. For example, based on the label vector V of the target object p p and the label vector V of the object q to be processed q Perform correlation calculation to obtain the corresponding correlation Rel pq . Relevance Rel pq The calculation is as follows: Where k is Q tag Length.
[0091] S208: Determine the associated objects of the target object according to the relevance.
[0092] In this embodiment, the objects to be processed other than the target object in the set of objects to be processed are sorted according to the correlation between the target object and the other objects, and a preset number of objects to be processed with the highest correlation are determined as associated objects.
[0093] Optionally, determining the associated objects of the target object according to the relevance includes:
[0094] S2081. Sort the objects to be processed except the target object in the set of objects to be processed according to their relevance.
[0095] In this embodiment, the corresponding correlations are calculated between the other objects to be processed except the target object in the set of objects to be processed and the target object, and the other objects to be processed except the target object in the set of objects to be processed are sorted according to the correlations from high to low.
[0096] S2082. According to the sorting result, determine a preset number of objects to be processed as associated objects of the target object.
[0097] In this embodiment, according to the sorting result, a preset number K of to-be-processed objects at the front are taken as associated objects, where K is a constant greater than 0.
[0098] S209: Push the object information of the associated object to the corresponding client, so that the client can recommend the associated object.
[0099] A method for recommending associated objects based on semantic extension provided by an embodiment of the present invention comprises obtaining an object label list of each object to be processed in a set of objects to be processed, and determining a target object from the set of objects to be processed; for each object to be processed, semantically extending each object label in the object label list of the object to be processed, and determining an extended label list containing at least one extended object label; for each extended object label, returning to continue semantic extension to obtain an extended label list of this iteration until a set number of iterations is met; deduplication is performed according to the object label list and the extended label list of each iteration to determine a target label list, and the target label list is determined as a semantic extension result of the object to be processed; deduplication is performed according to the semantic extension result corresponding to each object to be processed in the set of objects to be processed to determine a merged object label list; for each object to be processed, determining a label vector of the object to be processed according to the merged object label list and the object label list of the object to be processed; according to the label vector of the target object, determining the relevance between the target object and other objects to be processed in the set of objects to be processed except the target object; determining the associated objects of the target object according to the relevance; and pushing the object information of the associated objects to the corresponding client so that the client can recommend associated objects. The above technical scheme performs at least two semantic expansions on each object to be processed in the set of objects to be processed, determines the label vector of each object to be processed based on the results of at least two semantic expansions, determines the correlation between the target object and other objects to be processed based on the label vector, and then determines the associated objects, thereby ensuring the accuracy of the determination of the associated objects. The associated objects determined by this method have a large difference in content from the target objects, but still have a strong semantic correlation, thereby achieving deeper semantic expansion and associated object determination. The associated object recommendation achieved based on the deep semantic expansion improves the user's sense of surprise and ensures the user's usage experience while ensuring the accuracy of the associated objects.
[0100] Embodiment 3
[0101] Figure 3 is a schematic diagram of the structure of a device for recommending related objects based on semantic extension provided by the third embodiment of the present invention. Figure 3 As shown, the device comprises:
[0102] A label list determination module 31 is used to obtain an object label list of each object to be processed in the set of objects to be processed, and determine a target object from the set of objects to be processed;
[0103] A multi-layer semantic expansion module 32, for performing at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed for each of the objects to be processed, and determining a semantic expansion result of the object to be processed;
[0104] An associated object determination module 33, configured to determine an associated object of the target object from the set of objects to be processed according to each of the semantic expansion results;
[0105] The associated object recommendation module 34 is used to push the object information of the associated object to the corresponding client, so that the client can make an associated object recommendation.
[0106] The device for recommending associated objects based on semantic extension adopted in the technical solution performs semantic extension at least twice on each object to be processed in the set of objects to be processed, and determines several associated objects most relevant to the target object based on the results of at least two semantic extensions. The associated objects determined in this way have a large difference in content from the target objects, but still have a strong semantic relevance, thereby achieving deeper semantic extension and associated object determination. The associated object recommendation achieved based on the deep semantic extension improves the user's sense of surprise and ensures the user's usage experience while ensuring the accuracy of the associated objects.
[0107] Optionally, the multi-layer semantic expansion module 32 is specifically used for:
[0108] For each of the objects to be processed, semantically expand each object tag in the object tag list of the object to be processed, and determine an extended tag list including at least one extended object tag;
[0109] For each expanded object label, return to continue semantic expansion to obtain the expanded label list of this iteration until the set number of iterations is met;
[0110] Deduplication is performed according to the object label list and the extended label list of each iteration to determine a target label list, and the target label list is determined as a semantic extension result of the object to be processed.
[0111] Optional semantic expansion steps include:
[0112] For each object label of this iteration, semantic expansion is performed on the object label by using a semantic expansion tool to obtain an initial label list;
[0113] Determine an intermediate tag list that meets a similarity condition according to the initial tag list, wherein the intermediate tag list includes a preset number of intermediate extended tags;
[0114] The intermediate label lists are merged and duplicated to form an extended label list relative to the object label.
[0115] Optionally, the associated object determination module 33 includes:
[0116] A merge list determination unit, configured to remove duplicates according to the semantic expansion results corresponding to each object to be processed in the set of objects to be processed, and determine a merged object label list;
[0117] a label vector determining unit, configured to determine, for each object to be processed, a label vector of the object to be processed according to the merged object label list and the object label list of the object to be processed;
[0118] A correlation determination unit, configured to determine, based on the label vector of the target object, the correlation between the target object and other objects to be processed in the set of objects to be processed except the target object;
[0119] The associated object determining unit is used to determine the associated object of the target object according to the correlation.
[0120] Optionally, a label vector determination unit is used to:
[0121] According to each object label corresponding to the object to be processed in the merged object label list, determining the inclusion relationship with the object label list of the object to be processed, and obtaining the relationship determination result of each object label;
[0122] When the relationship determination result is inclusion, generating a first vector value, and filling the first vector value into a label position corresponding to the object label;
[0123] When the relationship determination result is not contained, generating a second vector value, and filling the second vector value into a label position corresponding to the object label;
[0124] The label vector of the object to be processed is determined according to the vector value corresponding to each of the label positions.
[0125] Optionally, the associated object determination unit is specifically used to:
[0126] Sorting the other objects to be processed in the set of objects to be processed except the target object according to relevance;
[0127] According to the sorting result, a preset number of objects to be processed are determined as associated objects of the target object.
[0128] The apparatus for determining associated objects based on semantic extension provided in the embodiment of the present invention can execute the method for recommending associated objects based on semantic extension provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0129] Embodiment 4
[0130] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0131] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0132] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0133] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as the associated object recommendation method based on semantic extension.
[0134] In some embodiments, the method for recommending associated objects based on semantic extension can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the method for recommending associated objects based on semantic extension described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to perform the method for recommending associated objects based on semantic extension by any other appropriate means (e.g., by means of firmware).
[0135] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0136] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0137] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0138] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0139] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0140] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0141] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0142] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for recommending related objects based on semantic extension, characterized in that: include: Obtain an object label list of each object to be processed in the set of objects to be processed, and determine a target object from the set of objects to be processed; For each of the objects to be processed, performing at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed to determine a semantic expansion result of the object to be processed; According to each of the semantic expansion results, determining the associated objects of the target object from the set of objects to be processed; The object information of the associated object is pushed to the corresponding client, so that the client can make an associated object recommendation.
2. The method according to claim 1, characterized in that For each of the objects to be processed, performing at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed to determine the semantic expansion result of the object to be processed, including: For each of the objects to be processed, semantically expand each object tag in the object tag list of the object to be processed, and determine an extended tag list including at least one extended object tag; For each expanded object label, return to continue semantic expansion to obtain the expanded label list of this iteration until the set number of iterations is met; Deduplication is performed according to the object label list and the extended label list of each iteration to determine a target label list, and the target label list is determined as a semantic extension result of the object to be processed.
3. The method according to claim 2, characterized in that The steps of semantic expansion include: For each object label of this iteration, semantic expansion is performed on the object label by using a semantic expansion tool to obtain an initial label list; Determine an intermediate tag list that meets a similarity condition according to the initial tag list, wherein the intermediate tag list includes a preset number of intermediate extended tags; The intermediate label lists are merged and duplicated to form an extended label list relative to the object label.
4. The method according to claim 1, characterized in that: Determining the associated objects of the target object from the set of objects to be processed according to each of the semantic expansion results includes: Deduplication is performed according to the semantic expansion results corresponding to each object to be processed in the set of objects to be processed, and a merged object label list is determined; For each object to be processed, determining a label vector of the object to be processed according to the merged object label list and the object label list of the object to be processed; Determining, according to the label vector of the target object, the correlation between the target object and other objects to be processed in the set of objects to be processed except the target object; Determine an associated object of the target object according to the relevance.
5. The method according to claim 4, characterized in that Determining a label vector of the object to be processed according to the merged object label list and the object label list of the object to be processed includes: According to each object label corresponding to the object to be processed in the merged object label list, determining the inclusion relationship with the object label list of the object to be processed, and obtaining the relationship determination result of each object label; When the relationship determination result is inclusion, generating a first vector value, and filling the first vector value into a label position corresponding to the object label; When the relationship determination result is not contained, generating a second vector value, and filling the second vector value into a label position corresponding to the object label; The label vector of the object to be processed is determined according to the vector value corresponding to each of the label positions.
6. The method according to claim 4, characterized in that Determining the associated object of the target object according to the relevance includes: Sorting the other objects to be processed in the set of objects to be processed except the target object according to relevance; According to the sorting result, a preset number of objects to be processed are determined as associated objects of the target object.
7. A device for recommending related objects based on semantic extension, characterized in that: include: A label list determination module, used to obtain an object label list of each object to be processed in the set of objects to be processed, and determine a target object from the set of objects to be processed; A multi-layer semantic expansion module, for performing at least two levels of semantic expansion on each object tag in the object tag list of the object to be processed for each of the objects to be processed, and determining a semantic expansion result of the object to be processed; An associated object determination module, used to determine the associated objects of the target object from the set of objects to be processed according to each of the semantic expansion results; The associated object recommendation module is used to push the object information of the associated object to the corresponding client so that the client can make an associated object recommendation.
8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for recommending associated objects based on semantic extension according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for recommending associated objects based on semantic extension according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements a method for recommending associated objects based on semantic extension according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for improving social attention of video based on keyword recommendation
CN106528633A
Information recommendation method and device and storage medium
CN111125495A
